@ejfdelgado/ejflab-common 1.6.1 → 1.7.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ejfdelgado/ejflab-common",
3
3
  "type": "commonjs",
4
- "version": "1.6.1",
4
+ "version": "1.7.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ejfdelgado/ejflab-common.git"
@@ -27,6 +27,7 @@ const { CommandPrint } = require('./steps/CommandPrint');
27
27
  const { CommandMongo } = require('./steps/CommandMongo');
28
28
  const { CommandMinio } = require('./steps/CommandMinio');
29
29
  const { CommandPostgres } = require('./steps/CommandPostgres.js');
30
+ const { StepMultiple } = require('./steps/StepMultiple.js');
30
31
 
31
32
  class FlowChartExec {
32
33
  executionPromise = null;
@@ -59,6 +60,7 @@ class FlowChartExec {
59
60
  this.registry["timelineHasMore"] = StepTimeLineHasMore;
60
61
  this.registry["process"] = StepProcess;
61
62
  this.registry["require"] = StepCheckProcessor;
63
+ this.registry["multiple"] = StepMultiple;
62
64
 
63
65
  // Nodes
64
66
  this.registry["inc"] = CommandInc;
@@ -0,0 +1,21 @@
1
+ const { StepBasic } = require("./StepBasic");
2
+
3
+ class StepMultiple extends StepBasic {
4
+ list = [];
5
+ constructor(context, id, commandName, argsTxt) {
6
+ super(context, id, commandName, argsTxt);
7
+ super.alwaysEvaluateCanContinue = true;
8
+ }
9
+ async execFirst() {
10
+ const flowChartTemplateName = this.args[0];
11
+ this.list = this.args[1];
12
+ }
13
+
14
+ async canContinue() {
15
+ return true;
16
+ }
17
+ }
18
+
19
+ module.exports = {
20
+ StepMultiple
21
+ };