Interface TaskExecution

    • Method Detail

      • getName

        String getName()
        Returns:
        The task name.
      • getType

        String getType()
        TODO: do we need a enum for task types?
        Returns:
        The task type.
      • getWorkflowDefinitionId

        String getWorkflowDefinitionId()
        Returns:
        The ID of the workflow definition that this task belongs to.
      • getWorkflowExecutionId

        String getWorkflowExecutionId()
        Returns:
        The ID of the workflow execution that this task belongs to.
      • getRuntimeContext

        Map<String,​Object> getRuntimeContext()
        Returns:
        The runtime context of the task.
      • getResult

        Object getResult()
        Returns:
        The result of this task.
      • getPublished

        Map<String,​Object> getPublished()
        Returns:
        The variables published into workflow context by this task.
      • isProcessed

        Boolean isProcessed()
        Returns:
        True if this task is fully processed (all decisions made based on its result).
      • isReset

        Boolean isReset()
        Returns:
        True if "reset" flag of the task execution is set and its action executions should be dropped when rerunning the task.
      • getEnvironment

        Map<String,​Object> getEnvironment()
        Returns:
        The environment of the task execution.