public interface ExternalTask
Represents an external task
Modifier and Type | Method and Description |
---|---|
String |
getActivityId() |
String |
getActivityInstanceId() |
Map<String,Object> |
getAllVariables()
Returns untyped variables that exist in the task's ancestor execution hierarchy
|
VariableMap |
getAllVariablesTyped()
Returns typed variables that exist in the task's ancestor execution hierarchy
|
VariableMap |
getAllVariablesTyped(boolean deserializeObjectValues)
Returns typed variables that exist in the task's ancestor execution hierarchy
|
String |
getBusinessKey()
Returns the business key of the process instance the external task is associated with
|
String |
getErrorDetails() |
String |
getErrorMessage() |
String |
getExecutionId() |
Map<String,String> |
getExtensionProperties()
Returns all available extension properties.
|
String |
getExtensionProperty(String propertyKey)
Returns the value of the extension property for a given key or
null if the property was not available. |
String |
getId() |
Date |
getLockExpirationTime() |
long |
getPriority() |
String |
getProcessDefinitionId() |
String |
getProcessDefinitionKey() |
String |
getProcessDefinitionVersionTag() |
String |
getProcessInstanceId() |
Integer |
getRetries() |
String |
getTenantId() |
String |
getTopicName() |
<T> T |
getVariable(String variableName)
Returns an untyped variable of the task's ancestor execution hierarchy
|
<T extends TypedValue> |
getVariableTyped(String variableName)
Returns a typed variable of the task's ancestor execution hierarchy
|
<T extends TypedValue> |
getVariableTyped(String variableName,
boolean deserializeObjectValue)
Returns a typed variable of the task's ancestor execution hierarchy
|
String |
getWorkerId() |
String getActivityId()
String getActivityInstanceId()
String getErrorMessage()
String getErrorDetails()
String getExecutionId()
String getId()
Date getLockExpirationTime()
String getProcessDefinitionId()
String getProcessDefinitionKey()
String getProcessDefinitionVersionTag()
String getProcessInstanceId()
Integer getRetries()
String getWorkerId()
String getTopicName()
String getTenantId()
long getPriority()
<T> T getVariable(String variableName)
T
- the type of the variablevariableName
- of the variable to be returnedValueMapperException
- if an object cannot be deserialized<T extends TypedValue> T getVariableTyped(String variableName)
T
- the type of the variablevariableName
- of the variable to be returnedValueMapperException
- if an object cannot be deserialized<T extends TypedValue> T getVariableTyped(String variableName, boolean deserializeObjectValue)
T
- the type of the variablevariableName
- of the variable to be returneddeserializeObjectValue
- false
to retrieve the object without deserialization
true
to retrieve the deserialized object
ValueMapperException
- if an object cannot be deserializedMap<String,Object> getAllVariables()
ValueMapperException
- if an object cannot be deserializedVariableMap getAllVariablesTyped()
ValueMapperException
- if an object cannot be deserializedVariableMap getAllVariablesTyped(boolean deserializeObjectValues)
deserializeObjectValues
- false
to retrieve the object without deserialization
true
to retrieve the deserialized object
ValueMapperException
- if an object cannot be deserializedString getBusinessKey()
String getExtensionProperty(String propertyKey)
null
if the property was not available.null
if not availablegetExtensionProperties()
Map<String,String> getExtensionProperties()
TopicSubscriptionBuilder.includeExtensionProperties(boolean)
) to be
available.
If no extension properties are available the returned map will be empty.null
Copyright © 2022. All rights reserved.