Interface ActivatedJob
- All Known Implementing Classes:
ActivatedJobImpl
public interface ActivatedJob
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
long
getKey()
long
int
long
int
getType()
<T> T
getVariablesAsType
(Class<T> variableType) toJson()
-
Method Details
-
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
- 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
-
getVariablesAsMap
- Returns:
- de-serialized variables as map
-
getVariablesAsType
- Returns:
- de-serialized variables as the given type
-
toJson
String toJson()- Returns:
- the record encoded as JSON
-