@Override public boolean acceptsEvent(String type, Object event, Function<String, String> resolver) { if (type.equals(getActivationEventName())) { return true; } for (Node node : getNodes()) { if (resolver.apply(node.getName()).contains(type) && node.getIncomingConnections().isEmpty()) { return true; } } return super.acceptsEvent(type, event); }
public boolean acceptsEvent(String type, Object event) { if (type.equals(getActivationEventName())) { return true; } for (Node node : getNodes()) { if (type.equals(node.getName()) && node.getIncomingConnections().isEmpty()) { return true; } } return super.acceptsEvent(type, event); }
private void registerExternalEventNodeListeners() { for (Node node : getWorkflowProcess().getNodes()) { if (node instanceof EventNode) { if ("external".equals(((EventNode) node).getScope())) { addEventListener(((EventNode) node).getType(), EMPTY_EVENT_LISTENER, true); } } else if (node instanceof EventSubProcessNode) { List<String> events = ((EventSubProcessNode) node).getEvents(); for (String type : events) { addEventListener(type, EMPTY_EVENT_LISTENER, true); if (isVariableExpression(type)) { addEventListener(resolveVariable(type), EMPTY_EVENT_LISTENER, true); } } } else if (node instanceof DynamicNode) { if (((DynamicNode) node).getActivationEventName() != null) { addEventListener(((DynamicNode) node).getActivationEventName(), EMPTY_EVENT_LISTENER, true); } } } if( getWorkflowProcess().getMetaData().containsKey("Compensation") ) { addEventListener("Compensation", new CompensationEventListener(this), true); } }
EventSubProcessNodeInstance eventNodeInstance = (EventSubProcessNodeInstance) getNodeInstance(node); eventNodeInstance.signalEvent(type, event); } if (node instanceof DynamicNode && type.equals(((DynamicNode) node).getActivationEventName())) { DynamicNodeInstance dynamicNodeInstance = (DynamicNodeInstance) getNodeInstance(node); dynamicNodeInstance.signalEvent(type, event);
@Override public boolean acceptsEvent(String type, Object event, Function<String, String> resolver) { if (type.equals(getActivationEventName())) { return true; } for (Node node : getNodes()) { if (resolver.apply(node.getName()).contains(type) && node.getIncomingConnections().isEmpty()) { return true; } } return super.acceptsEvent(type, event); }
public boolean acceptsEvent(String type, Object event) { if (type.equals(getActivationEventName())) { return true; } for (Node node : getNodes()) { if (type.equals(node.getName()) && node.getIncomingConnections().isEmpty()) { return true; } } return super.acceptsEvent(type, event); }
private void registerExternalEventNodeListeners() { for (Node node : getWorkflowProcess().getNodes()) { if (node instanceof EventNode) { if ("external".equals(((EventNode) node).getScope())) { addEventListener(((EventNode) node).getType(), EMPTY_EVENT_LISTENER, true); } } else if (node instanceof EventSubProcessNode) { List<String> events = ((EventSubProcessNode) node).getEvents(); for (String type : events) { addEventListener(type, EMPTY_EVENT_LISTENER, true); if (isVariableExpression(type)) { addEventListener(resolveVariable(type), EMPTY_EVENT_LISTENER, true); } } } else if (node instanceof DynamicNode) { if (((DynamicNode) node).getActivationEventName() != null) { addEventListener(((DynamicNode) node).getActivationEventName(), EMPTY_EVENT_LISTENER, true); } } } if( getWorkflowProcess().getMetaData().containsKey("Compensation") ) { addEventListener("Compensation", new CompensationEventListener(this), true); } }
EventSubProcessNodeInstance eventNodeInstance = (EventSubProcessNodeInstance) getNodeInstance(node); eventNodeInstance.signalEvent(type, event); } if (node instanceof DynamicNode && type.equals(((DynamicNode) node).getActivationEventName())) { DynamicNodeInstance dynamicNodeInstance = (DynamicNodeInstance) getNodeInstance(node); dynamicNodeInstance.signalEvent(type, event);