bpmn-js-token-simulation
Advanced tools
Comparing version 0.35.0 to 0.35.1
@@ -134,3 +134,5 @@ import { | ||
// HINT: errors are handled in current scope only (does not bubble) | ||
// HINT: errors are propagated up the scope | ||
// chain and caught by the first matching boundary event | ||
// or event sub-process | ||
@@ -142,10 +144,27 @@ const { | ||
const scopes = this._simulator.findScopes({ | ||
subscribedTo: { | ||
event: element | ||
}, | ||
trait: ScopeTraits.ACTIVE | ||
}); | ||
let triggerScope = scope; | ||
// TODO(nikku): ensure error always interrupts, also if no error | ||
// catch is present | ||
this._simulator.trigger({ | ||
event: element, | ||
initiator: scope, | ||
scope: findSubscriptionScope(scope) | ||
}); | ||
while ((triggerScope = triggerScope.parent)) { | ||
if (scopes.includes(triggerScope)) { | ||
this._simulator.trigger({ | ||
event: element, | ||
scope: triggerScope, | ||
initiator: scope | ||
}); | ||
break; | ||
} | ||
} | ||
}, | ||
'bpmn:TerminateEventDefinition': (context) => { | ||
@@ -152,0 +171,0 @@ const { |
{ | ||
"name": "bpmn-js-token-simulation", | ||
"version": "0.35.0", | ||
"version": "0.35.1", | ||
"description": "bpmn-js token simulation extension", | ||
@@ -5,0 +5,0 @@ "module": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
201697
6488