public Collection getDestinationTransitions() { if (destinationTransitions == null) destinationTransitions = workflow.getActionsWithResult(step); return destinationTransitions; }
public Collection getInboundTransitions() { return workflow.getActionsWithResult(step); }
public boolean isCanDeleteStep(StepDescriptor stepDescriptor) throws WorkflowException { if (!workflow.isEditable()) { // Can only delete step if the worklfow can be edited // No need to do the checks below in this case, so just return return false; } // Determine if the step is a destination step of any existing transitions return workflow.getActionsWithResult(stepDescriptor).isEmpty() && !isOldStepOnDraft(stepDescriptor); }