@nocobase/plugin-workflow 0.9.1-alpha.1 → 0.9.2-alpha.1

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 (132) hide show
  1. package/lib/client/AddButton.js +50 -86
  2. package/lib/client/Branch.js +0 -13
  3. package/lib/client/ExecutionCanvas.js +16 -63
  4. package/lib/client/ExecutionLink.js +3 -21
  5. package/lib/client/ExecutionPage.js +1 -19
  6. package/lib/client/ExecutionResourceProvider.js +6 -23
  7. package/lib/client/FlowContext.js +0 -8
  8. package/lib/client/WorkflowCanvas.js +57 -129
  9. package/lib/client/WorkflowLink.js +3 -21
  10. package/lib/client/WorkflowPage.js +1 -19
  11. package/lib/client/WorkflowProvider.js +24 -47
  12. package/lib/client/WorkflowShortcut.js +0 -16
  13. package/lib/client/components/CollectionBlockInitializer.js +12 -22
  14. package/lib/client/components/CollectionFieldInitializers.js +5 -24
  15. package/lib/client/components/CollectionFieldset.js +33 -85
  16. package/lib/client/components/Duration.js +0 -14
  17. package/lib/client/components/DynamicExpression.d.ts +4 -0
  18. package/lib/client/components/DynamicExpression.js +102 -0
  19. package/lib/client/components/FieldsSelect.d.ts +2 -0
  20. package/lib/client/components/FieldsSelect.js +66 -0
  21. package/lib/client/components/FilterDynamicComponent.js +1 -10
  22. package/lib/client/components/NullRender.js +0 -1
  23. package/lib/client/components/OpenDrawer.js +10 -35
  24. package/lib/client/components/RadioWithTooltip.js +5 -27
  25. package/lib/client/components/renderEngineReference.d.ts +1 -0
  26. package/lib/client/components/renderEngineReference.js +55 -0
  27. package/lib/client/constants.js +0 -9
  28. package/lib/client/index.js +0 -6
  29. package/lib/client/interfaces/expression.d.ts +3 -0
  30. package/lib/client/interfaces/expression.js +37 -0
  31. package/lib/client/locale/index.js +5 -15
  32. package/lib/client/locale/pt-BR.d.ts +130 -0
  33. package/lib/client/locale/pt-BR.js +136 -0
  34. package/lib/client/locale/zh-CN.d.ts +16 -1
  35. package/lib/client/locale/zh-CN.js +17 -2
  36. package/lib/client/nodes/calculation.d.ts +56 -7
  37. package/lib/client/nodes/calculation.js +141 -74
  38. package/lib/client/nodes/condition.d.ts +5 -9
  39. package/lib/client/nodes/condition.js +30 -93
  40. package/lib/client/nodes/create.d.ts +36 -12
  41. package/lib/client/nodes/create.js +14 -28
  42. package/lib/client/nodes/delay.d.ts +3 -7
  43. package/lib/client/nodes/delay.js +5 -14
  44. package/lib/client/nodes/destroy.d.ts +3 -11
  45. package/lib/client/nodes/destroy.js +14 -12
  46. package/lib/client/nodes/index.d.ts +2 -2
  47. package/lib/client/nodes/index.js +181 -222
  48. package/lib/client/nodes/manual/AssigneesSelect.js +8 -18
  49. package/lib/client/nodes/manual/ModeConfig.js +0 -27
  50. package/lib/client/nodes/manual/SchemaConfig.js +87 -449
  51. package/lib/client/nodes/manual/WorkflowTodo.js +99 -163
  52. package/lib/client/nodes/manual/WorkflowTodoBlockInitializer.js +4 -20
  53. package/lib/client/nodes/manual/forms/customForm.d.ts +40 -0
  54. package/lib/client/nodes/manual/forms/customForm.js +411 -0
  55. package/lib/client/nodes/manual/index.d.ts +15 -6
  56. package/lib/client/nodes/manual/index.js +58 -54
  57. package/lib/client/nodes/parallel.d.ts +1 -2
  58. package/lib/client/nodes/parallel.js +16 -45
  59. package/lib/client/nodes/query.d.ts +30 -12
  60. package/lib/client/nodes/query.js +17 -25
  61. package/lib/client/nodes/request.d.ts +9 -17
  62. package/lib/client/nodes/request.js +13 -37
  63. package/lib/client/nodes/update.d.ts +27 -28
  64. package/lib/client/nodes/update.js +17 -18
  65. package/lib/client/schemas/collection.d.ts +20 -7
  66. package/lib/client/schemas/collection.js +27 -28
  67. package/lib/client/schemas/executions.js +3 -18
  68. package/lib/client/schemas/workflows.js +10 -33
  69. package/lib/client/style.js +75 -26
  70. package/lib/client/triggers/collection.d.ts +47 -18
  71. package/lib/client/triggers/collection.js +65 -123
  72. package/lib/client/triggers/index.d.ts +3 -6
  73. package/lib/client/triggers/index.js +146 -146
  74. package/lib/client/triggers/schedule/DateFieldsSelect.js +7 -32
  75. package/lib/client/triggers/schedule/EndsByField.js +1 -18
  76. package/lib/client/triggers/schedule/OnField.js +10 -38
  77. package/lib/client/triggers/schedule/RepeatField.js +4 -32
  78. package/lib/client/triggers/schedule/ScheduleConfig.js +25 -68
  79. package/lib/client/triggers/schedule/index.d.ts +21 -1
  80. package/lib/client/triggers/schedule/index.js +22 -24
  81. package/lib/client/triggers/schedule/locale/Cron.zh-CN.js +8 -4
  82. package/lib/client/utils.d.ts +1 -0
  83. package/lib/client/utils.js +31 -10
  84. package/lib/client/variable.d.ts +7 -6
  85. package/lib/client/variable.js +132 -71
  86. package/lib/index.js +0 -2
  87. package/lib/server/Plugin.d.ts +7 -7
  88. package/lib/server/Plugin.js +76 -111
  89. package/lib/server/Processor.d.ts +2 -0
  90. package/lib/server/Processor.js +62 -125
  91. package/lib/server/actions/index.js +3 -10
  92. package/lib/server/actions/nodes.js +34 -87
  93. package/lib/server/actions/workflows.js +46 -96
  94. package/lib/server/collections/executions.js +1 -1
  95. package/lib/server/collections/flow_nodes.js +7 -4
  96. package/lib/server/collections/jobs.js +1 -1
  97. package/lib/server/collections/workflows.js +3 -4
  98. package/lib/server/fields/expression-field.d.ts +8 -0
  99. package/lib/server/fields/expression-field.js +26 -0
  100. package/lib/server/fields/index.d.ts +1 -0
  101. package/lib/server/fields/index.js +12 -0
  102. package/lib/server/functions/index.js +3 -14
  103. package/lib/server/index.js +0 -6
  104. package/lib/server/instructions/calculation.js +22 -17
  105. package/lib/server/instructions/condition.js +8 -52
  106. package/lib/server/instructions/create.js +31 -15
  107. package/lib/server/instructions/delay.js +4 -32
  108. package/lib/server/instructions/destroy.js +6 -12
  109. package/lib/server/instructions/index.js +6 -23
  110. package/lib/server/instructions/manual/actions.js +22 -31
  111. package/lib/server/instructions/manual/collecions/users_jobs.js +1 -1
  112. package/lib/server/instructions/manual/index.d.ts +13 -12
  113. package/lib/server/instructions/manual/index.js +9 -47
  114. package/lib/server/instructions/parallel.js +9 -36
  115. package/lib/server/instructions/query.js +17 -15
  116. package/lib/server/instructions/request.js +7 -30
  117. package/lib/server/instructions/update.js +8 -14
  118. package/lib/server/migrations/20221129153547-calculation-variables.js +3 -27
  119. package/lib/server/migrations/20230221032941-change-request-body-type.js +3 -26
  120. package/lib/server/migrations/20230221071831-calculation-expression.js +1 -33
  121. package/lib/server/migrations/20230221121203-condition-calculation.js +5 -28
  122. package/lib/server/migrations/20230221162902-jsonb-to-json.js +3 -18
  123. package/lib/server/migrations/20230411034722-manual-multi-form.d.ts +4 -0
  124. package/lib/server/migrations/20230411034722-manual-multi-form.js +303 -0
  125. package/lib/server/models/Execution.js +0 -5
  126. package/lib/server/models/FlowNode.js +0 -5
  127. package/lib/server/models/Job.js +0 -5
  128. package/lib/server/models/Workflow.js +0 -5
  129. package/lib/server/triggers/collection.js +39 -61
  130. package/lib/server/triggers/index.js +3 -22
  131. package/lib/server/triggers/schedule.js +72 -194
  132. package/package.json +14 -11
