Interface ActivatedJob
-
- All Known Implementing Classes:
ActivatedJobImpl
public interface ActivatedJob
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetBpmnProcessId()Map<String,String>getCustomHeaders()longgetDeadline()StringgetElementId()longgetElementInstanceKey()longgetKey()longgetProcessDefinitionKey()intgetProcessDefinitionVersion()longgetProcessInstanceKey()intgetRetries()StringgetType()StringgetVariables()Map<String,Object>getVariablesAsMap()<T> TgetVariablesAsType(Class<T> variableType)StringgetWorker()StringtoJson()
-
-
-
Method Detail
-
getKey
long getKey()
- Returns:
- the unique key of the job
-
getType
String getType()
- Returns:
- the type of the job
-
getProcessInstanceKey
long getProcessInstanceKey()
- Returns:
- key of the process instance
-
getBpmnProcessId
String getBpmnProcessId()
- Returns:
- BPMN process id of the process
-
getProcessDefinitionVersion
int getProcessDefinitionVersion()
- Returns:
- version of the process
-
getProcessDefinitionKey
long getProcessDefinitionKey()
- Returns:
- key of the process
-
getElementId
String getElementId()
- Returns:
- id of the process element
-
getElementInstanceKey
long getElementInstanceKey()
- Returns:
- key of the element instance
-
getCustomHeaders
Map<String,String> getCustomHeaders()
- Returns:
- user-defined headers associated with this job
-
getWorker
String getWorker()
- Returns:
- the assigned worker to complete the job
-
getRetries
int getRetries()
- Returns:
- remaining retries
-
getDeadline
long getDeadline()
- Returns:
- the unix timestamp until when the job is exclusively assigned to this worker (time unit * is milliseconds since unix epoch). If the deadline is exceeded, it can happen that the job is handed to another worker and the work is performed twice.
-
getVariables
String getVariables()
- Returns:
- JSON-formatted variables
-
getVariablesAsType
<T> T getVariablesAsType(Class<T> variableType)
- Returns:
- de-serialized variables as the given type
-
toJson
String toJson()
- Returns:
- the record encoded as JSON
-
-