Interface ProjectConfigWorkflowDispatcher

All Known Implementing Classes:
DefaultProjectConfigWorkflowDispatcher

public interface ProjectConfigWorkflowDispatcher
Helps the workflow panel work out which workflow to edit when the user asks to do so.
Since:
v5.1
  • Method Details

    • editWorkflow

      ServiceOutcome<Pair<String,Long>> editWorkflow(long projectId)
      Called when the user tries to edit a workflow associated with the passed project. This method may try and create a new workflow for that project.
      Parameters:
      projectId - the project.
      Returns:
      an outcome with the name of the newly created workflow contained or null if the workflow was not created. Any errors that occur will returned in the outcome.
    • editScheme

      Creates a draft workflow scheme for the passed project. Will create a new scheme if the project is using the default workflow scheme.
      Parameters:
      projectKey - the project.
      Returns:
      the draft workflow scheme for the passed project, creating one if necessary.