@servicenow/sdk-build-plugins 4.6.1 → 4.7.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.
- package/dist/acl-plugin.js +0 -3
- package/dist/acl-plugin.js.map +1 -1
- package/dist/applicability-plugin.js +0 -2
- package/dist/applicability-plugin.js.map +1 -1
- package/dist/application-menu-plugin.js +0 -2
- package/dist/application-menu-plugin.js.map +1 -1
- package/dist/arrow-function-plugin.js +0 -1
- package/dist/arrow-function-plugin.js.map +1 -1
- package/dist/atf/test-plugin.js +0 -2
- package/dist/atf/test-plugin.js.map +1 -1
- package/dist/basic-syntax-plugin.js +0 -1
- package/dist/basic-syntax-plugin.js.map +1 -1
- package/dist/business-rule-plugin.js +0 -1
- package/dist/business-rule-plugin.js.map +1 -1
- package/dist/call-expression-plugin.js +0 -1
- package/dist/call-expression-plugin.js.map +1 -1
- package/dist/claims-plugin.js +0 -1
- package/dist/claims-plugin.js.map +1 -1
- package/dist/client-script-plugin.js +0 -1
- package/dist/client-script-plugin.js.map +1 -1
- package/dist/column-plugin.js +24 -7
- package/dist/column-plugin.js.map +1 -1
- package/dist/cross-scope-privilege-plugin.js +0 -1
- package/dist/cross-scope-privilege-plugin.js.map +1 -1
- package/dist/dashboard/dashboard-plugin.js +0 -2
- package/dist/dashboard/dashboard-plugin.js.map +1 -1
- package/dist/data-plugin.js +0 -1
- package/dist/data-plugin.js.map +1 -1
- package/dist/data-policy-plugin.d.ts +2 -0
- package/dist/data-policy-plugin.js +276 -0
- package/dist/data-policy-plugin.js.map +1 -0
- package/dist/email-notification-plugin.js +2 -3
- package/dist/email-notification-plugin.js.map +1 -1
- package/dist/flow/flow-logic/flow-logic-constants.d.ts +2 -0
- package/dist/flow/flow-logic/flow-logic-constants.js +6 -1
- package/dist/flow/flow-logic/flow-logic-constants.js.map +1 -1
- package/dist/flow/flow-logic/flow-logic-diagnostics.js +192 -56
- package/dist/flow/flow-logic/flow-logic-diagnostics.js.map +1 -1
- package/dist/flow/flow-logic/flow-logic-plugin-helpers.d.ts +2 -1
- package/dist/flow/flow-logic/flow-logic-plugin-helpers.js +44 -5
- package/dist/flow/flow-logic/flow-logic-plugin-helpers.js.map +1 -1
- package/dist/flow/flow-logic/flow-logic-plugin.js +279 -29
- package/dist/flow/flow-logic/flow-logic-plugin.js.map +1 -1
- package/dist/flow/flow-logic/flow-logic-shapes.d.ts +15 -0
- package/dist/flow/flow-logic/flow-logic-shapes.js +25 -1
- package/dist/flow/flow-logic/flow-logic-shapes.js.map +1 -1
- package/dist/flow/plugins/approval-rules-plugin.js +0 -1
- package/dist/flow/plugins/approval-rules-plugin.js.map +1 -1
- package/dist/flow/plugins/flow-action-definition-plugin.js +804 -205
- package/dist/flow/plugins/flow-action-definition-plugin.js.map +1 -1
- package/dist/flow/plugins/flow-data-pill-plugin.js +3 -5
- package/dist/flow/plugins/flow-data-pill-plugin.js.map +1 -1
- package/dist/flow/plugins/flow-definition-plugin.js +84 -17
- package/dist/flow/plugins/flow-definition-plugin.js.map +1 -1
- package/dist/flow/plugins/flow-diagnostics-plugin.js +65 -3
- package/dist/flow/plugins/flow-diagnostics-plugin.js.map +1 -1
- package/dist/flow/plugins/flow-instance-plugin.js +13 -5
- package/dist/flow/plugins/flow-instance-plugin.js.map +1 -1
- package/dist/flow/plugins/flow-trigger-instance-plugin.js +0 -1
- package/dist/flow/plugins/flow-trigger-instance-plugin.js.map +1 -1
- package/dist/flow/plugins/inline-script-plugin.js +0 -1
- package/dist/flow/plugins/inline-script-plugin.js.map +1 -1
- package/dist/flow/plugins/step-definition-plugin.js +0 -2
- package/dist/flow/plugins/step-definition-plugin.js.map +1 -1
- package/dist/flow/plugins/step-instance-plugin.js +216 -77
- package/dist/flow/plugins/step-instance-plugin.js.map +1 -1
- package/dist/flow/plugins/trigger-plugin.js +0 -2
- package/dist/flow/plugins/trigger-plugin.js.map +1 -1
- package/dist/flow/plugins/wfa-datapill-plugin.js +0 -1
- package/dist/flow/plugins/wfa-datapill-plugin.js.map +1 -1
- package/dist/flow/utils/datapill-transformer.js +9 -5
- package/dist/flow/utils/datapill-transformer.js.map +1 -1
- package/dist/flow/utils/flow-constants.d.ts +12 -0
- package/dist/flow/utils/flow-constants.js +17 -3
- package/dist/flow/utils/flow-constants.js.map +1 -1
- package/dist/flow/utils/flow-io-to-record.d.ts +1 -1
- package/dist/flow/utils/flow-io-to-record.js +21 -13
- package/dist/flow/utils/flow-io-to-record.js.map +1 -1
- package/dist/flow/utils/flow-pill-utils.d.ts +26 -0
- package/dist/flow/utils/flow-pill-utils.js +50 -0
- package/dist/flow/utils/flow-pill-utils.js.map +1 -0
- package/dist/flow/utils/flow-stage-processor.d.ts +138 -0
- package/dist/flow/utils/flow-stage-processor.js +665 -0
- package/dist/flow/utils/flow-stage-processor.js.map +1 -0
- package/dist/flow/utils/pill-string-parser.js +28 -43
- package/dist/flow/utils/pill-string-parser.js.map +1 -1
- package/dist/flow/utils/utils.d.ts +11 -6
- package/dist/flow/utils/utils.js +37 -28
- package/dist/flow/utils/utils.js.map +1 -1
- package/dist/form-plugin.js +4 -14
- package/dist/form-plugin.js.map +1 -1
- package/dist/html-import-plugin.js +0 -1
- package/dist/html-import-plugin.js.map +1 -1
- package/dist/import-sets-plugin.js +0 -2
- package/dist/import-sets-plugin.js.map +1 -1
- package/dist/inbound-email-action-plugin.js +0 -1
- package/dist/inbound-email-action-plugin.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/instance-scan-plugin.js +0 -7
- package/dist/instance-scan-plugin.js.map +1 -1
- package/dist/json-plugin.js +0 -1
- package/dist/json-plugin.js.map +1 -1
- package/dist/list-plugin.js +4 -1
- package/dist/list-plugin.js.map +1 -1
- package/dist/now-attach-plugin.js +0 -1
- package/dist/now-attach-plugin.js.map +1 -1
- package/dist/now-config-plugin.js +0 -1
- package/dist/now-config-plugin.js.map +1 -1
- package/dist/now-id-plugin.js +0 -1
- package/dist/now-id-plugin.js.map +1 -1
- package/dist/now-include-plugin.js +0 -1
- package/dist/now-include-plugin.js.map +1 -1
- package/dist/now-ref-plugin.js +0 -1
- package/dist/now-ref-plugin.js.map +1 -1
- package/dist/now-unresolved-plugin.js +0 -1
- package/dist/now-unresolved-plugin.js.map +1 -1
- package/dist/package-json-plugin.js +3 -2
- package/dist/package-json-plugin.js.map +1 -1
- package/dist/property-plugin.js +0 -2
- package/dist/property-plugin.js.map +1 -1
- package/dist/record-plugin.d.ts +2 -0
- package/dist/record-plugin.js +2 -2
- package/dist/record-plugin.js.map +1 -1
- package/dist/repack/lint/Rules.d.ts +1 -2
- package/dist/rest-api-plugin.js +6 -5
- package/dist/rest-api-plugin.js.map +1 -1
- package/dist/role-plugin.js +0 -1
- package/dist/role-plugin.js.map +1 -1
- package/dist/schedule-script/scheduled-script-plugin.js +5 -4
- package/dist/schedule-script/scheduled-script-plugin.js.map +1 -1
- package/dist/script-action-plugin.js +0 -2
- package/dist/script-action-plugin.js.map +1 -1
- package/dist/script-include-plugin.js +0 -4
- package/dist/script-include-plugin.js.map +1 -1
- package/dist/server-module-plugin/index.js +2 -3
- package/dist/server-module-plugin/index.js.map +1 -1
- package/dist/service-catalog/catalog-clientscript-plugin.js +0 -2
- package/dist/service-catalog/catalog-clientscript-plugin.js.map +1 -1
- package/dist/service-catalog/catalog-item-plugin.js +0 -2
- package/dist/service-catalog/catalog-item-plugin.js.map +1 -1
- package/dist/service-catalog/catalog-ui-policy-plugin.js +0 -2
- package/dist/service-catalog/catalog-ui-policy-plugin.js.map +1 -1
- package/dist/service-catalog/sc-record-producer-plugin.js +0 -2
- package/dist/service-catalog/sc-record-producer-plugin.js.map +1 -1
- package/dist/service-catalog/variable-set-plugin.js +0 -2
- package/dist/service-catalog/variable-set-plugin.js.map +1 -1
- package/dist/service-portal/angular-provider-plugin.js +0 -2
- package/dist/service-portal/angular-provider-plugin.js.map +1 -1
- package/dist/service-portal/dependency-plugin.js +3 -5
- package/dist/service-portal/dependency-plugin.js.map +1 -1
- package/dist/service-portal/header-footer-plugin.js +3 -5
- package/dist/service-portal/header-footer-plugin.js.map +1 -1
- package/dist/service-portal/menu-plugin.js +0 -1
- package/dist/service-portal/menu-plugin.js.map +1 -1
- package/dist/service-portal/page-plugin.js +0 -1
- package/dist/service-portal/page-plugin.js.map +1 -1
- package/dist/service-portal/page-route-map-plugin.js +0 -1
- package/dist/service-portal/page-route-map-plugin.js.map +1 -1
- package/dist/service-portal/portal-plugin.js +0 -2
- package/dist/service-portal/portal-plugin.js.map +1 -1
- package/dist/service-portal/theme-plugin.js +0 -2
- package/dist/service-portal/theme-plugin.js.map +1 -1
- package/dist/service-portal/widget-plugin.js +3 -5
- package/dist/service-portal/widget-plugin.js.map +1 -1
- package/dist/sla-plugin.js +0 -2
- package/dist/sla-plugin.js.map +1 -1
- package/dist/static-content-plugin.js +32 -3
- package/dist/static-content-plugin.js.map +1 -1
- package/dist/table-plugin.js +102 -11
- package/dist/table-plugin.js.map +1 -1
- package/dist/ui-action-plugin.js +26 -17
- package/dist/ui-action-plugin.js.map +1 -1
- package/dist/ui-page-plugin.js +159 -17
- package/dist/ui-page-plugin.js.map +1 -1
- package/dist/ui-policy-plugin.js +0 -1
- package/dist/ui-policy-plugin.js.map +1 -1
- package/dist/user-preference-plugin.js +0 -2
- package/dist/user-preference-plugin.js.map +1 -1
- package/dist/utils.d.ts +1 -9
- package/dist/utils.js +0 -14
- package/dist/utils.js.map +1 -1
- package/dist/ux-list-menu-config-plugin.js +0 -2
- package/dist/ux-list-menu-config-plugin.js.map +1 -1
- package/dist/view-plugin.js +0 -1
- package/dist/view-plugin.js.map +1 -1
- package/dist/workspace-plugin.js +0 -2
- package/dist/workspace-plugin.js.map +1 -1
- package/package.json +6 -6
- package/src/acl-plugin.ts +1 -4
- package/src/applicability-plugin.ts +0 -2
- package/src/application-menu-plugin.ts +0 -2
- package/src/arrow-function-plugin.ts +0 -1
- package/src/atf/test-plugin.ts +0 -2
- package/src/basic-syntax-plugin.ts +0 -1
- package/src/business-rule-plugin.ts +1 -2
- package/src/call-expression-plugin.ts +0 -1
- package/src/claims-plugin.ts +0 -1
- package/src/client-script-plugin.ts +1 -2
- package/src/column-plugin.ts +29 -9
- package/src/cross-scope-privilege-plugin.ts +1 -2
- package/src/dashboard/dashboard-plugin.ts +0 -2
- package/src/data-plugin.ts +0 -1
- package/src/data-policy-plugin.ts +333 -0
- package/src/email-notification-plugin.ts +8 -4
- package/src/flow/flow-logic/flow-logic-constants.ts +6 -0
- package/src/flow/flow-logic/flow-logic-diagnostics.ts +236 -58
- package/src/flow/flow-logic/flow-logic-plugin-helpers.ts +59 -6
- package/src/flow/flow-logic/flow-logic-plugin.ts +368 -38
- package/src/flow/flow-logic/flow-logic-shapes.ts +25 -0
- package/src/flow/plugins/approval-rules-plugin.ts +0 -1
- package/src/flow/plugins/flow-action-definition-plugin.ts +940 -208
- package/src/flow/plugins/flow-data-pill-plugin.ts +3 -5
- package/src/flow/plugins/flow-definition-plugin.ts +159 -26
- package/src/flow/plugins/flow-diagnostics-plugin.ts +89 -3
- package/src/flow/plugins/flow-instance-plugin.ts +26 -12
- package/src/flow/plugins/flow-trigger-instance-plugin.ts +0 -1
- package/src/flow/plugins/inline-script-plugin.ts +0 -1
- package/src/flow/plugins/step-definition-plugin.ts +0 -2
- package/src/flow/plugins/step-instance-plugin.ts +259 -65
- package/src/flow/plugins/trigger-plugin.ts +0 -2
- package/src/flow/plugins/wfa-datapill-plugin.ts +0 -1
- package/src/flow/utils/datapill-transformer.ts +13 -5
- package/src/flow/utils/flow-constants.ts +19 -1
- package/src/flow/utils/flow-io-to-record.ts +29 -19
- package/src/flow/utils/flow-pill-utils.ts +48 -0
- package/src/flow/utils/flow-stage-processor.ts +831 -0
- package/src/flow/utils/pill-string-parser.ts +29 -47
- package/src/flow/utils/utils.ts +39 -35
- package/src/form-plugin.ts +5 -15
- package/src/html-import-plugin.ts +0 -1
- package/src/import-sets-plugin.ts +0 -2
- package/src/inbound-email-action-plugin.ts +1 -2
- package/src/index.ts +7 -1
- package/src/instance-scan-plugin.ts +0 -7
- package/src/json-plugin.ts +0 -1
- package/src/list-plugin.ts +6 -2
- package/src/now-attach-plugin.ts +0 -1
- package/src/now-config-plugin.ts +0 -1
- package/src/now-id-plugin.ts +0 -1
- package/src/now-include-plugin.ts +0 -1
- package/src/now-ref-plugin.ts +0 -1
- package/src/now-unresolved-plugin.ts +0 -1
- package/src/package-json-plugin.ts +8 -3
- package/src/property-plugin.ts +0 -2
- package/src/record-plugin.ts +3 -3
- package/src/repack/lint/Rules.ts +1 -1
- package/src/rest-api-plugin.ts +7 -6
- package/src/role-plugin.ts +1 -2
- package/src/schedule-script/scheduled-script-plugin.ts +11 -5
- package/src/script-action-plugin.ts +0 -2
- package/src/script-include-plugin.ts +0 -4
- package/src/server-module-plugin/index.ts +2 -3
- package/src/service-catalog/catalog-clientscript-plugin.ts +0 -2
- package/src/service-catalog/catalog-item-plugin.ts +0 -2
- package/src/service-catalog/catalog-ui-policy-plugin.ts +0 -2
- package/src/service-catalog/sc-record-producer-plugin.ts +0 -2
- package/src/service-catalog/variable-set-plugin.ts +0 -2
- package/src/service-portal/angular-provider-plugin.ts +0 -2
- package/src/service-portal/dependency-plugin.ts +0 -2
- package/src/service-portal/header-footer-plugin.ts +0 -2
- package/src/service-portal/menu-plugin.ts +1 -2
- package/src/service-portal/page-plugin.ts +1 -2
- package/src/service-portal/page-route-map-plugin.ts +1 -2
- package/src/service-portal/portal-plugin.ts +0 -2
- package/src/service-portal/theme-plugin.ts +0 -2
- package/src/service-portal/widget-plugin.ts +0 -2
- package/src/sla-plugin.ts +0 -2
- package/src/static-content-plugin.ts +37 -4
- package/src/table-plugin.ts +118 -16
- package/src/ui-action-plugin.ts +30 -17
- package/src/ui-page-plugin.ts +188 -20
- package/src/ui-policy-plugin.ts +1 -2
- package/src/user-preference-plugin.ts +0 -2
- package/src/utils.ts +0 -15
- package/src/ux-list-menu-config-plugin.ts +0 -2
- package/src/view-plugin.ts +0 -1
- package/src/workspace-plugin.ts +0 -2
|
@@ -3,11 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FlowLogicPlugin = void 0;
|
|
4
4
|
const sdk_build_core_1 = require("@servicenow/sdk-build-core");
|
|
5
5
|
const flow_logic_constants_1 = require("./flow-logic-constants");
|
|
6
|
+
const flow_constants_1 = require("../utils/flow-constants");
|
|
6
7
|
const flow_instance_plugin_1 = require("../plugins/flow-instance-plugin");
|
|
7
8
|
const flow_logic_shapes_1 = require("./flow-logic-shapes");
|
|
8
9
|
const flow_logic_plugin_helpers_1 = require("./flow-logic-plugin-helpers");
|
|
9
10
|
const flow_logic_plugin_helpers_2 = require("./flow-logic-plugin-helpers");
|
|
10
11
|
const utils_1 = require("../utils/utils");
|
|
12
|
+
const arrow_function_plugin_1 = require("../../arrow-function-plugin");
|
|
13
|
+
const now_id_plugin_1 = require("../../now-id-plugin");
|
|
11
14
|
/**
|
|
12
15
|
* FlowLogicPlugin handles flow logic instances (If, ElseIf, Else, GoBackTo) in flow definitions.
|
|
13
16
|
*
|
|
@@ -60,7 +63,6 @@ const utils_1 = require("../utils/utils");
|
|
|
60
63
|
*/
|
|
61
64
|
exports.FlowLogicPlugin = sdk_build_core_1.Plugin.create({
|
|
62
65
|
name: 'FlowLogicPlugin',
|
|
63
|
-
docs: [],
|
|
64
66
|
records: {
|
|
65
67
|
sys_hub_flow_logic_instance_v2: {
|
|
66
68
|
relationships: {
|
|
@@ -83,12 +85,168 @@ exports.FlowLogicPlugin = sdk_build_core_1.Plugin.create({
|
|
|
83
85
|
if (!logicName || !(logicName in flow_logic_constants_1.FLOW_LOGIC_SYS_ID_MAP)) {
|
|
84
86
|
return { success: false };
|
|
85
87
|
}
|
|
86
|
-
const logicBodyShapes = [];
|
|
87
88
|
const flowSysId = record.get('flow').getValue();
|
|
89
|
+
// Parallel branches are metadata containers. Collapse them into arrow-function arguments rather than
|
|
90
|
+
// emitting standalone shapes.
|
|
91
|
+
if (logicName === flow_logic_constants_1.FLOW_LOGIC.DO_IN_PARALLEL) {
|
|
92
|
+
const branchRecords = descendants
|
|
93
|
+
.query('sys_hub_flow_logic_instance_v2', {
|
|
94
|
+
parent_ui_id: record.get('ui_id').getValue(),
|
|
95
|
+
flow: flowSysId,
|
|
96
|
+
logic_definition: flow_logic_constants_1.DO_IN_PARALLEL_BLOCK_SYS_ID,
|
|
97
|
+
})
|
|
98
|
+
.sort((a, b) => (0, utils_1.getOrder)(a) - (0, utils_1.getOrder)(b));
|
|
99
|
+
const branchArrows = [];
|
|
100
|
+
for (const branch of branchRecords) {
|
|
101
|
+
const branchUiId = branch.get('ui_id').getValue();
|
|
102
|
+
const branchDescendants = [
|
|
103
|
+
...descendants.query('sys_hub_sub_flow_instance_v2', {
|
|
104
|
+
parent_ui_id: branchUiId,
|
|
105
|
+
flow: flowSysId,
|
|
106
|
+
}),
|
|
107
|
+
...descendants.query('sys_hub_action_instance_v2', {
|
|
108
|
+
parent_ui_id: branchUiId,
|
|
109
|
+
flow: flowSysId,
|
|
110
|
+
}),
|
|
111
|
+
...descendants.query('sys_hub_flow_logic_instance_v2', {
|
|
112
|
+
parent_ui_id: branchUiId,
|
|
113
|
+
flow: flowSysId,
|
|
114
|
+
}),
|
|
115
|
+
]
|
|
116
|
+
// Catch records share their paired Try's parent (the branch ui_id). They are
|
|
117
|
+
// consumed by the Try's `wfa.flowLogic.tryCatch(...)` toShape via `connected_to`,
|
|
118
|
+
// so calling recordToShape on a Catch here would return `{ success: false }`
|
|
119
|
+
// (its `logic_definition` is not in FLOW_LOGIC_SYS_ID_MAP) and cascade the entire
|
|
120
|
+
// DoInParallel back to raw Records.
|
|
121
|
+
.filter((r) => r.getTable() !== 'sys_hub_flow_logic_instance_v2' ||
|
|
122
|
+
r.get('logic_definition').asString().getValue() !== flow_logic_constants_1.TRY_CATCH_CATCH_SYS_ID)
|
|
123
|
+
.sort((a, b) => (0, utils_1.getOrder)(a) - (0, utils_1.getOrder)(b));
|
|
124
|
+
const branchStatements = [];
|
|
125
|
+
for (const descendant of branchDescendants) {
|
|
126
|
+
const result = await transform.recordToShape(descendant, database, flow_instance_plugin_1.FlowInstancePlugin, exports.FlowLogicPlugin);
|
|
127
|
+
if (!result.success) {
|
|
128
|
+
return result;
|
|
129
|
+
}
|
|
130
|
+
branchStatements.push(result.value);
|
|
131
|
+
}
|
|
132
|
+
branchArrows.push(new arrow_function_plugin_1.ArrowFunctionShape({
|
|
133
|
+
source: branch,
|
|
134
|
+
parameters: [],
|
|
135
|
+
statements: branchStatements,
|
|
136
|
+
}));
|
|
137
|
+
}
|
|
138
|
+
const annotation = record.get('comment').asString().getValue();
|
|
139
|
+
const configArg = new sdk_build_core_1.ObjectShape({
|
|
140
|
+
source: record,
|
|
141
|
+
properties: {
|
|
142
|
+
...(annotation ? { annotation } : {}),
|
|
143
|
+
$id: now_id_plugin_1.NowIdShape.from(record),
|
|
144
|
+
},
|
|
145
|
+
});
|
|
146
|
+
return {
|
|
147
|
+
success: true,
|
|
148
|
+
value: new sdk_build_core_1.CallExpressionShape({
|
|
149
|
+
source: record,
|
|
150
|
+
callee: flow_logic_constants_1.FLOW_LOGIC.DO_IN_PARALLEL,
|
|
151
|
+
args: [configArg, ...branchArrows],
|
|
152
|
+
}),
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
// TryCatch is stored as two sibling top-level records linked by `connected_to`. Collapse the Try +
|
|
156
|
+
// paired Catch + each side's descendants into one `wfa.flowLogic.tryCatch(config, { try, catch })` call.
|
|
157
|
+
if (logicName === flow_logic_constants_1.FLOW_LOGIC.TRY_CATCH) {
|
|
158
|
+
const tryUiId = record.get('ui_id').getValue();
|
|
159
|
+
const catchRecord = database.get('sys_hub_flow_logic_instance_v2', {
|
|
160
|
+
connected_to: tryUiId,
|
|
161
|
+
logic_definition: flow_logic_constants_1.TRY_CATCH_CATCH_SYS_ID,
|
|
162
|
+
flow: flowSysId,
|
|
163
|
+
});
|
|
164
|
+
if (!catchRecord) {
|
|
165
|
+
return { success: false };
|
|
166
|
+
}
|
|
167
|
+
const catchUiId = catchRecord.get('ui_id').getValue();
|
|
168
|
+
// Try's body descendants. Filter out any sibling Catch records that share the same parent_ui_id;
|
|
169
|
+
// they are consumed by their paired Try sibling and are not part of the Try's body.
|
|
170
|
+
const tryDescendants = [
|
|
171
|
+
...descendants.query('sys_hub_sub_flow_instance_v2', {
|
|
172
|
+
parent_ui_id: tryUiId,
|
|
173
|
+
flow: flowSysId,
|
|
174
|
+
}),
|
|
175
|
+
...descendants.query('sys_hub_action_instance_v2', {
|
|
176
|
+
parent_ui_id: tryUiId,
|
|
177
|
+
flow: flowSysId,
|
|
178
|
+
}),
|
|
179
|
+
...descendants.query('sys_hub_flow_logic_instance_v2', {
|
|
180
|
+
parent_ui_id: tryUiId,
|
|
181
|
+
flow: flowSysId,
|
|
182
|
+
}),
|
|
183
|
+
]
|
|
184
|
+
.filter((r) => r.getTable() !== 'sys_hub_flow_logic_instance_v2' ||
|
|
185
|
+
r.get('logic_definition').asString().getValue() !== flow_logic_constants_1.TRY_CATCH_CATCH_SYS_ID)
|
|
186
|
+
.sort((a, b) => (0, utils_1.getOrder)(a) - (0, utils_1.getOrder)(b));
|
|
187
|
+
// Catch's body descendants. The Catch can be a top-level sibling of the Try (not in `descendants`)
|
|
188
|
+
// or a nested sibling inside another block, so query the flat database to handle both uniformly.
|
|
189
|
+
const matchesCatchBody = (r) => r.get('parent_ui_id').getValue() === catchUiId && r.get('flow').getValue() === flowSysId;
|
|
190
|
+
const catchDescendants = [
|
|
191
|
+
...database.query('sys_hub_sub_flow_instance_v2').filter(matchesCatchBody),
|
|
192
|
+
...database.query('sys_hub_action_instance_v2').filter(matchesCatchBody),
|
|
193
|
+
...database.query('sys_hub_flow_logic_instance_v2').filter(matchesCatchBody),
|
|
194
|
+
].sort((a, b) => (0, utils_1.getOrder)(a) - (0, utils_1.getOrder)(b));
|
|
195
|
+
const tryStatements = [];
|
|
196
|
+
for (const desc of tryDescendants) {
|
|
197
|
+
const result = await transform.recordToShape(desc, database, flow_instance_plugin_1.FlowInstancePlugin, exports.FlowLogicPlugin);
|
|
198
|
+
if (!result.success) {
|
|
199
|
+
return result;
|
|
200
|
+
}
|
|
201
|
+
tryStatements.push(result.value);
|
|
202
|
+
}
|
|
203
|
+
const catchStatements = [];
|
|
204
|
+
for (const desc of catchDescendants) {
|
|
205
|
+
const result = await transform.recordToShape(desc, database, flow_instance_plugin_1.FlowInstancePlugin, exports.FlowLogicPlugin);
|
|
206
|
+
if (!result.success) {
|
|
207
|
+
return result;
|
|
208
|
+
}
|
|
209
|
+
catchStatements.push(result.value);
|
|
210
|
+
}
|
|
211
|
+
const tryArrow = new arrow_function_plugin_1.ArrowFunctionShape({
|
|
212
|
+
source: record,
|
|
213
|
+
parameters: [],
|
|
214
|
+
statements: tryStatements,
|
|
215
|
+
});
|
|
216
|
+
const catchArrow = new arrow_function_plugin_1.ArrowFunctionShape({
|
|
217
|
+
source: catchRecord,
|
|
218
|
+
parameters: [],
|
|
219
|
+
statements: catchStatements,
|
|
220
|
+
});
|
|
221
|
+
const handlersArg = new sdk_build_core_1.ObjectShape({
|
|
222
|
+
source: record,
|
|
223
|
+
properties: {
|
|
224
|
+
try: tryArrow,
|
|
225
|
+
catch: catchArrow,
|
|
226
|
+
},
|
|
227
|
+
});
|
|
228
|
+
const annotation = record.get('comment').asString().getValue();
|
|
229
|
+
const configArg = new sdk_build_core_1.ObjectShape({
|
|
230
|
+
source: record,
|
|
231
|
+
properties: {
|
|
232
|
+
...(annotation ? { annotation } : {}),
|
|
233
|
+
$id: now_id_plugin_1.NowIdShape.from(record),
|
|
234
|
+
},
|
|
235
|
+
});
|
|
236
|
+
return {
|
|
237
|
+
success: true,
|
|
238
|
+
value: new sdk_build_core_1.CallExpressionShape({
|
|
239
|
+
source: record,
|
|
240
|
+
callee: flow_logic_constants_1.FLOW_LOGIC.TRY_CATCH,
|
|
241
|
+
args: [configArg, handlersArg],
|
|
242
|
+
}),
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
const logicBodyShapes = [];
|
|
88
246
|
const allDescendants = [
|
|
89
247
|
...descendants.query('sys_hub_sub_flow_instance_v2', {
|
|
90
248
|
parent_ui_id: record.get('ui_id').getValue(),
|
|
91
|
-
flow: flowSysId,
|
|
249
|
+
flow: flowSysId,
|
|
92
250
|
}),
|
|
93
251
|
...descendants.query('sys_hub_action_instance_v2', {
|
|
94
252
|
parent_ui_id: record.get('ui_id').getValue(),
|
|
@@ -98,7 +256,13 @@ exports.FlowLogicPlugin = sdk_build_core_1.Plugin.create({
|
|
|
98
256
|
parent_ui_id: record.get('ui_id').getValue(),
|
|
99
257
|
flow: flowSysId,
|
|
100
258
|
}),
|
|
101
|
-
]
|
|
259
|
+
]
|
|
260
|
+
// Skip Catch records — they share `parent_ui_id` with their paired Try sibling and are consumed
|
|
261
|
+
// by that Try's `wfa.flowLogic.tryCatch(...)` shape via `connected_to`. Including them here would
|
|
262
|
+
// call the standard flow-logic toShape on a Catch sys_id (which isn't in FLOW_LOGIC_SYS_ID_MAP)
|
|
263
|
+
// and cascade a `{ success: false }` up, dropping the entire enclosing flow back to raw Records.
|
|
264
|
+
.filter((r) => r.getTable() !== 'sys_hub_flow_logic_instance_v2' ||
|
|
265
|
+
r.get('logic_definition').asString().getValue() !== flow_logic_constants_1.TRY_CATCH_CATCH_SYS_ID);
|
|
102
266
|
// Sort descendants by order field to ensure correct statement sequencing
|
|
103
267
|
allDescendants.sort((a, b) => (0, utils_1.getOrder)(a) - (0, utils_1.getOrder)(b));
|
|
104
268
|
for (const record of allDescendants) {
|
|
@@ -115,7 +279,9 @@ exports.FlowLogicPlugin = sdk_build_core_1.Plugin.create({
|
|
|
115
279
|
args: flowLogicArguments,
|
|
116
280
|
});
|
|
117
281
|
if (logicName === flow_logic_constants_1.FLOW_LOGIC.WAIT_FOR_A_DURATION) {
|
|
118
|
-
|
|
282
|
+
// A `WaitForADuration` inside a `DoInParallel` branch carries a composite order like `17➛18`;
|
|
283
|
+
// strip the separator so the generated identifier is valid JS.
|
|
284
|
+
const order = (0, utils_1.getOrderSuffix)(record.get('order')?.getValue() ?? '');
|
|
119
285
|
const variableName = (0, utils_1.getDirectVariableIdentifier)(record.getOriginalSource()) ?? `waitForDuration_${order}`;
|
|
120
286
|
return {
|
|
121
287
|
success: true,
|
|
@@ -144,14 +310,11 @@ exports.FlowLogicPlugin = sdk_build_core_1.Plugin.create({
|
|
|
144
310
|
return result;
|
|
145
311
|
}
|
|
146
312
|
const instanceRecord = result.value;
|
|
147
|
-
const allInstances = [];
|
|
148
|
-
const functions = [];
|
|
149
313
|
const relatedRecords = [];
|
|
150
|
-
// Special handling for DoInParallel - create separate flow logic records for each arrow function
|
|
151
314
|
if ((0, flow_logic_plugin_helpers_1.isDoInParallelShape)(expr)) {
|
|
152
315
|
const parallelFunctions = expr.getParallelFunctions();
|
|
153
316
|
const mainUiId = instanceRecord.get('ui_id').getValue();
|
|
154
|
-
const
|
|
317
|
+
const mainNowIdKey = instanceRecord.getId().getNowIdKey() ?? instanceRecord.getId().getValue();
|
|
155
318
|
for (let index = 0; index < parallelFunctions.length; index++) {
|
|
156
319
|
const parallelFunction = parallelFunctions[index];
|
|
157
320
|
if (!parallelFunction) {
|
|
@@ -160,49 +323,107 @@ exports.FlowLogicPlugin = sdk_build_core_1.Plugin.create({
|
|
|
160
323
|
const statements = parallelFunction
|
|
161
324
|
.getStatements()
|
|
162
325
|
.filter((stmt) => !(stmt instanceof sdk_build_core_1.UndefinedShape));
|
|
326
|
+
// Empty `() => {}` branches are intentionally elided. There is no Flow Designer state
|
|
327
|
+
// to represent an empty parallel branch, and emitting one wouldn't round-trip. `index`
|
|
328
|
+
// still advances so non-empty branches keep their `_block_${index}` slot stable across
|
|
329
|
+
// rebuilds even when an earlier branch is empty.
|
|
163
330
|
if (statements.length === 0) {
|
|
164
331
|
continue;
|
|
165
332
|
}
|
|
166
|
-
|
|
333
|
+
// Deterministic `NowID` so rebuilds produce the same `sys_id`.
|
|
334
|
+
const parallelBlockNowId = new now_id_plugin_1.NowIdShape({
|
|
335
|
+
source: parallelFunction,
|
|
336
|
+
id: `${mainNowIdKey}_block_${index}`,
|
|
337
|
+
});
|
|
167
338
|
const parallelRecord = await factory.createRecord({
|
|
168
339
|
source: parallelFunction,
|
|
169
340
|
table: 'sys_hub_flow_logic_instance_v2',
|
|
170
|
-
explicitId:
|
|
341
|
+
explicitId: parallelBlockNowId,
|
|
171
342
|
properties: {
|
|
172
343
|
logic_definition: flow_logic_constants_1.DO_IN_PARALLEL_BLOCK_SYS_ID,
|
|
173
344
|
values: (0, flow_logic_plugin_helpers_1.createEmptyFlowLogicValues)(),
|
|
174
345
|
},
|
|
175
346
|
});
|
|
176
347
|
const parallelUiId = (0, utils_1.sysIdToUuid)(parallelRecord.getId().getValue());
|
|
177
|
-
const finalParallelRecord =
|
|
348
|
+
const finalParallelRecord = parallelRecord.merge({
|
|
178
349
|
ui_id: parallelUiId,
|
|
179
350
|
parent_ui_id: mainUiId,
|
|
180
351
|
});
|
|
181
352
|
relatedRecords.push(finalParallelRecord);
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
.forEach((stmt) => {
|
|
187
|
-
const record = stmt.is(sdk_build_core_1.VariableStatementShape)
|
|
188
|
-
? stmt.getInitializer()?.asRecord()
|
|
189
|
-
: stmt.asRecord();
|
|
190
|
-
if (record) {
|
|
191
|
-
relatedRecords.push(record.merge({ parent_ui_id: parallelUiId }));
|
|
353
|
+
for (const statement of statements) {
|
|
354
|
+
const childRecord = await (0, utils_1.getRecordFromFlowInstaceShape)(statement, transform);
|
|
355
|
+
if (childRecord) {
|
|
356
|
+
relatedRecords.push(mergeParentChildUIID(childRecord, parallelUiId));
|
|
192
357
|
}
|
|
193
|
-
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
return { success: true, value: instanceRecord.with(...relatedRecords) };
|
|
361
|
+
}
|
|
362
|
+
// Special handling for TryCatch — Flow Designer stores TryCatch as two top-level sibling records: a
|
|
363
|
+
// Try (logic_definition = TRY_CATCH) and a paired Catch (logic_definition = TRY_CATCH_CATCH) linked
|
|
364
|
+
// via `connected_to` from Catch → Try.ui_id. Try-body statements have `parent_ui_id = Try.ui_id`;
|
|
365
|
+
// catch-body statements have `parent_ui_id = Catch.ui_id`.
|
|
366
|
+
if ((0, flow_logic_plugin_helpers_1.isTryCatchShape)(expr)) {
|
|
367
|
+
const tryUiId = instanceRecord.get('ui_id').getValue();
|
|
368
|
+
const mainNowId = instanceRecord.getId().getNowIdKey();
|
|
369
|
+
const catchSysId = `${mainNowId}_catch`;
|
|
370
|
+
const catchPartialRecord = await factory.createRecord({
|
|
371
|
+
source: expr,
|
|
372
|
+
table: 'sys_hub_flow_logic_instance_v2',
|
|
373
|
+
explicitId: catchSysId,
|
|
374
|
+
properties: {
|
|
375
|
+
logic_definition: flow_logic_constants_1.TRY_CATCH_CATCH_SYS_ID,
|
|
376
|
+
values: (0, flow_logic_plugin_helpers_1.createEmptyFlowLogicValues)(),
|
|
377
|
+
},
|
|
378
|
+
});
|
|
379
|
+
const catchUiId = (0, utils_1.sysIdToUuid)(catchPartialRecord.getId().getValue());
|
|
380
|
+
const catchRecord = catchPartialRecord.merge({
|
|
381
|
+
ui_id: catchUiId,
|
|
382
|
+
connected_to: tryUiId,
|
|
383
|
+
});
|
|
384
|
+
const tryStatements = expr
|
|
385
|
+
.getTryHandler()
|
|
386
|
+
?.getStatements()
|
|
387
|
+
.filter((stmt) => !(stmt instanceof sdk_build_core_1.UndefinedShape)) ?? [];
|
|
388
|
+
for (const stmt of tryStatements) {
|
|
389
|
+
const childRecord = await (0, utils_1.getRecordFromFlowInstaceShape)(stmt, transform);
|
|
390
|
+
if (childRecord) {
|
|
391
|
+
relatedRecords.push(mergeParentChildUIID(childRecord, tryUiId));
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
// Push Catch *after* the Try-body statements so the flat-order assignment in
|
|
395
|
+
// flow-definition-plugin produces Try → tryBody → Catch → catchBody. Flow Designer
|
|
396
|
+
// uses the `order` field to render the visual flow; emitting Catch at order=Try+1
|
|
397
|
+
// makes FD interleave the Try body under the Catch arm.
|
|
398
|
+
relatedRecords.push(catchRecord);
|
|
399
|
+
const catchStatements = expr
|
|
400
|
+
.getCatchHandler()
|
|
401
|
+
?.getStatements()
|
|
402
|
+
.filter((stmt) => !(stmt instanceof sdk_build_core_1.UndefinedShape)) ?? [];
|
|
403
|
+
for (const stmt of catchStatements) {
|
|
404
|
+
const childRecord = await (0, utils_1.getRecordFromFlowInstaceShape)(stmt, transform);
|
|
405
|
+
if (childRecord) {
|
|
406
|
+
relatedRecords.push(mergeParentChildUIID(childRecord, catchUiId));
|
|
407
|
+
}
|
|
194
408
|
}
|
|
195
409
|
return { success: true, value: instanceRecord.with(...relatedRecords) };
|
|
196
410
|
}
|
|
197
411
|
// Standard handling for other flow logic types
|
|
412
|
+
const allInstances = [];
|
|
413
|
+
const functions = [];
|
|
198
414
|
if ((0, flow_logic_plugin_helpers_1.isConditionalLogicShape)(expr) || (0, flow_logic_plugin_helpers_1.isForEachShape)(expr)) {
|
|
199
415
|
functions.push(expr.getBody());
|
|
200
416
|
}
|
|
201
417
|
functions.forEach((fn) => {
|
|
202
418
|
allInstances.push(...(fn.getStatements().filter((stmt) => !(stmt instanceof sdk_build_core_1.UndefinedShape)) ?? []));
|
|
203
419
|
});
|
|
204
|
-
//
|
|
205
|
-
for (const
|
|
420
|
+
// For instances with body, set `parent_ui_id` for child records.
|
|
421
|
+
for (const v of allInstances) {
|
|
422
|
+
// Skip wfa.stage() calls — they are handled by the flow definition plugin
|
|
423
|
+
const callExpr = v instanceof sdk_build_core_1.VariableStatementShape ? v.getInitializer() : v;
|
|
424
|
+
if (callExpr instanceof sdk_build_core_1.CallExpressionShape && callExpr.getCallee() === flow_constants_1.STAGE_API_NAME) {
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
206
427
|
const record = await (0, utils_1.getRecordFromFlowInstaceShape)(v, transform);
|
|
207
428
|
if (record) {
|
|
208
429
|
if ((0, flow_logic_plugin_helpers_1.isForEachShape)(expr)) {
|
|
@@ -211,12 +432,10 @@ exports.FlowLogicPlugin = sdk_build_core_1.Plugin.create({
|
|
|
211
432
|
const parameters = forEachBody.getParameters();
|
|
212
433
|
const parameterName = parameters.length > 0 && parameters[0] ? parameters[0].getName() : 'item';
|
|
213
434
|
const updatedRecord = updateRecordsWithDataPills(record, instanceRecord, parameterName, logger);
|
|
214
|
-
relatedRecords.push(updatedRecord.
|
|
215
|
-
parent_ui_id: instanceRecord.get('ui_id').getValue(),
|
|
216
|
-
}));
|
|
435
|
+
relatedRecords.push(mergeParentChildUIID(updatedRecord, instanceRecord.get('ui_id').getValue()));
|
|
217
436
|
}
|
|
218
437
|
else {
|
|
219
|
-
relatedRecords.push(record
|
|
438
|
+
relatedRecords.push(mergeParentChildUIID(record, instanceRecord.get('ui_id').getValue()));
|
|
220
439
|
}
|
|
221
440
|
}
|
|
222
441
|
}
|
|
@@ -225,6 +444,37 @@ exports.FlowLogicPlugin = sdk_build_core_1.Plugin.create({
|
|
|
225
444
|
},
|
|
226
445
|
],
|
|
227
446
|
});
|
|
447
|
+
/**
|
|
448
|
+
* Merges `parent_ui_id` onto a flow-logic child record and propagates the same `parent_ui_id` onto any TryCatch Catch
|
|
449
|
+
* sibling record nested in the child's direct `related` list.
|
|
450
|
+
*
|
|
451
|
+
* Catch records are emitted by the TryCatch toRecord branch as siblings of their paired Try (linked via
|
|
452
|
+
* `connected_to`), but they live in `Try.getRelated()` because `toRecord` can return only one record. When an outer
|
|
453
|
+
* flow-logic walker (forEach, conditional, doInParallel, tryCatch) assigns `parent_ui_id` to the child Try, a plain
|
|
454
|
+
* `record.merge(...)` does not touch the related Catch, leaving its `parent_ui_id` empty.
|
|
455
|
+
*
|
|
456
|
+
* Flow Designer requires the Catch and its paired Try to share the same `parent_ui_id` (they are sibling blocks).
|
|
457
|
+
* This helper propagates the value to any direct-related Catch record.
|
|
458
|
+
*
|
|
459
|
+
* @param record - The child flow-logic record being parented under an outer container. Typically, a Try record
|
|
460
|
+
* returned from a nested TryCatch's `toRecord`, but may be any flow-logic instance record. Its direct `related` list
|
|
461
|
+
* is scanned for Catch siblings; deeper descendants are left untouched (each layer of the walker is responsible for
|
|
462
|
+
* its own children).
|
|
463
|
+
* @param parentUiId - The `ui_id` of the enclosing flow-logic block (the outer forEach / conditional / DoInParallel
|
|
464
|
+
* block / Try / Catch). Set as `parent_ui_id` on `record` and on every direct-related Catch record.
|
|
465
|
+
* @returns A new `Record` with `parent_ui_id` applied to the top-level record and to any direct-related Catch
|
|
466
|
+
* siblings; all other related records are preserved unchanged.
|
|
467
|
+
*/
|
|
468
|
+
function mergeParentChildUIID(record, parentUiId) {
|
|
469
|
+
const related = record.getRelated();
|
|
470
|
+
const updatedRelated = related.map((r) => {
|
|
471
|
+
if (r.get('logic_definition')?.getValue() === flow_logic_constants_1.TRY_CATCH_CATCH_SYS_ID) {
|
|
472
|
+
return r.merge({ parent_ui_id: parentUiId });
|
|
473
|
+
}
|
|
474
|
+
return r;
|
|
475
|
+
});
|
|
476
|
+
return record.merge({ parent_ui_id: parentUiId }).with(...updatedRelated);
|
|
477
|
+
}
|
|
228
478
|
/**
|
|
229
479
|
* Recursively updates data pill references in forEach loop records
|
|
230
480
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-logic-plugin.js","sourceRoot":"","sources":["../../../src/flow/flow-logic/flow-logic-plugin.ts"],"names":[],"mappings":";;;AAAA,+DAQmC;AACnC,iEAAuH;AACvH,0EAAoE;AACpE,2DAA4D;AAC5D,2EAKoC;AACpC,2EAA+F;AAC/F,0CAAkH;AAGlH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACU,QAAA,eAAe,GAAG,uBAAM,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,iBAA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CAAC,IAAI,CAAC,0BAA0B,CAAC,GAAG,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC,CAAA;QACtG,CAAC;QACD,OAAO,aAAa,CAAC,IAAI,CAAC,GAAG,qBAAqB,CAAC,CAAA;IACvD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,MAAM,CAAC,KAAK,CAAC,kDAAkD,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAA;QAChH,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,CAAA;IACzC,CAAC;AACL,CAAC"}
|
|
@@ -70,6 +70,21 @@ export declare class SetFlowVariablesInstanceShape extends FlowLogicInstanceShap
|
|
|
70
70
|
getVariablesToSet(): ObjectShape;
|
|
71
71
|
getVariablesToSetAsString(): string;
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* Shape class for AppendToFlowVariables logic.
|
|
75
|
+
* Handles the pattern: AppendToFlowVariables(config, variables, values)
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* AppendToFlowVariables(
|
|
79
|
+
* { $id: Now.ID['append_1'] },
|
|
80
|
+
* params.flowVariables,
|
|
81
|
+
* { objects: { name: 'item' } }
|
|
82
|
+
* )
|
|
83
|
+
*/
|
|
84
|
+
export declare class AppendToFlowVariablesInstanceShape extends FlowLogicInstanceShape {
|
|
85
|
+
getValuesToAppend(): ObjectShape;
|
|
86
|
+
getValuesToAppendAsString(): string;
|
|
87
|
+
}
|
|
73
88
|
/**
|
|
74
89
|
* Shape class for AssignSubflowOutputs logic.
|
|
75
90
|
* Handles the pattern: AssignSubflowOutputs(config, outputs)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DoInParallelInstanceShape = exports.AssignSubflowOutputsInstanceShape = exports.SetFlowVariablesInstanceShape = exports.TryCatchInstanceShape = exports.GoBackToInstanceShape = exports.ForEachInstanceShape = exports.ConditionalLogicInstanceShape = exports.FlowLogicInstanceShape = void 0;
|
|
3
|
+
exports.DoInParallelInstanceShape = exports.AssignSubflowOutputsInstanceShape = exports.AppendToFlowVariablesInstanceShape = exports.SetFlowVariablesInstanceShape = exports.TryCatchInstanceShape = exports.GoBackToInstanceShape = exports.ForEachInstanceShape = exports.ConditionalLogicInstanceShape = exports.FlowLogicInstanceShape = void 0;
|
|
4
4
|
exports.createFlowLogicInstanceShape = createFlowLogicInstanceShape;
|
|
5
5
|
const sdk_build_core_1 = require("@servicenow/sdk-build-core");
|
|
6
6
|
const arrow_function_plugin_1 = require("../../arrow-function-plugin");
|
|
@@ -118,6 +118,28 @@ class SetFlowVariablesInstanceShape extends FlowLogicInstanceShape {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
exports.SetFlowVariablesInstanceShape = SetFlowVariablesInstanceShape;
|
|
121
|
+
/**
|
|
122
|
+
* Shape class for AppendToFlowVariables logic.
|
|
123
|
+
* Handles the pattern: AppendToFlowVariables(config, variables, values)
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* AppendToFlowVariables(
|
|
127
|
+
* { $id: Now.ID['append_1'] },
|
|
128
|
+
* params.flowVariables,
|
|
129
|
+
* { objects: { name: 'item' } }
|
|
130
|
+
* )
|
|
131
|
+
*/
|
|
132
|
+
class AppendToFlowVariablesInstanceShape extends FlowLogicInstanceShape {
|
|
133
|
+
getValuesToAppend() {
|
|
134
|
+
return this.getArgument(2)?.as(sdk_build_core_1.ObjectShape);
|
|
135
|
+
}
|
|
136
|
+
getValuesToAppendAsString() {
|
|
137
|
+
const variables = this.getValuesToAppend();
|
|
138
|
+
const entries = variables.entries({ resolve: false });
|
|
139
|
+
return Array.from(entries, ([key]) => key).join(',');
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
exports.AppendToFlowVariablesInstanceShape = AppendToFlowVariablesInstanceShape;
|
|
121
143
|
/**
|
|
122
144
|
* Shape class for AssignSubflowOutputs logic.
|
|
123
145
|
* Handles the pattern: AssignSubflowOutputs(config, outputs)
|
|
@@ -186,6 +208,8 @@ function createFlowLogicInstanceShape(expr, callee, args) {
|
|
|
186
208
|
return new DoInParallelInstanceShape(expr, callee, args);
|
|
187
209
|
case flow_logic_constants_1.FLOW_LOGIC.SET_FLOW_VARIABLES:
|
|
188
210
|
return new SetFlowVariablesInstanceShape(expr, callee, args);
|
|
211
|
+
case flow_logic_constants_1.FLOW_LOGIC.APPEND_TO_FLOW_VARIABLES:
|
|
212
|
+
return new AppendToFlowVariablesInstanceShape(expr, callee, args);
|
|
189
213
|
case flow_logic_constants_1.FLOW_LOGIC.ASSIGN_SUBFLOW_OUTPUTS:
|
|
190
214
|
return new AssignSubflowOutputsInstanceShape(expr, callee, args);
|
|
191
215
|
case flow_logic_constants_1.FLOW_LOGIC.WAIT_FOR_A_DURATION:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-logic-shapes.js","sourceRoot":"","sources":["../../../src/flow/flow-logic/flow-logic-shapes.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"flow-logic-shapes.js","sourceRoot":"","sources":["../../../src/flow/flow-logic/flow-logic-shapes.ts"],"names":[],"mappings":";;;AAiNA,oEA8BC;AA/OD,+DAMmC;AACnC,uEAAgE;AAChE,uDAAgD;AAChD,iEAAmD;AACnD,sDAAsD;AAEtD;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,6BAAe;IACvD,SAAS;QACL,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,4BAAW,CAAC,CAAA;IAC9C,CAAC;IAED,QAAQ;QACJ,OAAO,IAAI,CAAC,SAAS,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,0BAAU,CAAC,CAAA;IACrD,CAAC;IAED,aAAa;QACT,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C,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;QACpE,KAAK,iCAAU,CAAC,mBAAmB,CAAC;QACpC,KAAK,iCAAU,CAAC,OAAO,CAAC;QACxB,KAAK,iCAAU,CAAC,QAAQ,CAAC;QACzB,KAAK,iCAAU,CAAC,cAAc;YAC1B,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;QAEzD;YACI,6DAA6D;YAC7D,MAAM,IAAI,KAAK,CAAC,4BAA4B,MAAM,EAAE,CAAC,CAAA;IAC7D,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval-rules-plugin.js","sourceRoot":"","sources":["../../../src/flow/plugins/approval-rules-plugin.ts"],"names":[],"mappings":";;;AAAA,+DAAmD;AACnD,4DAA6F;AAC7F,sDAA+E;AAC/E,uCAAmD;AAEtC,QAAA,mBAAmB,GAAG,uBAAM,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,qBAAqB;IAC3B,
|
|
1
|
+
{"version":3,"file":"approval-rules-plugin.js","sourceRoot":"","sources":["../../../src/flow/plugins/approval-rules-plugin.ts"],"names":[],"mappings":";;;AAAA,+DAAmD;AACnD,4DAA6F;AAC7F,sDAA+E;AAC/E,uCAAmD;AAEtC,QAAA,mBAAmB,GAAG,uBAAM,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,qBAAqB;IAC3B,KAAK,EAAE;QACH;YACI,IAAI,EAAE,gBAAgB;YACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;YACrB,UAAU,EAAE,IAAI;YAChB,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE;gBAC7B,MAAM,MAAM,GAAG,IAAA,6BAAqB,EAAC,IAAI,CAAC,CAAA;gBAC1C,IAAI,MAAM,KAAK,wCAAuB,IAAI,MAAM,KAAK,2CAA0B,EAAE,CAAC;oBAC9E,OAAO,EAAE,OAAO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