Class WorkflowClient


  • public class WorkflowClient
    extends DocumentClient
    This ServiceClient is a WebService REST Client which encapsulate the communication with a REST web serice based on the Imixs Workflow REST API. The Implementation is based on the JAXB API 2.0.
    Author:
    Ralph Soika
    • Constructor Detail

      • WorkflowClient

        public WorkflowClient​(String base_uri)
        Initialize the client by a BASE_URL.
        Parameters:
        base_uri -
    • Method Detail

      • processWorkitem

        public org.imixs.workflow.ItemCollection processWorkitem​(org.imixs.workflow.ItemCollection workitem)
                                                          throws RestAPIException
        Process a single workitem instance. If the workitem is not yet managed by the workflow manger a new instance will be created.
        Parameters:
        workitem - - a ItemCollection representing the workitem.
        Returns:
        updated workitem instance
        Throws:
        RestAPIException
      • getWorkitem

        public org.imixs.workflow.ItemCollection getWorkitem​(String uniqueid)
                                                      throws RestAPIException
        Returns a single workItem instance by UniqueID.

        The method calls the workflow rest interface instead of the document rest interface to ensure the corresponding backend method is accessed.

        Parameters:
        uniqueid -
        items -
        Returns:
        workitem
        Throws:
        RestAPIException
      • deleteWorkitem

        public void deleteWorkitem​(String uniqueid)
                            throws RestAPIException
        Deletes a single workItem instance by UniqueID.
        Parameters:
        userid -
        items -
        Throws:
        RestAPIException
      • getTaskListByCreator

        public List<org.imixs.workflow.ItemCollection> getTaskListByCreator​(String userid)
                                                                     throws RestAPIException
        Returns the current task list by creator
        Parameters:
        userid -
        Throws:
        RestAPIException
      • getTaskListByOwner

        public List<org.imixs.workflow.ItemCollection> getTaskListByOwner​(String userid)
                                                                   throws RestAPIException
        Returns the current task list by owner
        Parameters:
        userid -
        items -
        Returns:
        task list for given user
        Throws:
        RestAPIException
      • getWorkflowEventsByWorkitem

        public List<org.imixs.workflow.ItemCollection> getWorkflowEventsByWorkitem​(org.imixs.workflow.ItemCollection workitem)
                                                                            throws RestAPIException
        Returns the current task list by owner
        Parameters:
        userid -
        items -
        Returns:
        task list for given user
        Throws:
        RestAPIException