Interface KogitoWorkflowProcessInstance

All Superinterfaces:
org.kie.api.runtime.process.EventListener, KogitoEventListener, KogitoNodeInstanceContainer, KogitoProcessInstance, org.kie.api.runtime.process.NodeInstanceContainer, org.kie.api.runtime.process.ProcessInstance, org.kie.api.runtime.process.WorkflowProcessInstance

public interface KogitoWorkflowProcessInstance extends org.kie.api.runtime.process.WorkflowProcessInstance, KogitoProcessInstance, KogitoNodeInstanceContainer
  • Method Details

    • getStartDate

      Date getStartDate()
      Returns start date of this process instance
      Specified by:
      getStartDate in interface KogitoProcessInstance
      Returns:
      actual start date
    • getEndDate

      Date getEndDate()
      Returns end date (either completed or aborted) of this process instance
      Returns:
      actual end date
    • getNodeIdInError

      String getNodeIdInError()
      Returns node definition id associated with node instance that failed in case this process instance is in an error
      Returns:
      node definition id of the failed node instance
    • getNodeInstanceIdInError

      String getNodeInstanceIdInError()
    • getErrorMessage

      String getErrorMessage()
      Returns error message associated with this process instance in case it is in an error state. It will consists of
      • fully qualified class name of the root cause
      • error message of the root cause
      Returns:
      error message
    • getErrorCause

      Optional<Throwable> getErrorCause()
      Returns the throwable originating the error, if available
      Returns:
    • getCorrelationKey

      String getCorrelationKey()
      Returns optional correlation key assigned to process instance
      Returns:
      correlation key if present otherwise null
    • milestones

      Collection<Milestone> milestones()
      Returns the list of Milestones and their status in the current process instances
      Returns:
      Milestones defined in the process
    • adHocFragments

      Collection<AdHocFragment> adHocFragments()
      Returns:
      AdHocFragments from the process instances
    • getSlaDueDate

      Date getSlaDueDate()