Search in sources :

Example 1 with EventBasedNodeInstanceInterface

use of org.jbpm.workflow.instance.node.EventBasedNodeInstanceInterface in project jbpm by kiegroup.

the class WorkflowProcessInstanceImpl method disconnect.

public void disconnect() {
    removeEventListeners();
    unregisterExternalEventNodeListeners();
    for (NodeInstance nodeInstance : nodeInstances) {
        if (nodeInstance instanceof EventBasedNodeInstanceInterface) {
            ((EventBasedNodeInstanceInterface) nodeInstance).removeEventListeners();
        }
    }
    super.disconnect();
}
Also used : EventBasedNodeInstanceInterface(org.jbpm.workflow.instance.node.EventBasedNodeInstanceInterface) EventSubProcessNodeInstance(org.jbpm.workflow.instance.node.EventSubProcessNodeInstance) DynamicNodeInstance(org.jbpm.workflow.instance.node.DynamicNodeInstance) EndNodeInstance(org.jbpm.workflow.instance.node.EndNodeInstance) NodeInstance(org.jbpm.workflow.instance.NodeInstance) EventNodeInstance(org.jbpm.workflow.instance.node.EventNodeInstance) CompositeNodeInstance(org.jbpm.workflow.instance.node.CompositeNodeInstance)

Example 2 with EventBasedNodeInstanceInterface

use of org.jbpm.workflow.instance.node.EventBasedNodeInstanceInterface in project jbpm by kiegroup.

the class WorkflowProcessInstanceImpl method reconnect.

public void reconnect() {
    validate();
    super.reconnect();
    for (NodeInstance nodeInstance : nodeInstances) {
        if (nodeInstance instanceof EventBasedNodeInstanceInterface) {
            ((EventBasedNodeInstanceInterface) nodeInstance).addEventListeners();
        }
    }
    registerExternalEventNodeListeners();
}
Also used : EventBasedNodeInstanceInterface(org.jbpm.workflow.instance.node.EventBasedNodeInstanceInterface) EventSubProcessNodeInstance(org.jbpm.workflow.instance.node.EventSubProcessNodeInstance) DynamicNodeInstance(org.jbpm.workflow.instance.node.DynamicNodeInstance) EndNodeInstance(org.jbpm.workflow.instance.node.EndNodeInstance) NodeInstance(org.jbpm.workflow.instance.NodeInstance) EventNodeInstance(org.jbpm.workflow.instance.node.EventNodeInstance) CompositeNodeInstance(org.jbpm.workflow.instance.node.CompositeNodeInstance)

Aggregations

NodeInstance (org.jbpm.workflow.instance.NodeInstance)2 CompositeNodeInstance (org.jbpm.workflow.instance.node.CompositeNodeInstance)2 DynamicNodeInstance (org.jbpm.workflow.instance.node.DynamicNodeInstance)2 EndNodeInstance (org.jbpm.workflow.instance.node.EndNodeInstance)2 EventBasedNodeInstanceInterface (org.jbpm.workflow.instance.node.EventBasedNodeInstanceInterface)2 EventNodeInstance (org.jbpm.workflow.instance.node.EventNodeInstance)2 EventSubProcessNodeInstance (org.jbpm.workflow.instance.node.EventSubProcessNodeInstance)2