@mat3ra/wode 2025.11.4-0 → 2025.11.5-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.
@@ -255,7 +255,7 @@ function createSubworkflow({
255
255
  attributes
256
256
  }
257
257
  });
258
- if (setSearchText) subworkflow.model.method.setSearchText(setSearchText);
258
+ if (setSearchText) subworkflow.model.Method.setSearchText(setSearchText);
259
259
  return subworkflow;
260
260
  }
261
261
 
@@ -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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mat3ra/wode",
3
- "version": "2025.11.4-0",
3
+ "version": "2025.11.5-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": "^2025.10.2-0",
54
+ "@mat3ra/mode": "2025.11.5-2",
55
55
  "@mat3ra/utils": "2025.9.20-0",
56
- "@mat3ra/code": "2025.7.15-0",
57
- "@mat3ra/esse": "2025.7.15-0",
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": "git+https://github.com/Exabyte-io/standata.git#f53b8da6ff0421b8397d606a6d8b0127dc68c64c",
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.method.setSearchText(setSearchText);
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),