/** * creates a transition with the given name from this node to the given * destination node. Also the transition pointers to source and destination * node will be set appropriatly. * @param transitionName may be null. * @throws NullPointerException if destination is null. */ public TransitionImpl createOutgoingTransition(NodeImpl destination, String transitionName) { TransitionImpl transition = createOutgoingTransition(transitionName); if (destination!=null) { destination.addIncomingTransition(transition); } return transition; }
public void resolve() { NodeImpl destination = (NodeImpl) processDefinition.findNode(destinationName); if (destination==null) { throw new PvmException("couldn't find destination node '"+destinationName+"' for transition "+transition); } destination.addIncomingTransition(transition); transition.setDestination(destination); } }