Interface WorkflowModel

  • All Superinterfaces:
    Wrapper

    public interface WorkflowModel
    extends Wrapper
    This interface represents a Workflow model. A Workflow model is based on a Workflow repository model and additionally assigns roles to the activities. Furthermore a Workflow model defines the roles that are allowed to modify the Workflow model
    Author:
    ivol
    • Method Detail

      • getWorkflowRepositoryModel

        WorkflowRepositoryModel getWorkflowRepositoryModel()
        Return the Workflow repository model on which the Workflow model is based.
        Returns:
        the Workflow repository model on which the Workflow model is based.
      • createInstance

        @Deprecated
        WorkflowModelInstance createInstance​(String name)
        Deprecated.
        Use WorkflowService.createWorkflowModelInstance(WorkflowModel) instead
        Creates a new instance of this Workflow model with the given name.
        Parameters:
        name - Name of the Workflow model instance to create
        Returns:
        New instance of this Workflow model
      • copy

        WorkflowModel copy()
        Copy the Workflow model and return the copy.
        Returns:
        Copy of the Workflow model
      • getWorkflowActivityRoles

        WorkflowActivityRole[] getWorkflowActivityRoles()
        Return an array containing all Workflow activity roles. These are activity - role mappings for the Workflow model.
        Returns:
        array containing all Workflow activity roles
      • getRoles

        Role[] getRoles​(WorkflowActivity workflowActivity)
        Return the roles assigned by this Workflow model to the given Workflow activity.
        Parameters:
        workflowActivity - Workflow activity to retrieve the roles for
        Returns:
        roles assigned by this Workflow model to the given Workflow activity
      • isUserModifier

        boolean isUserModifier()
        Returns true if the current user has the rights to modify this WorkflowModel object.
        Returns:
        true if the current user has the rights to modify this WorkflowModel object