@colabo-flow/s-go 0.2.4 → 0.2.6

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.
Files changed (118) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/{src/lib/go.amqp.host_status.d.ts → demo/create-client.d.ts} +0 -0
  3. package/dist/cjs/{src/lib/go.amqp.service.d.ts → demo/create-host.d.ts} +0 -0
  4. package/dist/{esm/src/lib/go.amqp.host_status.d.ts → cjs/demo/send.d.ts} +0 -0
  5. package/dist/cjs/{src/index.d.ts → index.d.ts} +0 -0
  6. package/dist/cjs/index.js.map +1 -1
  7. package/dist/cjs/{src/lib → lib}/config.d.ts +0 -0
  8. package/dist/cjs/{src/lib → lib}/go.amqp.client.d.ts +0 -0
  9. package/dist/cjs/{src/lib → lib}/go.amqp.host.d.ts +0 -0
  10. package/dist/{esm/src/lib/go.amqp.service.d.ts → cjs/lib/go.amqp.host_status.d.ts} +0 -0
  11. package/dist/cjs/lib/go.amqp.service.d.ts +1 -0
  12. package/dist/cjs/{src/lib → lib}/operators.d.ts +0 -0
  13. package/dist/cjs/{src/lib → lib}/params.d.ts +0 -0
  14. package/dist/cjs/{src/lib → lib}/vos.d.ts +0 -0
  15. package/dist/cjs/test_ts.d.ts +1 -0
  16. package/dist/esm/demo/create-client.d.ts +1 -0
  17. package/dist/esm/demo/create-host.d.ts +1 -0
  18. package/dist/esm/demo/send.d.ts +1 -0
  19. package/dist/esm/{src/index.d.ts → index.d.ts} +0 -0
  20. package/dist/esm/index.js.map +1 -1
  21. package/dist/esm/{src/lib → lib}/config.d.ts +0 -0
  22. package/dist/esm/{src/lib → lib}/go.amqp.client.d.ts +0 -0
  23. package/dist/esm/{src/lib → lib}/go.amqp.host.d.ts +0 -0
  24. package/dist/esm/lib/go.amqp.host_status.d.ts +1 -0
  25. package/dist/esm/lib/go.amqp.service.d.ts +1 -0
  26. package/dist/esm/{src/lib → lib}/operators.d.ts +0 -0
  27. package/dist/esm/{src/lib → lib}/params.d.ts +0 -0
  28. package/dist/esm/{src/lib → lib}/vos.d.ts +0 -0
  29. package/dist/esm/test_ts.d.ts +1 -0
  30. package/package.json +14 -9
  31. package/dist/colabo/src/services/puzzles/flow/go/index.js +0 -7
  32. package/dist/colabo/src/services/puzzles/flow/go/index.js.map +0 -1
  33. package/dist/colabo/src/services/puzzles/flow/go/lib/config.js +0 -21
  34. package/dist/colabo/src/services/puzzles/flow/go/lib/config.js.map +0 -1
  35. package/dist/colabo/src/services/puzzles/flow/go/lib/go.amqp.client.js +0 -80
  36. package/dist/colabo/src/services/puzzles/flow/go/lib/go.amqp.client.js.map +0 -1
  37. package/dist/colabo/src/services/puzzles/flow/go/lib/go.amqp.host.js +0 -237
  38. package/dist/colabo/src/services/puzzles/flow/go/lib/go.amqp.host.js.map +0 -1
  39. package/dist/colabo/src/services/puzzles/flow/go/lib/go.amqp.host_status.js +0 -67
  40. package/dist/colabo/src/services/puzzles/flow/go/lib/go.amqp.host_status.js.map +0 -1
  41. package/dist/colabo/src/services/puzzles/flow/go/lib/go.amqp.service.js +0 -244
  42. package/dist/colabo/src/services/puzzles/flow/go/lib/go.amqp.service.js.map +0 -1
  43. package/dist/colabo/src/services/puzzles/flow/go/lib/operators.js +0 -15
  44. package/dist/colabo/src/services/puzzles/flow/go/lib/operators.js.map +0 -1
  45. package/dist/colabo/src/services/puzzles/flow/go/lib/params.js +0 -2
  46. package/dist/colabo/src/services/puzzles/flow/go/lib/params.js.map +0 -1
  47. package/dist/colabo/src/services/puzzles/flow/go/lib/vos.js +0 -23
  48. package/dist/colabo/src/services/puzzles/flow/go/lib/vos.js.map +0 -1
  49. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/index.js +0 -22
  50. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/index.js.map +0 -1
  51. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/execution/execution-semaphore.js +0 -203
  52. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/execution/execution-semaphore.js.map +0 -1
  53. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/execution/execution-semaphore.vos.js +0 -2
  54. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/execution/execution-semaphore.vos.js.map +0 -1
  55. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/execution/execution-vos.js +0 -45
  56. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/execution/execution-vos.js.map +0 -1
  57. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/execution/execution.operators.js +0 -42
  58. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/execution/execution.operators.js.map +0 -1
  59. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/execution/flow-execution.service.js +0 -334
  60. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/execution/flow-execution.service.js.map +0 -1
  61. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/executors/executors-store.js +0 -2
  62. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/executors/executors-store.js.map +0 -1
  63. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/executors/executors-vos.js +0 -30
  64. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/executors/executors-vos.js.map +0 -1
  65. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-instance-engine/flow-instance-engine-updates-vos.js +0 -10
  66. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-instance-engine/flow-instance-engine-updates-vos.js.map +0 -1
  67. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-instance-engine/flow-instance-engine-vos.js +0 -106
  68. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-instance-engine/flow-instance-engine-vos.js.map +0 -1
  69. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-instance-engine/flow-instance-engine.js +0 -1513
  70. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-instance-engine/flow-instance-engine.js.map +0 -1
  71. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-instance-engine/index.js +0 -5
  72. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-instance-engine/index.js.map +0 -1
  73. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-type-utils.js +0 -189
  74. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-type-utils.js.map +0 -1
  75. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-types-condensed.operators.js +0 -335
  76. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-types-condensed.operators.js.map +0 -1
  77. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-types-condensed.vos.js +0 -8
  78. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-types-condensed.vos.js.map +0 -1
  79. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-types-form-condensed.operators.js +0 -38
  80. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-types-form-condensed.operators.js.map +0 -1
  81. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-types-form-condensed.vos.js +0 -10
  82. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-types-form-condensed.vos.js.map +0 -1
  83. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-types-form.vos.js +0 -2
  84. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-types-form.vos.js.map +0 -1
  85. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-types-translators.vos.js +0 -5
  86. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-types-translators.vos.js.map +0 -1
  87. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-types-visual.vos.js +0 -16
  88. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-types-visual.vos.js.map +0 -1
  89. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-types-vos.js +0 -103
  90. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-types-vos.js.map +0 -1
  91. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-types.operators.js +0 -121
  92. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-types/flow-types.operators.js.map +0 -1
  93. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/vos.js +0 -25
  94. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/flow/core/vos.js.map +0 -1
  95. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/utils/verify/index.js +0 -3
  96. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/utils/verify/index.js.map +0 -1
  97. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/utils/verify/lib/assertion.js +0 -20
  98. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/utils/verify/lib/assertion.js.map +0 -1
  99. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/utils/verify/lib/params.js +0 -2
  100. package/dist/colabo-vue3/src/isomorphic/dev_puzzles/utils/verify/lib/params.js.map +0 -1
  101. package/dist/colabo-vue3/src/isomorphic/puzzles/datatalks/cache/index.js +0 -7
  102. package/dist/colabo-vue3/src/isomorphic/puzzles/datatalks/cache/index.js.map +0 -1
  103. package/dist/colabo-vue3/src/isomorphic/puzzles/datatalks/cache/lib/datatalks-cache.service.js +0 -33
  104. package/dist/colabo-vue3/src/isomorphic/puzzles/datatalks/cache/lib/datatalks-cache.service.js.map +0 -1
  105. package/dist/colabo-vue3/src/isomorphic/puzzles/datatalks/cache/lib/datatalks-cache.vos.js +0 -2
  106. package/dist/colabo-vue3/src/isomorphic/puzzles/datatalks/cache/lib/datatalks-cache.vos.js.map +0 -1
  107. package/dist/colabo-vue3/src/isomorphic/puzzles/datatalks/cache/lib/params.js +0 -2
  108. package/dist/colabo-vue3/src/isomorphic/puzzles/datatalks/cache/lib/params.js.map +0 -1
  109. package/dist/colabo-vue3/src/isomorphic/puzzles/datatalks/cache/vos.js +0 -2
  110. package/dist/colabo-vue3/src/isomorphic/puzzles/datatalks/cache/vos.js.map +0 -1
  111. package/dist/colabo-vue3/src/isomorphic/puzzles/headless/core-backend/chalk/index.js +0 -3
  112. package/dist/colabo-vue3/src/isomorphic/puzzles/headless/core-backend/chalk/index.js.map +0 -1
  113. package/dist/colabo-vue3/src/isomorphic/puzzles/transform/json/index.js +0 -6
  114. package/dist/colabo-vue3/src/isomorphic/puzzles/transform/json/index.js.map +0 -1
  115. package/dist/colabo-vue3/src/isomorphic/puzzles/transform/json/lib/transform.js +0 -582
  116. package/dist/colabo-vue3/src/isomorphic/puzzles/transform/json/lib/transform.js.map +0 -1
  117. package/dist/colabo-vue3/src/isomorphic/puzzles/transform/json/lib/vos/transform.vos.js +0 -33
  118. package/dist/colabo-vue3/src/isomorphic/puzzles/transform/json/lib/vos/transform.vos.js.map +0 -1
