Class ExternalTaskImpl

java.lang.Object
org.eximeebpms.bpm.client.task.impl.ExternalTaskImpl
All Implemented Interfaces:
ExternalTask

public class ExternalTaskImpl extends Object implements ExternalTask
Author:
Tassilo Weidner
  • Field Details Link icon

    • activityId Link icon

      protected String activityId
    • activityInstanceId Link icon

      protected String activityInstanceId
    • errorMessage Link icon

      protected String errorMessage
    • errorDetails Link icon

      protected String errorDetails
    • executionId Link icon

      protected String executionId
    • id Link icon

      protected String id
    • lockExpirationTime Link icon

      protected Date lockExpirationTime
    • createTime Link icon

      protected Date createTime
    • processDefinitionId Link icon

      protected String processDefinitionId
    • processDefinitionKey Link icon

      protected String processDefinitionKey
    • processDefinitionVersionTag Link icon

      protected String processDefinitionVersionTag
    • processInstanceId Link icon

      protected String processInstanceId
    • retries Link icon

      protected Integer retries
    • workerId Link icon

      protected String workerId
    • topicName Link icon

      protected String topicName
    • tenantId Link icon

      protected String tenantId
    • priority Link icon

      protected long priority
    • variables Link icon

      protected Map<String,TypedValueField> variables
    • businessKey Link icon

      protected String businessKey
    • extensionProperties Link icon

      protected Map<String,String> extensionProperties
    • receivedVariableMap Link icon

      protected Map<String,VariableValue> receivedVariableMap
  • Constructor Details Link icon

    • ExternalTaskImpl Link icon

      public ExternalTaskImpl()
  • Method Details Link icon

    • setActivityId Link icon

      public void setActivityId(String activityId)
    • setActivityInstanceId Link icon

      public void setActivityInstanceId(String activityInstanceId)
    • setErrorMessage Link icon

      public void setErrorMessage(String errorMessage)
    • setErrorDetails Link icon

      public void setErrorDetails(String errorDetails)
    • setExecutionId Link icon

      public void setExecutionId(String executionId)
    • setId Link icon

      public void setId(String id)
    • setLockExpirationTime Link icon

      public void setLockExpirationTime(Date lockExpirationTime)
    • setCreateTime Link icon

      public void setCreateTime(Date createTime)
    • setProcessDefinitionId Link icon

      public void setProcessDefinitionId(String processDefinitionId)
    • setProcessDefinitionKey Link icon

      public void setProcessDefinitionKey(String processDefinitionKey)
    • setProcessDefinitionVersionTag Link icon

      public void setProcessDefinitionVersionTag(String processDefinitionVersionTag)
    • setProcessInstanceId Link icon

      public void setProcessInstanceId(String processInstanceId)
    • setRetries Link icon

      public void setRetries(Integer retries)
    • setWorkerId Link icon

      public void setWorkerId(String workerId)
    • setTopicName Link icon

      public void setTopicName(String topicName)
    • setTenantId Link icon

      public void setTenantId(String tenantId)
    • setPriority Link icon

      public void setPriority(long priority)
    • setVariables Link icon

      public void setVariables(Map<String,TypedValueField> variables)
    • setBusinessKey Link icon

      public void setBusinessKey(String businessKey)
    • getVariables Link icon

      public Map<String,TypedValueField> getVariables()
    • setReceivedVariableMap Link icon

      public void setReceivedVariableMap(Map<String,VariableValue> receivedVariableMap)
    • getActivityId Link icon

      public String getActivityId()
      Specified by:
      getActivityId in interface ExternalTask
      Returns:
      the id of the activity that this external task belongs to
    • getActivityInstanceId Link icon

      public String getActivityInstanceId()
      Specified by:
      getActivityInstanceId in interface ExternalTask
      Returns:
      the id of the activity instance that the external task belongs to
    • getErrorMessage Link icon

      public String getErrorMessage()
      Specified by:
      getErrorMessage in interface ExternalTask
      Returns:
      the error message that was supplied when the last failure of this task was reported
    • getErrorDetails Link icon

      public String getErrorDetails()
      Specified by:
      getErrorDetails in interface ExternalTask
      Returns:
      the error details submitted with the latest reported failure executing this task
    • getExecutionId Link icon

      public String getExecutionId()
      Specified by:
      getExecutionId in interface ExternalTask
      Returns:
      the id of the execution that the external task belongs to
    • getId Link icon

      public String getId()
      Specified by:
      getId in interface ExternalTask
      Returns:
      the id of the external task
    • getLockExpirationTime Link icon

      public Date getLockExpirationTime()
      Specified by:
      getLockExpirationTime in interface ExternalTask
      Returns:
      the time that the task's most recent lock expires or has expired
    • getCreateTime Link icon

      public Date getCreateTime()
      Specified by:
      getCreateTime in interface ExternalTask
      Returns:
      the time that the task was created.
    • getProcessDefinitionId Link icon

      public String getProcessDefinitionId()
      Specified by:
      getProcessDefinitionId in interface ExternalTask
      Returns:
      the id of the process definition the external task is defined in
    • getProcessDefinitionKey Link icon

      public String getProcessDefinitionKey()
      Specified by:
      getProcessDefinitionKey in interface ExternalTask
      Returns:
      the key of the process definition the external task is defined in
    • getProcessDefinitionVersionTag Link icon

      public String getProcessDefinitionVersionTag()
      Specified by:
      getProcessDefinitionVersionTag in interface ExternalTask
      Returns:
      the version tag of the process definition the tasks activity belongs to
    • getProcessInstanceId Link icon

      public String getProcessInstanceId()
      Specified by:
      getProcessInstanceId in interface ExternalTask
      Returns:
      the id of the process instance the external task belongs to
    • getRetries Link icon

      public Integer getRetries()
      Specified by:
      getRetries in interface ExternalTask
      Returns:
      the number of retries the task currently has left
    • getWorkerId Link icon

      public String getWorkerId()
      Specified by:
      getWorkerId in interface ExternalTask
      Returns:
      the id of the worker that possesses or possessed the most recent lock
    • getTopicName Link icon

      public String getTopicName()
      Specified by:
      getTopicName in interface ExternalTask
      Returns:
      the topic name of the external task
    • getTenantId Link icon

      public String getTenantId()
      Specified by:
      getTenantId in interface ExternalTask
      Returns:
      the id of the tenant the external task belongs to
    • getPriority Link icon

      public long getPriority()
      Specified by:
      getPriority in interface ExternalTask
      Returns:
      the priority of the external task
    • getBusinessKey Link icon

      public String getBusinessKey()
      Description copied from interface: ExternalTask
      Returns the business key of the process instance the external task is associated with
      Specified by:
      getBusinessKey in interface ExternalTask
      Returns:
      the business key
    • getAllVariables Link icon

      public Map<String,Object> getAllVariables()
      Description copied from interface: ExternalTask
      Returns untyped variables that exist in the task's ancestor execution hierarchy
      Specified by:
      getAllVariables in interface ExternalTask
      Returns:
      a map of untyped variables that contains an entry for each variable
    • getVariable Link icon

      public <T> T getVariable(String variableName)
      Description copied from interface: ExternalTask
      Returns an untyped variable of the task's ancestor execution hierarchy
      Specified by:
      getVariable in interface ExternalTask
      Type Parameters:
      T - the type of the variable
      Parameters:
      variableName - of the variable to be returned
      Returns:
      • an untyped variable if such a named variable exists
      • null if such a named variable not exists
    • getAllVariablesTyped Link icon

      public VariableMap getAllVariablesTyped()
      Description copied from interface: ExternalTask
      Returns typed variables that exist in the task's ancestor execution hierarchy
      Specified by:
      getAllVariablesTyped in interface ExternalTask
      Returns:
      a map of typed variables that contains an entry for each variable
    • getAllVariablesTyped Link icon

      public VariableMap getAllVariablesTyped(boolean deserializeObjectValues)
      Description copied from interface: ExternalTask
      Returns typed variables that exist in the task's ancestor execution hierarchy
      Specified by:
      getAllVariablesTyped in interface ExternalTask
      Parameters:
      deserializeObjectValues -
      • false to retrieve the object without deserialization
      • true to retrieve the deserialized object
      Returns:
      a map of typed variables that contains an entry for each variable
    • getVariableTyped Link icon

      public <T extends TypedValue> T getVariableTyped(String variableName)
      Description copied from interface: ExternalTask
      Returns a typed variable of the task's ancestor execution hierarchy
      Specified by:
      getVariableTyped in interface ExternalTask
      Type Parameters:
      T - the type of the variable
      Parameters:
      variableName - of the variable to be returned
      Returns:
      • a typed variable if such a named variable exists
      • null if such a named variable not exists
    • getVariableTyped Link icon

      public <T extends TypedValue> T getVariableTyped(String variableName, boolean deserializeObjectValues)
      Description copied from interface: ExternalTask
      Returns a typed variable of the task's ancestor execution hierarchy
      Specified by:
      getVariableTyped in interface ExternalTask
      Type Parameters:
      T - the type of the variable
      Parameters:
      variableName - of the variable to be returned
      deserializeObjectValues -
      • false to retrieve the object without deserialization
      • true to retrieve the deserialized object
      Returns:
      • a typed variable if such a named variable exists
      • null if such a named variable not exists
    • getExtensionProperties Link icon

      public Map<String,String> getExtensionProperties()
      Description copied from interface: ExternalTask
      Returns all available extension properties. Extension properties must be defined at the external task activity inside the BPMN model and explicitly fetched (e.g. by calling TopicSubscriptionBuilder.includeExtensionProperties(boolean)) to be available. If no extension properties are available the returned map will be empty.
      Specified by:
      getExtensionProperties in interface ExternalTask
      Returns:
      a map of available extension properties, never null
    • setExtensionProperties Link icon

      public void setExtensionProperties(Map<String,String> extensionProperties)
    • getExtensionProperty Link icon

      public String getExtensionProperty(String propertyKey)
      Description copied from interface: ExternalTask
      Returns the value of the extension property for a given key or null if the property was not available.
      Specified by:
      getExtensionProperty in interface ExternalTask
      Returns:
      the extension property, or null if not available
      See Also:
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
    • formatTimeField Link icon

      protected String formatTimeField(String timeField, Date time)