Interface WorkflowModelInstance

  • All Superinterfaces:
    Wrapper

    @Indexable
    public interface WorkflowModelInstance
    extends Wrapper
    This interface represents a Workflow model instance. A Workflow model instance is based on a Workflow model but contains Workflow activity instances instead of Workflow activities. Furthermore the Workflow model instance contains a state itself, which represents the state of the Workflow model as a whole rather then the state of one particular activity instance.
    Author:
    ivol
    • Method Detail

      • setState

        void setState​(WorkflowModelState state)
        Sets the state of this Workflow model instance as a whole.
        Parameters:
        state - the state of this Workflow model
      • getActivityInstances

        WorkflowActivityInstance[] getActivityInstances()
        Return the Workflow activity instances of this Workflow model instance.
        Returns:
        the Workflow activity instances of this Workflow model instance
      • setActivityInstances

        void setActivityInstances​(WorkflowActivityInstance[] instances)
        Set the Workflow activity instances of this Workflow model instance.
        Parameters:
        instances - the Workflow activity instances of this Workflow model instance
      • getCurrentActivityInstance

        WorkflowActivityInstance getCurrentActivityInstance()
        Return the activity that is currently active. To be precise; the activity that is currently in the "active" state which is true for exactly one activity instance in the Workflow model instance
        Returns:
        the activity that is currently active