use of io.automatiko.engine.workflow.process.instance.node.EventBasedNodeInstanceInterface in project automatiko-engine by automatiko-io.
the class WorkflowProcessInstanceImpl method disconnect.
@Override
public void disconnect() {
if (getProcessRuntime() == null) {
return;
}
getMetaData().remove("ATK_FUNC_FLOW_COUNTER");
getMetaData().remove("ATK_FUNC_FLOW_NEXT");
removeEventListeners();
unregisterExternalEventNodeListeners();
for (NodeInstance nodeInstance : nodeInstances) {
if (nodeInstance instanceof EventBasedNodeInstanceInterface) {
((EventBasedNodeInstanceInterface) nodeInstance).removeEventListeners();
}
}
super.disconnect();
}
use of io.automatiko.engine.workflow.process.instance.node.EventBasedNodeInstanceInterface in project automatiko-engine by automatiko-io.
the class WorkflowProcessInstanceImpl method reconnect.
@Override
public void reconnect() {
super.reconnect();
for (NodeInstance nodeInstance : nodeInstances) {
if (nodeInstance instanceof EventBasedNodeInstanceInterface) {
((EventBasedNodeInstanceInterface) nodeInstance).addEventListeners();
}
if (nodeInstance instanceof CompositeNodeInstance) {
((CompositeNodeInstance) nodeInstance).registerExternalEventNodeListeners();
}
}
registerExternalEventNodeListeners();
}
Aggregations