public InterleaveStart getInterleaveStart() { return (InterleaveStart) getLeavingTransition("back").getTo(); }
public InterleaveStart getInterleaveStart() { return (InterleaveStart) getLeavingTransition("back").getTo(); }
private void writeTransition(Element transitionElement, Transition transition) { if (transition.getTo() != null) { transitionElement.addAttribute("to", transition.getTo().getName()); } if (transition.getName() != null) { transitionElement.addAttribute("name", transition.getName()); } Event transitionEvent = transition.getEvent(Event.EVENTTYPE_TRANSITION); if (transitionEvent != null && transitionEvent.hasActions()) { writeActions(transitionElement, transitionEvent.getActions()); } }
/** * sends a signal to this token. leaves the current {@link #getNode() node} over the * transition with the given name. */ public void signal(String transitionName) { if (node == null) { throw new JbpmException(this + " is not positioned in a node"); } Transition leavingTransition = node.getLeavingTransition(transitionName); if (leavingTransition == null) { // fall back to target node name for (Iterator iter = node.getLeavingTransitions().iterator(); iter.hasNext();) { Transition transition = (Transition) iter.next(); if (transitionName.equals(transition.getTo().getName())) { leavingTransition = transition; break; } } if (leavingTransition == null) { throw new JbpmException(node + " has no leaving transition named " + transitionName); } } signal(leavingTransition, new ExecutionContext(this)); }
/** * sends a signal to this token. leaves the current {@link #getNode() node} over the * transition with the given name. */ public void signal(String transitionName) { if (node == null) { throw new JbpmException(this + " is not positioned in a node"); } Transition leavingTransition = node.getLeavingTransition(transitionName); if (leavingTransition == null) { // fall back to target node name for (Iterator iter = node.getLeavingTransitions().iterator(); iter.hasNext();) { Transition transition = (Transition) iter.next(); if (transitionName.equals(transition.getTo().getName())) { leavingTransition = transition; break; } } if (leavingTransition == null) { throw new JbpmException(node + " has no leaving transition named " + transitionName); } } signal(leavingTransition, new ExecutionContext(this)); }
private void writeTransition(Element transitionElement, Transition transition) { if (transition.getTo() != null) { transitionElement.addAttribute("to", transition.getTo().getName()); } if (transition.getName() != null) { transitionElement.addAttribute("name", transition.getName()); } Event transitionEvent = transition.getEvent(Event.EVENTTYPE_TRANSITION); if (transitionEvent != null && transitionEvent.hasActions()) { writeActions(transitionElement, transitionEvent.getActions()); } }