Interface TransitionInstance

  • All Superinterfaces:
    ProcessElementInstance
    All Known Implementing Classes:
    TransitionInstanceImpl

    public interface TransitionInstance
    extends ProcessElementInstance

    A transition instance represents an execution token that has just completed a transition (sequence flow in BPMN) or is about to take an outgoing transition. This happens before starting or after leaving an activity. The execution token is not actually executing the activity that this instance points to which is why the corresponding activity instance does not exist.

    Transition instances are the result of asynchronous continuations, asyncBefore or asyncAfter.

    Author:
    Daniel Meyer, Thorben Lindhauer
    • Method Detail

      • getTargetActivityId

        @Deprecated
        java.lang.String getTargetActivityId()
        Deprecated.
        a transition instances represents a transition to or from an activity; use getActivityId() instead.
        returns the id of the target activity
      • getActivityId

        java.lang.String getActivityId()
        returns the id of the activity a transition is made from/to
      • getExecutionId

        java.lang.String getExecutionId()
        returns the id of of the execution that is executing this transition instance
      • getActivityType

        java.lang.String getActivityType()
        returns the type of the activity a transition is made from/to. Corresponds to BPMN element name in XML (e.g. 'userTask'). The type of the root activity instance (the one corresponding to the process instance) is 'processDefinition'.
      • getActivityName

        java.lang.String getActivityName()
        returns the name of the activity a transition is made from/to
      • getIncidentIds

        java.lang.String[] getIncidentIds()
        the ids of currently open incidents
      • getIncidents

        Incident[] getIncidents()
        the list of currently open incidents