parentInstance = (NodeInstanceContainer) ((WorkflowProcessInstanceImpl) getProcessInstance()).getNodeInstance((Node) nestedNodes.pop()); generatedInstances.add((NodeInstance) parentInstance);
if (((EventNodeInterface) node).acceptsEvent(type, event, getResolver(node, type, currentView))) { if (node instanceof EventNode && ((EventNode) node).getFrom() == null) { EventNodeInstance eventNodeInstance = (EventNodeInstance) getNodeInstance(node); eventNodeInstance.signalEvent(type, event); } else { if (node instanceof EventSubProcessNode && ((resolveVariables(((EventSubProcessNode) node).getEvents()).contains(type)))) { 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); } else { for (Node node : getWorkflowProcess().getNodes()) { if (type.equals(node.getName()) && node.getIncomingConnections().isEmpty()) { NodeInstance nodeInstance = getNodeInstance(node); if (event != null) { Map<String, Object> dynamicParams = new HashMap<>();
if (((EventNodeInterface) node).acceptsEvent(type, event, getResolver(node, type, currentView))) { if (node instanceof EventNode && ((EventNode) node).getFrom() == null) { EventNodeInstance eventNodeInstance = (EventNodeInstance) getNodeInstance(node); eventNodeInstance.signalEvent(type, event); } else { if (node instanceof EventSubProcessNode && ((resolveVariables(((EventSubProcessNode) node).getEvents()).contains(type)))) { 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); } else { for (Node node : getWorkflowProcess().getNodes()) { if (type.equals(node.getName()) && node.getIncomingConnections().isEmpty()) { NodeInstance nodeInstance = getNodeInstance(node); if (event != null) { Map<String, Object> dynamicParams = new HashMap<>();
public void start(String trigger) { synchronized (this) { registerExternalEventNodeListeners(); // activate timer event sub processes Node[] nodes = getNodeContainer().getNodes(); for (Node node : nodes) { if (node instanceof EventSubProcessNode) { Map<Timer, DroolsAction> timers = ((EventSubProcessNode) node).getTimers(); if (timers != null && !timers.isEmpty()) { EventSubProcessNodeInstance eventSubprocess = (EventSubProcessNodeInstance) getNodeInstance(node); eventSubprocess.trigger(null, org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE); } } } super.start(trigger); } }
org.jbpm.workflow.instance.NodeInstance active = processInstance.getNodeInstance(entry.getKey(), true); if (active instanceof TimerNodeInstance) { TimerInstance timerInstance = entry.getValue().get(0);
for (int j = 0; j < nodeInstances; j++) { long nodeInstanceId = stream.readLong(); NodeInstance nodeInstance = processInstance.getNodeInstance(nodeInstanceId); if (nodeInstance == null) { throw new IllegalArgumentException("Could not find node instance when deserializing exclusive group instance: " + nodeInstanceId);
parentInstance = (NodeInstanceContainer) ((WorkflowProcessInstanceImpl) getProcessInstance()).getNodeInstance((Node) nestedNodes.pop()); generatedInstances.add((NodeInstance) parentInstance);
public void start(String trigger) { synchronized (this) { registerExternalEventNodeListeners(); // activate timer event sub processes Node[] nodes = getNodeContainer().getNodes(); for (Node node : nodes) { if (node instanceof EventSubProcessNode) { Map<Timer, DroolsAction> timers = ((EventSubProcessNode) node).getTimers(); if (timers != null && !timers.isEmpty()) { EventSubProcessNodeInstance eventSubprocess = (EventSubProcessNodeInstance) getNodeInstance(node); eventSubprocess.trigger(null, org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE); } } } super.start(trigger); } }
org.jbpm.workflow.instance.NodeInstance active = processInstance.getNodeInstance(entry.getKey(), true); if (active instanceof TimerNodeInstance) { TimerInstance timerInstance = entry.getValue().get(0);
for (int j = 0; j < nodeInstances; j++) { long nodeInstanceId = stream.readLong(); NodeInstance nodeInstance = processInstance.getNodeInstance(nodeInstanceId); if (nodeInstance == null) { throw new IllegalArgumentException("Could not find node instance when deserializing exclusive group instance: " + nodeInstanceId);