com.atlassian.jira.projectconfig.workflow
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

Nested Class Summary
static class ProjectConfigWorkflowDispatcher.EditSchemeResult
           
 
Method Summary
 ServiceOutcome<ProjectConfigWorkflowDispatcher.EditSchemeResult> editScheme(String projectKey)
          Creates a draft workflow scheme for the passed project.
 ServiceOutcome<Pair<String,Long>> editWorkflow(long projectId)
          Called when the user tries to edit a workflow associated with the passed project.
 

Method Detail

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

ServiceOutcome<ProjectConfigWorkflowDispatcher.EditSchemeResult> editScheme(String projectKey)
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.


Copyright © 2002-2014 Atlassian. All Rights Reserved.