public String getUniqueId() { String result = "" + getId(); NodeInstanceContainer parent = getNodeInstanceContainer(); while (parent instanceof CompositeNodeInstance) { CompositeNodeInstance nodeInstance = (CompositeNodeInstance) parent; result = nodeInstance.getId() + ":" + result; parent = nodeInstance.getNodeInstanceContainer(); } return result; }
public void triggerCompleted(String outType) { boolean cancelRemainingInstances = getCompositeNode().isCancelRemainingInstances(); ((org.jbpm.workflow.instance.NodeInstanceContainer)getNodeInstanceContainer()).setCurrentLevel(getLevel()); triggerCompleted(outType, cancelRemainingInstances); if (cancelRemainingInstances) { while (!nodeInstances.isEmpty()) { NodeInstance nodeInstance = (NodeInstance) nodeInstances.get(0); ((org.jbpm.workflow.instance.NodeInstance) nodeInstance).cancel(); } } }
public void internalTrigger(final org.kie.api.runtime.process.NodeInstance from, String type) { super.internalTrigger(from, type); if (getNodeInstanceContainer().getNodeInstance(getId()) == null) { return;
public String getUniqueId() { String result = "" + getId(); NodeInstanceContainer parent = getNodeInstanceContainer(); while (parent instanceof CompositeNodeInstance) { CompositeNodeInstance nodeInstance = (CompositeNodeInstance) parent; result = nodeInstance.getId() + ":" + result; parent = nodeInstance.getNodeInstanceContainer(); } return result; }
public void triggerCompleted(String outType) { boolean cancelRemainingInstances = getCompositeNode().isCancelRemainingInstances(); ((org.jbpm.workflow.instance.NodeInstanceContainer)getNodeInstanceContainer()).setCurrentLevel(getLevel()); triggerCompleted(outType, cancelRemainingInstances); if (cancelRemainingInstances) { while (!nodeInstances.isEmpty()) { NodeInstance nodeInstance = (NodeInstance) nodeInstances.get(0); ((org.jbpm.workflow.instance.NodeInstance) nodeInstance).cancel(); } } }
public void internalTrigger(final org.kie.api.runtime.process.NodeInstance from, String type) { super.internalTrigger(from, type); if (getNodeInstanceContainer().getNodeInstance(getId()) == null) { return;