@@ -1,42 +0,0 @@
1
- export const EXECUTOR_ID_PLACE_SEPARATOR = ":";
2
- import { EExecutorIdPlace } from "../executors/executors-vos";
3
- /**
4
- * Adds place to the executor id. It is used to semantically interpret where the executor is placed and how to reach it
5
- * @param executorId original executor id
6
- * @param place semantically expressed (`EExecutorIdPlace` enum) place
7
- * @returns executor id with semantically decorated place
8
- */
9
- export const ExecutorIdPlaceAdd = (executorId, place) => {
10
- const executorIdPlaceAdded = `${place.toString()}${EXECUTOR_ID_PLACE_SEPARATOR}${executorId}`;
11
- return executorIdPlaceAdded;
12
- };
13
- /**
14
- * Removes place from the executor id
15
- * @param executorId semantically expressed (`EExecutorIdPlace` enum) place
16
- * @returns original executor id
17
- */
18
- export const ExecutorIdPlaceRemove = (executorId) => {
19
- const executorIdPlaceRemoved = (executorId?.split(EXECUTOR_ID_PLACE_SEPARATOR, 2)?.[1] ?? executorId?.split(EXECUTOR_ID_PLACE_SEPARATOR)[0]);
20
- return executorIdPlaceRemoved;
21
- };
22
- /**
23
- * Gets the place of the executor id
24
- * @param executorId semantically expressed (`EExecutorIdPlace` enum) place
25
- * @returns original executor id
26
- */
27
- export const ExecutorIdPlaceGet = (executorId) => {
28
- const executorIdPlace = executorId?.split(EXECUTOR_ID_PLACE_SEPARATOR)?.[0];
29
- return executorIdPlace;
30
- };
31
- export const EnvironmentBasedOnPlace = (place) => {
32
- switch (place) {
33
- case EExecutorIdPlace.REMOTE_TIER:
34
- return "BACKEND" /* EExecutingEnvironment.BACKEND */;
35
- case EExecutorIdPlace.LOCAL:
36
- case EExecutorIdPlace.LOCAL_TIER:
37
- case EExecutorIdPlace.STORE:
38
- default:
39
- return "FRONTEND" /* EExecutingEnvironment.FRONTEND */;
40
- }
41
- };
42
- //# sourceMappingURL=execution.operators.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execution.operators.js","sourceRoot":"","sources":["../../../../../../../../../../../../../../../colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/execution/execution.operators.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAW,GAAG,CAAC;AAEvD,OAAO,EAAyB,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAErF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,UAAkB,EAAE,KAAuB,EAAU,EAAE;IACzF,MAAM,oBAAoB,GAAW,GAAG,KAAK,CAAC,QAAQ,EAAE,GAAG,2BAA2B,GAAG,UAAU,EAAE,CAAC;IACtG,OAAO,oBAAoB,CAAC;AAC7B,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,UAAmB,EAAoB,EAAE;IAC9E,MAAM,sBAAsB,GAAqB,CAAC,UAAU,EAAE,KAAK,CAAC,2BAA2B,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,UAAU,EAAE,KAAK,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAqB,CAAC;IACnL,OAAO,sBAAsB,CAAC;AAC/B,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,UAAmB,EAAgC,EAAE;IACvF,MAAM,eAAe,GAAiC,UAAU,EAAE,KAAK,CAAC,2BAA2B,CAAC,EAAE,CAAC,CAAC,CAAqB,CAAC;IAC9H,OAAO,eAAe,CAAC;AACxB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAuB,EAAyB,EAAE;IACzF,QAAQ,KAAK,EAAE;QACd,KAAK,gBAAgB,CAAC,WAAW;YAChC,qDAAqC;QACtC,KAAK,gBAAgB,CAAC,KAAK,CAAC;QAC5B,KAAK,gBAAgB,CAAC,UAAU,CAAC;QACjC,KAAK,gBAAgB,CAAC,KAAK,CAAC;QAC5B;YACC,uDAAsC;KACvC;AACF,CAAC,CAAC"}
@@ -1,334 +0,0 @@
1
- import { EExecutorIdPlace } from "../executors/executors-vos";
2
- import { ExecutorIdPlaceGet, ExecutorIdPlaceRemove } from "./execution.operators";
3
- import { EFlowExecutionStatus, ETaskExecutionStatus } from "./execution-vos";
4
- import { EFlowTaskExecutionStatus, ESemaphoreNames, ETokenStatusInFlowPlaceInstance } from "../flow-instance-engine/flow-instance-engine-vos";
5
- import { EFlowEventType, EFlowPlaceType } from "../flow-types/flow-types-vos";
6
- import { asyncStorePlaceExecutionOutput, getOrCreatePlaceInstanceNSByPlaceInstanceId, getPlaceInstanceByPlaceInstanceId, getPlaceInstancesByTypeAndTokenStatus, getPlaceInstancesThatAreReadyToExecute, getPlaceInstancesThatFinishedExecution, getTokensInPlaceInstance, transformTokensForPlaceInstanceOnExit, asyncStoreTaskExecutionInput, asyncBreakOnBreakingPlaces } from "../flow-instance-engine/flow-instance-engine";
7
- import { asyncSemaphoreWaitOnResource } from "../execution/execution-semaphore";
8
- import { flowGetEventById, flowGetPlaceById, flowGetTaskById } from "../flow-types/flow-type-utils";
9
- import { PLACE_EXTENSION_PROPERTY_NAME_FOR_VISUAL_CONTAINER } from "../flow-types/flow-types-visual.vos";
10
- /** Executes form activity `IFlowTask`
11
- *
12
- * It sets `IExecuteTask_Method_TaskContext.taskInstance.tokenStatus` to `ETokenStatusInFlowPlaceInstance.FINISHED` when the task finishes execution
13
- *
14
- * It is (currently?) extended with `trigger`, `triggerSource`, `input`, `output`, and `view`
15
- * Some of them will stay (at least in the condensed version `IFlowTaskCondensed`), some of them will evolve to additional elements
16
- *
17
- * TODO: Consider approaches:
18
- * (1) (previous, didn't work with Vuex store not supporting getters access in mutations, https://github.com/vuejs/vuex/issues/640#issuecomment-281531363) approach (get with context) is good? Maybe not, as it breaks flow, keeps unhealthily method references in StoreFlow, etc. Other option is to
19
- * (2) (current) extend `executeTask` with all necessary context that will be provided on each call, and finally to
20
- * (3) (potential) create a class that will contain context, but then again that will make a class that will contain external references to store, which we again stopped promoting to have clean functional calls and operators
21
- * TODO: add taskInstance in the `IExecuteTask_Method_TaskContext`
22
- */
23
- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
24
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
25
- export const asyncExecuteTaskWithExecutorInviter = async (executionContext, taskContext) => {
26
- const task = taskContext.task;
27
- const taskInstance = taskContext.taskInstance;
28
- const tokens = taskContext.tokens;
29
- const taskInput = taskContext.taskInput;
30
- const flowInstanceId = taskContext.flowInstanceId;
31
- const executionPlace = ((task?.executorRef?.id && ExecutorIdPlaceGet(task?.executorRef?.id)) ?? EExecutorIdPlace.LOCAL_TIER);
32
- const pureExecutorId = ExecutorIdPlaceRemove(task?.executorRef?.id);
33
- if (!executionPlace) {
34
- throw new Error(`[asyncExecuteTaskWithExecutorInviter] executionPlace is not provided`);
35
- }
36
- // local in this caller module (we do and cannot execute it but rather inform back the caller that it is in its jurisdiction to execute it)
37
- if (executionPlace === EExecutorIdPlace.LOCAL) {
38
- const executionResult = {
39
- executionStatus: ETaskExecutionStatus.NOT_EXECUTED,
40
- place: executionPlace,
41
- };
42
- return executionResult;
43
- }
44
- /**
45
- * Inviter for the execution place that is specified by task.
46
- * It will invite the executor that is task required for task execution.
47
- * Executor will execute the task.
48
- */
49
- const executorInviter = executionContext.getHostInviterForPlace(executionPlace);
50
- if (!executorInviter) {
51
- throw new Error(`executorInviter was not available for executionPlace: ${executionPlace}`);
52
- }
53
- console.warn(`[executeTask] using executorInviter.name "${executorInviter.name}" for executing the task: "${task.name}" with executor: "${task?.executorRef?.id}"`);
54
- /** Task execution result */
55
- const executionResult = await executorInviter.awaitReference(pureExecutorId, executionPlace, task, taskInstance, taskInput, tokens, flowInstanceId);
56
- // sets (announces) the status of the task instance execution to finished
57
- taskInstance.tokenStatus = ETokenStatusInFlowPlaceInstance.FINISHED;
58
- const msgResult = `[executeFormActivity] executionResult.rawResult: ${JSON.stringify(executionResult.rawResult)}`;
59
- console.log(msgResult);
60
- return executionResult;
61
- };
62
- /**
63
- * **********************************************
64
- * create a `IVisualTaskContainer` for place with visual task container and notify flow instance observers
65
- *
66
- * This is done in this manner to:
67
- * 1. isolate visual tasks business logic (TODO: we could have completely remove visual tasks)
68
- * 2. to keep this code isomorphic, where observers would be responsible to add the `IVisualTaskContainer`,
69
- * for example, in the Store Flow (in the Vue frontend environment)
70
- * **********************************************
71
- * */
72
- export const asyncCreateVisualTaskContainers = async (flow, flowInstance, progressedTokens, flowInstanceObservers) => {
73
- let visualTaskContainers = [];
74
- for (const progressedToken of progressedTokens) {
75
- const place = flowGetPlaceById(flow, progressedToken.placeId);
76
- if (!place) {
77
- console.warn(`[asyncCreateVisualTaskContainers] place was not found for progressedToken.placeId: ${progressedToken.placeId}`);
78
- continue;
79
- }
80
- // skip if there is no visual task container at the current place
81
- if (!place.extension || !place.extension[PLACE_EXTENSION_PROPERTY_NAME_FOR_VISUAL_CONTAINER])
82
- continue;
83
- console.warn(`[asyncExecuteFlow] recognized visual task container at the current place: ${JSON.stringify(place)}. Notifying observers`);
84
- const payloadNewVisualTaskContainer = {
85
- flow,
86
- flowInstance,
87
- place,
88
- token: progressedToken,
89
- };
90
- for (const flowInstanceObserver of flowInstanceObservers) {
91
- if (flowInstanceObserver.asyncNewVisualTaskContainerEncounteredProcessor) {
92
- const visualTaskContainersPartial = await flowInstanceObserver.asyncNewVisualTaskContainerEncounteredProcessor(payloadNewVisualTaskContainer);
93
- if (visualTaskContainersPartial.length) {
94
- console.warn(`[asyncExecuteFlow] Created new visual task containers at the current place: ${JSON.stringify(visualTaskContainersPartial)}`);
95
- visualTaskContainers = visualTaskContainers.concat(visualTaskContainersPartial);
96
- }
97
- }
98
- }
99
- }
100
- return visualTaskContainers;
101
- };
102
- /**
103
- * **********************************************
104
- * RUN NEWLY READY TASKS
105
- * ----------------------------------------------
106
- * process newly initiated (token-entered) task instances, provide task inputs, run tasks and update tokens
107
- * get all tokens that just entered new tasks
108
- * **********************************************
109
- * */
110
- // let flowInstanceNS.tickCurrent: number = 0;
111
- // let flowInstanceNS.microTickCurrent: number = 0;
112
- export const asyncRunNewlyReadyTasks = async (flow, flowInstance, flowInstanceNS, dataCache, executionContext) => {
113
- console.warn(`[asyncExecuteFlow] process newly initiated (token-entered) task instances, provide task inputs, run tasks and update tokens`);
114
- const readyToExecuteTaskInstanceIds = getPlaceInstancesThatAreReadyToExecute(flow, flowInstance, EFlowPlaceType.TASK);
115
- await asyncBreakOnBreakingPlaces(flow, flowInstance, flowInstanceNS, readyToExecuteTaskInstanceIds);
116
- console.warn(`[asyncExecuteFlow] readyToExecuteTaskInstances.length: ${readyToExecuteTaskInstanceIds.length}, readyToExecuteTaskInstances: ${JSON.stringify(readyToExecuteTaskInstanceIds)}`);
117
- /** go through all place instances that are ready to execute */
118
- for (const readyToExecuteTaskInstanceId of readyToExecuteTaskInstanceIds) {
119
- const readyToExecuteTaskInstance = getPlaceInstanceByPlaceInstanceId(flowInstance, readyToExecuteTaskInstanceId);
120
- const readyToExecuteTaskInstanceNS = getOrCreatePlaceInstanceNSByPlaceInstanceId(flowInstanceNS, readyToExecuteTaskInstanceId);
121
- // announce token initiating task instance
122
- readyToExecuteTaskInstance.tokenStatus = ETokenStatusInFlowPlaceInstance.INITIATED;
123
- /** get the new task to be executed */
124
- const readyToExecuteTask = flowGetTaskById(flow, readyToExecuteTaskInstance.originId);
125
- if (!readyToExecuteTask)
126
- throw new Error(`[asyncExecuteFlow] readyToExecuteTask is missing for taskId: ${readyToExecuteTaskInstance.originId}`);
127
- console.warn(`readyToExecuteTask: ${JSON.stringify(readyToExecuteTask, null, 4)}`);
128
- const readyToExecuteTokens = getTokensInPlaceInstance(flowInstance, readyToExecuteTaskInstance);
129
- /** provide the task input */
130
- const taskInput = await asyncStoreTaskExecutionInput(flow, flowInstance, dataCache, readyToExecuteTask, readyToExecuteTaskInstance, readyToExecuteTokens);
131
- /**
132
- * execute task instance
133
- * **********************************************
134
- * */
135
- // provide execution contexts ...
136
- const taskExecutionContext = {
137
- getHostInviterForPlace: executionContext.getHostInviterForPlace,
138
- };
139
- // ... and task context for `asyncExecuteTaskWithExecutorInviter()` to ...
140
- const taskContext = {
141
- task: readyToExecuteTask,
142
- taskInstance: readyToExecuteTaskInstance,
143
- pureExecutorId: ExecutorIdPlaceRemove(readyToExecuteTask?.executorRef?.id),
144
- taskInput: taskInput,
145
- flowInstanceId: flowInstance.id,
146
- tokens: readyToExecuteTokens,
147
- };
148
- // ... execute the task
149
- // announce the task instance is running
150
- console.warn(`[asyncExecuteFlow] executing newTask: ${JSON.stringify(readyToExecuteTask)}`);
151
- readyToExecuteTaskInstance.status = EFlowTaskExecutionStatus.RUNNING;
152
- readyToExecuteTaskInstance.tokenStatus = ETokenStatusInFlowPlaceInstance.RUNNING;
153
- const executionResultPromise = asyncExecuteTaskWithExecutorInviter(taskExecutionContext, taskContext);
154
- // ... and store the promise in the task instance so later we can (a)wait for that promise get fulfilled
155
- readyToExecuteTaskInstanceNS.promises.executionResultPromise = executionResultPromise;
156
- }
157
- await asyncSemaphoreWaitOnResource(flowInstanceNS.executionSemaphores.semaphores[ESemaphoreNames.MICRO_TICK], `[MT ${flowInstanceNS.executionSemaphores.semaphores[ESemaphoreNames.MICRO_TICK].resourceCurrent++}] Started new tasks ${readyToExecuteTaskInstanceIds.length}`);
158
- return readyToExecuteTaskInstanceIds;
159
- };
160
- /**
161
- * Execute flow
162
- * @param executionContext
163
- * @param flowContext
164
- * @returns
165
- */
166
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
167
- export const asyncExecuteFlow = async (executionContext, flowContext) => {
168
- const flowInstance = flowContext.flowInstance;
169
- const flowInstanceEngine = flowContext.flowInstanceEngine;
170
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
171
- const flowInput = flowContext.flowInput;
172
- const dataCache = executionContext.dataCache;
173
- const flowInstanceObservers = executionContext.flowInstanceObservers;
174
- const flow = await flowInstanceEngine.asyncGetFlow();
175
- const flowInstanceNS = await flowInstanceEngine.asyncGetFlowInstanceNS();
176
- // starting the flow
177
- if (flowInstance.executionResult)
178
- flowInstance.executionResult.executionStatus = EFlowExecutionStatus.RUNNING;
179
- console.warn(`[asyncExecuteFlow] starting the flow`);
180
- const startToken = await flowInstanceEngine.awaitStart(flowInput, dataCache);
181
- await asyncSemaphoreWaitOnResource(flowInstanceNS.executionSemaphores.semaphores[ESemaphoreNames.MICRO_TICK], `[MT ${flowInstanceNS.executionSemaphores.semaphores[ESemaphoreNames.MICRO_TICK].resourceCurrent++}] Flow Instance started`);
182
- /**
183
- * **********************************************
184
- * create a `IVisualTaskContainer` for place with visual task container and notify flow instance observers. We do it for the starting event place before progressing with any flow instance execution
185
- * **********************************************
186
- * */
187
- const visualTaskContainers = await asyncCreateVisualTaskContainers(flow, flowInstance, [startToken], flowInstanceObservers);
188
- console.log(`[asyncExecuteFlow] (for "startToken") visualTaskContainers: ${JSON.stringify(visualTaskContainers, null, 4)}`);
189
- /** Defines if there are tokens that still didn't finish their journey */
190
- let thereAreUnfinishedTokens = false;
191
- flowInstanceNS.id;
192
- do {
193
- /**
194
- * **********************************************
195
- * PROCESS the FINISHED task instances
196
- * ----------------------------------------------
197
- * Store task outcomes and update tokens
198
- *
199
- * Get all tokens in just-finished task instances (task instances statuses are set to `ETokenStatusInFlowPlaceInstance.FINISHED` in the `asyncExecuteTaskWithExecutorInviter` function)
200
- * **********************************************
201
- * */
202
- console.warn(`[asyncExecuteFlow] process the finished task instances, store task outcomes and update tokens`);
203
- const newlyFinishedTaskInstancesIds = getPlaceInstancesThatFinishedExecution(flow, flowInstance, EFlowPlaceType.TASK);
204
- console.warn(`[asyncExecuteFlow] newlyFinishedTaskInstancesIds.length: ${newlyFinishedTaskInstancesIds.length}`);
205
- /** go through all place instances that finished execution */
206
- for (const newlyFinishedTaskInstanceId of newlyFinishedTaskInstancesIds) {
207
- /** task instance corresponding to the `tokenInNewlyFinishedTaskInstance` token */
208
- const newlyFinishedTaskInstance = getPlaceInstanceByPlaceInstanceId(flowInstance, newlyFinishedTaskInstanceId);
209
- const newlyFinishedTaskInstanceNS = getOrCreatePlaceInstanceNSByPlaceInstanceId(flowInstanceNS, newlyFinishedTaskInstanceId);
210
- // announce that the task results are about to be stored
211
- newlyFinishedTaskInstance.status = EFlowTaskExecutionStatus.FINISHED;
212
- newlyFinishedTaskInstance.tokenStatus = ETokenStatusInFlowPlaceInstance.RESULTS_STORING;
213
- const newlyFinishedTask = flowGetTaskById(flow, newlyFinishedTaskInstance.originId);
214
- if (!newlyFinishedTask) {
215
- throw new Error(`[asyncExecuteFlow] no task found for newlyFinishedTaskInstance.id: ${newlyFinishedTaskInstance.id}`);
216
- }
217
- /** after this point we transformed the place instance tokens, the input tokens might be destroyed and new output required tokens might be created */
218
- const newlyFinishedOutputTokens = transformTokensForPlaceInstanceOnExit(flowInstanceEngine, flowInstance, newlyFinishedTask, newlyFinishedTaskInstance);
219
- // cache the task result (output) in data store and reference it in the token
220
- await asyncStorePlaceExecutionOutput(flow, flowInstance, dataCache, newlyFinishedTaskInstanceNS, newlyFinishedOutputTokens);
221
- // announce that the task results are stored
222
- newlyFinishedTaskInstance.tokenStatus = ETokenStatusInFlowPlaceInstance.RESULTS_STORED;
223
- }
224
- await asyncSemaphoreWaitOnResource(flowInstanceNS.executionSemaphores.semaphores[ESemaphoreNames.MICRO_TICK], `[MT ${flowInstanceNS.executionSemaphores.semaphores[ESemaphoreNames.MICRO_TICK].resourceCurrent++}] Finished tasks ${newlyFinishedTaskInstancesIds.length} processed`);
225
- /**
226
- * **********************************************
227
- * PROGRESS TOKENS
228
- * ----------------------------------------------
229
- * progress tokens that have finished with task execution
230
- * TODO: handle tokens that are at non-tasks, gateways
231
- * TODO: we should keep moving all movable tokens (but with keeping observers notified about all the traversed tokens)
232
- * **********************************************
233
- * */
234
- console.warn(`[asyncExecuteFlow] progress tokens that have finished with task execution`);
235
- const progressedTokens = await flowInstanceEngine.asyncProgressTokensThatAreFinished();
236
- console.warn(`[asyncExecuteFlow] progressed tokens progressedTokens.length: ${progressedTokens.length}`);
237
- await asyncSemaphoreWaitOnResource(flowInstanceNS.executionSemaphores.semaphores[ESemaphoreNames.MICRO_TICK], `[MT ${flowInstanceNS.executionSemaphores.semaphores[ESemaphoreNames.MICRO_TICK].resourceCurrent++}] Tokens ${progressedTokens.length} progressed`);
238
- /**
239
- * **********************************************
240
- * VISUAL CONTAINERS
241
- * ----------------------------------------------
242
- * create a `IVisualTaskContainer`
243
- * for place with visual task container and
244
- * notify flow instance observers
245
- * **********************************************
246
- * */
247
- const visualTaskContainers = await asyncCreateVisualTaskContainers(flow, flowInstance, progressedTokens, flowInstanceObservers);
248
- console.log(`[asyncExecuteFlow] (for "progressedTokens") visualTaskContainers: ${JSON.stringify(visualTaskContainers, null, 4)}`);
249
- await asyncSemaphoreWaitOnResource(flowInstanceNS.executionSemaphores.semaphores[ESemaphoreNames.MICRO_TICK], `[MT ${flowInstanceNS.executionSemaphores.semaphores[ESemaphoreNames.MICRO_TICK].resourceCurrent++}] Newly encountered ${visualTaskContainers.length} visually containers created`);
250
- /**
251
- * **********************************************
252
- * RUN NEWLY READY TASKS
253
- * ----------------------------------------------
254
- * process newly initiated (token-entered) task instances, provide task inputs, run tasks and update tokens
255
- * get all tokens that just entered new tasks
256
- * **********************************************
257
- * */
258
- const readyToExecuteTaskInstanceIds = await asyncRunNewlyReadyTasks(flow, flowInstance, flowInstanceNS, dataCache, executionContext);
259
- /**
260
- * **********************************************
261
- * WAIT on ALL currently running tasks
262
- * -------------------------------------
263
- * for **ANY** of them to finish its execution
264
- * **********************************************
265
- * */
266
- console.warn(`[asyncExecuteFlow] Wait on ALL currently running tasks for **ANY** of them to finish its execution`);
267
- /** All currently running instances */
268
- const runningTaskInstances = getPlaceInstancesByTypeAndTokenStatus(flowInstance, [ETokenStatusInFlowPlaceInstance.RUNNING], EFlowPlaceType.TASK);
269
- /** array of execution promises of all currently running task instances */
270
- const taskExecutionResultPromises = [];
271
- for (const runningTaskInstance of runningTaskInstances) {
272
- const newTaskInstanceNS = getOrCreatePlaceInstanceNSByPlaceInstanceId(flowInstanceNS, runningTaskInstance.id);
273
- const placeExecutionResultPromise = newTaskInstanceNS?.promises?.executionResultPromise;
274
- if (!placeExecutionResultPromise)
275
- throw new Error(`[asyncExecuteFlow] problem with matching all task instances with placeExecutionResultPromise-s`);
276
- taskExecutionResultPromises.push(placeExecutionResultPromise);
277
- }
278
- console.warn(`[asyncExecuteFlow] taskExecutionResultPromises.length: ${taskExecutionResultPromises.length}`);
279
- // wait on ALL task instances for ANY task instance to finish its execution
280
- if (taskExecutionResultPromises.length > 0) {
281
- console.warn(`[asyncExecuteFlow] Waiting on ALL task instances (taskExecutionResultPromises.length: ${taskExecutionResultPromises.length}) for ANY task instance to finish its execution`);
282
- await Promise.race(taskExecutionResultPromises);
283
- }
284
- console.warn(`[asyncExecuteFlow] one of the task instances FINISHED its execution! Ready to continue!`);
285
- await asyncSemaphoreWaitOnResource(flowInstanceNS.executionSemaphores.semaphores[ESemaphoreNames.MICRO_TICK], `[MT ${flowInstanceNS.executionSemaphores.semaphores[ESemaphoreNames.MICRO_TICK].resourceCurrent++}] Waited on ${taskExecutionResultPromises.length} tasks to finish`);
286
- /**
287
- * **********************************************
288
- * FINISH FLOW?
289
- * ------------
290
- * Evaluate flow if it is safe to declare the end of its execution:
291
- * Check all existing tokens if all of them are in the events places (`EFlowPlaceType.EVENT`) of the `EFlowEventType.END` type
292
- * **********************************************
293
- * */
294
- console.warn(`[asyncExecuteFlow] Evaluate all tokens if they are at END event state`);
295
- /** All currently running instances */
296
- const tokens = flowInstanceEngine.getTokens();
297
- console.warn(`[asyncExecuteFlow] tokens.length: ${tokens.length}`);
298
- thereAreUnfinishedTokens = false;
299
- let unfinishedTokensNumber = 0;
300
- for (const token of tokens) {
301
- // not finished if either of tokens is in non-event place
302
- const placeInstance = getPlaceInstanceByPlaceInstanceId(flowInstance, token.placeInstanceId);
303
- if (!placeInstance) {
304
- throw new Error(`[asyncExecuteFlow] Cannot find instance for token.placeInstanceId`);
305
- }
306
- if (placeInstance.placeType !== EFlowPlaceType.EVENT) {
307
- thereAreUnfinishedTokens = true;
308
- unfinishedTokensNumber++;
309
- continue;
310
- }
311
- // not finished if either of tokens is in non-end event
312
- const event = flowGetEventById(flow, placeInstance.originId);
313
- if (!event) {
314
- throw new Error(`[asyncExecuteFlow] Cannot find event by eventId`);
315
- }
316
- if (event.type !== EFlowEventType.END) {
317
- thereAreUnfinishedTokens = true;
318
- unfinishedTokensNumber++;
319
- continue;
320
- }
321
- }
322
- // iterate as long as there are unfinished tokens (not in an `EFlowEventType.END` event)
323
- console.warn(`[asyncExecuteFlow] thereAreUnfinishedTokens: ${thereAreUnfinishedTokens}`);
324
- await asyncSemaphoreWaitOnResource(flowInstanceNS.executionSemaphores.semaphores[ESemaphoreNames.MICRO_TICK], `[MT ${flowInstanceNS.executionSemaphores.semaphores[ESemaphoreNames.MICRO_TICK].resourceCurrent++}] Checked unfinished tokens ${unfinishedTokensNumber}`);
325
- await asyncSemaphoreWaitOnResource(flowInstanceNS.executionSemaphores.semaphores[ESemaphoreNames.TICK], `Tick ${flowInstanceNS.executionSemaphores.semaphores[ESemaphoreNames.TICK].resourceCurrent++} finished. ${readyToExecuteTaskInstanceIds.length} new tasks started`);
326
- flowInstanceNS.executionSemaphores.semaphores[ESemaphoreNames.MICRO_TICK].resourceCurrent = 0;
327
- } while (thereAreUnfinishedTokens);
328
- const flowExecutionResult = {
329
- executionStatus: EFlowExecutionStatus.EXECUTED,
330
- };
331
- flowInstance.executionResult = flowExecutionResult;
332
- return flowExecutionResult;
333
- };
334
- //# sourceMappingURL=flow-execution.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flow-execution.service.js","sourceRoot":"","sources":["../../../../../../../../../../../../../../../colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/execution/flow-execution.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAsQ,MAAM,iBAAiB,CAAC;AAEjV,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,+BAA+B,EAA2G,MAAM,kDAAkD,CAAC;AACvP,OAAO,EAAE,cAAc,EAAE,cAAc,EAA2D,MAAM,8BAA8B,CAAC;AACvI,OAAO,EAAE,8BAA8B,EAAsB,2CAA2C,EAAE,iCAAiC,EA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2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=executors-store.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"executors-store.js","sourceRoot":"","sources":["../../../../../../../../../../../../../../../colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/executors/executors-store.ts"],"names":[],"mappings":""}
@@ -1,30 +0,0 @@
1
- // export type TExecutorReferenceMethod = (request: IApiRequest) => Promise<unknown[]>;
2
- /**
3
- * Location of executor in the regard of a tier and place in the tier (currently (?) for the local tier only)
4
- */
5
- export var EExecutorIdPlace;
6
- (function (EExecutorIdPlace) {
7
- /** Executor place is not known */
8
- EExecutorIdPlace["UNKNOWN"] = "UNKNOWN";
9
- /** Executor exists locally to the place the activity is triggered and it should be handled and executed at that very place */
10
- EExecutorIdPlace["LOCAL"] = "LOCAL";
11
- /** Executor exists in a store and the executor id is store's action name and as such it has to be passed to store and executed */
12
- EExecutorIdPlace["STORE"] = "STORE";
13
- /** Implementation is in the local tier and can be reached and executed by method reference */
14
- EExecutorIdPlace["LOCAL_TIER"] = "LOCAL_TIER";
15
- /** Implementation is in a remote tier, not in the local tier and it cannot be reached and executed by method reference but it should be delegated through colabo flow infrastructure */
16
- EExecutorIdPlace["REMOTE_TIER"] = "REMOTE_TIER";
17
- /** task is interactive and as such it has to be delivered at the tier and place where it can be presented to user for their interaction */
18
- EExecutorIdPlace["INTERACTIVE"] = "INTERACTIVE";
19
- })(EExecutorIdPlace || (EExecutorIdPlace = {}));
20
- /** Environment under which the executor can execute */
21
- export var EExecutingEnvironment;
22
- (function (EExecutingEnvironment) {
23
- /** Executor can execute on any environment, no environment related code */
24
- EExecutingEnvironment["ISOMORPHIC"] = "ISOMORPHIC";
25
- /** Executor has frontend dependencies */
26
- EExecutingEnvironment["FRONTEND"] = "FRONTEND";
27
- /** Executor has backend dependencies */
28
- EExecutingEnvironment["BACKEND"] = "BACKEND";
29
- })(EExecutingEnvironment || (EExecutingEnvironment = {}));
30
- //# sourceMappingURL=executors-vos.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"executors-vos.js","sourceRoot":"","sources":["../../../../../../../../../../../../../../../colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/executors/executors-vos.ts"],"names":[],"mappings":"AAAA,uFAAuF;AAQvF;;GAEG;AACH,MAAM,CAAN,IAAY,gBAaX;AAbD,WAAY,gBAAgB;IAC3B,kCAAkC;IAClC,uCAAmB,CAAA;IACnB,8HAA8H;IAC9H,mCAAe,CAAA;IACf,kIAAkI;IAClI,mCAAe,CAAA;IACf,8FAA8F;IAC9F,6CAAyB,CAAA;IACzB,wLAAwL;IACxL,+CAA2B,CAAA;IAC3B,2IAA2I;IAC3I,+CAA2B,CAAA;AAC5B,CAAC,EAbW,gBAAgB,KAAhB,gBAAgB,QAa3B;AAED,uDAAuD;AACvD,MAAM,CAAN,IAAkB,qBAOjB;AAPD,WAAkB,qBAAqB;IACtC,2EAA2E;IAC3E,kDAAyB,CAAA;IACzB,yCAAyC;IACzC,8CAAqB,CAAA;IACrB,wCAAwC;IACxC,4CAAmB,CAAA;AACpB,CAAC,EAPiB,qBAAqB,KAArB,qBAAqB,QAOtC"}
@@ -1,10 +0,0 @@
1
- /**
2
- * used for sending and process changes in task instances
3
- * processed by BPMN-JS renderer
4
- */
5
- export var CFChangeAction;
6
- (function (CFChangeAction) {
7
- CFChangeAction["ADD"] = "ADD";
8
- CFChangeAction["REMOVE"] = "REMOVE";
9
- })(CFChangeAction || (CFChangeAction = {}));
10
- //# sourceMappingURL=flow-instance-engine-updates-vos.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flow-instance-engine-updates-vos.js","sourceRoot":"","sources":["../../../../../../../../../../../../../../../colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-instance-engine/flow-instance-engine-updates-vos.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACzB,6BAAW,CAAA;IACX,mCAAiB,CAAA;AAClB,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB"}
@@ -1,106 +0,0 @@
1
- /**
2
- * Set of declarative ColaboFlow ***execution*** entities that help to communicate Colabo flows across components, layers and various ***concepts***.
3
- *
4
- * ***Various concepts*** means that ColaboFlow should be applicable to different models, scales, and applications:
5
- * + reactive vs. imperative
6
- * + inline/programming-in-the-small vs. orchestration/inline/programming-in-the-large
7
- * + big-data, streaming, backend, frontend, services, isomorphic, cross-tiers
8
- *
9
- * To make this possible, we have a set of common concepts here presented, and in specialized modules/files we add specialized extensions
10
- *
11
- * **Execution** means that compared to the @see{@link `../flow-types/flow-types.ts`} where we declare flows, here we are dealing with the execution of these flows, the current execution state, conditions, mappings to workers (executors), etc
12
- * */
13
- /**
14
- * Task execution status
15
- */
16
- export var EFlowTaskExecutionStatus;
17
- (function (EFlowTaskExecutionStatus) {
18
- EFlowTaskExecutionStatus["WAITING"] = "WAITING";
19
- EFlowTaskExecutionStatus["RUNNING"] = "RUNNING";
20
- EFlowTaskExecutionStatus["FINISHED"] = "FINISHED";
21
- EFlowTaskExecutionStatus["FAILED_SYSTEM"] = "FAILED.SYSTEM";
22
- EFlowTaskExecutionStatus["FAILED_ENGINE"] = "FAILED.ENGINE";
23
- EFlowTaskExecutionStatus["FAILED_FLOW"] = "FAILED.FLOW";
24
- EFlowTaskExecutionStatus["FAILED_TASK"] = "FAILED.TASK";
25
- EFlowTaskExecutionStatus["FAILED_USER"] = "FAILED.USER";
26
- })(EFlowTaskExecutionStatus || (EFlowTaskExecutionStatus = {}));
27
- export var EFlowSequenceStatus;
28
- (function (EFlowSequenceStatus) {
29
- /** still the source task didn't reach it */
30
- EFlowSequenceStatus["WAITING"] = "WAITING";
31
- /** the source task reached it and the flow (token?) passed through it */
32
- EFlowSequenceStatus["PASSED_THROUGH"] = "PASSED_THROUGH";
33
- /** the source task reached it but the flow (token?) didn't pass through it
34
- * as the guarding condition was not fulfilled */
35
- EFlowSequenceStatus["CONDITION_NOT_FULFILLED"] = "CONDITION_NOT_FULFILLED";
36
- })(EFlowSequenceStatus || (EFlowSequenceStatus = {}));
37
- export var EFlowGatewayStatus;
38
- (function (EFlowGatewayStatus) {
39
- /** still the source task didn't reach it */
40
- EFlowGatewayStatus["WAITING"] = "WAITING";
41
- /** the source task reached it and the flow (token?) passed through it */
42
- EFlowGatewayStatus["PASSED_THROUGH"] = "PASSED_THROUGH";
43
- /** the source task reached it but the flow (token?) didn't pass through it
44
- * as the guarding condition was not fulfilled */
45
- EFlowGatewayStatus["CONDITION_NOT_FULFILLED"] = "CONDITION_NOT_FULFILLED";
46
- })(EFlowGatewayStatus || (EFlowGatewayStatus = {}));
47
- export var EFlowEventStatus;
48
- (function (EFlowEventStatus) {
49
- /** still the source task didn't reach it */
50
- EFlowEventStatus["WAITING"] = "WAITING";
51
- /** the source task reached it and the flow (token?) passed through it */
52
- EFlowEventStatus["PASSED_THROUGH"] = "PASSED_THROUGH";
53
- /** the source task reached it but the flow (token?) didn't pass through it
54
- * as the guarding condition was not fulfilled */
55
- EFlowEventStatus["CONDITION_NOT_FULFILLED"] = "CONDITION_NOT_FULFILLED";
56
- })(EFlowEventStatus || (EFlowEventStatus = {}));
57
- export var ETokenStatusInFlowPlaceInstance;
58
- (function (ETokenStatusInFlowPlaceInstance) {
59
- /** 01. just entered the place and created place instance
60
- *
61
- * It is set by the flow instance business logic moving token to new place and creating its new place instance
62
- */
63
- ETokenStatusInFlowPlaceInstance["JUST_ENTERED"] = "JUST_ENTERED";
64
- /** 02. entered the place, crated the place instance, and initiated its "execution"
65
- *
66
- * It is set by the flow instance business logic after token and the new place instance is properly set and the task is ready to be delivered to the task execution logic
67
- */
68
- ETokenStatusInFlowPlaceInstance["INITIATED"] = "INITIATED";
69
- /** 03. place instance is already running
70
- *
71
- * It is set by the task execution logic (execution inviter) when it successfully started running the task instance
72
- */
73
- ETokenStatusInFlowPlaceInstance["RUNNING"] = "RUNNING";
74
- /** 04. task finished and token is ready to leave
75
- *
76
- * It is set by the task execution logic (execution inviter) after task execution finished and data is ready to be collected and token to leave further
77
- */
78
- ETokenStatusInFlowPlaceInstance["FINISHED"] = "FINISHED";
79
- /** 05. results are being stored for the finished task
80
- *
81
- * It is set by the flow execution logic (`asyncExecuteFlow`) after task execution finished and data is about to be stored
82
- */
83
- ETokenStatusInFlowPlaceInstance["RESULTS_STORING"] = "RESULTS_STORING";
84
- /** 05. results are stored for the finished task
85
- *
86
- * It is set by the flow execution logic (`asyncExecuteFlow`) after task execution finished and data are stored
87
- */
88
- ETokenStatusInFlowPlaceInstance["RESULTS_STORED"] = "RESULTS_STORED";
89
- /** 06. place instance finished execution and the token is about to leave the place
90
- *
91
- * It is set by the flow instance business logic evaluating newly finished tasks
92
- */
93
- ETokenStatusInFlowPlaceInstance["LEAVING"] = "LEAVING";
94
- /** 07. the token already left the place (or more precisely, the place instance, as it might renter the very same place through a new instance)
95
- *
96
- * It is set by the flow instance business logic after newly finished tasks are completely processed
97
- */
98
- ETokenStatusInFlowPlaceInstance["LEFT"] = "LEFT";
99
- })(ETokenStatusInFlowPlaceInstance || (ETokenStatusInFlowPlaceInstance = {}));
100
- export var ESemaphoreNames;
101
- (function (ESemaphoreNames) {
102
- ESemaphoreNames["TICK"] = "tick";
103
- ESemaphoreNames["MICRO_TICK"] = "microTick";
104
- ESemaphoreNames["BREAKPOINT"] = "breakpoint";
105
- })(ESemaphoreNames || (ESemaphoreNames = {}));
106
- //# sourceMappingURL=flow-instance-engine-vos.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flow-instance-engine-vos.js","sourceRoot":"","sources":["../../../../../../../../../../../../../../../colabo-vue3/src/isomorphic/dev_puzzles/flow/core/lib/flow-instance-engine/flow-instance-engine-vos.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;KAWK;AAUL;;GAEG;AACH,MAAM,CAAN,IAAY,wBASX;AATD,WAAY,wBAAwB;IACnC,+CAAmB,CAAA;IACnB,+CAAmB,CAAA;IACnB,iDAAqB,CAAA;IACrB,2DAA+B,CAAA;I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