public EventListenerReference createEventListenerReference(Descriptor descriptor) { EventListenerReference eventListenerReference = createEventListenerReference(); eventListenerReference.setDescriptor(descriptor); return eventListenerReference; }
public EventListenerReference createEventListenerReference(EventListener eventListener) { EventListenerReference eventListenerReference = createEventListenerReference(); eventListenerReference.set(eventListener); return eventListenerReference; }
public EventListenerReference createEventListenerReference(String expression) { EventListenerReference eventListenerReference = createEventListenerReference(); eventListenerReference.setExpression(expression); return eventListenerReference; }
public ExecutionImpl createScope(CompositeElementImpl scope) { ExecutionImpl child = createExecution(scope.getName()); // copy the current state from the child execution to the parent execution child.setNode(getNode()); child.setTransition(getTransition()); child.setPropagation(getPropagation()); child.setTransitionOrigin(getTransitionOrigin()); child.setPreviousTransition(getPreviousTransition()); child.setPreviousNode(getPreviousNode()); child.initializeVariables(scope, this); child.initializeTimers(scope); return child; }
public Object deepCopy(Object object) throws HibernateException { if (object==null) { return null; } ExecutionImpl original = (ExecutionImpl) object; NodeImpl node = new NodeImpl(); node.setName(original.getNode().getName()); ExecutionImpl copy = new ExecutionImpl(); copy.setNode(node); return copy; }
public ExecutionImpl endNode(NodeImpl node) { ExecutionImpl propagatingExecution = this; fire(Event.NODE_END, node); if (node.isLocalScope()) { propagatingExecution = destroyScope(node); } return propagatingExecution; }
public ExecutionImpl beginNode(NodeImpl node) { ExecutionImpl propagatingExecution = this; if (node.isLocalScope()) { propagatingExecution = createScope(node); } fire(Event.NODE_BEGIN, node); return propagatingExecution; }
public void moveTo(NodeImpl destination) { // if the parent node needs to know the previous node if (destination.isPreviousNeeded()) { setPreviousNode(getNode()); setPreviousTransition(getTransition()); } else { this.previousNode = null; this.previousTransition = null; } // move the execution to the destination node = destination; transition = null; transitionOrigin = null; }
public boolean isAsync(ExecutionImpl execution) { return execution.getNode().isLeaveAsync() || execution.getTransition().isTakeAsync(); }
public TransitionImpl createOutgoingTransition(String transitionName) { // create a new transition TransitionImpl transition = new TransitionImpl(); transition.setName(transitionName); // wire it between the source and destination addOutgoingTransition(transition); // if there is no default transition yet if (defaultTransition==null) { // make this the default outgoing transition defaultTransition = 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); } }
public ObjectReference<EventListener> createEventListenerReference(Descriptor descriptor) { ObjectReference<EventListener> eventListenerReference = createEventListenerReference(); eventListenerReference.setDescriptor(descriptor); return eventListenerReference; }
public NodeImpl addNode(NodeImpl node) { node.setParentNode(this); super.addNode(node); return node; }
public ObjectReference<EventListener> createActivityReference(String expression) { ObjectReference<EventListener> eventListenerReference = createEventListenerReference(); eventListenerReference.setExpression(expression); return eventListenerReference; }
public ObjectReference<EventListener> createEventListenerReference(EventListener eventListener) { ObjectReference<EventListener> eventListenerReference = createEventListenerReference(); eventListenerReference.set(eventListener); return eventListenerReference; }
public ExceptionHandlerImpl createExceptionHandler() { ExceptionHandlerImpl exceptionHandler = new ExceptionHandlerImpl(); addExceptionHandler(exceptionHandler); return exceptionHandler; }