public class DefaultWorkflowTransitionService extends Object implements WorkflowTransitionService
| Constructor and Description |
|---|
DefaultWorkflowTransitionService(JiraAuthenticationContext jiraAuthenticationContext,
WorkflowService workflowService) |
| Modifier and Type | Method and Description |
|---|---|
ErrorCollection |
addConditionToWorkflow(String transitionName,
com.opensymphony.workflow.loader.ConditionDescriptor condition,
JiraWorkflow workflow)
Adds
condition to all transitions whose name match the given transitionName in workflow. |
ErrorCollection |
addPostFunctionToWorkflow(String transitionName,
com.opensymphony.workflow.loader.FunctionDescriptor function,
JiraWorkflow workflow)
Adds
function to all transitions whose name match the given transitionName in workflow. |
ErrorCollection |
setScreen(String transitionName,
FieldScreen screen,
JiraWorkflow workflow)
Sets the given
screen to all transitions whose name match the given transitionName in workflow. |
public DefaultWorkflowTransitionService(JiraAuthenticationContext jiraAuthenticationContext, WorkflowService workflowService)
public ErrorCollection addConditionToWorkflow(@Nonnull String transitionName, @Nonnull com.opensymphony.workflow.loader.ConditionDescriptor condition, @Nonnull JiraWorkflow workflow)
WorkflowTransitionServicecondition to all transitions whose name match the given transitionName in workflow.addConditionToWorkflow in interface WorkflowTransitionServicetransitionName - 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.ErrorCollection for the operation. Use ErrorCollection.hasAnyErrors() to check whether
there are any errors.public ErrorCollection addPostFunctionToWorkflow(@Nonnull String transitionName, @Nonnull com.opensymphony.workflow.loader.FunctionDescriptor function, @Nonnull JiraWorkflow workflow)
WorkflowTransitionServicefunction to all transitions whose name match the given transitionName in workflow.addPostFunctionToWorkflow in interface WorkflowTransitionServicetransitionName - 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.ErrorCollection for the operation. Use ErrorCollection.hasAnyErrors() to check whether
there are any errors.public ErrorCollection setScreen(@Nonnull String transitionName, @Nullable FieldScreen screen, @Nonnull JiraWorkflow workflow)
WorkflowTransitionServicescreen to all transitions whose name match the given transitionName in workflow.setScreen in interface WorkflowTransitionServicetransitionName - 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.ErrorCollection for the operation. Use ErrorCollection.hasAnyErrors() to check whether
there are any errors.Copyright © 2002-2022 Atlassian. All Rights Reserved.