com.atlassian.jira.bc.workflow
Class DefaultWorkflowTransitionService
java.lang.Object
com.atlassian.jira.bc.workflow.DefaultWorkflowTransitionService
- All Implemented Interfaces:
- WorkflowTransitionService
public class DefaultWorkflowTransitionService
- extends Object
- implements WorkflowTransitionService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultWorkflowTransitionService
public DefaultWorkflowTransitionService(JiraAuthenticationContext jiraAuthenticationContext,
WorkflowService workflowService)
addConditionToWorkflow
public ErrorCollection addConditionToWorkflow(@Nonnull
String transitionName,
@Nonnull
com.opensymphony.workflow.loader.ConditionDescriptor condition,
@Nonnull
JiraWorkflow workflow)
- Description copied from interface:
WorkflowTransitionService
- Adds
condition to all transitions whose name match the given transitionName in workflow.
- Specified by:
addConditionToWorkflow in interface WorkflowTransitionService
- Parameters:
transitionName - Name of the transitions to be updated with the condition. This is case-insensitive.condition - The condition to be applied to all matched transitions.workflow - The JIRA workflow to be updated.
- Returns:
- A resulting
ErrorCollection for the operation. Use ErrorCollection.hasAnyErrors() to check whether
there are any errors.
addPostFunctionToWorkflow
public ErrorCollection addPostFunctionToWorkflow(@Nonnull
String transitionName,
@Nonnull
com.opensymphony.workflow.loader.FunctionDescriptor function,
@Nonnull
JiraWorkflow workflow)
- Description copied from interface:
WorkflowTransitionService
- Adds
function to all transitions whose name match the given transitionName in workflow.
- Specified by:
addPostFunctionToWorkflow in interface WorkflowTransitionService
- Parameters:
transitionName - Name of the transitions to be updated with the function. This is case-insensitive.function - The function to be applied to all matched transitions.workflow - The JIRA workflow to be updated.
- Returns:
- A resulting
ErrorCollection for the operation. Use ErrorCollection.hasAnyErrors() to check whether
there are any errors.
setScreen
public ErrorCollection setScreen(@Nonnull
String transitionName,
@Nullable
FieldScreen screen,
@Nonnull
JiraWorkflow workflow)
- Description copied from interface:
WorkflowTransitionService
- Sets the given
screen to all transitions whose name match the given transitionName in workflow.
- Specified by:
setScreen in interface WorkflowTransitionService
- Parameters:
transitionName - Name of the transitions to be updated with the condition. This is case-insensitive.screen - The screen to be set for all matched transitions.workflow - The JIRA workflow to be updated.
- Returns:
- A resulting
ErrorCollection for the operation. Use ErrorCollection.hasAnyErrors() to check whether
there are any errors.
Copyright © 2002-2014 Atlassian. All Rights Reserved.