@unlaxer/tramli 1.16.0 → 1.17.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.
|
@@ -11,6 +11,8 @@ export interface TransitionRecord {
|
|
|
11
11
|
export declare class InMemoryFlowStore {
|
|
12
12
|
private flows;
|
|
13
13
|
private _transitionLog;
|
|
14
|
+
/** Clear all flows and transition log. For pool/reuse patterns. */
|
|
15
|
+
clear(): void;
|
|
14
16
|
create(flow: FlowInstance<any>): void;
|
|
15
17
|
loadForUpdate<S extends string>(flowId: string, _definition?: any): FlowInstance<S> | undefined;
|
|
16
18
|
save(flow: FlowInstance<any>): void;
|
|
@@ -4,6 +4,11 @@ exports.InMemoryFlowStore = void 0;
|
|
|
4
4
|
class InMemoryFlowStore {
|
|
5
5
|
flows = new Map();
|
|
6
6
|
_transitionLog = [];
|
|
7
|
+
/** Clear all flows and transition log. For pool/reuse patterns. */
|
|
8
|
+
clear() {
|
|
9
|
+
this.flows.clear();
|
|
10
|
+
this._transitionLog = [];
|
|
11
|
+
}
|
|
7
12
|
create(flow) {
|
|
8
13
|
this.flows.set(flow.id, flow);
|
|
9
14
|
}
|
|
@@ -11,6 +11,8 @@ export interface TransitionRecord {
|
|
|
11
11
|
export declare class InMemoryFlowStore {
|
|
12
12
|
private flows;
|
|
13
13
|
private _transitionLog;
|
|
14
|
+
/** Clear all flows and transition log. For pool/reuse patterns. */
|
|
15
|
+
clear(): void;
|
|
14
16
|
create(flow: FlowInstance<any>): void;
|
|
15
17
|
loadForUpdate<S extends string>(flowId: string, _definition?: any): FlowInstance<S> | undefined;
|
|
16
18
|
save(flow: FlowInstance<any>): void;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
export class InMemoryFlowStore {
|
|
2
2
|
flows = new Map();
|
|
3
3
|
_transitionLog = [];
|
|
4
|
+
/** Clear all flows and transition log. For pool/reuse patterns. */
|
|
5
|
+
clear() {
|
|
6
|
+
this.flows.clear();
|
|
7
|
+
this._transitionLog = [];
|
|
8
|
+
}
|
|
4
9
|
create(flow) {
|
|
5
10
|
this.flows.set(flow.id, flow);
|
|
6
11
|
}
|