How to STOP the engine?
Closed this issue · 0 comments
Kirikkayis commented
Hey,
i have the following Code:
const engine = Engine({
name: 'execution example',
source: processModel
});
listener.on('activity.start', (start) => {
console.log(start.id);
if(start.id === "Activity_XYZ") {
engine.stop();
}
}
I want to stop the engine in my listener for 'activity.start' if the start.id equals 'Activity_XYZ'.
The code above 'engine.stop()' doesn't stop the engine and all the following Activities after 'Activity_XYZ' are executed.