Class LockedExternalTaskImpl

    • Field Detail

      • topicName

        protected String topicName
      • workerId

        protected String workerId
      • lockExpirationTime

        protected Date lockExpirationTime
      • retries

        protected Integer retries
      • errorMessage

        protected String errorMessage
      • errorDetails

        protected String errorDetails
      • processInstanceId

        protected String processInstanceId
      • executionId

        protected String executionId
      • activityId

        protected String activityId
      • activityInstanceId

        protected String activityInstanceId
      • processDefinitionId

        protected String processDefinitionId
      • processDefinitionKey

        protected String processDefinitionKey
      • processDefinitionVersionTag

        protected String processDefinitionVersionTag
      • tenantId

        protected String tenantId
      • priority

        protected long priority
      • businessKey

        protected String businessKey
    • Constructor Detail

      • LockedExternalTaskImpl

        public LockedExternalTaskImpl()
    • Method Detail

      • getRetries

        public Integer getRetries()
        Specified by:
        getRetries in interface LockedExternalTask
        Returns:
        the number of retries left. The number of retries is provided by a task client, therefore the initial value is null.
      • getTenantId

        public String getTenantId()
        Specified by:
        getTenantId in interface LockedExternalTask
        Returns:
        the id of the tenant the task belongs to. Can be null if the task belongs to no single tenant.
      • getVariables

        public VariableMap getVariables()
        Specified by:
        getVariables in interface LockedExternalTask
        Returns:
        a map of variables that contains an entry for every variable that was specified at fetching time, if such a variable exists in the tasks ancestor execution hierarchy.
      • getPriority

        public long getPriority()
        Description copied from interface: LockedExternalTask
        Returns the priority of the locked external task. The default priority is 0.
        Specified by:
        getPriority in interface LockedExternalTask
        Returns:
        the priority of the external task
      • getExtensionProperties

        public Map<String,​String> getExtensionProperties()
        Description copied from interface: LockedExternalTask
        Returns a map of custom extension properties if the fetch instructions indicate to include extension properties. If extension properties are included, the returned map contains any extension property that is defined in the model definition of the external task. If extension properties not included or no properties are defined for the external task, the map will be empty.
        Specified by:
        getExtensionProperties in interface LockedExternalTask
        Returns:
        a map with all defined custom extension properties, never null
      • fromEntity

        public static LockedExternalTaskImpl fromEntity​(ExternalTaskEntity externalTaskEntity,
                                                        List<String> variablesToFetch,
                                                        boolean isLocal,
                                                        boolean deserializeVariables,
                                                        boolean includeExtensionProperties)
        Construct representation of locked ExternalTask from corresponding entity. During mapping variables will be collected,during collection variables will not be deserialized and scope will not be set to local.
        Parameters:
        externalTaskEntity - - source persistent entity to use for fields
        variablesToFetch - - list of variable names to fetch, if null then all variables will be fetched
        isLocal - - if true only local variables will be collected
        Returns:
        object with all fields copied from the ExternalTaskEntity, error details fetched from the database and variables attached