@Override public void internalTrigger(NodeInstance from, String type) { SimulationContext context = SimulationContext.getContext(); ActivitySimulator simulator = context.getRegistry().getSimulator(getNode()); SimulationEvent event = simulator.simulate(this, context); context.getRepository().storeEvent(event); // process event definitions if any Map<String, String> throwEvents = context.getCurrentPath().getThrowEvents(); String throwReference = throwEvents.get(getNode().getMetaData().get("UniqueId")); if (throwReference != null) { getProcessInstance().signalEvent(throwReference, null); } ((NodeInstanceContainer) getNodeInstanceContainer()).nodeInstanceCompleted(this, null); }
@Override public void internalTrigger(NodeInstance from, String type) { SimulationContext context = SimulationContext.getContext(); ActivitySimulator simulator = context.getRegistry().getSimulator(getNode()); SimulationEvent event = simulator.simulate(this, context); context.getRepository().storeEvent(event); // process event definitions if any Map<String, String> throwEvents = context.getCurrentPath().getThrowEvents(); String throwReference = throwEvents.get(getNode().getMetaData().get("UniqueId")); if (throwReference != null) { getProcessInstance().signalEvent(throwReference, null); } ((NodeInstanceContainer) getNodeInstanceContainer()).nodeInstanceCompleted(this, null); }
String throwReference = throwEvents.get(getNode().getMetaData().get("UniqueId")); if (throwReference != null) { getProcessInstance().signalEvent(throwReference, null);
String throwReference = throwEvents.get(getNode().getMetaData().get("UniqueId")); if (throwReference != null) { getProcessInstance().signalEvent(throwReference, null);