Interface WorkflowsServiceLocal


  • public interface WorkflowsServiceLocal
    Local interface for the Workflows service from the Planner API
    • Method Detail

      • getWorkflows

        java.util.List<Workflow> getWorkflows​(java.lang.String type)
                                       throws PubServerException
        Returns workflows at the specified type
        Parameters:
        type - type of the workflow
        Returns:
        the list of workflows
        Throws:
        PubServerException
        See Also:
        Workflow
      • getWorkflowById

        Workflow getWorkflowById​(java.lang.String id)
                          throws PubServerException,
                                 java.lang.NumberFormatException
        Returns the workflow at the specified ID
        Parameters:
        id - ID of the workflow
        Returns:
        the workflow
        Throws:
        PubServerException
        java.lang.NumberFormatException
        See Also:
        Workflow
      • setWorkflow

        java.lang.String setWorkflow​(Workflow workflow)
                              throws PubServerException
        Modifies the specified workflow (by its inner ID)
        Parameters:
        workflow - the workflow to modify
        Returns:
        modified workflow
        Throws:
        PubServerException
        See Also:
        Workflow
      • deleteWorkflow

        java.lang.String deleteWorkflow​(java.lang.String id)
                                 throws PubServerException,
                                        java.lang.NumberFormatException
        Deletes the workflow at the specified ID
        Parameters:
        id - workflow ID
        Returns:
        ID of workflow which was deleted
        Throws:
        PubServerException
        java.lang.NumberFormatException
        See Also:
        Workflow
      • setWorkflowProcessForDocuments

        java.util.List<Document> setWorkflowProcessForDocuments​(java.lang.String workflowProcessId,
                                                                java.util.List<Document> documents)
                                                         throws PubServerException
        Set the workflow for the list of documents
        Parameters:
        workflowProcessId - workflow process ID
        documents - the list of documents to set workflow process
        Returns:
        the list of documents which was setted
        Throws:
        PubServerException
        See Also:
        Workflow
      • setWorkflowProcessForPublications

        java.util.List<Publication> setWorkflowProcessForPublications​(java.lang.String workflowProcessId,
                                                                      java.util.List<Publication> publications)
                                                               throws PubServerException
        Set the workflow for the list of publications
        Parameters:
        workflowProcessId - workflow process ID
        publications - the list of publications to set workflow process
        Returns:
        the list of publications which was setted
        Throws:
        PubServerException
        See Also:
        Workflow
      • setWorkflowProcessForDocument

        Workflow setWorkflowProcessForDocument​(java.lang.String documentId,
                                               Workflow workflow)
                                        throws PubServerException
        Set new workflow process for document.
        Parameters:
        documentId - documentId ID
        workflow - workflow process
        Returns:
        workflow
        Throws:
        PubServerException
        See Also:
        Task
      • setWorkflowProcessForPublication

        Workflow setWorkflowProcessForPublication​(java.lang.String publicationId,
                                                  Workflow workflow)
                                           throws PubServerException
        Set new workflow process for publication.
        Parameters:
        publicationId - publication ID
        workflow - workflow process
        Returns:
        workflow
        Throws:
        PubServerException
        See Also:
        Task