@Internal
public interface WorkflowTransitionService
ConditionDescriptor
)
and post functions (via FunctionDescriptor
) to a JIRA workflow.
Instances of ConditionDescriptor
and FunctionDescriptor
can be created using
WorkflowConditionDescriptorFactory
and WorkflowFunctionDescriptorFactory
respectively.
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 . |
ErrorCollection addConditionToWorkflow(@Nonnull String transitionName, @Nonnull com.opensymphony.workflow.loader.ConditionDescriptor condition, @Nonnull JiraWorkflow workflow)
condition
to all transitions whose name match the given transitionName
in workflow
.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.ErrorCollection
for the operation. Use ErrorCollection.hasAnyErrors()
to check whether
there are any errors.ErrorCollection addPostFunctionToWorkflow(@Nonnull String transitionName, @Nonnull com.opensymphony.workflow.loader.FunctionDescriptor function, @Nonnull JiraWorkflow workflow)
function
to all transitions whose name match the given transitionName
in workflow
.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.ErrorCollection
for the operation. Use ErrorCollection.hasAnyErrors()
to check whether
there are any errors.ErrorCollection setScreen(@Nonnull String transitionName, @Nullable FieldScreen screen, @Nonnull JiraWorkflow workflow)
screen
to all transitions whose name match the given transitionName
in workflow
.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.ErrorCollection
for the operation. Use ErrorCollection.hasAnyErrors()
to check whether
there are any errors.Copyright © 2002-2024 Atlassian. All Rights Reserved.