public class WorkflowTransitionsImpl extends Object implements WorkflowTransitions
Constructor and Description |
---|
WorkflowTransitionsImpl(Workflows workflows,
FieldScreenManager fieldScreenManager,
StatusManager statusManager,
GlobalPermissionManager globalPermissionManager,
JiraAuthenticationContext jiraAuthenticationContext,
OutcomeHelper outcomeHelper,
WorkflowService workflowService) |
Modifier and Type | Method and Description |
---|---|
ServiceOutcome<Workflow> |
addCommonTransition(String sourceStatusId,
int transitionId,
String workflowName)
Add a common transition to a workflow.
|
ServiceOutcome<TransitionData> |
addTransitionToWorkflow(String name,
String description,
Long screenId,
int sourceStepId,
int targetStepId,
String workflowName)
Add a transition with the specified properties to the named workflow.
|
ServiceOutcome<Workflow> |
deleteTransition(int transitionId,
int sourceStepId,
String workflowName)
Delete the transition represented by transition id on the specified workflow.
|
ServiceOutcome<Workflow> |
updateTransition(int transitionId,
String name,
String description,
Long screenId,
int sourceStepId,
String workflowName)
Update an existing transition with the supplied properties on the named workflow.
|
ServiceOutcome<Workflow> |
updateTransitionSource(int transitionId,
String newSourceStatusId,
String originalSourceStatusId,
String workflowName)
Update the source of an existing transition on the named workflow.
|
ServiceOutcome<Workflow> |
updateTransitionTarget(int transitionId,
String targetStatusId,
String workflowName)
Update the target of an existing transition on the named workflow.
|
public WorkflowTransitionsImpl(Workflows workflows, FieldScreenManager fieldScreenManager, StatusManager statusManager, GlobalPermissionManager globalPermissionManager, JiraAuthenticationContext jiraAuthenticationContext, OutcomeHelper outcomeHelper, WorkflowService workflowService)
public ServiceOutcome<TransitionData> addTransitionToWorkflow(String name, String description, Long screenId, int sourceStepId, int targetStepId, String workflowName)
WorkflowTransitions
addTransitionToWorkflow
in interface WorkflowTransitions
public ServiceOutcome<Workflow> updateTransition(int transitionId, String name, String description, Long screenId, int sourceStepId, String workflowName)
WorkflowTransitions
updateTransition
in interface WorkflowTransitions
public ServiceOutcome<Workflow> deleteTransition(int transitionId, int sourceStepId, String workflowName)
WorkflowTransitions
deleteTransition
in interface WorkflowTransitions
public ServiceOutcome<Workflow> updateTransitionTarget(int transitionId, String targetStatusId, String workflowName)
WorkflowTransitions
updateTransitionTarget
in interface WorkflowTransitions
public ServiceOutcome<Workflow> updateTransitionSource(int transitionId, String newSourceStatusId, String originalSourceStatusId, String workflowName)
WorkflowTransitions
updateTransitionSource
in interface WorkflowTransitions
transitionId
- The id of the transition being modified.newSourceStatusId
- The status id representing the new source status.originalSourceStatusId
- The status id representing the original source status.workflowName
- The name of the workflow the transition exists on.public ServiceOutcome<Workflow> addCommonTransition(String sourceStatusId, int transitionId, String workflowName)
WorkflowTransitions
addCommonTransition
in interface WorkflowTransitions
sourceStatusId
- The ID of the source status to use.transitionId
- The ID of the transition to use.workflowName
- The name of the workflow to add the common transition to.Copyright © 2002-2017 Atlassian. All Rights Reserved.