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)
Workflows
getMutableWorkflow
in interface Workflows
workflowName
- The workflow's name.public Workflow getMutableWorkflowWithoutValidation(String workflowName)
Workflows
getMutableWorkflowWithoutValidation
in interface Workflows
public ServiceOutcome<Workflow> saveWorkflow(Workflow workflow)
Workflows
ServiceOutcome
.saveWorkflow
in interface Workflows
workflow
- The workflow to save.ServiceOutcome
containing value or an error message.public ServiceOutcome<Void> discardDraft(String workflowName)
Workflows
discardDraft
in interface Workflows
workflowName
- 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)
Workflows
getWorkflow
in interface Workflows
isDraft
- 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)
Workflows
getDraftWorkflow
in interface Workflows
workflowName
- The workflow's name.public Workflow getWorkflow(JiraWorkflow jiraWorkflow)
Workflows
Workflow
from mutable JiraWorkflow
getWorkflow
in interface Workflows
Workflow
for passed mutableWorkflow
or null if passed mutableWorkflow
is nullpublic boolean workflowExists(boolean isDraft, String workflowName)
Workflows
workflowExists
in interface Workflows
isDraft
- 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)
Workflows
workflowIsEditable
in interface Workflows
isDraft
- Whether the workflow is a draft.workflowName
- The workflow's name.public ServiceOutcome<Workflow> publishDraft(String parentWorkflowName)
Workflows
publishDraft
in interface Workflows
parentWorkflowName
- The parent workflow name that will be overwritten with its draft workflow.ServiceOutcome
The workflow that was published or an error message.Copyright © 2002-2021 Atlassian. All Rights Reserved.