public EventListenerReference createEventListenerReference() { if (listenerReferences==null) { listenerReferences = new ArrayList<EventListenerReference>(); } EventListenerReference activityReference = new EventListenerReference(); listenerReferences.add(activityReference); return activityReference; }
public EventListenerReference createEventListenerReference(EventListener eventListener) { EventListenerReference eventListenerReference = createEventListenerReference(); eventListenerReference.set(eventListener); return eventListenerReference; }
public EventListenerReference createEventListenerReference(Descriptor descriptor) { EventListenerReference eventListenerReference = createEventListenerReference(); eventListenerReference.setDescriptor(descriptor); return eventListenerReference; }
|| (eventListenerReference.isPropagationEnabled()) // propagation is allowed ) { EventListener eventListener = eventListenerReference.get();
public EventListenerReference createEventListenerReference(String expression) { EventListenerReference eventListenerReference = createEventListenerReference(); eventListenerReference.setExpression(expression); return eventListenerReference; }
/** disables propagated events. This means that this action will only be executed * if the event is fired on the actual process element of the event. The current * action will not be executed if an event is fired on one of the children of the * process element to which this event relates. */ public ProcessFactory propagationDisabled() { if (exceptionHandler!=null) { throw new PvmException("exceptionHandler needs to be closed with exceptionHandlerEnd"); } if (eventListenerReference==null) { throw new PvmException("no current event action"); } eventListenerReference.setPropagationEnabled(false); return this; }