Interface ProcessInstanceManager

    • Method Detail

      • getProcessInstances

        List<ProcessInstance> getProcessInstances​(String peasId,
                                                  User user,
                                                  String role)
                                           throws WorkflowException
        Get the list of process instances for a given peas Id, user and role.
        Parameters:
        peasId - id of processManager instance
        user - user for who the process instance list is
        role - role name of the user for who the process instance list is (useful when user has different roles)
        Returns:
        an array of ProcessInstance objects
        Throws:
        WorkflowException
      • getProcessInstances

        List<ProcessInstance> getProcessInstances​(String peasId,
                                                  User user,
                                                  String role,
                                                  String[] userRoles,
                                                  String[] groupIds)
                                           throws WorkflowException
        Get the list of process instances for a given peas Id, user and role, and user's roles.
        Parameters:
        peasId - id of processManager instance
        user - user for who the process instance list is
        role - role name of the user for who the process instance list is (useful when user has
        userRoles - all role names that user has for this component instance different roles)
        Returns:
        an array of ProcessInstance objects
        Throws:
        WorkflowException
      • createHistoryStep

        HistoryStep createHistoryStep()
        Build a new HistoryStep Return an object implementing HistoryStep interface
      • createActor

        Actor createActor​(User user,
                          String roleName,
                          State state)
        Builds an actor from a user and a role.