public List getGlobalActions() { return getNullSafeUnmodifiableList(delegate.getGlobalActions()); }
public boolean isGlobalAction(final ActionDescriptor actionDescriptor) { return getDescriptor().getGlobalActions().contains(actionDescriptor); }
public Collection getOutboundTransitions() { // TODO add global actions Collection transitions = new LinkedList(step.getActions()); transitions.addAll(workflow.getDescriptor().getGlobalActions()); return transitions; }
actions.addAll(descriptor.getGlobalActions()); actions.addAll(descriptor.getCommonActions().values());
private SortedMap<Integer, ActionDescriptor> getAllActionsMap() { final SortedMap<Integer, ActionDescriptor> actions = new TreeMap<Integer, ActionDescriptor>(); // Register all initial actions addActionsToMap(actions, descriptor.getInitialActions()); // Register all global actions addActionsToMap(actions, descriptor.getGlobalActions()); // Register all common actions actions.putAll(descriptor.getCommonActions()); // Register all normal actions final List steps = descriptor.getSteps(); for (final Object step : steps) { final StepDescriptor stepDescriptor = (StepDescriptor) step; for (final Object o : stepDescriptor.getActions()) { final ActionDescriptor actionDescriptor = (ActionDescriptor) o; // If the action id is already in the list - it is likely to be a common action :) // So no need to add it as it is already in the list if (!actions.containsKey(new Integer(actionDescriptor.getId()))) { actions.put(new Integer(actionDescriptor.getId()), actionDescriptor); } } } return actions; }
final List globalActions = workflow.getDescriptor().getGlobalActions(); int globalActionId = Integer.parseInt(globalWorkflowTransition); for (final Object globalAction1 : globalActions)
checkDuplicateTransitionName(getWorkflow().getDescriptor().getGlobalActions(), getTransitionName());
checkDuplicateTransitionName(getWorkflow().getDescriptor().getGlobalActions(), getTransitionName());