| Constructor and Description |
|---|
WorkflowsImpl(JiraAuthenticationContext jiraAuthenticationContext,
WorkflowFunctionUtilities workflowFunctionUtilities,
WorkflowManager workflowManager,
WorkflowService workflowService,
TransitionOptions transitionOptions,
ScreenNameResolver screenNameResolver,
OutcomeHelper outcomeHelper) |
| Modifier and Type | Method and Description |
|---|---|
ServiceOutcome<Void> |
discardDraft(String workflowName)
Discard the draft for the specified workflow.
|
Workflow |
getClone(String workflowName)
Get a clone of workflow.
|
Workflow |
getDraftWorkflow(String workflowName)
Retrieves a draft workflow with the given name.
|
ServiceOutcome<Workflow> |
getMutableWorkflow(String workflowName)
Get a workflow that can be changed.
|
Workflow |
getMutableWorkflowWithoutValidation(String workflowName)
Gets a mutable workflow with no validation applied to it.
|
Workflow |
getWorkflow(boolean isDraft,
String workflowName)
Get the workflow specified by the supplied name in the state specified by isDraft.
|
Workflow |
getWorkflow(JiraWorkflow jiraWorkflow)
Returns
Workflow from mutable JiraWorkflow |
ServiceOutcome<Workflow> |
publishDraft(String parentWorkflowName)
Publish a draft workflow.
|
ServiceOutcome<Workflow> |
saveWorkflow(Workflow workflow)
Save changes that have been made to a workflow and return a
ServiceOutcome. |
boolean |
workflowExists(boolean isDraft,
String workflowName)
Determine if a workflow with the given name exists.
|
boolean |
workflowIsEditable(boolean isDraft,
String workflowName)
Determine if a workflow with the given name is editable.
|
public WorkflowsImpl(JiraAuthenticationContext jiraAuthenticationContext, WorkflowFunctionUtilities workflowFunctionUtilities, WorkflowManager workflowManager, WorkflowService workflowService, TransitionOptions transitionOptions, ScreenNameResolver screenNameResolver, OutcomeHelper outcomeHelper)
public ServiceOutcome<Workflow> getMutableWorkflow(String workflowName)
WorkflowsgetMutableWorkflow in interface WorkflowsworkflowName - The workflow's name.public Workflow getMutableWorkflowWithoutValidation(String workflowName)
WorkflowsgetMutableWorkflowWithoutValidation in interface Workflowspublic ServiceOutcome<Workflow> saveWorkflow(Workflow workflow)
WorkflowsServiceOutcome.saveWorkflow in interface Workflowsworkflow - The workflow to save.ServiceOutcome containing value or an error message.public ServiceOutcome<Void> discardDraft(String workflowName)
WorkflowsdiscardDraft in interface WorkflowsworkflowName - The name of the workflow of which the draft should be deleted.ServiceOutcome containing null or an error message in case of failure.public Workflow getWorkflow(boolean isDraft, String workflowName)
WorkflowsgetWorkflow in interface WorkflowsisDraft - whether the draft workflow should be returned. If true, a draft will be created if it does not already
existworkflowName - the name of the workflowpublic Workflow getDraftWorkflow(String workflowName)
WorkflowsgetDraftWorkflow in interface WorkflowsworkflowName - The workflow's name.public Workflow getWorkflow(JiraWorkflow jiraWorkflow)
WorkflowsWorkflow from mutable JiraWorkflowgetWorkflow in interface WorkflowsWorkflow for passed mutableWorkflow or null if passed mutableWorkflow is nullpublic boolean workflowExists(boolean isDraft,
String workflowName)
WorkflowsworkflowExists in interface WorkflowsisDraft - Whether the workflow is a draft. If true, a draft will be created if it does not already existworkflowName - The workflow's name.public boolean workflowIsEditable(boolean isDraft,
String workflowName)
WorkflowsworkflowIsEditable in interface WorkflowsisDraft - Whether the workflow is a draft.workflowName - The workflow's name.public ServiceOutcome<Workflow> publishDraft(String parentWorkflowName)
WorkflowspublishDraft in interface WorkflowsparentWorkflowName - The parent workflow name that will be overwritten with its draft workflow.ServiceOutcome The workflow that was published or an error message.Copyright © 2002-2019 Atlassian. All Rights Reserved.