@@ -4,122 +4,175 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  function _react() {
9
8
  const data = _interopRequireDefault(require("react"));
10
-
11
9
  _react = function _react() {
12
10
  return data;
13
11
  };
14
-
15
12
  return data;
16
13
  }
17
-
14
+ function _antd() {
15
+ const data = require("@formily/antd");
16
+ _antd = function _antd() {
17
+ return data;
18
+ };
19
+ return data;
20
+ }
18
21
  function _css() {
19
22
  const data = require("@emotion/css");
20
-
21
23
  _css = function _css() {
22
24
  return data;
23
25
  };
24
-
25
26
  return data;
26
27
  }
27
-
28
28
  function _jsonTemplates() {
29
29
  const data = _interopRequireDefault(require("json-templates"));
30
-
31
30
  _jsonTemplates = function _jsonTemplates() {
32
31
  return data;
33
32
  };
34
-
35
33
  return data;
36
34
  }
37
-
35
+ function _reactI18next() {
36
+ const data = require("react-i18next");
37
+ _reactI18next = function _reactI18next() {
38
+ return data;
39
+ };
40
+ return data;
41
+ }
42
+ function _antd2() {
43
+ const data = require("antd");
44
+ _antd2 = function _antd2() {
45
+ return data;
46
+ };
47
+ return data;
48
+ }
38
49
  function _client() {
39
50
  const data = require("@nocobase/client");
40
-
41
51
  _client = function _client() {
42
52
  return data;
43
53
  };
44
-
45
54
  return data;
46
55
  }
