@Override public void signalEvent(String type, Object event) { if (("processInstanceCompleted:" + processInstanceId).equals(type)) { processInstanceCompleted((ProcessInstance) event); } else { super.signalEvent(type, event); } }
@Override public void signalEvent(String type, Object event) { if (getActivationEventType().equals(type)) { if (event instanceof MatchCreatedEvent) { matchCreated((MatchCreatedEvent) event); } } else { super.signalEvent(type, event); } }
@Override public void signalEvent(String type, Object event) { if ("workItemCompleted".equals(type)) { workItemCompleted((WorkItem) event); } else if ("workItemAborted".equals(type)) { workItemAborted((WorkItem) event); } else if (("processInstanceCompleted:" + exceptionHandlingProcessInstanceId).equals(type)) { exceptionHandlingCompleted((ProcessInstance) event, null); } else if (type.equals("RuleFlow-Activate" + getProcessInstance().getProcessId() + "-" + getNode().getMetaData().get("UniqueId"))) { trigger(null, org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE); } else { super.signalEvent(type, event); } }
@Override public void signalEvent(String type, Object event) { List<NodeInstance> currentView = new ArrayList<NodeInstance>(this.nodeInstances); super.signalEvent(type, event); for (Node node: getCompositeNode().internalGetNodes()) { if (node instanceof EventNodeInterface) { if (((EventNodeInterface) node).acceptsEvent(type, event)) { if (node instanceof EventNode && ((EventNode) node).getFrom() == null) { EventNodeInstanceInterface eventNodeInstance = (EventNodeInstanceInterface) getNodeInstance(node); eventNodeInstance.signalEvent(type, event); } else if( node instanceof EventSubProcessNode ) { EventNodeInstanceInterface eventNodeInstance = (EventNodeInstanceInterface) getNodeInstance(node); eventNodeInstance.signalEvent(type, event); } else { List<NodeInstance> nodeInstances = getNodeInstances(node.getId(), currentView); if (nodeInstances != null && !nodeInstances.isEmpty()) { for (NodeInstance nodeInstance : nodeInstances) { ((EventNodeInstanceInterface) nodeInstance) .signalEvent(type, event); } } } } } } }
@Override public void signalEvent(String type, Object event) { if (("processInstanceCompleted:" + processInstanceId).equals(type)) { processInstanceCompleted((ProcessInstance) event); } else { super.signalEvent(type, event); } }
@Override public void signalEvent(String type, Object event) { if (getActivationEventType().equals(type)) { if (event instanceof MatchCreatedEvent) { matchCreated((MatchCreatedEvent) event); } } else { super.signalEvent(type, event); } }
@Override public void signalEvent(String type, Object event) { if ("workItemCompleted".equals(type)) { workItemCompleted((WorkItem) event); } else if ("workItemAborted".equals(type)) { workItemAborted((WorkItem) event); } else if (("processInstanceCompleted:" + exceptionHandlingProcessInstanceId).equals(type)) { exceptionHandlingCompleted((ProcessInstance) event, null); } else if (type.equals("RuleFlow-Activate" + getProcessInstance().getProcessId() + "-" + getNode().getMetaData().get("UniqueId"))) { trigger(null, org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE); } else { super.signalEvent(type, event); } }
@Override public void signalEvent(String type, Object event) { List<NodeInstance> currentView = new ArrayList<NodeInstance>(this.nodeInstances); super.signalEvent(type, event); for (Node node: getCompositeNode().internalGetNodes()) { if (node instanceof EventNodeInterface) { if (((EventNodeInterface) node).acceptsEvent(type, event)) { if (node instanceof EventNode && ((EventNode) node).getFrom() == null) { EventNodeInstanceInterface eventNodeInstance = (EventNodeInstanceInterface) getNodeInstance(node); eventNodeInstance.signalEvent(type, event); } else if( node instanceof EventSubProcessNode ) { EventNodeInstanceInterface eventNodeInstance = (EventNodeInstanceInterface) getNodeInstance(node); eventNodeInstance.signalEvent(type, event); } else { List<NodeInstance> nodeInstances = getNodeInstances(node.getId(), currentView); if (nodeInstances != null && !nodeInstances.isEmpty()) { for (NodeInstance nodeInstance : nodeInstances) { ((EventNodeInstanceInterface) nodeInstance) .signalEvent(type, event); } } } } } } }