@Internal
public interface Workflows
| 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 mutableWorkflow)
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.
|
ServiceOutcome<Workflow> getMutableWorkflow(String workflowName)
workflowName - The workflow's name.Workflow getMutableWorkflowWithoutValidation(String workflowName)
workflowName - ServiceOutcome<Workflow> saveWorkflow(Workflow workflow)
ServiceOutcome.workflow - The workflow to save.ServiceOutcome containing value or an error message.ServiceOutcome<Void> discardDraft(String workflowName)
workflowName - The name of the workflow of which the draft should be deleted.ServiceOutcome containing null or an error message in case of failure.Workflow getWorkflow(boolean isDraft, String workflowName)
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 workflowWorkflow getDraftWorkflow(String workflowName)
workflowName - The workflow's name.boolean workflowExists(boolean isDraft,
String workflowName)
isDraft - Whether the workflow is a draft. If true, a draft will be created if it does not already existworkflowName - The workflow's name.boolean workflowIsEditable(boolean isDraft,
String workflowName)
isDraft - Whether the workflow is a draft.workflowName - The workflow's name.ServiceOutcome<Workflow> publishDraft(String parentWorkflowName)
parentWorkflowName - The parent workflow name that will be overwritten with its draft workflow.ServiceOutcome The workflow that was published or an error message.Workflow getClone(String workflowName)
workflowName - Workflow getWorkflow(@Nullable JiraWorkflow mutableWorkflow)
Workflow from mutable JiraWorkflowmutableWorkflow - Workflow for passed mutableWorkflow or null if passed mutableWorkflow is nullCopyright © 2002-2019 Atlassian. All Rights Reserved.