@emaarco/bpmn-js-data-simulation 0.4.0 → 0.5.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/domain/PathVariableDeriver.d.ts +9 -0
- package/dist/domain/PathVariableDeriver.d.ts.map +1 -0
- package/dist/domain/model.d.ts +23 -0
- package/dist/domain/model.d.ts.map +1 -1
- package/dist/index.cjs +70 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +70 -3
- package/dist/index.js.map +1 -1
- package/dist/integration/PathGraphReader.d.ts.map +1 -1
- package/dist/integration/PathSimulation.d.ts +6 -1
- package/dist/integration/PathSimulation.d.ts.map +1 -1
- package/dist/integration/ScenarioVariables.d.ts +11 -0
- package/dist/integration/ScenarioVariables.d.ts.map +1 -0
- package/dist/utils/diagramElements.d.ts +2 -1
- package/dist/utils/diagramElements.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PathGraphReader.d.ts","sourceRoot":"","sources":["../../src/integration/PathGraphReader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,SAAS,EAAY,MAAM,oBAAoB,CAAA;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAiB,MAAM,qBAAqB,CAAA;AAEvE,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAO3E,qBAAa,eAAe;IAExB,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,eAAe,EAAE,eAAe,EAChC,MAAM,EAAE,aAAa;IAGxC,IAAI,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS;
|
|
1
|
+
{"version":3,"file":"PathGraphReader.d.ts","sourceRoot":"","sources":["../../src/integration/PathGraphReader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,SAAS,EAAY,MAAM,oBAAoB,CAAA;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAiB,MAAM,qBAAqB,CAAA;AAEvE,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAO3E,qBAAa,eAAe;IAExB,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,eAAe,EAAE,eAAe,EAChC,MAAM,EAAE,aAAa;IAGxC,IAAI,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS;IAchD,OAAO,CAAC,UAAU;IAkBlB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,WAAW;CAKpB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SimulatedPath, Variables } from '../domain/model.js';
|
|
1
|
+
import type { PathVariable, Scenario, SimulatedPath, Variables } from '../domain/model.js';
|
|
2
2
|
import type { EngineAdapter } from '../engines/types.js';
|
|
3
3
|
import type { DataSimulationConfig } from './DataSimulation.js';
|
|
4
4
|
import type { Canvas, ElementRegistry } from './tokenSimulation.js';
|
|
@@ -10,11 +10,16 @@ export declare class PathSimulation {
|
|
|
10
10
|
static $inject: string[];
|
|
11
11
|
private readonly engine;
|
|
12
12
|
private readonly pathResolver;
|
|
13
|
+
private readonly pathVariableDeriver;
|
|
13
14
|
private readonly pathGraphReader;
|
|
14
15
|
private readonly pathMarkers;
|
|
16
|
+
private readonly scenarioVariables;
|
|
15
17
|
constructor(config: PathSimulationConfig | undefined, elementRegistry: ElementRegistry, canvas: Canvas);
|
|
16
18
|
getEngine(): EngineAdapter;
|
|
17
19
|
simulate(variables: Variables, options?: PathSimulationOptions): SimulatedPath;
|
|
20
|
+
deriveVariables(values: Variables): PathVariable[];
|
|
21
|
+
variablesOf(scenario: Scenario | undefined, fallbacks?: readonly Scenario[]): Variables;
|
|
18
22
|
clear(): void;
|
|
23
|
+
private evaluableConditions;
|
|
19
24
|
}
|
|
20
25
|
//# sourceMappingURL=PathSimulation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PathSimulation.d.ts","sourceRoot":"","sources":["../../src/integration/PathSimulation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"PathSimulation.d.ts","sourceRoot":"","sources":["../../src/integration/PathSimulation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAI1G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAI/D,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEnE,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAA;AAEvE,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;CACpB;AAED,qBAAa,cAAc;IACzB,MAAM,CAAC,OAAO,WAAyD;IAEvE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAqB;IAClD,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA4B;IAChE,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAiB;IACjD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAa;IACzC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAmB;gBAEzC,MAAM,EAAE,oBAAoB,GAAG,SAAS,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM;IAOtG,SAAS,IAAI,aAAa;IAI1B,QAAQ,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,GAAE,qBAA0B,GAAG,aAAa;IAOlF,eAAe,CAAC,MAAM,EAAE,SAAS,GAAG,YAAY,EAAE;IAIlD,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,EAAE,SAAS,GAAE,SAAS,QAAQ,EAAO,GAAG,SAAS;IAI3F,KAAK,IAAI,IAAI;IAIb,OAAO,CAAC,mBAAmB;CAO5B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Scenario, Variables } from '../domain/model.js';
|
|
2
|
+
import type { EngineAdapter } from '../engines/types.js';
|
|
3
|
+
import type { ElementRegistry } from './tokenSimulation.js';
|
|
4
|
+
export declare class ScenarioVariables {
|
|
5
|
+
private readonly elementRegistry;
|
|
6
|
+
private readonly engine;
|
|
7
|
+
constructor(elementRegistry: ElementRegistry, engine: EngineAdapter);
|
|
8
|
+
of(scenario: Scenario | undefined, fallbacks: readonly Scenario[]): Variables;
|
|
9
|
+
private afterOutputMappings;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=ScenarioVariables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScenarioVariables.d.ts","sourceRoot":"","sources":["../../src/integration/ScenarioVariables.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAE3D,qBAAa,iBAAiB;IAE1B,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,eAAe,EAAE,eAAe,EAChC,MAAM,EAAE,aAAa;IAGxC,EAAE,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,EAAE,SAAS,EAAE,SAAS,QAAQ,EAAE,GAAG,SAAS;IAK7E,OAAO,CAAC,mBAAmB;CAU5B"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { OutgoingFlow } from '../domain/model.js';
|
|
2
2
|
import type { EngineAdapter } from '../engines/types.js';
|
|
3
|
-
import type { DiagramElement, Scope } from '../integration/tokenSimulation.js';
|
|
3
|
+
import type { DiagramElement, ElementRegistry, Scope } from '../integration/tokenSimulation.js';
|
|
4
4
|
export declare function findProcessInstance(scope: Scope): Scope;
|
|
5
5
|
export declare function elementName(element: DiagramElement): string;
|
|
6
6
|
export declare function is(element: DiagramElement, type: string): boolean;
|
|
7
|
+
export declare function flowNodesOf(elementRegistry: ElementRegistry): DiagramElement[];
|
|
7
8
|
export declare function isGateway(element: DiagramElement): boolean;
|
|
8
9
|
export declare function gatewayOf(element: DiagramElement): string | undefined;
|
|
9
10
|
export declare function outgoingSequenceFlows(element: DiagramElement): DiagramElement[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagramElements.d.ts","sourceRoot":"","sources":["../../src/utils/diagramElements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAA;
|
|
1
|
+
{"version":3,"file":"diagramElements.d.ts","sourceRoot":"","sources":["../../src/utils/diagramElements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAA;AAE/F,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAIvD;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAG3D;AAED,wBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAGjE;AAED,wBAAgB,WAAW,CAAC,eAAe,EAAE,eAAe,GAAG,cAAc,EAAE,CAE9E;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAE1D;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,GAAG,SAAS,CAIrE;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc,EAAE,CAE/E;AAED,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,cAAc,EAAE,MAAM,EAAE,aAAa,GAAG,YAAY,CAQlG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emaarco/bpmn-js-data-simulation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Simulate BPMN processes with data in bpmn-js-token-simulation — scenarios, process variables, io mappings and gateway conditions evaluated in the engine's expression language.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|