private Collection<StepDescriptor> initTransitionSteps() { return workflow.getStepsForTransition(transition); }
public Collection getStepsForTransition(ActionDescriptor actionDescriptor) { return workflow.getStepsForTransition(actionDescriptor); }
private Integer getStepId(final JiraWorkflow workflow, final ActionDescriptor transition) { // Get the first step that feeds into this transition, and see if the step has a direct link to it. // If not, the transition is a global or initial transition, and we shouldn't provide a step ID. // See com.atlassian.jira.web.util.component.RequestComponentManager#injectWorkflow to understand why. final Collection<StepDescriptor> steps = workflow.getStepsForTransition(transition); if (!steps.isEmpty()) { final StepDescriptor step = steps.iterator().next(); if (step.getAction(transition.getId()) != null) { return step.getId(); } } return null; }
public Collection getStepsForTransition() { return getWorkflow().getStepsForTransition(getTransition()); }
public String getStepId(long actionDescriptorId, String workflowName) { int actionDescId = new Long(actionDescriptorId).intValue(); String stepId = null; JiraWorkflow workflow = getWorkflow(workflowName); ActionDescriptor actionDescriptor = workflow.getDescriptor().getAction(actionDescId); if (actionDescriptor != null) { Collection<StepDescriptor> stepsForTransition = workflow.getStepsForTransition(actionDescriptor); for (final StepDescriptor stepDescriptor : stepsForTransition) { stepId = String.valueOf(stepDescriptor.getId()); break; } } return stepId; }
if (workflow.getStepsForTransition(transition).isEmpty())