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 ExternalTaskpublic String getActivityInstanceId()
getActivityInstanceId in interface ExternalTaskpublic String getErrorMessage()
getErrorMessage in interface ExternalTaskpublic String getErrorDetails()
getErrorDetails in interface ExternalTaskpublic String getExecutionId()
getExecutionId in interface ExternalTaskpublic String getId()
getId in interface ExternalTaskpublic Date getLockExpirationTime()
getLockExpirationTime in interface ExternalTaskpublic String getProcessDefinitionId()
getProcessDefinitionId in interface ExternalTaskpublic String getProcessDefinitionKey()
getProcessDefinitionKey in interface ExternalTaskpublic String getProcessDefinitionVersionTag()
getProcessDefinitionVersionTag in interface ExternalTaskpublic String getProcessInstanceId()
getProcessInstanceId in interface ExternalTaskpublic Integer getRetries()
getRetries in interface ExternalTaskpublic String getWorkerId()
getWorkerId in interface ExternalTaskpublic String getTopicName()
getTopicName in interface ExternalTaskpublic String getTenantId()
getTenantId in interface ExternalTaskpublic long getPriority()
getPriority in interface ExternalTaskpublic String getBusinessKey()
ExternalTaskgetBusinessKey in interface ExternalTaskpublic Map<String,Object> getAllVariables()
ExternalTaskgetAllVariables in interface ExternalTaskpublic <T> T getVariable(String variableName)
ExternalTaskgetVariable in interface ExternalTaskT - the type of the variablevariableName - of the variable to be returnedpublic VariableMap getAllVariablesTyped()
ExternalTaskgetAllVariablesTyped in interface ExternalTaskpublic VariableMap getAllVariablesTyped(boolean deserializeObjectValues)
ExternalTaskgetAllVariablesTyped in interface ExternalTaskdeserializeObjectValues - false to retrieve the object without deserialization
true to retrieve the deserialized object
public <T extends TypedValue> T getVariableTyped(String variableName)
ExternalTaskgetVariableTyped in interface ExternalTaskT - the type of the variablevariableName - of the variable to be returnedpublic <T extends TypedValue> T getVariableTyped(String variableName, boolean deserializeObjectValues)
ExternalTaskgetVariableTyped in interface ExternalTaskT - 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()
ExternalTaskTopicSubscriptionBuilder.includeExtensionProperties(boolean)) to be
available.
If no extension properties are available the returned map will be empty.getExtensionProperties in interface ExternalTasknullpublic String getExtensionProperty(String propertyKey)
ExternalTasknull if the property was not available.getExtensionProperty in interface ExternalTasknull if not availableExternalTask.getExtensionProperties()Copyright © 2022. All rights reserved.