public class ExternalTaskImpl extends Object implements ExternalTask
Modifier and Type | Field and Description |
---|---|
protected String |
activityId |
protected String |
activityInstanceId |
protected String |
businessKey |
protected String |
errorDetails |
protected String |
errorMessage |
protected String |
executionId |
protected Map<String,String> |
extensionProperties |
protected String |
id |
protected Date |
lockExpirationTime |
protected long |
priority |
protected String |
processDefinitionId |
protected String |
processDefinitionKey |
protected String |
processDefinitionVersionTag |
protected String |
processInstanceId |
protected Map<String,VariableValue> |
receivedVariableMap |
protected Integer |
retries |
protected String |
tenantId |
protected String |
topicName |
protected Map<String,TypedValueField> |
variables |
protected String |
workerId |
Constructor and Description |
---|
ExternalTaskImpl() |
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
|
Map<String,TypedValueField> |
getVariables() |
<T extends TypedValue> |
getVariableTyped(String variableName)
Returns a typed variable of the task's ancestor execution hierarchy
|
<T extends TypedValue> |
getVariableTyped(String variableName,
boolean deserializeObjectValues)
Returns a typed variable of the task's ancestor execution hierarchy
|
String |
getWorkerId() |
void |
setActivityId(String activityId) |
void |
setActivityInstanceId(String activityInstanceId) |
void |
setBusinessKey(String businessKey) |
void |
setErrorDetails(String errorDetails) |
void |
setErrorMessage(String errorMessage) |
void |
setExecutionId(String executionId) |
void |
setExtensionProperties(Map<String,String> extensionProperties) |
void |
setId(String id) |
void |
setLockExpirationTime(Date lockExpirationTime) |
void |
setPriority(long priority) |
void |
setProcessDefinitionId(String processDefinitionId) |
void |
setProcessDefinitionKey(String processDefinitionKey) |
void |
setProcessDefinitionVersionTag(String processDefinitionVersionTag) |
void |
setProcessInstanceId(String processInstanceId) |
void |
setReceivedVariableMap(Map<String,VariableValue> receivedVariableMap) |
void |
setRetries(Integer retries) |
void |
setTenantId(String tenantId) |
void |
setTopicName(String topicName) |
void |
setVariables(Map<String,TypedValueField> variables) |
void |
setWorkerId(String workerId) |
String |
toString() |
protected String activityId
protected String activityInstanceId
protected String errorMessage
protected String errorDetails
protected String executionId
protected String id
protected Date lockExpirationTime
protected String processDefinitionId
protected String processDefinitionKey
protected String processDefinitionVersionTag
protected String processInstanceId
protected Integer retries
protected String workerId
protected String topicName
protected String tenantId
protected long priority
protected Map<String,TypedValueField> variables
protected String businessKey
protected Map<String,VariableValue> receivedVariableMap
public void setActivityId(String activityId)
public void setActivityInstanceId(String activityInstanceId)
public void setErrorMessage(String errorMessage)
public void setErrorDetails(String errorDetails)
public void setExecutionId(String executionId)
public void setId(String id)
public void setLockExpirationTime(Date lockExpirationTime)
public void setProcessDefinitionId(String processDefinitionId)
public void setProcessDefinitionKey(String processDefinitionKey)
public void setProcessDefinitionVersionTag(String processDefinitionVersionTag)
public void setProcessInstanceId(String processInstanceId)
public void setRetries(Integer retries)
public void setWorkerId(String workerId)
public void setTopicName(String topicName)
public void setTenantId(String tenantId)
public void setPriority(long priority)
public void setVariables(Map<String,TypedValueField> variables)
public void setBusinessKey(String businessKey)
public Map<String,TypedValueField> getVariables()
public void setReceivedVariableMap(Map<String,VariableValue> receivedVariableMap)
public String getActivityId()
getActivityId
in interface ExternalTask
public String getActivityInstanceId()
getActivityInstanceId
in interface ExternalTask
public String getErrorMessage()
getErrorMessage
in interface ExternalTask
public String getErrorDetails()
getErrorDetails
in interface ExternalTask
public String getExecutionId()
getExecutionId
in interface ExternalTask
public String getId()
getId
in interface ExternalTask
public Date getLockExpirationTime()
getLockExpirationTime
in interface ExternalTask
public String getProcessDefinitionId()
getProcessDefinitionId
in interface ExternalTask
public String getProcessDefinitionKey()
getProcessDefinitionKey
in interface ExternalTask
public String getProcessDefinitionVersionTag()
getProcessDefinitionVersionTag
in interface ExternalTask
public String getProcessInstanceId()
getProcessInstanceId
in interface ExternalTask
public Integer getRetries()
getRetries
in interface ExternalTask
public String getWorkerId()
getWorkerId
in interface ExternalTask
public String getTopicName()
getTopicName
in interface ExternalTask
public String getTenantId()
getTenantId
in interface ExternalTask
public long getPriority()
getPriority
in interface ExternalTask
public String getBusinessKey()
ExternalTask
getBusinessKey
in interface ExternalTask
public Map<String,Object> getAllVariables()
ExternalTask
getAllVariables
in interface ExternalTask
public <T> T getVariable(String variableName)
ExternalTask
getVariable
in interface ExternalTask
T
- the type of the variablevariableName
- of the variable to be returnedpublic VariableMap getAllVariablesTyped()
ExternalTask
getAllVariablesTyped
in interface ExternalTask
public VariableMap getAllVariablesTyped(boolean deserializeObjectValues)
ExternalTask
getAllVariablesTyped
in interface ExternalTask
deserializeObjectValues
- false
to retrieve the object without deserialization
true
to retrieve the deserialized object
public <T extends TypedValue> T getVariableTyped(String variableName)
ExternalTask
getVariableTyped
in interface ExternalTask
T
- the type of the variablevariableName
- of the variable to be returnedpublic <T extends TypedValue> T getVariableTyped(String variableName, boolean deserializeObjectValues)
ExternalTask
getVariableTyped
in interface ExternalTask
T
- the type of the variablevariableName
- of the variable to be returneddeserializeObjectValues
- false
to retrieve the object without deserialization
true
to retrieve the deserialized object
public Map<String,String> getExtensionProperties()
ExternalTask
TopicSubscriptionBuilder.includeExtensionProperties(boolean)
) to be
available.
If no extension properties are available the returned map will be empty.getExtensionProperties
in interface ExternalTask
null
public String getExtensionProperty(String propertyKey)
ExternalTask
null
if the property was not available.getExtensionProperty
in interface ExternalTask
null
if not availableExternalTask.getExtensionProperties()
Copyright © 2022. All rights reserved.