public class LockedExternalTaskImpl extends Object implements LockedExternalTask
| 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 Integer |
retries |
protected String |
tenantId |
protected String |
topicName |
protected VariableMapImpl |
variables |
protected String |
workerId |
| Constructor and Description |
|---|
LockedExternalTaskImpl() |
| Modifier and Type | Method and Description |
|---|---|
static LockedExternalTaskImpl |
fromEntity(ExternalTaskEntity externalTaskEntity,
List<String> variablesToFetch,
boolean isLocal,
boolean deserializeVariables,
boolean includeExtensionProperties)
Construct representation of locked ExternalTask from corresponding entity.
|
String |
getActivityId() |
String |
getActivityInstanceId() |
String |
getBusinessKey()
Returns the business key of the process instance the external task belongs to
|
String |
getErrorDetails() |
String |
getErrorMessage() |
String |
getExecutionId() |
Map<String,String> |
getExtensionProperties()
Returns a map of custom extension properties if the fetch instructions
indicate to include extension properties.
|
String |
getId() |
Date |
getLockExpirationTime() |
long |
getPriority()
Returns the priority of the locked external task.
|
String |
getProcessDefinitionId() |
String |
getProcessDefinitionKey() |
String |
getProcessDefinitionVersionTag() |
String |
getProcessInstanceId() |
Integer |
getRetries() |
String |
getTenantId() |
String |
getTopicName() |
VariableMap |
getVariables() |
String |
getWorkerId() |
protected String id
protected String topicName
protected String workerId
protected Date lockExpirationTime
protected Integer retries
protected String errorMessage
protected String errorDetails
protected String processInstanceId
protected String executionId
protected String activityId
protected String activityInstanceId
protected String processDefinitionId
protected String processDefinitionKey
protected String processDefinitionVersionTag
protected String tenantId
protected long priority
protected VariableMapImpl variables
protected String businessKey
public String getId()
getId in interface LockedExternalTaskpublic String getTopicName()
getTopicName in interface LockedExternalTaskpublic String getWorkerId()
getWorkerId in interface LockedExternalTaskpublic Date getLockExpirationTime()
getLockExpirationTime in interface LockedExternalTaskpublic Integer getRetries()
getRetries in interface LockedExternalTasknull.public String getErrorMessage()
getErrorMessage in interface LockedExternalTasknull if no failure was reported previously or if no error message
was submittedExternalTaskService.handleFailure(String, String, String, int, long)public String getProcessInstanceId()
getProcessInstanceId in interface LockedExternalTaskpublic String getExecutionId()
getExecutionId in interface LockedExternalTaskpublic String getActivityId()
getActivityId in interface LockedExternalTaskpublic String getActivityInstanceId()
getActivityInstanceId in interface LockedExternalTaskpublic String getProcessDefinitionId()
getProcessDefinitionId in interface LockedExternalTaskpublic String getProcessDefinitionKey()
getProcessDefinitionKey in interface LockedExternalTaskpublic String getProcessDefinitionVersionTag()
getProcessDefinitionVersionTag in interface LockedExternalTaskpublic String getTenantId()
getTenantId in interface LockedExternalTasknull
if the task belongs to no single tenant.public VariableMap getVariables()
getVariables in interface LockedExternalTaskpublic String getErrorDetails()
getErrorDetails in interface LockedExternalTasknull if no failure was reported previously or if no error details
was submittedExternalTaskService.handleFailure(String, String, String, String, int, long)public long getPriority()
LockedExternalTaskgetPriority in interface LockedExternalTaskpublic String getBusinessKey()
LockedExternalTaskgetBusinessKey in interface LockedExternalTaskpublic Map<String,String> getExtensionProperties()
LockedExternalTaskgetExtensionProperties in interface LockedExternalTasknullpublic static LockedExternalTaskImpl fromEntity(ExternalTaskEntity externalTaskEntity, List<String> variablesToFetch, boolean isLocal, boolean deserializeVariables, boolean includeExtensionProperties)
externalTaskEntity - - source persistent entity to use for fieldsvariablesToFetch - - list of variable names to fetch, if null then all variables will be fetchedisLocal - - if true only local variables will be collectedorg.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope#collectVariables(VariableMapImpl, Collection, boolean, boolean)}Copyright © 2022. All rights reserved.