@aranzatech/diagrams-bpmn 0.1.3 → 0.2.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/CHANGELOG.md +20 -0
- package/README.md +121 -0
- package/dist/{chunk-4AX573IV.js → chunk-5GRCJ5X6.js} +2 -2
- package/dist/{chunk-4AX573IV.js.map → chunk-5GRCJ5X6.js.map} +1 -1
- package/dist/chunk-G5S4ASP3.js +277 -0
- package/dist/chunk-G5S4ASP3.js.map +1 -0
- package/dist/{chunk-W3ROOC6E.js → chunk-MF2WE3OM.js} +145 -36
- package/dist/chunk-MF2WE3OM.js.map +1 -0
- package/dist/chunk-OZKTOILD.js +3 -0
- package/dist/chunk-OZKTOILD.js.map +1 -0
- package/dist/{chunk-NXMUX67A.js → chunk-S3GGEEA5.js} +31 -8
- package/dist/chunk-S3GGEEA5.js.map +1 -0
- package/dist/elements/index.d.cts +2 -2
- package/dist/elements/index.d.ts +2 -2
- package/dist/elements/index.js +2 -1
- package/dist/index.cjs +454 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -62
- package/dist/index.d.ts +7 -62
- package/dist/index.js +6 -40
- package/dist/index.js.map +1 -1
- package/dist/modeling/index.cjs +894 -0
- package/dist/modeling/index.cjs.map +1 -0
- package/dist/modeling/index.d.cts +88 -0
- package/dist/modeling/index.d.ts +88 -0
- package/dist/modeling/index.js +5 -0
- package/dist/modeling/index.js.map +1 -0
- package/dist/nodes/index.cjs +29 -6
- package/dist/nodes/index.cjs.map +1 -1
- package/dist/nodes/index.js +1 -1
- package/dist/{types-C78d_Kdh.d.cts → types-BKA0GZz5.d.cts} +6 -18
- package/dist/{types-C78d_Kdh.d.ts → types-BKA0GZz5.d.ts} +6 -18
- package/dist/types-CCkHqtC_.d.cts +20 -0
- package/dist/types-hj621ZRJ.d.ts +20 -0
- package/dist/xml/index.cjs +143 -34
- package/dist/xml/index.cjs.map +1 -1
- package/dist/xml/index.d.cts +4 -19
- package/dist/xml/index.d.ts +4 -19
- package/dist/xml/index.js +1 -1
- package/package.json +10 -3
- package/dist/chunk-NXMUX67A.js.map +0 -1
- package/dist/chunk-W3ROOC6E.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,67 +1,12 @@
|
|
|
1
1
|
export { BPMN_ELEMENT_CATALOG, acceptsBoundaryEvents, getElementMeta, getHandlePolicy, getOrientation, isChoreographyType, isContainerType, isConversationType, isDataType, isEventType, isGatewayType, isTaskType, supportsCollapse, supportsMarkers } from './elements/index.cjs';
|
|
2
|
-
export { B as BpmnCategory, a as BpmnEdgeData, b as BpmnEdgeType, c as BpmnElementMeta, d as BpmnElementType, e as BpmnEventSemantics, f as BpmnHandlePolicy, g as BpmnNodeData, h as BpmnOrientation, E as EventTrigger, S as SubProcessVariant, T as TaskMarker } from './types-
|
|
2
|
+
export { B as BpmnCategory, a as BpmnEdgeData, b as BpmnEdgeType, c as BpmnElementMeta, d as BpmnElementType, e as BpmnEventSemantics, f as BpmnHandlePolicy, g as BpmnNodeData, h as BpmnOrientation, E as EventTrigger, S as SubProcessVariant, T as TaskMarker } from './types-BKA0GZz5.cjs';
|
|
3
3
|
export { AnnotationNode, BPMN_NODE_TYPES, BoundaryEventNode, CallChoreographyNode, CallConversationNode, ChoreographyTaskNode, ConversationNode, DataInputNode, DataObjectNode, DataObjectReferenceNode, DataOutputNode, DataStoreNode, DataStoreReferenceNode, EndEventNode, GatewayNode, GroupNode, IntermediateCatchEventNode, IntermediateThrowEventNode, LaneNode, PoolNode, StartEventNode, SubChoreographyNode, SubConversationNode, SubProcessNode, TaskNode } from './nodes/index.cjs';
|
|
4
4
|
export { AssociationEdge, BPMN_EDGE_TYPES, ConversationLinkEdge, DataAssociationEdge, MessageFlowEdge, SequenceFlowEdge } from './edges/index.cjs';
|
|
5
|
-
export {
|
|
6
|
-
|
|
7
|
-
export { SimEdge, SimLogEntry, SimLogType, SimNode, SimStatus, SimToken, SimVariables, createSimulation, fire, getFireable, isCompleted, setVariable, tick } from './simulation/index.cjs';
|
|
5
|
+
export { parseBpmnXml, serializeBpmnXml } from './xml/index.cjs';
|
|
6
|
+
export { B as BpmnExportOptions, a as BpmnImportResult, b as BpmnRFEdge, c as BpmnRFNode } from './types-CCkHqtC_.cjs';
|
|
7
|
+
export { SimDiagram, SimEdge, SimLogEntry, SimLogType, SimNode, SimStatus, SimToken, SimVariables, SimulationState, createSimulation, fire, getFireable, isCompleted, setVariable, tick } from './simulation/index.cjs';
|
|
8
|
+
export { BPMN_MODELING_RULES, BpmnClipboardState, BpmnDiagramDocument, BpmnDiagramState, ConnectBpmnOptions, CreateBpmnNodeOptions, PasteBpmnOptions, ReparentBpmnNodeOptions, ReplaceBpmnNodeOptions, ResizeBpmnNodeOptions, attachBoundaryEventCommand, bpmnConnectionValidators, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, inferBpmnEdgeType, parseBpmnDiagramDocument, pasteBpmnElementsCommand, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram } from './modeling/index.cjs';
|
|
8
9
|
import 'react/jsx-runtime';
|
|
9
10
|
import '@xyflow/react';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
type SimVariables = Record<string, string | number | boolean>;
|
|
13
|
-
interface SimulationAdapter {
|
|
14
|
-
readonly mode: SimMode;
|
|
15
|
-
/** Initialize the simulation. Places tokens (preview) or starts the process instance (live). */
|
|
16
|
-
start(variables?: SimVariables): Promise<SimulationState>;
|
|
17
|
-
/** Advance automatic elements. No-op in live mode — the engine drives execution. */
|
|
18
|
-
tick(): Promise<SimulationState>;
|
|
19
|
-
/**
|
|
20
|
-
* Manually fire an element (complete a task, trigger a catch event).
|
|
21
|
-
* In live mode: delegates to the backend, which completes the Flowable task.
|
|
22
|
-
*/
|
|
23
|
-
fire(elementId: string, variables?: SimVariables): Promise<SimulationState>;
|
|
24
|
-
/** Returns element IDs that can be manually fired right now. */
|
|
25
|
-
getFireable(): Promise<string[]>;
|
|
26
|
-
/** Returns the last known SimulationState snapshot without a network call. */
|
|
27
|
-
getState(): SimulationState;
|
|
28
|
-
isCompleted(): boolean;
|
|
29
|
-
}
|
|
30
|
-
declare function createPreviewAdapter(diagram: SimDiagram, initialVariables?: SimVariables): SimulationAdapter;
|
|
31
|
-
|
|
32
|
-
interface FlowableProcessInstance {
|
|
33
|
-
id: string;
|
|
34
|
-
processDefinitionId: string;
|
|
35
|
-
processDefinitionKey: string;
|
|
36
|
-
businessKey?: string;
|
|
37
|
-
suspended: boolean;
|
|
38
|
-
ended: boolean;
|
|
39
|
-
}
|
|
40
|
-
interface FlowableTask {
|
|
41
|
-
id: string;
|
|
42
|
-
name: string;
|
|
43
|
-
/** Maps to the BPMN element id in the diagram. */
|
|
44
|
-
taskDefinitionKey: string;
|
|
45
|
-
processInstanceId: string;
|
|
46
|
-
assignee?: string;
|
|
47
|
-
dueDate?: string;
|
|
48
|
-
priority: number;
|
|
49
|
-
formKey?: string;
|
|
50
|
-
}
|
|
51
|
-
interface FlowableVariable {
|
|
52
|
-
name: string;
|
|
53
|
-
type: "string" | "integer" | "long" | "double" | "boolean" | "date";
|
|
54
|
-
value: string | number | boolean | null;
|
|
55
|
-
}
|
|
56
|
-
interface FlowableHistoryEntry {
|
|
57
|
-
activityId: string;
|
|
58
|
-
activityName?: string;
|
|
59
|
-
activityType: string;
|
|
60
|
-
processInstanceId: string;
|
|
61
|
-
startTime: string;
|
|
62
|
-
endTime?: string;
|
|
63
|
-
durationInMillis?: number;
|
|
64
|
-
assignee?: string;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export { type FlowableHistoryEntry, type FlowableProcessInstance, type FlowableTask, type FlowableVariable, SimDiagram, type SimMode, type SimulationAdapter, SimulationState, createPreviewAdapter };
|
|
11
|
+
import '@aranzatech/diagrams-core';
|
|
12
|
+
import '@aranzatech/diagrams-core/serialization';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,67 +1,12 @@
|
|
|
1
1
|
export { BPMN_ELEMENT_CATALOG, acceptsBoundaryEvents, getElementMeta, getHandlePolicy, getOrientation, isChoreographyType, isContainerType, isConversationType, isDataType, isEventType, isGatewayType, isTaskType, supportsCollapse, supportsMarkers } from './elements/index.js';
|
|
2
|
-
export { B as BpmnCategory, a as BpmnEdgeData, b as BpmnEdgeType, c as BpmnElementMeta, d as BpmnElementType, e as BpmnEventSemantics, f as BpmnHandlePolicy, g as BpmnNodeData, h as BpmnOrientation, E as EventTrigger, S as SubProcessVariant, T as TaskMarker } from './types-
|
|
2
|
+
export { B as BpmnCategory, a as BpmnEdgeData, b as BpmnEdgeType, c as BpmnElementMeta, d as BpmnElementType, e as BpmnEventSemantics, f as BpmnHandlePolicy, g as BpmnNodeData, h as BpmnOrientation, E as EventTrigger, S as SubProcessVariant, T as TaskMarker } from './types-BKA0GZz5.js';
|
|
3
3
|
export { AnnotationNode, BPMN_NODE_TYPES, BoundaryEventNode, CallChoreographyNode, CallConversationNode, ChoreographyTaskNode, ConversationNode, DataInputNode, DataObjectNode, DataObjectReferenceNode, DataOutputNode, DataStoreNode, DataStoreReferenceNode, EndEventNode, GatewayNode, GroupNode, IntermediateCatchEventNode, IntermediateThrowEventNode, LaneNode, PoolNode, StartEventNode, SubChoreographyNode, SubConversationNode, SubProcessNode, TaskNode } from './nodes/index.js';
|
|
4
4
|
export { AssociationEdge, BPMN_EDGE_TYPES, ConversationLinkEdge, DataAssociationEdge, MessageFlowEdge, SequenceFlowEdge } from './edges/index.js';
|
|
5
|
-
export {
|
|
6
|
-
|
|
7
|
-
export { SimEdge, SimLogEntry, SimLogType, SimNode, SimStatus, SimToken, SimVariables, createSimulation, fire, getFireable, isCompleted, setVariable, tick } from './simulation/index.js';
|
|
5
|
+
export { parseBpmnXml, serializeBpmnXml } from './xml/index.js';
|
|
6
|
+
export { B as BpmnExportOptions, a as BpmnImportResult, b as BpmnRFEdge, c as BpmnRFNode } from './types-hj621ZRJ.js';
|
|
7
|
+
export { SimDiagram, SimEdge, SimLogEntry, SimLogType, SimNode, SimStatus, SimToken, SimVariables, SimulationState, createSimulation, fire, getFireable, isCompleted, setVariable, tick } from './simulation/index.js';
|
|
8
|
+
export { BPMN_MODELING_RULES, BpmnClipboardState, BpmnDiagramDocument, BpmnDiagramState, ConnectBpmnOptions, CreateBpmnNodeOptions, PasteBpmnOptions, ReparentBpmnNodeOptions, ReplaceBpmnNodeOptions, ResizeBpmnNodeOptions, attachBoundaryEventCommand, bpmnConnectionValidators, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, inferBpmnEdgeType, parseBpmnDiagramDocument, pasteBpmnElementsCommand, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram } from './modeling/index.js';
|
|
8
9
|
import 'react/jsx-runtime';
|
|
9
10
|
import '@xyflow/react';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
type SimVariables = Record<string, string | number | boolean>;
|
|
13
|
-
interface SimulationAdapter {
|
|
14
|
-
readonly mode: SimMode;
|
|
15
|
-
/** Initialize the simulation. Places tokens (preview) or starts the process instance (live). */
|
|
16
|
-
start(variables?: SimVariables): Promise<SimulationState>;
|
|
17
|
-
/** Advance automatic elements. No-op in live mode — the engine drives execution. */
|
|
18
|
-
tick(): Promise<SimulationState>;
|
|
19
|
-
/**
|
|
20
|
-
* Manually fire an element (complete a task, trigger a catch event).
|
|
21
|
-
* In live mode: delegates to the backend, which completes the Flowable task.
|
|
22
|
-
*/
|
|
23
|
-
fire(elementId: string, variables?: SimVariables): Promise<SimulationState>;
|
|
24
|
-
/** Returns element IDs that can be manually fired right now. */
|
|
25
|
-
getFireable(): Promise<string[]>;
|
|
26
|
-
/** Returns the last known SimulationState snapshot without a network call. */
|
|
27
|
-
getState(): SimulationState;
|
|
28
|
-
isCompleted(): boolean;
|
|
29
|
-
}
|
|
30
|
-
declare function createPreviewAdapter(diagram: SimDiagram, initialVariables?: SimVariables): SimulationAdapter;
|
|
31
|
-
|
|
32
|
-
interface FlowableProcessInstance {
|
|
33
|
-
id: string;
|
|
34
|
-
processDefinitionId: string;
|
|
35
|
-
processDefinitionKey: string;
|
|
36
|
-
businessKey?: string;
|
|
37
|
-
suspended: boolean;
|
|
38
|
-
ended: boolean;
|
|
39
|
-
}
|
|
40
|
-
interface FlowableTask {
|
|
41
|
-
id: string;
|
|
42
|
-
name: string;
|
|
43
|
-
/** Maps to the BPMN element id in the diagram. */
|
|
44
|
-
taskDefinitionKey: string;
|
|
45
|
-
processInstanceId: string;
|
|
46
|
-
assignee?: string;
|
|
47
|
-
dueDate?: string;
|
|
48
|
-
priority: number;
|
|
49
|
-
formKey?: string;
|
|
50
|
-
}
|
|
51
|
-
interface FlowableVariable {
|
|
52
|
-
name: string;
|
|
53
|
-
type: "string" | "integer" | "long" | "double" | "boolean" | "date";
|
|
54
|
-
value: string | number | boolean | null;
|
|
55
|
-
}
|
|
56
|
-
interface FlowableHistoryEntry {
|
|
57
|
-
activityId: string;
|
|
58
|
-
activityName?: string;
|
|
59
|
-
activityType: string;
|
|
60
|
-
processInstanceId: string;
|
|
61
|
-
startTime: string;
|
|
62
|
-
endTime?: string;
|
|
63
|
-
durationInMillis?: number;
|
|
64
|
-
assignee?: string;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export { type FlowableHistoryEntry, type FlowableProcessInstance, type FlowableTask, type FlowableVariable, SimDiagram, type SimMode, type SimulationAdapter, SimulationState, createPreviewAdapter };
|
|
11
|
+
import '@aranzatech/diagrams-core';
|
|
12
|
+
import '@aranzatech/diagrams-core/serialization';
|
package/dist/index.js
CHANGED
|
@@ -1,45 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
export { AnnotationNode, BPMN_NODE_TYPES, BoundaryEventNode, CallChoreographyNode, CallConversationNode, ChoreographyTaskNode, ConversationNode, DataInputNode, DataObjectNode, DataObjectReferenceNode, DataOutputNode, DataStoreNode, DataStoreReferenceNode, EndEventNode, GatewayNode, GroupNode, IntermediateCatchEventNode, IntermediateThrowEventNode, LaneNode, PoolNode, StartEventNode, SubChoreographyNode, SubConversationNode, SubProcessNode, TaskNode } from './chunk-
|
|
1
|
+
import './chunk-OZKTOILD.js';
|
|
2
|
+
export { AnnotationNode, BPMN_NODE_TYPES, BoundaryEventNode, CallChoreographyNode, CallConversationNode, ChoreographyTaskNode, ConversationNode, DataInputNode, DataObjectNode, DataObjectReferenceNode, DataOutputNode, DataStoreNode, DataStoreReferenceNode, EndEventNode, GatewayNode, GroupNode, IntermediateCatchEventNode, IntermediateThrowEventNode, LaneNode, PoolNode, StartEventNode, SubChoreographyNode, SubConversationNode, SubProcessNode, TaskNode } from './chunk-S3GGEEA5.js';
|
|
3
3
|
export { AssociationEdge, BPMN_EDGE_TYPES, ConversationLinkEdge, DataAssociationEdge, MessageFlowEdge, SequenceFlowEdge } from './chunk-3AFZDIMQ.js';
|
|
4
4
|
import './chunk-23B2IGK5.js';
|
|
5
|
-
export { parseBpmnXml, serializeBpmnXml } from './chunk-
|
|
6
|
-
export { BPMN_ELEMENT_CATALOG, getElementMeta } from './chunk-DNR5WBQH.js';
|
|
7
|
-
import { createSimulation, tick, fire, getFireable, isCompleted } from './chunk-57LA2WSJ.js';
|
|
5
|
+
export { parseBpmnXml, serializeBpmnXml } from './chunk-MF2WE3OM.js';
|
|
8
6
|
export { createSimulation, fire, getFireable, isCompleted, setVariable, tick } from './chunk-57LA2WSJ.js';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
constructor(diagram, initialVariables = {}) {
|
|
13
|
-
this.diagram = diagram;
|
|
14
|
-
this.mode = "preview";
|
|
15
|
-
this.state = createSimulation(diagram, initialVariables);
|
|
16
|
-
}
|
|
17
|
-
async start(variables) {
|
|
18
|
-
this.state = tick(this.diagram, createSimulation(this.diagram, variables ?? {}));
|
|
19
|
-
return this.state;
|
|
20
|
-
}
|
|
21
|
-
async tick() {
|
|
22
|
-
this.state = tick(this.diagram, this.state);
|
|
23
|
-
return this.state;
|
|
24
|
-
}
|
|
25
|
-
async fire(elementId, variables) {
|
|
26
|
-
this.state = fire(this.diagram, this.state, elementId, variables);
|
|
27
|
-
return this.state;
|
|
28
|
-
}
|
|
29
|
-
async getFireable() {
|
|
30
|
-
return getFireable(this.diagram, this.state);
|
|
31
|
-
}
|
|
32
|
-
getState() {
|
|
33
|
-
return this.state;
|
|
34
|
-
}
|
|
35
|
-
isCompleted() {
|
|
36
|
-
return isCompleted(this.state);
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
function createPreviewAdapter(diagram, initialVariables) {
|
|
40
|
-
return new PreviewAdapter(diagram, initialVariables);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export { createPreviewAdapter };
|
|
7
|
+
export { BPMN_MODELING_RULES, attachBoundaryEventCommand, bpmnConnectionValidators, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, inferBpmnEdgeType, parseBpmnDiagramDocument, pasteBpmnElementsCommand, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram } from './chunk-G5S4ASP3.js';
|
|
8
|
+
export { acceptsBoundaryEvents, getHandlePolicy, getOrientation, isChoreographyType, isContainerType, isConversationType, isDataType, isEventType, isGatewayType, isTaskType, supportsCollapse, supportsMarkers } from './chunk-5GRCJ5X6.js';
|
|
9
|
+
export { BPMN_ELEMENT_CATALOG, getElementMeta } from './chunk-DNR5WBQH.js';
|
|
44
10
|
//# sourceMappingURL=index.js.map
|
|
45
11
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|