Interface WorkflowActivity

  • All Superinterfaces:
    Wrapper

    public interface WorkflowActivity
    extends Wrapper
    This interface represents a Workflow activity. A Workflow activity represents an activity that an editor can perform
    Author:
    ivol
    • Method Detail

      • getName

        String getName()
        The name of the activity.
        Returns:
        Name of the activity
      • getActions

        WorkflowAction[] getActions()
        Return the actions that can be performed on this activity. Only the initiator activity can have only one action.
        Returns:
        Array of all workflow actions that can be performed on this activity
      • getActivityStates

        WorkflowActivityState[] getActivityStates()
        Return the possible Workflow activity stated assigned to this Workflow activity.
        Returns:
        the possible Workflow activity stated assigned to this Workflow activity
      • getActivityState

        WorkflowActivityState getActivityState​(String state)
        Return the Workflow activity stated assigned to this Workflow activity and that matched the given state.
        Parameters:
        state - state of which the Workflow activity should be retrieved
        Returns:
        the Workflow activity stated assigned to this Workflow activity and that matched the given state
      • createInstance

        @Deprecated
        WorkflowActivityInstance createInstance​(String name)
        Deprecated.
        Use WorkflowService.createWorkflowActivityInstance() instead
        Create an instance of this Workflow activity, to be assigned to a Worfklow model instance.
        Parameters:
        name - name of the activity instance to create
        Returns:
        The created Workflow activity instance