@mat3ra/wode 2025.11.4-0 → 2025.11.6-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.
|
@@ -81,6 +81,9 @@ class Subworkflow extends BaseSubworkflow {
|
|
|
81
81
|
attributes,
|
|
82
82
|
...cleanConfig
|
|
83
83
|
} = config;
|
|
84
|
+
|
|
85
|
+
// Set the method on the model so it can be properly serialized
|
|
86
|
+
model.setMethod(method);
|
|
84
87
|
return new Cls({
|
|
85
88
|
...cleanConfig,
|
|
86
89
|
_id: Cls.generateSubworkflowId(nameForIdGeneration, application, model, method),
|
|
@@ -177,7 +180,7 @@ class Subworkflow extends BaseSubworkflow {
|
|
|
177
180
|
const ctx = {
|
|
178
181
|
...context,
|
|
179
182
|
application: this.application,
|
|
180
|
-
methodData: this.model.
|
|
183
|
+
methodData: this.model.Method.data,
|
|
181
184
|
model: this.model.toJSON(),
|
|
182
185
|
// context below is assembled from context providers and passed to units to override theirs
|
|
183
186
|
...this.context,
|
|
@@ -245,7 +248,7 @@ class Subworkflow extends BaseSubworkflow {
|
|
|
245
248
|
return this.setProp("isDraft", bool);
|
|
246
249
|
}
|
|
247
250
|
get methodData() {
|
|
248
|
-
return this.model.
|
|
251
|
+
return this.model.Method.data;
|
|
249
252
|
}
|
|
250
253
|
|
|
251
254
|
/**
|
|
@@ -266,7 +269,7 @@ class Subworkflow extends BaseSubworkflow {
|
|
|
266
269
|
model
|
|
267
270
|
} = this.toJSON();
|
|
268
271
|
// ignore empty data object
|
|
269
|
-
if (this.model.
|
|
272
|
+
if (this.model.Method.omitInHashCalculation) delete model.method.data;
|
|
270
273
|
return _utils.Utils.hash.calculateHashFromObject(model);
|
|
271
274
|
}
|
|
272
275
|
findUnitById(id) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mat3ra/wode",
|
|
3
|
-
"version": "2025.11.
|
|
3
|
+
"version": "2025.11.6-0",
|
|
4
4
|
"description": "WOrkflow DEfinitions",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "nyc --reporter=text mocha --recursive --bail --require @babel/register/lib --require tests/setup.js tests",
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
"@mat3ra/ade": "^2025.10.2-2",
|
|
52
52
|
"@exabyte-io/eslint-config": "2025.5.13-0",
|
|
53
53
|
"@exabyte-io/ide.js": "2024.3.26-0",
|
|
54
|
-
"@mat3ra/mode": "
|
|
54
|
+
"@mat3ra/mode": "2025.11.6-1",
|
|
55
55
|
"@mat3ra/utils": "2025.9.20-0",
|
|
56
|
-
"@mat3ra/code": "2025.
|
|
57
|
-
"@mat3ra/esse": "2025.
|
|
56
|
+
"@mat3ra/code": "2025.10.24-0",
|
|
57
|
+
"@mat3ra/esse": "2025.10.8-0",
|
|
58
58
|
"@mat3ra/made": "2025.7.15-0",
|
|
59
|
-
"@mat3ra/standata": "
|
|
59
|
+
"@mat3ra/standata": "2025.11.4-0",
|
|
60
60
|
"chai": "^4.3.4",
|
|
61
61
|
"eslint": "7.32.0",
|
|
62
62
|
"eslint-config-airbnb": "19.0.2",
|
|
@@ -182,7 +182,7 @@ function createSubworkflow({
|
|
|
182
182
|
let subworkflow = subworkflowCls.fromArguments(application, model, method, name, units, config);
|
|
183
183
|
const { functions = {}, attributes = {} } = config;
|
|
184
184
|
subworkflow = applyConfig({ obj: subworkflow, config: { functions, attributes } });
|
|
185
|
-
if (setSearchText) subworkflow.model.
|
|
185
|
+
if (setSearchText) subworkflow.model.Method.setSearchText(setSearchText);
|
|
186
186
|
return subworkflow;
|
|
187
187
|
}
|
|
188
188
|
|
|
@@ -103,6 +103,9 @@ export class Subworkflow extends BaseSubworkflow {
|
|
|
103
103
|
const nameForIdGeneration = config.attributes?.name || name;
|
|
104
104
|
const { functions, attributes, ...cleanConfig } = config;
|
|
105
105
|
|
|
106
|
+
// Set the method on the model so it can be properly serialized
|
|
107
|
+
model.setMethod(method);
|
|
108
|
+
|
|
106
109
|
return new Cls({
|
|
107
110
|
...cleanConfig,
|
|
108
111
|
_id: Cls.generateSubworkflowId(nameForIdGeneration, application, model, method),
|
|
@@ -223,7 +226,7 @@ export class Subworkflow extends BaseSubworkflow {
|
|
|
223
226
|
const ctx = {
|
|
224
227
|
...context,
|
|
225
228
|
application: this.application,
|
|
226
|
-
methodData: this.model.
|
|
229
|
+
methodData: this.model.Method.data,
|
|
227
230
|
model: this.model.toJSON(),
|
|
228
231
|
// context below is assembled from context providers and passed to units to override theirs
|
|
229
232
|
...this.context,
|
|
@@ -302,7 +305,7 @@ export class Subworkflow extends BaseSubworkflow {
|
|
|
302
305
|
}
|
|
303
306
|
|
|
304
307
|
get methodData() {
|
|
305
|
-
return this.model.
|
|
308
|
+
return this.model.Method.data;
|
|
306
309
|
}
|
|
307
310
|
|
|
308
311
|
/**
|
|
@@ -322,7 +325,7 @@ export class Subworkflow extends BaseSubworkflow {
|
|
|
322
325
|
_calculateModelHash() {
|
|
323
326
|
const { model } = this.toJSON();
|
|
324
327
|
// ignore empty data object
|
|
325
|
-
if (this.model.
|
|
328
|
+
if (this.model.Method.omitInHashCalculation) delete model.method.data;
|
|
326
329
|
return Utils.hash.calculateHashFromObject(model);
|
|
327
330
|
}
|
|
328
331
|
|