@unlaxer/tramli 0.2.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/flow-definition.js +12 -0
- package/package.json +1 -1
package/dist/flow-definition.js
CHANGED
|
@@ -274,6 +274,18 @@ export class Builder {
|
|
|
274
274
|
newAvailable.add(p);
|
|
275
275
|
}
|
|
276
276
|
this.checkRequiresProducesFrom(def, t.to, newAvailable, stateAvailable, errors);
|
|
277
|
+
// Error path analysis: if processor fails, its produces are NOT available
|
|
278
|
+
if (t.processor) {
|
|
279
|
+
const errorTarget = def.errorTransitions.get(t.from);
|
|
280
|
+
if (errorTarget) {
|
|
281
|
+
const errorAvailable = new Set(stateAvailable.get(state));
|
|
282
|
+
if (t.guard) {
|
|
283
|
+
for (const p of t.guard.produces)
|
|
284
|
+
errorAvailable.add(p);
|
|
285
|
+
}
|
|
286
|
+
this.checkRequiresProducesFrom(def, errorTarget, errorAvailable, stateAvailable, errors);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
277
289
|
}
|
|
278
290
|
}
|
|
279
291
|
checkAutoExternalConflict(def, errors) {
|