47
-
48
56
  function _client2() {
49
- const data = _interopRequireWildcard(require("@nocobase/evaluators/client"));
50
-
57
+ const data = require("@nocobase/evaluators/client");
51
58
  _client2 = function _client2() {
52
59
  return data;
53
60
  };
54
-
55
61
  return data;
56
62
  }
57
-
58
63
  var _FlowContext = require("../FlowContext");
59
-
60
64
  var _locale = require("../locale");
61
-
62
65
  var _variable = require("../variable");
63
-
64
66
  var _RadioWithTooltip = require("../components/RadioWithTooltip");
65
-
67
+ var _renderEngineReference = require("../components/renderEngineReference");
66
68
  const _excluded = ["node", "insert"];
67
-
68
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
69
-
70
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
71
-
72
69
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
73
-
74
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
75
-
76
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
77
-
78
70
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
79
-
80
71
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
81
-
82
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
83
-
72
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
73
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
74
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
75
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
76
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
77
+ function matchDynamicExpressionCollectionField(field) {
78
+ const _useCollectionManager = (0, _client().useCollectionManager)(),
79
+ getCollectionFields = _useCollectionManager.getCollectionFields,
80
+ getCollection = _useCollectionManager.getCollection;
81
+ if (field.type !== 'belongsTo') {
82
+ return false;
83
+ }
84
+ const fields = getCollectionFields(field.target);
85
+ return fields.some(f => f.interface === 'expression');
86
+ }
87
+ const DynamicConfig = ({
88
+ value,
89
+ onChange: _onChange
90
+ }) => {
91
+ const _useTranslation = (0, _reactI18next().useTranslation)(),
92
+ t = _useTranslation.t;
93
+ const scope = (0, _variable.useWorkflowVariableOptions)([matchDynamicExpressionCollectionField]);
94
+ return _react().default.createElement(_antd().FormLayout, {
95
+ layout: "vertical"
96
+ }, _react().default.createElement(_antd().FormItem, {
97
+ label: t('Expression type', {
98
+ ns: _locale.NAMESPACE
99
+ })
100
+ }, _react().default.createElement(_antd2().Radio.Group, {
101
+ value: value === false ? false : value || null,
102
+ onChange: ev => {
103
+ _onChange(ev.target.value);
104
+ }
105
+ }, _react().default.createElement(_antd2().Radio, {
106
+ value: false
107
+ }, t("Static", {
108
+ ns: _locale.NAMESPACE
109
+ })), _react().default.createElement(_antd2().Radio, {
110
+ value: value || null
111
+ }, t("Dynamic", {
112
+ ns: _locale.NAMESPACE
113
+ })))), value !== false ? _react().default.createElement(_antd().FormItem, {
114
+ label: t('Select dynamic expression', {
115
+ ns: _locale.NAMESPACE
116
+ })
117
+ }, _react().default.createElement(_client().Variable.Input, {
118
+ value: value || null,
119
+ onChange: v => _onChange(v),
120
+ scope: scope
121
+ })) : null);
122
+ };
123
+ function useWorkflowVariableEntityOptions() {
124
+ return (0, _variable.useWorkflowVariableOptions)([{
125
+ type: "reference",
126
+ options: {
127
+ collection: "*",
128
+ entity: true
129
+ }
130
+ }]);
131
+ }
84
132
  var _default = {
85
133
  title: `{{t("Calculation", { ns: "${_locale.NAMESPACE}" })}}`,
86
134
  type: 'calculation',
87
135
  group: 'control',
88
136
  fieldset: {
89
- 'config.engine': {
137
+ dynamic: {
138
+ type: 'string',
139
+ 'x-component': 'DynamicConfig',
140
+ default: false
141
+ },
142
+ engine: {
90
143
  type: 'string',
91
144
  title: `{{t("Calculation engine", { ns: "${_locale.NAMESPACE}" })}}`,
92
- name: 'config.engine',
93
145
  'x-decorator': 'FormItem',
94
146
  'x-component': 'RadioWithTooltip',
95
147
  'x-component-props': {
96
- options: Array.from(_client2().default.getEntities()).reduce((result, [value, options]) => result.concat(_objectSpread({
97
- value
98
- }, options)), [])
148
+ options: (0, _client2().getOptions)()
99
149
  },
100
150
  required: true,
101
- default: 'math.js'
151
+ default: 'math.js',
152
+ 'x-reactions': {
153
+ dependencies: ['dynamic'],
154
+ fulfill: {
155
+ state: {
156
+ visible: '{{$deps[0] === false}}'
157
+ }
158
+ }
159
+ }
102
160
  },
103
- 'config.expression': {
161
+ expression: {
104
162
  type: 'string',
105
163
  title: `{{t("Calculation expression", { ns: "${_locale.NAMESPACE}" })}}`,
106
- name: 'config.expression',
107
164
  'x-decorator': 'FormItem',
108
165
  'x-component': 'Variable.TextArea',
109
166
  'x-component-props': {
110
167
  scope: '{{useWorkflowVariableOptions}}'
111
168
  },
112
-
113
169
  ['x-validator'](value, rules, {
114
170
  form
115
171
  }) {
116
172
  const values = form.values;
117
-
118
- const _evaluators$get = _client2().default.get(values.config.engine),
119
- evaluate = _evaluators$get.evaluate;
120
-
121
- const exp = value.trim().replace(/{{([^{}]+)}}/g, '1');
122
-
173
+ const _evaluators$get = _client2().evaluators.get(values.engine),
174
+ evaluate = _evaluators$get.evaluate;
175
+ const exp = value.trim().replace(/{{([^{}]+)}}/g, ' 1 ');
123
176
  try {
124
177
  evaluate(exp);
125
178
  return '';
@@ -127,36 +180,57 @@ var _default = {
127
180
  return (0, _locale.lang)('Expression syntax error');
128
181
  }
129
182
  },
130
-
131
- 'x-reactions': {
132
- dependencies: ['config.engine'],
183
+ 'x-reactions': [{
184
+ dependencies: ['dynamic'],
185
+ fulfill: {
186
+ state: {
187
+ visible: '{{$deps[0] === false}}'
188
+ }
189
+ }
190
+ }, {
191
+ dependencies: ['engine'],
133
192
  fulfill: {
134
193
  schema: {
135
- description: '{{renderReference($deps[0])}}'
194
+ description: '{{renderEngineReference($deps[0])}}'
136
195
  }
137
196
  }
138
- },
197
+ }],
139
198
  required: true
199
+ },
200
+ scope: {
201
+ type: 'string',
202
+ title: `{{t("Variable datasource", { ns: "${_locale.NAMESPACE}" })}}`,
203
+ 'x-decorator': 'FormItem',
204
+ 'x-component': 'Variable.Input',
205
+ 'x-component-props': {
206
+ scope: '{{useWorkflowVariableEntityOptions}}'
207
+ },
208
+ 'x-reactions': {
209
+ dependencies: ['dynamic'],
210
+ fulfill: {
211
+ state: {
212
+ visible: '{{$deps[0] !== false}}'
213
+ }
214
+ }
215
+ }
140
216
  }
141
217
  },
142
218
  view: {},
143
219
  scope: {
144
220
  useWorkflowVariableOptions: _variable.useWorkflowVariableOptions,
145
- renderReference: _client2().renderReference
221
+ useWorkflowVariableEntityOptions,
222
+ renderEngineReference: _renderEngineReference.renderEngineReference
146
223
  },
147
224
  components: {
148
225
  CalculationResult({
149
226
  dataSource
150
227
  }) {
151
228
  var _execution$jobs;
152
-
153
229
  const _useFlowContext = (0, _FlowContext.useFlowContext)(),
154
- execution = _useFlowContext.execution;
155
-
230
+ execution = _useFlowContext.execution;
156
231
  if (!execution) {
157
232
  return (0, _locale.lang)('Calculation result');
158
233
  }
159
-
160
234
  const result = (0, _jsonTemplates().default)(dataSource)({
161
235
  $jobsMapByNodeId: ((_execution$jobs = execution.jobs) !== null && _execution$jobs !== void 0 ? _execution$jobs : []).reduce((map, job) => Object.assign(map, {
162
236
  [job.nodeId]: job.result
@@ -168,22 +242,19 @@ var _default = {
168
242
  `
169
243
  }, JSON.stringify(result, null, 2));
170
244
  },
171
-
172
- RadioWithTooltip: _RadioWithTooltip.RadioWithTooltip
245
+ RadioWithTooltip: _RadioWithTooltip.RadioWithTooltip,
246
+ DynamicConfig
173
247
  },
174
-
175
248
  getOptions(config, types) {
176
- if (types && !types.some(type => type in _variable.TypeSets || Object.values(_variable.TypeSets).some(set => set.has(type)))) {
249
+ if (types && !types.some(type => type in _variable.BaseTypeSets || Object.values(_variable.BaseTypeSets).some(set => set.has(type)))) {
177
250
  return null;
178
251
  }
179
-
180
- return [// { key: '', value: '', label: lang('Calculation result') }
252
+ return [
253
+ // { key: '', value: '', label: lang('Calculation result') }
181
254
  ];
182
255
  },
183
-
184
256
  useInitializers(node) {
185
257
  var _node$title;
186
-
187
258
  return {
188
259
  type: 'item',
189
260
  title: (_node$title = node.title) !== null && _node$title !== void 0 ? _node$title : `#${node.id}`,
@@ -191,19 +262,15 @@ var _default = {
191
262
  node
192
263
  };
193
264
  }
194
-
195
265
  };
196
266
  exports.default = _default;
197
-
198
267
  function CalculationInitializer(_ref) {
199
268
  let node = _ref.node,
200
- insert = _ref.insert,
201
- props = _objectWithoutProperties(_ref, _excluded);
202
-
269
+ insert = _ref.insert,
270
+ props = _objectWithoutProperties(_ref, _excluded);
203
271
  return _react().default.createElement(_client().SchemaInitializer.Item, _objectSpread(_objectSpread({}, props), {}, {
204
272
  onClick: () => {
205
273
  var _node$title2;
206
-
207
274
  insert({
208
275
  type: 'void',
209
276
  name: node.id,
@@ -22,9 +22,8 @@ declare const _default: {
22
22
  type: string;
23
23
  group: string;
24
24
  fieldset: {
25
- 'config.rejectOnFalse': {
25
+ rejectOnFalse: {
26
26
  type: string;
27
- name: string;
28
27
  title: string;
29
28
  'x-decorator': string;
30
29
  'x-component': string;
@@ -36,10 +35,9 @@ declare const _default: {
36
35
  label: string;
37
36
  }[];
38
37
  };
39
- 'config.engine': {
38
+ engine: {
40
39
  type: string;
41
40
  title: string;
42
- name: string;
43
41
  'x-decorator': string;
44
42
  'x-component': string;
45
43
  'x-component-props': {
@@ -50,9 +48,8 @@ declare const _default: {
50
48
  required: boolean;
51
49
  default: string;
52
50
  };
53
- 'config.calculation': {
51
+ calculation: {
54
52
  type: string;
55
- name: string;
56
53
  title: string;
57
54
  'x-decorator': string;
58
55
  'x-component': string;
@@ -66,10 +63,9 @@ declare const _default: {
66
63
  };
67
64
  required: boolean;
68
65
  };
69
- 'config.expression': {
66
+ expression: {
70
67
  type: string;
71
68
  title: string;
72
- name: string;
73
69
  'x-decorator': string;
74
70
  'x-component': string;
75
71
  'x-component-props': {
@@ -102,7 +98,7 @@ declare const _default: {
102
98
  }[];
103
99
  render(data: any): JSX.Element;
104
100
  scope: {
105
- renderReference: (key: string) => JSX.Element;
101
+ renderEngineReference: (key: string) => JSX.Element;
106
102
  useWorkflowVariableOptions: typeof useWorkflowVariableOptions;
107
103
  };
108
104
  components: {