@acorex-platform/module-workflow-management-client 1.0.2 → 2.0.0-beta.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/fesm2022/{acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-BcOBHoOK.mjs → acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-BXlJXZCZ.mjs} +823 -567
- package/fesm2022/acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-BXlJXZCZ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-BPa0Sh6Z.mjs → acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-CCrfObJV.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-BPa0Sh6Z.mjs.map → acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-CCrfObJV.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-DuYGXzAL.mjs → acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-BDfqjyXH.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-DuYGXzAL.mjs.map → acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-BDfqjyXH.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-index-Bx8vYkYe.mjs → acorex-platform-module-workflow-management-client-commands-ISHAdB1W.mjs} +9 -8
- package/fesm2022/acorex-platform-module-workflow-management-client-commands-ISHAdB1W.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-automation.mjs +1 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-automation.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-Drne-WcE.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-BvPz8y4z.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-Drne-WcE.mjs.map → acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-BvPz8y4z.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-3VLEu-L6.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-DyB1oUwY.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-3VLEu-L6.mjs.map → acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-DyB1oUwY.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-ClVokZpw.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-DXu2hFJW.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-ClVokZpw.mjs.map → acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-DXu2hFJW.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-BY4uwLMZ.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-CcCT3L9D.mjs} +3 -3
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-CcCT3L9D.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-DN9KS_mu.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-BKYn5nnd.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-DN9KS_mu.mjs.map → acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-BKYn5nnd.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-BnfbJExU.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-Bg_3eDOz.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-BnfbJExU.mjs.map → acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-Bg_3eDOz.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts.mjs +34 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-execute-workflow-task-action.command-D117Kcca.mjs +245 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-execute-workflow-task-action.command-D117Kcca.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workflow-management-client-execute-workflow-with-input.command-BFdyJ4rC.mjs → acorex-platform-module-workflow-management-client-execute-workflow-with-input.command-8fwqrqCV.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-execute-workflow-with-input.command-BFdyJ4rC.mjs.map → acorex-platform-module-workflow-management-client-execute-workflow-with-input.command-8fwqrqCV.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-execute-workflow.command-D1AQsYgn.mjs → acorex-platform-module-workflow-management-client-execute-workflow.command-CnQgIVaj.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-execute-workflow.command-D1AQsYgn.mjs.map → acorex-platform-module-workflow-management-client-execute-workflow.command-CnQgIVaj.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-save-workflow-definition-activities.command-spFF77AO.mjs → acorex-platform-module-workflow-management-client-save-workflow-definition-activities.command-CvFHyST8.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-save-workflow-definition-activities.command-spFF77AO.mjs.map → acorex-platform-module-workflow-management-client-save-workflow-definition-activities.command-CvFHyST8.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-CMVZYS4y.mjs → acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-D7w2TNxB.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-CMVZYS4y.mjs.map → acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-D7w2TNxB.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-configurator-widget-column.component-D0E2zjIA.mjs → acorex-platform-module-workflow-management-client-workflow-configurator-widget-column.component-DV8K0otJ.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-configurator-widget-column.component-D0E2zjIA.mjs.map → acorex-platform-module-workflow-management-client-workflow-configurator-widget-column.component-DV8K0otJ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-configurator-widget-edit.component-CVTeOv-q.mjs → acorex-platform-module-workflow-management-client-workflow-configurator-widget-edit.component-DPMtUBxM.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-configurator-widget-edit.component-CVTeOv-q.mjs.map → acorex-platform-module-workflow-management-client-workflow-configurator-widget-edit.component-DPMtUBxM.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-index-B0-OPKmr.mjs → acorex-platform-module-workflow-management-client-workflow-definition-activities-page-DgagKVhS.mjs} +4 -4
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-definition-activities-page-DgagKVhS.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workflow-management-client-index-C8nsbDAw.mjs → acorex-platform-module-workflow-management-client-workflow-instance-activity-instances-page-CE7L5ZDi.mjs} +4 -4
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-instance-activity-instances-page-CE7L5ZDi.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-live-dashboard.queries--9NtYkau.mjs → acorex-platform-module-workflow-management-client-workflow-live-dashboard.queries-DamdqV3a.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-live-dashboard.queries--9NtYkau.mjs.map → acorex-platform-module-workflow-management-client-workflow-live-dashboard.queries-DamdqV3a.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-CHVdaY4M.mjs → acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-CofkxzF1.mjs} +9 -9
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-CHVdaY4M.mjs.map → acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-CofkxzF1.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-AnJ-Pywf.mjs → acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-ChMzrVoq.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-AnJ-Pywf.mjs.map → acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-ChMzrVoq.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-34kIeL5C.mjs → acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-CEfYaxTL.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-34kIeL5C.mjs.map → acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-CEfYaxTL.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-task-popover.component-BXutLQAO.mjs → acorex-platform-module-workflow-management-client-workflow-task-popover.component-V3Spc1Dn.mjs} +14 -9
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-task-popover.component-V3Spc1Dn.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client.mjs +1 -1
- package/i18n/en-AU/workflow-management.json +26 -1
- package/i18n/en-US/workflow-management.json +26 -1
- package/i18n/fa-IR/workflow-management.json +26 -1
- package/package.json +2 -2
- package/types/acorex-platform-module-workflow-management-client-contracts.d.ts +124 -2
- package/types/acorex-platform-module-workflow-management-client.d.ts +73 -58
- package/fesm2022/acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-BcOBHoOK.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-BY4uwLMZ.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-index-B0-OPKmr.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-index-Bx8vYkYe.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-index-C8nsbDAw.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-task-popover.component-BXutLQAO.mjs.map +0 -1
|
@@ -54,4 +54,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
54
54
|
}] });
|
|
55
55
|
|
|
56
56
|
export { AXMActivityCommandConfiguratorWidgetColumnComponent };
|
|
57
|
-
//# sourceMappingURL=acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-
|
|
57
|
+
//# sourceMappingURL=acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-CCrfObJV.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-CCrfObJV.mjs","sources":["../../../../libs/modules/workflow-management/client/src/lib/features/activity-command-configurator/activity-command-configurator-widget-column.component.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { resolveMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPColumnWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n} from '@angular/core';\nimport type { ActivityCommandValue } from './activity-command-configurator.types';\n\n//#endregion\n\n//#region ---- Component ----\n\n@Component({\n selector: 'axm-activity-command-configurator-widget-column',\n template: `\n @if (displayTitle()) {\n <span [title]=\"displayTitle()\" class=\"text-xs font-medium\">{{\n displayTitle()\n }}</span>\n } @else {\n <span class=\"text-muted\">---</span>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [],\n inputs: ['rawValue', 'rowData'],\n})\nexport class AXMActivityCommandConfiguratorWidgetColumnComponent extends AXPColumnWidgetComponent<ActivityCommandValue> {\n private readonly translation = inject(AXTranslationService);\n\n protected displayTitle = computed(() => {\n const value = this.rawValue as ActivityCommandValue | undefined;\n const locale = this.translation.getActiveLang();\n const resolvedTitle = resolveMultiLanguageString(value?.title, locale).trim();\n if (resolvedTitle) {\n // Catalog keys (`@scope:...`) still go through translation.resolve.\n return this.translation.resolve(resolvedTitle) || resolvedTitle;\n }\n return value?.key?.trim() ?? '';\n });\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AAAA;AAaA;AAEA;AAiBM,MAAO,mDAAoD,SAAQ,wBAA8C,CAAA;AAfvH,IAAA,WAAA,GAAA;;AAgBmB,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAEjD,QAAA,IAAA,CAAA,YAAY,GAAG,QAAQ,CAAC,MAAK;AACrC,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,QAA4C;YAC/D,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE;AAC/C,YAAA,MAAM,aAAa,GAAG,0BAA0B,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()"
|
|
369
369
|
/>
|
|
370
|
-
`, isInline: true, styles: [":host([readonly]){pointer-events:none;opacity:.7}\n"], dependencies: [{ kind: "component", type: AXPItemConfiguratorComponent, selector: "axp-item-configurator", inputs: ["selectedItemId", "values", "label", "readonly", "items", "headerActions"], outputs: ["selectedItemIdChange", "valuesChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
370
|
+
`, isInline: true, styles: [":host([readonly]){pointer-events:none;opacity:.7}\n"], dependencies: [{ kind: "component", type: AXPItemConfiguratorComponent, selector: "axp-item-configurator", inputs: ["selectedItemId", "values", "nodeFields", "label", "readonly", "items", "headerActions"], outputs: ["selectedItemIdChange", "valuesChange", "nodeFieldsChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
371
371
|
}
|
|
372
372
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMActivityCommandConfiguratorComponent, decorators: [{
|
|
373
373
|
type: Component,
|
|
@@ -479,4 +479,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
479
479
|
}], propDecorators: { valueModel: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueModel", required: false }] }, { type: i0.Output, args: ["valueModelChange"] }] } });
|
|
480
480
|
|
|
481
481
|
export { AXMActivityCommandConfiguratorWidgetEditComponent };
|
|
482
|
-
//# sourceMappingURL=acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-
|
|
482
|
+
//# sourceMappingURL=acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-BDfqjyXH.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-DuYGXzAL.mjs","sources":["../../../../libs/modules/workflow-management/client/src/lib/features/activity-command-configurator/activity-command-configurator.utils.ts","../../../../libs/modules/workflow-management/client/src/lib/features/activity-command-configurator/activity-command-configurator.component.ts","../../../../libs/modules/workflow-management/client/src/lib/features/activity-command-configurator/activity-command-configurator-widget-edit.component.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport type { AXPProperty } from '@acorex-platform/framework-shared/core';\nimport type { AXPPropertyDefinition } from '@acorex-platform/framework-shared/domain';\nimport type { AXPWidgetProperty, AXPWidgetPropertyGroup } from '@acorex-platform/framework-shared/widget-core';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXDataSourceFilterOption } from '@acorex/cdk/common';\nimport { mapAXPPropertyToWidgetProperty } from '@acorex-platform/framework-client/layout/widget-core';\n\nimport type {\n CommandConfiguratorCapabilitiesFilter,\n CommandConfiguratorListRow,\n} from './activity-command-configurator.types';\n\n//#endregion\n\n//#region ---- Query filters ----\n\nexport function buildCommandDefinitionListQueryFilter(\n executionMode?: 'frontend' | 'backend' | 'both',\n): AXDataSourceFilterOption | undefined {\n if (!executionMode) {\n return undefined;\n }\n\n return {\n logic: 'or',\n filters: [\n { field: 'executionMode', operator: { type: 'equal' }, value: executionMode },\n { field: 'executionMode', operator: { type: 'equal' }, value: 'both' },\n ],\n };\n}\n\nexport function buildActivityDefinitionListQueryFilter(\n executionMode?: 'frontend' | 'backend' | 'both',\n): AXDataSourceFilterOption | undefined {\n return buildCommandDefinitionListQueryFilter(executionMode);\n}\n\nexport function matchesCommandConfiguratorCapabilitiesFilter(\n row: Pick<CommandConfiguratorListRow, 'capabilities'>,\n filter: CommandConfiguratorCapabilitiesFilter | undefined,\n): boolean {\n const anyOf = filter?.anyOf?.filter(Boolean) ?? [];\n if (anyOf.length === 0) {\n return true;\n }\n\n const caps = row.capabilities ?? [];\n return anyOf.some((cap) => caps.includes(cap));\n}\n\n//#endregion\n\n//#region ---- Row mapping ----\n\nexport function mapPropertyDefinitionsToInputs(\n inputs: AXPPropertyDefinition[] | undefined,\n): AXPProperty[] {\n if (!inputs?.length) {\n return [];\n }\n\n return inputs.map((input) => ({\n name: input.name,\n title: input.title,\n description: input.description,\n dataType: input.dataType ?? 'string',\n validations: input.validations,\n interface: {\n type: input.interface.name,\n options: input.interface.options ?? {},\n },\n }));\n}\n\nexport function mapCommandDefinitionEntityRow(row: Record<string, unknown>): CommandConfiguratorListRow {\n return {\n id: String(row['id'] ?? row['name'] ?? ''),\n name: String(row['name'] ?? ''),\n title: typeof row['catalogTitle'] === 'string' ? row['catalogTitle'] : undefined,\n description: typeof row['description'] === 'string' ? row['description'] : undefined,\n icon: 'fa-light fa-server',\n inputs: mapPropertyDefinitionsToInputs(\n Array.isArray(row['inputOptionDefinitions'])\n ? (row['inputOptionDefinitions'] as AXPPropertyDefinition[])\n : undefined,\n ),\n capabilities: Array.isArray(row['capabilities'])\n ? (row['capabilities'] as CommandConfiguratorListRow['capabilities'])\n : undefined,\n active: row['active'] !== false,\n executionMode:\n row['executionMode'] === 'frontend' ||\n row['executionMode'] === 'backend' ||\n row['executionMode'] === 'both'\n ? row['executionMode']\n : undefined,\n };\n}\n\nexport function mapActivityDefinitionEntityRow(row: Record<string, unknown>): CommandConfiguratorListRow {\n const inputs = Array.isArray(row['inputs']) ? (row['inputs'] as AXPProperty[]) : undefined;\n\n return {\n id: String(row['id'] ?? row['name'] ?? ''),\n name: String(row['name'] ?? ''),\n title: typeof row['title'] === 'string' ? row['title'] : undefined,\n description: typeof row['description'] === 'string' ? row['description'] : undefined,\n icon: typeof row['icon'] === 'string' ? row['icon'] : 'fa-light fa-bolt',\n inputs,\n active: true,\n executionMode:\n row['executionMode'] === 'frontend' ||\n row['executionMode'] === 'backend' ||\n row['executionMode'] === 'both'\n ? row['executionMode']\n : undefined,\n };\n}\n\nexport function mapCommandInputsToWidgetProperties(\n inputs: AXPProperty[] | undefined,\n translation: AXTranslationService,\n): AXPWidgetProperty[] {\n const list = inputs ?? [];\n const group: AXPWidgetPropertyGroup = {\n name: 'command-inputs',\n title: '@workflow-management:automations.entities.automation.fields.command.title',\n order: 0,\n };\n\n return list.map((property, index) =>\n mapAXPPropertyToWidgetProperty(property, {\n group,\n order: index,\n valuePathPrefix: 'options',\n resolveTitle: (prop) =>\n typeof prop.title === 'string' ? prop.title : (translation.resolve(prop.title) ?? prop.name),\n resolveDescription: (prop) =>\n prop.description === undefined\n ? undefined\n : typeof prop.description === 'string'\n ? prop.description\n : translation.resolve(prop.description),\n }),\n );\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPItemConfiguratorComponent,\n ItemConfiguratorListItem,\n} from '@acorex-platform/framework-client/layout/components';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport type { AXPActivityDefinition } from '@acorex-platform/framework-shared/core';\nimport { AXPActivityDefinitionService } from '@acorex-platform/framework-client/workflow';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n model,\n signal,\n untracked,\n} from '@angular/core';\nimport { isEqual } from 'lodash';\nimport type {\n ActivityCommandValue,\n CommandConfiguratorListRow,\n} from './activity-command-configurator.types';\nimport {\n buildActivityDefinitionListQueryFilter,\n buildCommandDefinitionListQueryFilter,\n mapActivityDefinitionEntityRow,\n mapCommandDefinitionEntityRow,\n mapCommandInputsToWidgetProperties,\n matchesCommandConfiguratorCapabilitiesFilter,\n} from './activity-command-configurator.utils';\n\n//#endregion\n\n//#region ---- Component ----\n\n/**\n * Select a command/activity and configure its inputs via {@link AXPItemConfiguratorComponent}.\n * Entity-backed modes use the same reactive loading pattern as {@link AXMWorkflowConfiguratorComponent}.\n */\n@Component({\n selector: 'axm-activity-command-configurator',\n template: `\n <axp-item-configurator\n [(selectedItemId)]=\"selectedCommandKeyModel\"\n [(values)]=\"payloadModel\"\n [label]=\"label()\"\n [readonly]=\"readonly()\"\n [items]=\"configuratorItems()\"\n />\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'flex flex-col',\n '[attr.readonly]': 'readonly() ? \"\" : null',\n },\n styles: [\n `\n :host([readonly]) {\n pointer-events: none;\n opacity: 0.7;\n }\n `,\n ],\n imports: [AXPItemConfiguratorComponent],\n})\nexport class AXMActivityCommandConfiguratorComponent {\n //#region ---- Inputs ----\n\n value = model<ActivityCommandValue>({ key: '', payload: {} });\n\n label = input<string>(\n '@workflow-management:automations.entities.automation.fields.command.title',\n );\n\n readonly = input<boolean>(false);\n\n executionModeFilter = input<'frontend' | 'backend' | 'both' | undefined>(\n undefined,\n );\n\n /**\n * - `default`: workflow toolbox activities (in-memory categories).\n * - `flat-query`: query `WorkflowManagement.ActivityDefinition` entity storage.\n * - `command-registry`: query persisted command catalog entity (default `PlatformManagement.CommandDefinition`).\n */\n loadStrategy = input<'default' | 'flat-query' | 'command-registry'>(\n 'default',\n );\n\n capabilitiesFilter = input<\n Array<'ai' | 'workflow' | 'background-job'> | undefined\n >(undefined);\n\n private static readonly COMMAND_DEFINITION_MODULE = 'PlatformManagement';\n private static readonly COMMAND_DEFINITION_ENTITY = 'CommandDefinition';\n\n //#endregion\n\n //#region ---- Services ----\n\n private readonly activityService = inject(AXPActivityDefinitionService);\n private readonly entityService = inject(AXPEntityService);\n private readonly translation = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- State ----\n\n protected selectedCommandKeyModel = model<string>('');\n\n protected payloadModel = model<Record<string, unknown>>({});\n\n protected catalogRows = signal<CommandConfiguratorListRow[]>([]);\n\n protected configuratorItems = computed<ItemConfiguratorListItem[]>(() =>\n this.catalogRows().map((row) => ({\n id: row.name,\n title: (row.title ?? row.name) as ItemConfiguratorListItem['title'],\n icon: row.icon ?? 'fa-light fa-server',\n description: row.description as ItemConfiguratorListItem['description'],\n propertyDefinitions: mapCommandInputsToWidgetProperties(\n row.inputs,\n this.translation,\n ),\n })),\n );\n\n //#endregion\n\n //#region ---- Lifecycle ----\n\n constructor() {\n effect(() => {\n this.loadStrategy();\n this.executionModeFilter();\n this.capabilitiesFilter();\n untracked(() => {\n void this.loadCatalogRows();\n });\n });\n\n effect(() => {\n const v = this.value();\n const key = v.key?.trim() ?? '';\n const payload = v.payload ?? {};\n\n untracked(() => {\n if (this.selectedCommandKeyModel() !== key) {\n this.selectedCommandKeyModel.set(key);\n }\n if (!isEqual(this.payloadModel(), payload)) {\n this.payloadModel.set({ ...payload });\n }\n });\n });\n\n effect(() => {\n const key = this.selectedCommandKeyModel();\n const payload = this.payloadModel();\n const current = untracked(() => this.value());\n const row = untracked(() =>\n this.catalogRows().find((item) => item.name === key),\n );\n\n const next: ActivityCommandValue = {\n key,\n title: row?.title ?? row?.name ?? current.title,\n payload: { ...payload },\n };\n\n const normalizedCurrent: ActivityCommandValue = {\n key: current.key?.trim() ?? '',\n title: current.title,\n payload: current.payload ?? {},\n };\n\n if (!isEqual(next, normalizedCurrent)) {\n untracked(() => this.value.set(next));\n }\n });\n }\n\n //#endregion\n\n //#region ---- Data loading ----\n\n private async loadCatalogRows(): Promise<void> {\n try {\n const strategy = this.loadStrategy();\n const modeFilter = this.executionModeFilter();\n const caps = this.capabilitiesFilter();\n const capabilityFilter =\n caps && caps.length > 0 ? { anyOf: caps } : undefined;\n const pinnedKey = this.value().key?.trim() ?? '';\n\n let rows: CommandConfiguratorListRow[] = [];\n\n switch (strategy) {\n case 'command-registry':\n rows = await this.queryCommandDefinitionRows(\n modeFilter,\n capabilityFilter,\n );\n break;\n case 'flat-query':\n rows = await this.queryActivityDefinitionRows(modeFilter);\n break;\n default:\n rows = await this.queryToolboxActivities(modeFilter);\n break;\n }\n\n rows = rows\n .filter((r) => !!r.name?.trim() && r.active !== false)\n .sort((a, b) => {\n const ta = (a.title ?? a.name).trim();\n const tb = (b.title ?? b.name).trim();\n return ta.localeCompare(tb, this.translation.getActiveLang(), {\n sensitivity: 'base',\n });\n });\n\n const hydrated = await Promise.all(\n rows.map((row) => this.hydrateCatalogRow(row, strategy)),\n );\n\n if (pinnedKey && !hydrated.some((r) => r.name === pinnedKey)) {\n const pinned = await this.loadPinnedRow(pinnedKey, strategy);\n if (pinned) {\n hydrated.unshift(pinned);\n }\n }\n\n this.catalogRows.set(hydrated);\n } catch {\n this.catalogRows.set([]);\n }\n }\n\n private async queryCommandDefinitionRows(\n executionMode?: 'frontend' | 'backend' | 'both',\n capabilityFilter?: { anyOf: Array<'ai' | 'workflow' | 'background-job'> },\n ): Promise<CommandConfiguratorListRow[]> {\n const page = await this.entityService\n .withEntity(\n AXMActivityCommandConfiguratorComponent.COMMAND_DEFINITION_MODULE,\n AXMActivityCommandConfiguratorComponent.COMMAND_DEFINITION_ENTITY,\n )\n .data()\n .query({\n skip: 0,\n take: 5000,\n filter: buildCommandDefinitionListQueryFilter(executionMode),\n });\n\n return (page.items ?? [])\n .map((row) =>\n mapCommandDefinitionEntityRow(\n row as unknown as Record<string, unknown>,\n ),\n )\n .filter((row) =>\n matchesCommandConfiguratorCapabilitiesFilter(row, capabilityFilter),\n );\n }\n\n private async queryActivityDefinitionRows(\n executionMode?: 'frontend' | 'backend' | 'both',\n ): Promise<CommandConfiguratorListRow[]> {\n const page = await this.entityService\n .withEntity('WorkflowManagement', 'ActivityDefinition')\n .data()\n .query({\n skip: 0,\n take: 2000,\n filter: buildActivityDefinitionListQueryFilter(executionMode),\n });\n\n return (page.items ?? []).map((row) =>\n mapActivityDefinitionEntityRow(row as unknown as Record<string, unknown>),\n );\n }\n\n private async queryToolboxActivities(\n executionMode?: 'frontend' | 'backend' | 'both',\n ): Promise<CommandConfiguratorListRow[]> {\n let activities = await this.activityService.getAllActivities();\n if (executionMode) {\n activities = activities.filter(\n (item) =>\n item.executionMode === executionMode || item.executionMode === 'both',\n );\n }\n\n return activities.map((activity) => this.mapToolboxActivityRow(activity));\n }\n\n private mapToolboxActivityRow(\n activity: AXPActivityDefinition,\n ): CommandConfiguratorListRow {\n return {\n id: activity.name,\n name: activity.name,\n title:\n typeof activity.title === 'string' ? activity.title : activity.name,\n description:\n typeof activity.description === 'string'\n ? activity.description\n : undefined,\n icon: activity.icon ?? 'fa-light fa-bolt',\n inputs: activity.inputs,\n active: true,\n executionMode: activity.executionMode,\n };\n }\n\n private async hydrateCatalogRow(\n row: CommandConfiguratorListRow,\n strategy: 'default' | 'flat-query' | 'command-registry',\n ): Promise<CommandConfiguratorListRow> {\n if ((row.inputs?.length ?? 0) > 0 || strategy === 'default') {\n return row;\n }\n\n const id = row.id?.trim();\n if (!id) {\n return row;\n }\n\n try {\n const module =\n strategy === 'command-registry'\n ? AXMActivityCommandConfiguratorComponent.COMMAND_DEFINITION_MODULE\n : 'WorkflowManagement';\n const entity =\n strategy === 'command-registry'\n ? AXMActivityCommandConfiguratorComponent.COMMAND_DEFINITION_ENTITY\n : 'ActivityDefinition';\n\n const full = (await this.entityService\n .withEntity(module, entity)\n .data()\n .byKey(id)) as Record<string, unknown> | null;\n\n if (!full) {\n return row;\n }\n\n const mapped =\n strategy === 'command-registry'\n ? mapCommandDefinitionEntityRow(full)\n : mapActivityDefinitionEntityRow(full);\n\n return { ...row, ...mapped, inputs: mapped.inputs ?? row.inputs };\n } catch {\n return row;\n }\n }\n\n private async loadPinnedRow(\n commandKey: string,\n strategy: 'default' | 'flat-query' | 'command-registry',\n ): Promise<CommandConfiguratorListRow | null> {\n if (strategy === 'default') {\n const activity = await this.activityService.getActivityByName(commandKey);\n return activity ? this.mapToolboxActivityRow(activity) : null;\n }\n\n try {\n const module =\n strategy === 'command-registry'\n ? AXMActivityCommandConfiguratorComponent.COMMAND_DEFINITION_MODULE\n : 'WorkflowManagement';\n const entity =\n strategy === 'command-registry'\n ? AXMActivityCommandConfiguratorComponent.COMMAND_DEFINITION_ENTITY\n : 'ActivityDefinition';\n\n const page = await this.entityService\n .withEntity(module, entity)\n .data()\n .query({\n skip: 0,\n take: 1,\n filter: {\n field: 'name',\n operator: { type: 'equal' },\n value: commandKey,\n },\n });\n\n const row = page.items?.[0];\n if (!row) {\n return null;\n }\n\n return strategy === 'command-registry'\n ? mapCommandDefinitionEntityRow(\n row as unknown as Record<string, unknown>,\n )\n : mapActivityDefinitionEntityRow(\n row as unknown as Record<string, unknown>,\n );\n } catch {\n return null;\n }\n }\n\n //#endregion\n}\n\nexport type { ActivityCommandValue } from './activity-command-configurator.types';\n\n//#endregion\n","//#region ---- Imports ----\r\r\n\r\r\nimport { AXPValueWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\r\r\nimport { ChangeDetectionStrategy, Component, computed, effect, model, signal, untracked } from '@angular/core';\r\r\nimport { isEqual } from 'lodash';\r\r\nimport {\r\r\n AXMActivityCommandConfiguratorComponent,\r\r\n} from './activity-command-configurator.component';\r\r\nimport type { ActivityCommandValue } from './activity-command-configurator.types';\r\r\n\r\r\n//#endregion\r\r\n\r\r\n//#region ---- Component ----\r\r\n\r\r\n@Component({\r\r\n selector: 'axm-activity-command-configurator-widget-edit',\r\r\n template: `\r\r\n @if (isInitialized()) {\r\r\n <axm-activity-command-configurator\r\r\n [(value)]=\"valueModel\"\r\r\n [label]=\"label()\"\r\r\n [readonly]=\"readonly()\"\r\r\n [loadStrategy]=\"loadStrategy()\"\r\r\n [executionModeFilter]=\"executionModeFilter()\"\r\r\n [capabilitiesFilter]=\"capabilitiesFilter()\"\r\r\n ></axm-activity-command-configurator>\r\r\n }\r\r\n `,\r\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\r\n imports: [AXMActivityCommandConfiguratorComponent],\r\r\n})\r\r\nexport class AXMActivityCommandConfiguratorWidgetEditComponent extends AXPValueWidgetComponent<ActivityCommandValue> {\r\r\n protected readonly readonly = computed<boolean>(() => (this.options()['readonly'] as boolean) ?? false);\r\r\n protected label = computed<string>(() => (this.options()['label'] as string) || 'Activity');\r\r\n protected loadStrategy = computed<'default' | 'flat-query' | 'command-registry'>(() => {\r\r\n const value = this.options()['loadStrategy'];\r\r\n return value === 'flat-query' || value === 'command-registry' ? value : 'default';\r\r\n });\r\r\n protected executionModeFilter = computed<'frontend' | 'backend' | 'both' | undefined>(() => {\r\r\n const value = this.options()['executionModeFilter'];\r\r\n return value === 'frontend' || value === 'backend' || value === 'both' ? value : undefined;\r\r\n });\r\r\n protected capabilitiesFilter = computed<Array<'ai' | 'workflow' | 'background-job'> | undefined>(\r\r\n () => this.options()['capabilitiesFilter'] as Array<'ai' | 'workflow' | 'background-job'> | undefined,\r\r\n );\r\r\n\r\r\n protected isInitialized = signal(false);\r\r\n protected valueModel = model<ActivityCommandValue>({ key: '', payload: {} });\r\r\n\r\r\n private syncValueToConfigurator = effect(() => {\r\r\n const value = this.getValue() ?? { key: '', payload: {} };\r\r\n const currentModel = untracked(() => this.valueModel());\r\r\n\r\r\n if (!isEqual(value, currentModel)) {\r\r\n untracked(() => {\r\r\n this.valueModel.set({\r\r\n key: value.key ?? '',\r\r\n title: value.title,\r\r\n payload: value.payload ?? {},\r\r\n });\r\r\n });\r\r\n }\r\r\n\r\r\n untracked(() => {\r\r\n if (!this.isInitialized()) {\r\r\n this.isInitialized.set(true);\r\r\n }\r\r\n });\r\r\n });\r\r\n\r\r\n private syncConfiguratorToValue = effect(() => {\r\r\n const modelValue = this.valueModel();\r\r\n\r\r\n if (!untracked(() => this.isInitialized())) return;\r\r\n\r\r\n const currentValue = untracked(() => this.getValue() ?? { key: '', payload: {} });\r\r\n\r\r\n if (!isEqual(modelValue, currentValue)) {\r\r\n untracked(() => {\r\r\n this.setValue(modelValue ?? { key: '', payload: {} });\r\r\n });\r\r\n }\r\r\n });\r\r\n}\r\r\n\r\r\n//#endregion\r\r\n"],"names":[],"mappings":";;;;;;;;;AAAA;AAcA;AAEA;AAEM,SAAU,qCAAqC,CACnD,aAA+C,EAAA;IAE/C,IAAI,CAAC,aAAa,EAAE;AAClB,QAAA,OAAO,SAAS;IAClB;IAEA,OAAO;AACL,QAAA,KAAK,EAAE,IAAI;AACX,QAAA,OAAO,EAAE;AACP,YAAA,EAAE,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE;AAC7E,YAAA,EAAE,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,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AA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EA9BlD,CAAA;;;;;;;;;;;;;;;;;;;;;;AAsBT;;;;AA1BQ;AAET;AAEA,EAAA,CAAA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-BDfqjyXH.mjs","sources":["../../../../libs/modules/workflow-management/client/src/lib/features/activity-command-configurator/activity-command-configurator.utils.ts","../../../../libs/modules/workflow-management/client/src/lib/features/activity-command-configurator/activity-command-configurator.component.ts","../../../../libs/modules/workflow-management/client/src/lib/features/activity-command-configurator/activity-command-configurator-widget-edit.component.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport type { AXPProperty } from '@acorex-platform/framework-shared/core';\nimport type { AXPPropertyDefinition } from '@acorex-platform/framework-shared/domain';\nimport type { AXPWidgetProperty, AXPWidgetPropertyGroup } from '@acorex-platform/framework-shared/widget-core';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXDataSourceFilterOption } from '@acorex/cdk/common';\nimport { mapAXPPropertyToWidgetProperty } from '@acorex-platform/framework-client/layout/widget-core';\n\nimport type {\n CommandConfiguratorCapabilitiesFilter,\n CommandConfiguratorListRow,\n} from './activity-command-configurator.types';\n\n//#endregion\n\n//#region ---- Query filters ----\n\nexport function buildCommandDefinitionListQueryFilter(\n executionMode?: 'frontend' | 'backend' | 'both',\n): AXDataSourceFilterOption | undefined {\n if (!executionMode) {\n return undefined;\n }\n\n return {\n logic: 'or',\n filters: [\n { field: 'executionMode', operator: { type: 'equal' }, value: executionMode },\n { field: 'executionMode', operator: { type: 'equal' }, value: 'both' },\n ],\n };\n}\n\nexport function buildActivityDefinitionListQueryFilter(\n executionMode?: 'frontend' | 'backend' | 'both',\n): AXDataSourceFilterOption | undefined {\n return buildCommandDefinitionListQueryFilter(executionMode);\n}\n\nexport function matchesCommandConfiguratorCapabilitiesFilter(\n row: Pick<CommandConfiguratorListRow, 'capabilities'>,\n filter: CommandConfiguratorCapabilitiesFilter | undefined,\n): boolean {\n const anyOf = filter?.anyOf?.filter(Boolean) ?? [];\n if (anyOf.length === 0) {\n return true;\n }\n\n const caps = row.capabilities ?? [];\n return anyOf.some((cap) => caps.includes(cap));\n}\n\n//#endregion\n\n//#region ---- Row mapping ----\n\nexport function mapPropertyDefinitionsToInputs(\n inputs: AXPPropertyDefinition[] | undefined,\n): AXPProperty[] {\n if (!inputs?.length) {\n return [];\n }\n\n return inputs.map((input) => ({\n name: input.name,\n title: input.title,\n description: input.description,\n dataType: input.dataType ?? 'string',\n validations: input.validations,\n interface: {\n type: input.interface.name,\n options: input.interface.options ?? {},\n },\n }));\n}\n\nexport function mapCommandDefinitionEntityRow(row: Record<string, unknown>): CommandConfiguratorListRow {\n return {\n id: String(row['id'] ?? row['name'] ?? ''),\n name: String(row['name'] ?? ''),\n title: typeof row['catalogTitle'] === 'string' ? row['catalogTitle'] : undefined,\n description: typeof row['description'] === 'string' ? row['description'] : undefined,\n icon: 'fa-light fa-server',\n inputs: mapPropertyDefinitionsToInputs(\n Array.isArray(row['inputOptionDefinitions'])\n ? (row['inputOptionDefinitions'] as AXPPropertyDefinition[])\n : undefined,\n ),\n capabilities: Array.isArray(row['capabilities'])\n ? (row['capabilities'] as CommandConfiguratorListRow['capabilities'])\n : undefined,\n active: row['active'] !== false,\n executionMode:\n row['executionMode'] === 'frontend' ||\n row['executionMode'] === 'backend' ||\n row['executionMode'] === 'both'\n ? row['executionMode']\n : undefined,\n };\n}\n\nexport function mapActivityDefinitionEntityRow(row: Record<string, unknown>): CommandConfiguratorListRow {\n const inputs = Array.isArray(row['inputs']) ? (row['inputs'] as AXPProperty[]) : undefined;\n\n return {\n id: String(row['id'] ?? row['name'] ?? ''),\n name: String(row['name'] ?? ''),\n title: typeof row['title'] === 'string' ? row['title'] : undefined,\n description: typeof row['description'] === 'string' ? row['description'] : undefined,\n icon: typeof row['icon'] === 'string' ? row['icon'] : 'fa-light fa-bolt',\n inputs,\n active: true,\n executionMode:\n row['executionMode'] === 'frontend' ||\n row['executionMode'] === 'backend' ||\n row['executionMode'] === 'both'\n ? row['executionMode']\n : undefined,\n };\n}\n\nexport function mapCommandInputsToWidgetProperties(\n inputs: AXPProperty[] | undefined,\n translation: AXTranslationService,\n): AXPWidgetProperty[] {\n const list = inputs ?? [];\n const group: AXPWidgetPropertyGroup = {\n name: 'command-inputs',\n title: '@workflow-management:automations.entities.automation.fields.command.title',\n order: 0,\n };\n\n return list.map((property, index) =>\n mapAXPPropertyToWidgetProperty(property, {\n group,\n order: index,\n valuePathPrefix: 'options',\n resolveTitle: (prop) =>\n typeof prop.title === 'string' ? prop.title : (translation.resolve(prop.title) ?? prop.name),\n resolveDescription: (prop) =>\n prop.description === undefined\n ? undefined\n : typeof prop.description === 'string'\n ? prop.description\n : translation.resolve(prop.description),\n }),\n );\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPItemConfiguratorComponent,\n ItemConfiguratorListItem,\n} from '@acorex-platform/framework-client/layout/components';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport type { AXPActivityDefinition } from '@acorex-platform/framework-shared/core';\nimport { AXPActivityDefinitionService } from '@acorex-platform/framework-client/workflow';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n model,\n signal,\n untracked,\n} from '@angular/core';\nimport { isEqual } from 'lodash';\nimport type {\n ActivityCommandValue,\n CommandConfiguratorListRow,\n} from './activity-command-configurator.types';\nimport {\n buildActivityDefinitionListQueryFilter,\n buildCommandDefinitionListQueryFilter,\n mapActivityDefinitionEntityRow,\n mapCommandDefinitionEntityRow,\n mapCommandInputsToWidgetProperties,\n matchesCommandConfiguratorCapabilitiesFilter,\n} from './activity-command-configurator.utils';\n\n//#endregion\n\n//#region ---- Component ----\n\n/**\n * Select a command/activity and configure its inputs via {@link AXPItemConfiguratorComponent}.\n * Entity-backed modes use the same reactive loading pattern as {@link AXMWorkflowConfiguratorComponent}.\n */\n@Component({\n selector: 'axm-activity-command-configurator',\n template: `\n <axp-item-configurator\n [(selectedItemId)]=\"selectedCommandKeyModel\"\n [(values)]=\"payloadModel\"\n [label]=\"label()\"\n [readonly]=\"readonly()\"\n [items]=\"configuratorItems()\"\n />\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'flex flex-col',\n '[attr.readonly]': 'readonly() ? \"\" : null',\n },\n styles: [\n `\n :host([readonly]) {\n pointer-events: none;\n opacity: 0.7;\n }\n `,\n ],\n imports: [AXPItemConfiguratorComponent],\n})\nexport class AXMActivityCommandConfiguratorComponent {\n //#region ---- Inputs ----\n\n value = model<ActivityCommandValue>({ key: '', payload: {} });\n\n label = input<string>(\n '@workflow-management:automations.entities.automation.fields.command.title',\n );\n\n readonly = input<boolean>(false);\n\n executionModeFilter = input<'frontend' | 'backend' | 'both' | undefined>(\n undefined,\n );\n\n /**\n * - `default`: workflow toolbox activities (in-memory categories).\n * - `flat-query`: query `WorkflowManagement.ActivityDefinition` entity storage.\n * - `command-registry`: query persisted command catalog entity (default `PlatformManagement.CommandDefinition`).\n */\n loadStrategy = input<'default' | 'flat-query' | 'command-registry'>(\n 'default',\n );\n\n capabilitiesFilter = input<\n Array<'ai' | 'workflow' | 'background-job'> | undefined\n >(undefined);\n\n private static readonly COMMAND_DEFINITION_MODULE = 'PlatformManagement';\n private static readonly COMMAND_DEFINITION_ENTITY = 'CommandDefinition';\n\n //#endregion\n\n //#region ---- Services ----\n\n private readonly activityService = inject(AXPActivityDefinitionService);\n private readonly entityService = inject(AXPEntityService);\n private readonly translation = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- State ----\n\n protected selectedCommandKeyModel = model<string>('');\n\n protected payloadModel = model<Record<string, unknown>>({});\n\n protected catalogRows = signal<CommandConfiguratorListRow[]>([]);\n\n protected configuratorItems = computed<ItemConfiguratorListItem[]>(() =>\n this.catalogRows().map((row) => ({\n id: row.name,\n title: (row.title ?? row.name) as ItemConfiguratorListItem['title'],\n icon: row.icon ?? 'fa-light fa-server',\n description: row.description as ItemConfiguratorListItem['description'],\n propertyDefinitions: mapCommandInputsToWidgetProperties(\n row.inputs,\n this.translation,\n ),\n })),\n );\n\n //#endregion\n\n //#region ---- Lifecycle ----\n\n constructor() {\n effect(() => {\n this.loadStrategy();\n this.executionModeFilter();\n this.capabilitiesFilter();\n untracked(() => {\n void this.loadCatalogRows();\n });\n });\n\n effect(() => {\n const v = this.value();\n const key = v.key?.trim() ?? '';\n const payload = v.payload ?? {};\n\n untracked(() => {\n if (this.selectedCommandKeyModel() !== key) {\n this.selectedCommandKeyModel.set(key);\n }\n if (!isEqual(this.payloadModel(), payload)) {\n this.payloadModel.set({ ...payload });\n }\n });\n });\n\n effect(() => {\n const key = this.selectedCommandKeyModel();\n const payload = this.payloadModel();\n const current = untracked(() => this.value());\n const row = untracked(() =>\n this.catalogRows().find((item) => item.name === key),\n );\n\n const next: ActivityCommandValue = {\n key,\n title: row?.title ?? row?.name ?? current.title,\n payload: { ...payload },\n };\n\n const normalizedCurrent: ActivityCommandValue = {\n key: current.key?.trim() ?? '',\n title: current.title,\n payload: current.payload ?? {},\n };\n\n if (!isEqual(next, normalizedCurrent)) {\n untracked(() => this.value.set(next));\n }\n });\n }\n\n //#endregion\n\n //#region ---- Data loading ----\n\n private async loadCatalogRows(): Promise<void> {\n try {\n const strategy = this.loadStrategy();\n const modeFilter = this.executionModeFilter();\n const caps = this.capabilitiesFilter();\n const capabilityFilter =\n caps && caps.length > 0 ? { anyOf: caps } : undefined;\n const pinnedKey = this.value().key?.trim() ?? '';\n\n let rows: CommandConfiguratorListRow[] = [];\n\n switch (strategy) {\n case 'command-registry':\n rows = await this.queryCommandDefinitionRows(\n modeFilter,\n capabilityFilter,\n );\n break;\n case 'flat-query':\n rows = await this.queryActivityDefinitionRows(modeFilter);\n break;\n default:\n rows = await this.queryToolboxActivities(modeFilter);\n break;\n }\n\n rows = rows\n .filter((r) => !!r.name?.trim() && r.active !== false)\n .sort((a, b) => {\n const ta = (a.title ?? a.name).trim();\n const tb = (b.title ?? b.name).trim();\n return ta.localeCompare(tb, this.translation.getActiveLang(), {\n sensitivity: 'base',\n });\n });\n\n const hydrated = await Promise.all(\n rows.map((row) => this.hydrateCatalogRow(row, strategy)),\n );\n\n if (pinnedKey && !hydrated.some((r) => r.name === pinnedKey)) {\n const pinned = await this.loadPinnedRow(pinnedKey, strategy);\n if (pinned) {\n hydrated.unshift(pinned);\n }\n }\n\n this.catalogRows.set(hydrated);\n } catch {\n this.catalogRows.set([]);\n }\n }\n\n private async queryCommandDefinitionRows(\n executionMode?: 'frontend' | 'backend' | 'both',\n capabilityFilter?: { anyOf: Array<'ai' | 'workflow' | 'background-job'> },\n ): Promise<CommandConfiguratorListRow[]> {\n const page = await this.entityService\n .withEntity(\n AXMActivityCommandConfiguratorComponent.COMMAND_DEFINITION_MODULE,\n AXMActivityCommandConfiguratorComponent.COMMAND_DEFINITION_ENTITY,\n )\n .data()\n .query({\n skip: 0,\n take: 5000,\n filter: buildCommandDefinitionListQueryFilter(executionMode),\n });\n\n return (page.items ?? [])\n .map((row) =>\n mapCommandDefinitionEntityRow(\n row as unknown as Record<string, unknown>,\n ),\n )\n .filter((row) =>\n matchesCommandConfiguratorCapabilitiesFilter(row, capabilityFilter),\n );\n }\n\n private async queryActivityDefinitionRows(\n executionMode?: 'frontend' | 'backend' | 'both',\n ): Promise<CommandConfiguratorListRow[]> {\n const page = await this.entityService\n .withEntity('WorkflowManagement', 'ActivityDefinition')\n .data()\n .query({\n skip: 0,\n take: 2000,\n filter: buildActivityDefinitionListQueryFilter(executionMode),\n });\n\n return (page.items ?? []).map((row) =>\n mapActivityDefinitionEntityRow(row as unknown as Record<string, unknown>),\n );\n }\n\n private async queryToolboxActivities(\n executionMode?: 'frontend' | 'backend' | 'both',\n ): Promise<CommandConfiguratorListRow[]> {\n let activities = await this.activityService.getAllActivities();\n if (executionMode) {\n activities = activities.filter(\n (item) =>\n item.executionMode === executionMode || item.executionMode === 'both',\n );\n }\n\n return activities.map((activity) => this.mapToolboxActivityRow(activity));\n }\n\n private mapToolboxActivityRow(\n activity: AXPActivityDefinition,\n ): CommandConfiguratorListRow {\n return {\n id: activity.name,\n name: activity.name,\n title:\n typeof activity.title === 'string' ? activity.title : activity.name,\n description:\n typeof activity.description === 'string'\n ? activity.description\n : undefined,\n icon: activity.icon ?? 'fa-light fa-bolt',\n inputs: activity.inputs,\n active: true,\n executionMode: activity.executionMode,\n };\n }\n\n private async hydrateCatalogRow(\n row: CommandConfiguratorListRow,\n strategy: 'default' | 'flat-query' | 'command-registry',\n ): Promise<CommandConfiguratorListRow> {\n if ((row.inputs?.length ?? 0) > 0 || strategy === 'default') {\n return row;\n }\n\n const id = row.id?.trim();\n if (!id) {\n return row;\n }\n\n try {\n const module =\n strategy === 'command-registry'\n ? AXMActivityCommandConfiguratorComponent.COMMAND_DEFINITION_MODULE\n : 'WorkflowManagement';\n const entity =\n strategy === 'command-registry'\n ? AXMActivityCommandConfiguratorComponent.COMMAND_DEFINITION_ENTITY\n : 'ActivityDefinition';\n\n const full = (await this.entityService\n .withEntity(module, entity)\n .data()\n .byKey(id)) as Record<string, unknown> | null;\n\n if (!full) {\n return row;\n }\n\n const mapped =\n strategy === 'command-registry'\n ? mapCommandDefinitionEntityRow(full)\n : mapActivityDefinitionEntityRow(full);\n\n return { ...row, ...mapped, inputs: mapped.inputs ?? row.inputs };\n } catch {\n return row;\n }\n }\n\n private async loadPinnedRow(\n commandKey: string,\n strategy: 'default' | 'flat-query' | 'command-registry',\n ): Promise<CommandConfiguratorListRow | null> {\n if (strategy === 'default') {\n const activity = await this.activityService.getActivityByName(commandKey);\n return activity ? this.mapToolboxActivityRow(activity) : null;\n }\n\n try {\n const module =\n strategy === 'command-registry'\n ? AXMActivityCommandConfiguratorComponent.COMMAND_DEFINITION_MODULE\n : 'WorkflowManagement';\n const entity =\n strategy === 'command-registry'\n ? AXMActivityCommandConfiguratorComponent.COMMAND_DEFINITION_ENTITY\n : 'ActivityDefinition';\n\n const page = await this.entityService\n .withEntity(module, entity)\n .data()\n .query({\n skip: 0,\n take: 1,\n filter: {\n field: 'name',\n operator: { type: 'equal' },\n value: commandKey,\n },\n });\n\n const row = page.items?.[0];\n if (!row) {\n return null;\n }\n\n return strategy === 'command-registry'\n ? mapCommandDefinitionEntityRow(\n row as unknown as Record<string, unknown>,\n )\n : mapActivityDefinitionEntityRow(\n row as unknown as Record<string, unknown>,\n );\n } catch {\n return null;\n }\n }\n\n //#endregion\n}\n\nexport type { ActivityCommandValue } from './activity-command-configurator.types';\n\n//#endregion\n","//#region ---- Imports ----\r\r\n\r\r\nimport { AXPValueWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\r\r\nimport { ChangeDetectionStrategy, Component, computed, effect, model, signal, untracked } from '@angular/core';\r\r\nimport { isEqual } from 'lodash';\r\r\nimport {\r\r\n AXMActivityCommandConfiguratorComponent,\r\r\n} from './activity-command-configurator.component';\r\r\nimport type { ActivityCommandValue } from './activity-command-configurator.types';\r\r\n\r\r\n//#endregion\r\r\n\r\r\n//#region ---- Component ----\r\r\n\r\r\n@Component({\r\r\n selector: 'axm-activity-command-configurator-widget-edit',\r\r\n template: `\r\r\n @if (isInitialized()) {\r\r\n <axm-activity-command-configurator\r\r\n [(value)]=\"valueModel\"\r\r\n [label]=\"label()\"\r\r\n [readonly]=\"readonly()\"\r\r\n [loadStrategy]=\"loadStrategy()\"\r\r\n [executionModeFilter]=\"executionModeFilter()\"\r\r\n [capabilitiesFilter]=\"capabilitiesFilter()\"\r\r\n ></axm-activity-command-configurator>\r\r\n }\r\r\n `,\r\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\r\n imports: [AXMActivityCommandConfiguratorComponent],\r\r\n})\r\r\nexport class AXMActivityCommandConfiguratorWidgetEditComponent extends AXPValueWidgetComponent<ActivityCommandValue> {\r\r\n protected readonly readonly = computed<boolean>(() => (this.options()['readonly'] as boolean) ?? false);\r\r\n protected label = computed<string>(() => (this.options()['label'] as string) || 'Activity');\r\r\n protected loadStrategy = computed<'default' | 'flat-query' | 'command-registry'>(() => {\r\r\n const value = this.options()['loadStrategy'];\r\r\n return value === 'flat-query' || value === 'command-registry' ? value : 'default';\r\r\n });\r\r\n protected executionModeFilter = computed<'frontend' | 'backend' | 'both' | undefined>(() => {\r\r\n const value = this.options()['executionModeFilter'];\r\r\n return value === 'frontend' || value === 'backend' || value === 'both' ? value : undefined;\r\r\n });\r\r\n protected capabilitiesFilter = computed<Array<'ai' | 'workflow' | 'background-job'> | undefined>(\r\r\n () => this.options()['capabilitiesFilter'] as Array<'ai' | 'workflow' | 'background-job'> | undefined,\r\r\n );\r\r\n\r\r\n protected isInitialized = signal(false);\r\r\n protected valueModel = model<ActivityCommandValue>({ key: '', payload: {} });\r\r\n\r\r\n private syncValueToConfigurator = effect(() => {\r\r\n const value = this.getValue() ?? { key: '', payload: {} };\r\r\n const currentModel = untracked(() => this.valueModel());\r\r\n\r\r\n if (!isEqual(value, currentModel)) {\r\r\n untracked(() => {\r\r\n this.valueModel.set({\r\r\n key: value.key ?? '',\r\r\n title: value.title,\r\r\n payload: value.payload ?? {},\r\r\n });\r\r\n });\r\r\n }\r\r\n\r\r\n untracked(() => {\r\r\n if (!this.isInitialized()) {\r\r\n this.isInitialized.set(true);\r\r\n }\r\r\n });\r\r\n });\r\r\n\r\r\n private syncConfiguratorToValue = effect(() => {\r\r\n const modelValue = this.valueModel();\r\r\n\r\r\n if (!untracked(() => this.isInitialized())) return;\r\r\n\r\r\n const currentValue = untracked(() => this.getValue() ?? { key: '', payload: {} });\r\r\n\r\r\n if (!isEqual(modelValue, currentValue)) {\r\r\n untracked(() => {\r\r\n this.setValue(modelValue ?? { key: '', payload: {} });\r\r\n });\r\r\n }\r\r\n });\r\r\n}\r\r\n\r\r\n//#endregion\r\r\n"],"names":[],"mappings":";;;;;;;;;AAAA;AAcA;AAEA;AAEM,SAAU,qCAAqC,CACnD,aAA+C,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AAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iDAAiD,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,+CAAA,EAAA,MAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,UAAA,EAAA,kBAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EA9BlD,CAAA;;;;;;;;;;;;;;;;;;;;;;AAsBT;;;;AA1BQ;AAET;AAEA,EAAA,CAAA;;;;;;"}
|
|
@@ -8,7 +8,7 @@ import { AXPSessionService } from '@acorex-platform/framework-client/auth';
|
|
|
8
8
|
import { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';
|
|
9
9
|
import { AXPWorkflowManager, AXP_WORKFLOW_ENGINE } from '@acorex-platform/framework-client/workflow';
|
|
10
10
|
import { get, isString } from 'lodash';
|
|
11
|
-
import { A as AXPWorkflowInstanceHumanTaskService, c as createWorkflowInstanceBookmarkAccess, i as isWorkflowPooledClaimablePayload, n as normalizeWorkflowTaskUserIds } from './acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-
|
|
11
|
+
import { A as AXPWorkflowInstanceHumanTaskService, c as createWorkflowInstanceBookmarkAccess, i as isWorkflowPooledClaimablePayload, n as normalizeWorkflowTaskUserIds } from './acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-BXlJXZCZ.mjs';
|
|
12
12
|
import { AXPopupService } from '@acorex/components/popup';
|
|
13
13
|
import { AXPDialogOpener } from '@acorex-platform/framework-client/core';
|
|
14
14
|
|
|
@@ -62,14 +62,15 @@ class AXPWorkflowRunActionService {
|
|
|
62
62
|
return null;
|
|
63
63
|
}
|
|
64
64
|
const active = this.bookmarkAccess.getActiveBookmarks(instance);
|
|
65
|
+
const matches = [];
|
|
65
66
|
for (const bookmark of active) {
|
|
66
67
|
const payload = this.bookmarkAccess.parseHumanTaskPayload(bookmark);
|
|
67
68
|
if (!payload?.taskToken || !this.isTaskBoardHumanPayload(payload)) {
|
|
68
69
|
continue;
|
|
69
70
|
}
|
|
70
|
-
|
|
71
|
+
matches.push({ instance, bookmark, payload });
|
|
71
72
|
}
|
|
72
|
-
return null;
|
|
73
|
+
return matches.length === 1 ? matches[0] : null;
|
|
73
74
|
}
|
|
74
75
|
//#endregion
|
|
75
76
|
//#region ---- Run operations ----
|
|
@@ -83,13 +84,13 @@ class AXPWorkflowRunActionService {
|
|
|
83
84
|
if (isWorkflowPooledClaimablePayload(payload)) {
|
|
84
85
|
return this.continuePooledHumanTask(instanceId, task);
|
|
85
86
|
}
|
|
86
|
-
const
|
|
87
|
+
const decision = this.humanTaskService.availableActions(payload).some(action => /^(approve|reject)$/i.test(action.command?.name ?? action.name ?? ''));
|
|
87
88
|
const assigned = normalizeWorkflowTaskUserIds(payload.assignedUserIds);
|
|
88
89
|
const currentUserId = this.sessionService.user?.id;
|
|
89
90
|
if (currentUserId &&
|
|
90
91
|
assigned.length > 0 &&
|
|
91
92
|
!assigned.includes(String(currentUserId)) &&
|
|
92
|
-
|
|
93
|
+
decision) {
|
|
93
94
|
const content = await this.translationService.translateAsync('@workflow-management:workflow-run.messages.awaiting-approver');
|
|
94
95
|
this.toastService.show({
|
|
95
96
|
color: 'warning',
|
|
@@ -181,7 +182,7 @@ class AXPWorkflowRunActionService {
|
|
|
181
182
|
}
|
|
182
183
|
const recordId = params.recordId?.trim();
|
|
183
184
|
const entitySource = params.entitySource?.trim();
|
|
184
|
-
if (recordId && entitySource) {
|
|
185
|
+
if (recordId && entitySource && entitySource !== 'TaskManagement.Task') {
|
|
185
186
|
const [moduleName, entityName] = entitySource.split('.');
|
|
186
187
|
if (moduleName && entityName) {
|
|
187
188
|
const statusField = params.statusField?.trim() || 'statusId';
|
|
@@ -351,7 +352,7 @@ class ShowWorkflowRunHistoryCommand {
|
|
|
351
352
|
};
|
|
352
353
|
}
|
|
353
354
|
await this.dialogOpener.openPopup({
|
|
354
|
-
load: () => import('./acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-
|
|
355
|
+
load: () => import('./acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-CofkxzF1.mjs').then((module) => module.AXMWorkflowRunHistoryPopupComponent),
|
|
355
356
|
data: { instanceId },
|
|
356
357
|
show: (component) => this.popupService.open(component, {
|
|
357
358
|
title: '',
|
|
@@ -419,4 +420,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
419
420
|
//#endregion
|
|
420
421
|
|
|
421
422
|
export { CancelWorkflowRunCommand, ContinueWorkflowRunCommand, ShowWorkflowRunHistoryCommand, TakeOverWorkflowRunCommand };
|
|
422
|
-
//# sourceMappingURL=acorex-platform-module-workflow-management-client-
|
|
423
|
+
//# sourceMappingURL=acorex-platform-module-workflow-management-client-commands-ISHAdB1W.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workflow-management-client-commands-ISHAdB1W.mjs","sources":["../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/workflow-run-action.service.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/commands/cancel-workflow-run.command.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/commands/continue-workflow-run.command.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/commands/show-workflow-run-history.command.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/commands/take-over-workflow-run.command.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/commands/index.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { getRecordWorkflowInstanceId } from '@acorex-platform/framework-shared/entity';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport {\n AXP_WORKFLOW_ENGINE,\n AXPWorkflowEngine,\n AXPWorkflowManager,\n} from '@acorex-platform/framework-client/workflow';\nimport { inject, Injectable } from '@angular/core';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXToastService } from '@acorex/components/toast';\nimport { get, isString } from 'lodash';\nimport type { AXMWorkflowManagementWorkflowInstanceEntityModel } from '@acorex-platform/module-workflow-management-client/contracts';\nimport {\n createWorkflowInstanceBookmarkAccess,\n HumanTaskBookmarkPayload,\n WorkflowInstanceBookmarkRow,\n} from '../task-provider/workflow-instance-bookmark.access';\nimport { AXPWorkflowInstanceHumanTaskService } from '../task-provider/workflow-instance-human-task.service';\nimport {\n isWorkflowPooledClaimablePayload,\n normalizeWorkflowTaskUserIds,\n} from '../task-provider/workflow-task-continuation';\n\n//#endregion\n\n//#region ---- Types ----\n\nexport interface AXPWorkflowRunSuspendedHumanTask {\n instance: AXMWorkflowManagementWorkflowInstanceEntityModel;\n bookmark: WorkflowInstanceBookmarkRow;\n payload: HumanTaskBookmarkPayload;\n}\n\nexport interface AXPWorkflowRunCancelParams {\n instanceId: string;\n entitySource?: string;\n recordId?: string;\n reason?: string;\n statusField?: string;\n cancelledStatusId?: string;\n}\n\n//#endregion\n\n//#region ---- Service ----\n\n/**\n * Resolves workflow run operations for workflow-run plugin list rows.\n * Delegates resume/take-over to {@link AXPWorkflowInstanceHumanTaskService} (same as task board).\n */\n@Injectable({ providedIn: 'root' })\nexport class AXPWorkflowRunActionService {\n //#region ---- Services & Dependencies ----\n\n private readonly entityService = inject(AXPEntityService);\n private readonly humanTaskService = inject(AXPWorkflowInstanceHumanTaskService);\n private readonly workflowManager = inject(AXPWorkflowManager);\n private readonly sessionService = inject(AXPSessionService);\n private readonly translationService = inject(AXTranslationService);\n private readonly toastService = inject(AXToastService);\n private readonly workflowEngine = inject(AXP_WORKFLOW_ENGINE, { optional: true }) as AXPWorkflowEngine | null;\n private readonly bookmarkAccess = createWorkflowInstanceBookmarkAccess();\n\n //#endregion\n\n //#region ---- Instance resolution ----\n\n /** Reads workflow instance id from a domain list row or command payload. */\n resolveInstanceId(record: unknown): string | null {\n if (!record || typeof record !== 'object') {\n return null;\n }\n const fromWorkflowInfo = getRecordWorkflowInstanceId(\n record as { workflowInfo?: { instanceId?: string | null } },\n );\n if (fromWorkflowInfo) {\n return fromWorkflowInfo;\n }\n const direct = get(record as Record<string, unknown>, 'instanceId');\n if (typeof direct === 'string' && direct.trim().length > 0) {\n return direct.trim();\n }\n return null;\n }\n\n /**\n * Finds the primary suspended human-task bookmark for continue / take-over.\n * Prefers task-board human-task and cartable bookmarks.\n */\n async findPrimarySuspendedHumanTask(instanceId: string): Promise<AXPWorkflowRunSuspendedHumanTask | null> {\n const trimmed = instanceId?.trim();\n if (!trimmed) {\n return null;\n }\n\n const instance = await this.bookmarkAccess.loadInstanceForContinuation(trimmed);\n if (!instance || instance.subStatus !== 'Suspended') {\n return null;\n }\n\n const active = this.bookmarkAccess.getActiveBookmarks(instance);\n const matches: AXPWorkflowRunSuspendedHumanTask[] = [];\n for (const bookmark of active) {\n const payload = this.bookmarkAccess.parseHumanTaskPayload(bookmark);\n if (!payload?.taskToken || !this.isTaskBoardHumanPayload(payload)) {\n continue;\n }\n matches.push({ instance, bookmark, payload });\n }\n return matches.length === 1 ? matches[0] : null;\n }\n\n //#endregion\n\n //#region ---- Run operations ----\n\n /** Runs the primary human-task action on the current suspended step (e.g. open questionnaire). */\n async continueRun(instanceId: string) {\n const task = await this.findPrimarySuspendedHumanTask(instanceId);\n if (!task) {\n return { success: false as const, error: 'NO_SUSPENDED_TASK' as const };\n }\n\n const payload = task.payload;\n if (isWorkflowPooledClaimablePayload(payload)) {\n return this.continuePooledHumanTask(instanceId, task);\n }\n\n const decision = this.humanTaskService.availableActions(payload).some(action => /^(approve|reject)$/i.test(action.command?.name ?? action.name ?? ''));\n const assigned = normalizeWorkflowTaskUserIds(payload.assignedUserIds);\n const currentUserId = this.sessionService.user?.id;\n if (\n currentUserId &&\n assigned.length > 0 &&\n !assigned.includes(String(currentUserId)) &&\n decision\n ) {\n const content = await this.translationService.translateAsync(\n '@workflow-management:workflow-run.messages.awaiting-approver',\n );\n this.toastService.show({\n color: 'warning',\n title: await this.translationService.translateAsync('@general:messages.generic.warning.title'),\n content,\n closeButton: true,\n });\n return { success: false as const, error: 'NOT_ASSIGNEE' as const, message: content };\n }\n\n const result = await this.humanTaskService.executePrimaryHumanTaskAction(instanceId, task.bookmark.activityId, {\n suppressContinuation: true,\n notifyViews: true,\n });\n\n if (!result?.success) {\n return {\n success: false as const,\n error: 'RESUME_FAILED' as const,\n message: result?.error,\n };\n }\n\n return { success: true as const };\n }\n\n /**\n * Pooled cartable / human-task steps must be claimed before approve/reject.\n * Claims for the current user when they are a candidate, then directs them to the task board.\n */\n private async continuePooledHumanTask(\n instanceId: string,\n task: AXPWorkflowRunSuspendedHumanTask,\n ): Promise<\n | { success: true }\n | { success: false; error: 'NOT_CANDIDATE' | 'CLAIM_FAILED' | 'RESUME_FAILED'; message?: string }\n > {\n const currentUserId = this.sessionService.user?.id;\n const candidates = normalizeWorkflowTaskUserIds(task.payload.candidateUserIds);\n if (!currentUserId || !candidates.includes(String(currentUserId))) {\n const content = await this.translationService.translateAsync(\n '@workflow-management:tasks.errors.not-assignee',\n );\n this.toastService.show({\n color: 'warning',\n title: await this.translationService.translateAsync('@general:messages.generic.warning.title'),\n content,\n closeButton: true,\n });\n return { success: false as const, error: 'NOT_CANDIDATE' as const, message: content };\n }\n\n const claimResult = await this.workflowManager.claimTask(\n instanceId,\n task.bookmark.id,\n task.bookmark.activityId,\n );\n if (!claimResult.success) {\n return {\n success: false as const,\n error: 'CLAIM_FAILED' as const,\n message: claimResult.error,\n };\n }\n\n this.humanTaskService.notifyWorkflowTaskViewsChanged();\n const content = await this.translationService.translateAsync(\n '@workflow-management:workflow-run.messages.use-task-board',\n );\n this.toastService.show({\n color: 'success',\n title: await this.translationService.translateAsync('@general:messages.generic.success.title'),\n content,\n closeButton: true,\n });\n return { success: true as const };\n }\n\n /** Take over the current suspended human-task bookmark without advancing the workflow. */\n async takeOverRun(instanceId: string) {\n const task = await this.findPrimarySuspendedHumanTask(instanceId);\n if (!task) {\n return { success: false as const, error: 'NO_SUSPENDED_TASK' as const };\n }\n\n const reassigned = await this.humanTaskService.reassignBookmarkToCurrentUserWithConfirm(\n instanceId,\n task.bookmark.id,\n task.bookmark.activityId,\n );\n\n if (!reassigned) {\n return { success: false as const, error: 'REASSIGN_FAILED' as const };\n }\n\n this.humanTaskService.notifyWorkflowTaskViewsChanged();\n return { success: true as const };\n }\n\n /** Cancels a workflow instance and optionally marks the linked domain row as cancelled. */\n async cancelRun(params: AXPWorkflowRunCancelParams): Promise<{ success: boolean }> {\n const instanceId = params.instanceId?.trim();\n if (!instanceId) {\n return { success: false };\n }\n\n const engine = this.workflowEngine;\n if (engine?.cancelInstance) {\n await engine.cancelInstance(instanceId, params.reason?.trim() || 'cancelled-by-user');\n } else {\n const now = new Date().toISOString();\n await this.entityService.withEntity('WorkflowManagement', 'WorkflowInstance').data().update(instanceId, {\n status: 'Finished',\n subStatus: 'Cancelled',\n finishedAt: now,\n updatedAt: now,\n } as never);\n }\n\n const recordId = params.recordId?.trim();\n const entitySource = params.entitySource?.trim();\n if (recordId && entitySource && entitySource !== 'TaskManagement.Task') {\n const [moduleName, entityName] = entitySource.split('.');\n if (moduleName && entityName) {\n const statusField = params.statusField?.trim() || 'statusId';\n const cancelledStatus = params.cancelledStatusId?.trim() || 'cancelled';\n await this.entityService.withEntity(moduleName, entityName).data().update(recordId, {\n [statusField]: cancelledStatus,\n ...(params.reason ? { notes: params.reason } : {}),\n } as never);\n }\n }\n\n this.humanTaskService.notifyWorkflowTaskViewsChanged();\n return { success: true };\n }\n\n //#endregion\n\n //#region ---- Helpers ----\n\n private isTaskBoardHumanPayload(payload: HumanTaskBookmarkPayload): boolean {\n const activityType = payload.activityType;\n return activityType === 'workflow-activity:human-task' || activityType === 'workflow-activity:cartable';\n }\n\n /** Parses `Module.Entity` and record id from flat command input. */\n parseCommandRecordContext(input: {\n entity?: string;\n entityInfo?: { source?: string; module?: string; name?: string };\n data?: unknown;\n }): { entitySource: string | null; recordId: string | null; instanceId: string | null } {\n const ctx = input;\n const data = ctx?.data;\n const entitySource =\n ctx?.entityInfo?.source?.trim() ||\n ctx?.entity?.trim() ||\n (ctx?.entityInfo?.module && ctx?.entityInfo?.name\n ? `${ctx.entityInfo.module}.${ctx.entityInfo.name}`\n : null);\n\n const recordId =\n data && typeof data === 'object' && isString(get(data, 'id'))\n ? String(get(data, 'id')).trim()\n : null;\n\n return {\n entitySource,\n recordId,\n instanceId: this.resolveInstanceId(data),\n };\n }\n\n //#endregion\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXDialogService } from '@acorex/components/dialog';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\n\nimport { inject, Injectable } from '@angular/core';\nimport { AXPWorkflowRunActionService } from '../workflow-run-action.service';\n\n//#endregion\n\n//#region ---- Command ----\n\n/** Cancels a workflow run and marks the linked domain row as cancelled when applicable. */\n@Injectable({ providedIn: 'root' })\nexport class CancelWorkflowRunCommand implements AXPCommand<Record<string, unknown>, void> {\n //#region ---- Services & Dependencies ----\n\n private readonly runActionService = inject(AXPWorkflowRunActionService);\n private readonly dialogService = inject(AXDialogService);\n private readonly toastService = inject(AXToastService);\n private readonly translationService = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- Command Implementation ----\n\n async execute(input: Record<string, unknown>): AXPCommandExecuteResultPromise<void> {\n const { instanceId, entitySource, recordId } = this.runActionService.parseCommandRecordContext(input);\n if (!instanceId) {\n return { success: false, message: { text: 'No workflow instance is linked to this record.' } };\n }\n\n const title = await this.translationService.translateAsync(\n '@workflow-management:workflow-run.dialogs.cancel-run.title',\n );\n const message = await this.translationService.translateAsync(\n '@workflow-management:workflow-run.dialogs.cancel-run.message',\n );\n const confirmed = await this.dialogService.confirm(title, message, 'warning', 'horizontal', false, 'cancel');\n if (!confirmed.result) {\n return { success: false };\n }\n\n const reason = await this.translationService.translateAsync(\n '@workflow-management:workflow-run.messages.cancel-run-note',\n );\n\n const result = await this.runActionService.cancelRun({\n instanceId,\n entitySource: entitySource ?? undefined,\n recordId: recordId ?? undefined,\n reason,\n });\n\n if (!result.success) {\n return { success: false, message: { text: 'Could not cancel the workflow run.' } };\n }\n\n this.toastService.show({\n color: 'success',\n title: await this.translationService.translateAsync('@general:messages.generic.success.title'),\n content: await this.translationService.translateAsync(\n '@workflow-management:workflow-run.messages.cancel-run-success',\n ),\n closeButton: true,\n timeOut: 3000,\n });\n\n return { success: true, kind: 'object', data: undefined };\n }\n\n //#endregion\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\n\nimport { inject, Injectable } from '@angular/core';\nimport { AXPWorkflowRunActionService } from '../workflow-run-action.service';\n\n//#endregion\n\n//#region ---- Command ----\n\n/** Continues the current suspended human-task step for a workflow-backed domain row. */\n@Injectable({ providedIn: 'root' })\nexport class ContinueWorkflowRunCommand implements AXPCommand<Record<string, unknown>, void> {\n //#region ---- Services & Dependencies ----\n\n private readonly runActionService = inject(AXPWorkflowRunActionService);\n private readonly toastService = inject(AXToastService);\n private readonly translationService = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- Command Implementation ----\n\n async execute(input: Record<string, unknown>): AXPCommandExecuteResultPromise<void> {\n const { instanceId } = this.runActionService.parseCommandRecordContext(input);\n if (!instanceId) {\n return { success: false, message: { text: 'No workflow instance is linked to this record.' } };\n }\n\n const result = await this.runActionService.continueRun(instanceId);\n if (result.success) {\n return { success: true, kind: 'object', data: undefined };\n }\n\n if (result.error === 'NO_SUSPENDED_TASK') {\n const content = await this.translationService.translateAsync(\n '@workflow-management:workflow-run.messages.no-pending-step',\n );\n this.toastService.show({\n color: 'warning',\n title: await this.translationService.translateAsync('@general:messages.generic.warning.title'),\n content,\n closeButton: true,\n });\n return { success: false };\n }\n\n if (result.message) {\n this.toastService.show({\n color: 'danger',\n title: await this.translationService.translateAsync('@general:messages.generic.error.title'),\n content: result.message,\n closeButton: true,\n });\n }\n\n return { success: false };\n }\n\n //#endregion\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXPopupService } from '@acorex/components/popup';\nimport { AXPDialogOpener } from '@acorex-platform/framework-client/core';\nimport { AXTranslationService } from '@acorex/core/translation';\n\nimport { inject, Injectable } from '@angular/core';\nimport { AXPWorkflowRunActionService } from '../workflow-run-action.service';\n\n//#endregion\n\n//#region ---- Command ----\n\n/** Opens the workflow run history popup (timeline + disabled visual tab) for a domain list row. */\n@Injectable({ providedIn: 'root' })\nexport class ShowWorkflowRunHistoryCommand implements AXPCommand<Record<string, unknown>, void> {\n //#region ---- Services & Dependencies ----\n\n private readonly popupService = inject(AXPopupService);\n private readonly dialogOpener = inject(AXPDialogOpener);\n private readonly runActionService = inject(AXPWorkflowRunActionService);\n private readonly translationService = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- Command Implementation ----\n\n async execute(input: Record<string, unknown>): AXPCommandExecuteResultPromise<void> {\n const { instanceId } = this.runActionService.parseCommandRecordContext(input);\n if (!instanceId) {\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync(\n '@workflow-management:workflow-run.history.messages.no-instance',\n ),\n },\n };\n }\n\n await this.dialogOpener.openPopup({\n load: () =>\n import('../components/workflow-run-history-popup/workflow-run-history-popup.component').then(\n (module) => module.AXMWorkflowRunHistoryPopupComponent,\n ),\n data: { instanceId },\n show: (component) =>\n this.popupService.open(component, {\n title: '',\n size: 'lg',\n data: { instanceId },\n }),\n });\n\n return {\n success: true,\n kind: 'object',\n data: undefined,\n metadata: { refresh: false },\n };\n }\n\n //#endregion\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\n\nimport { inject, Injectable } from '@angular/core';\nimport { AXPWorkflowRunActionService } from '../workflow-run-action.service';\n\n//#endregion\n\n//#region ---- Command ----\n\n/** Reassigns the current suspended human-task to the current user (take over). */\n@Injectable({ providedIn: 'root' })\nexport class TakeOverWorkflowRunCommand implements AXPCommand<Record<string, unknown>, void> {\n //#region ---- Services & Dependencies ----\n\n private readonly runActionService = inject(AXPWorkflowRunActionService);\n private readonly toastService = inject(AXToastService);\n private readonly translationService = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- Command Implementation ----\n\n async execute(input: Record<string, unknown>): AXPCommandExecuteResultPromise<void> {\n const { instanceId } = this.runActionService.parseCommandRecordContext(input);\n if (!instanceId) {\n return { success: false, message: { text: 'No workflow instance is linked to this record.' } };\n }\n\n const result = await this.runActionService.takeOverRun(instanceId);\n if (result.success) {\n return { success: true, kind: 'object', data: undefined };\n }\n\n if (result.error === 'NO_SUSPENDED_TASK') {\n const content = await this.translationService.translateAsync(\n '@workflow-management:workflow-run.messages.no-pending-step',\n );\n this.toastService.show({\n color: 'warning',\n title: await this.translationService.translateAsync('@general:messages.generic.warning.title'),\n content,\n closeButton: true,\n });\n return { success: false };\n }\n\n return { success: false };\n }\n\n //#endregion\n}\n\n//#endregion\n","//#region ---- Exports ----\n\nexport { CancelWorkflowRunCommand } from './cancel-workflow-run.command';\nexport { ContinueWorkflowRunCommand } from './continue-workflow-run.command';\nexport { ShowWorkflowRunHistoryCommand } from './show-workflow-run-history.command';\nexport { TakeOverWorkflowRunCommand } from './take-over-workflow-run.command';\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;AA6CA;AAEA;AAEA;;;AAGG;MAEU,2BAA2B,CAAA;AADxC,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,mCAAmC,CAAC;AAC9D,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAC5C,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACjD,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;QACrC,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,mBAAmB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAA6B;QAC5F,IAAA,CAAA,cAAc,GAAG,oCAAoC,EAAE;AA4PzE,IAAA;;;;AArPC,IAAA,iBAAiB,CAAC,MAAe,EAAA;QAC/B,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;AACzC,YAAA,OAAO,IAAI;QACb;AACA,QAAA,MAAM,gBAAgB,GAAG,2BAA2B,CAClD,MAA2D,CAC5D;QACD,IAAI,gBAAgB,EAAE;AACpB,YAAA,OAAO,gBAAgB;QACzB;QACA,MAAM,MAAM,GAAG,GAAG,CAAC,MAAiC,EAAE,YAAY,CAAC;AACnE,QAAA,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE;AAC1D,YAAA,OAAO,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AA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,cADb,MAAM,EAAA,CAAA,CAAA;;2FACnB,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBADtC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACflC;AAOA;;"}
|
package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-automation.mjs
CHANGED
|
@@ -156,7 +156,7 @@ async function factoryAutomation() {
|
|
|
156
156
|
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
157
157
|
},
|
|
158
158
|
schema: {
|
|
159
|
-
dataType: '
|
|
159
|
+
dataType: 'reference',
|
|
160
160
|
interface: {
|
|
161
161
|
type: AXPWidgetsList.Editors.TextBox,
|
|
162
162
|
options: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-workflow-management-client-contracts-entities-automation.mjs","sources":["../../../../libs/modules/workflow-management/contracts/src/root-config.ts","../../../../libs/modules/workflow-management/contracts/src/entities/automation/automation.entity.ts","../../../../libs/modules/workflow-management/contracts/src/acorex-platform-module-workflow-management-client-contracts-entities-automation.ts"],"sourcesContent":["const config = {\n i18n: 'workflow-management',\n module: 'WorkflowManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'workflow-management',\n name: config.module,\n title: '@workflow-management:module.title',\n icon: 'fa-light fa-diagram-project',\n },\n /** Task-board suspend activity type ids (match activity definition keys). */\n activities: {\n humanTask: 'workflow-activity:human-task',\n cartable: 'workflow-activity:cartable',\n },\n entities: {\n workflowDefinition: {\n name: 'WorkflowDefinition',\n fullName: `${config.module}.WorkflowDefinition`,\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.title',\n titlePlural: '@workflow-management:workflow-definitions.entities.workflow-definition.plural',\n icon: 'fa-light fa-diagram-project',\n },\n workflowInstance: {\n name: 'WorkflowInstance',\n fullName: `${config.module}.WorkflowInstance`,\n title: '@workflow-management:workflow-instances.entities.workflow-instance.title',\n titlePlural: '@workflow-management:workflow-instances.entities.workflow-instance.plural',\n icon: 'fa-light fa-play-circle',\n },\n activityDefinition: {\n name: 'ActivityDefinition',\n fullName: `${config.module}.ActivityDefinition`,\n title: '@workflow-management:activities.entities.activity-definition.title',\n titlePlural: '@workflow-management:activities.entities.activity-definition.plural',\n icon: 'fa-light fa-puzzle-piece',\n },\n automation: {\n name: 'Automation',\n fullName: `${config.module}.Automation`,\n title: '@workflow-management:automations.entities.automation.title',\n titlePlural: '@workflow-management:automations.entities.automation.plural',\n icon: 'fa-light fa-bolt',\n },\n },\n /**\n * Live dashboard queries bound to base DashboardManagement chart/KPI widgets.\n * Keys: `{module}:Dashboard:{Name}`.\n */\n queries: {\n dashboard: {\n definitionsKpi: `${config.module}:Dashboard:DefinitionsKpi`,\n activitiesKpi: `${config.module}:Dashboard:ActivitiesKpi`,\n definitionsByStatusBar: `${config.module}:Dashboard:DefinitionsByStatusBar`,\n activitiesByCategoryDonut: `${config.module}:Dashboard:ActivitiesByCategoryDonut`,\n publishedDefinitionsGauge: `${config.module}:Dashboard:PublishedDefinitionsGauge`,\n /** @deprecated Prefer {@link runningInstancesKpi} for runtime ops dashboards. */\n workflowDefinitionsKpi: `${config.module}:Dashboard:WorkflowDefinitionsKpi`,\n /** @deprecated Prefer {@link instancesBySubStatusDonut} for runtime ops dashboards. */\n workflowsByStatusBar: `${config.module}:Dashboard:WorkflowsByStatusBar`,\n runningInstancesKpi: `${config.module}:Dashboard:RunningInstancesKpi`,\n faultedInstancesKpi: `${config.module}:Dashboard:FaultedInstancesKpi`,\n awaitingActionInstancesKpi: `${config.module}:Dashboard:AwaitingActionInstancesKpi`,\n startedTodayInstancesKpi: `${config.module}:Dashboard:StartedTodayInstancesKpi`,\n completedTodayInstancesKpi: `${config.module}:Dashboard:CompletedTodayInstancesKpi`,\n avgRunningAgeHoursKpi: `${config.module}:Dashboard:AvgRunningAgeHoursKpi`,\n instancesBySubStatusDonut: `${config.module}:Dashboard:InstancesBySubStatusDonut`,\n instancesByDefinitionBar: `${config.module}:Dashboard:InstancesByDefinitionBar`,\n instancesThroughputLine: `${config.module}:Dashboard:InstancesThroughputLine`,\n instancesByCurrentActivityBar: `${config.module}:Dashboard:InstancesByCurrentActivityBar`,\n instancesFaultHeatmap: `${config.module}:Dashboard:InstancesFaultHeatmap`,\n },\n },\n} as const;\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityDetailsCrudActions, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function factoryAutomation(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.automation.name,\n title: RootConfig.entities.automation.title,\n icon: RootConfig.entities.automation.icon,\n searchTags: [\n 'automation',\n 'workflow automation',\n 'conditional action',\n 'rule automation',\n 'trigger command',\n 'condition expression',\n 'اتوماسیون',\n 'اتوماسیونها',\n 'گردش کار',\n 'دستور',\n 'شرط',\n 'workflow trigger',\n ],\n plugins: [\n { name: 'history' },\n { name: 'audit-info' },\n {\n name: 'unique-fields',\n options: { fields: 'name', scope: 'parent', parentField: 'refId' },\n },\n ],\n formats: {\n individual: RootConfig.entities.automation.title,\n plural: RootConfig.entities.automation.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ context.eval(\"refType\") + \" (\" + context.eval(\"refId\") + \")\" }}',\n },\n },\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n { id: 'condition', title: '@workflow-management:automations.entities.automation.groups.condition' },\n { id: 'command', title: '@workflow-management:automations.entities.automation.groups.command' },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'refType',\n title: '@workflow-management:automations.entities.automation.fields.ref-type.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder:\n '@workflow-management:automations.entities.automation.fields.ref-type.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'refId',\n title: '@workflow-management:automations.entities.automation.fields.ref-id.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder:\n '@workflow-management:automations.entities.automation.fields.ref-id.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'name',\n title: '@workflow-management:automations.entities.automation.fields.name.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder:\n '@workflow-management:automations.entities.automation.fields.name.placeholder',\n },\n },\n },\n validations: [\n { rule: 'required' },\n { rule: 'variable-name' },\n ],\n },\n {\n name: 'title',\n title: '@workflow-management:automations.entities.automation.fields.title.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder:\n '@workflow-management:automations.entities.automation.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@workflow-management:automations.entities.automation.fields.description.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder:\n '@workflow-management:automations.entities.automation.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'condition',\n title: '@workflow-management:automations.entities.automation.fields.condition.title',\n groupId: 'condition',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsList.ExpressionBuilders.ConditionBuilder,\n options: {\n filterDefinitions:\n \"{{ automation.rules(context.eval('refType'), context.eval('refId')) }}\",\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'command',\n title: '@workflow-management:automations.entities.automation.fields.command.title',\n groupId: 'command',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsList.Editors.ActivityCommandConfigurator,\n options: {},\n },\n },\n validations: [{ rule: 'required' }],\n },\n ],\n columns: [{ name: 'name' }, { name: 'title' }, { name: 'description' }, { name: 'command' }],\n interfaces: {\n master: {\n create: {\n sections: [\n { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'condition', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'command', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'refType', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'refId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n {\n name: 'condition',\n layout: {\n label: { visible: false },\n positions: { lg: { colSpan: 12 } },\n },\n },\n {\n name: 'command',\n layout: {\n label: { visible: false },\n positions: { lg: { colSpan: 12 } },\n },\n },\n ],\n },\n update: {\n sections: [\n { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'condition', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'command', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'refType', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'refId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n {\n name: 'condition',\n layout: {\n label: { visible: false },\n positions: { lg: { colSpan: 12 } },\n },\n },\n {\n name: 'command',\n layout: {\n label: { visible: false },\n positions: { lg: { colSpan: 12 } },\n },\n },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'condition', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'command', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'refType', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'refId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n {\n name: 'condition',\n layout: {\n label: { visible: false },\n positions: { lg: { colSpan: 12 } },\n },\n },\n {\n name: 'command',\n layout: {\n label: { visible: false },\n positions: { lg: { colSpan: 12 } },\n },\n },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './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-client-contracts-entities-automation.mjs","sources":["../../../../libs/modules/workflow-management/contracts/src/root-config.ts","../../../../libs/modules/workflow-management/contracts/src/entities/automation/automation.entity.ts","../../../../libs/modules/workflow-management/contracts/src/acorex-platform-module-workflow-management-client-contracts-entities-automation.ts"],"sourcesContent":["const config = {\n i18n: 'workflow-management',\n module: 'WorkflowManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'workflow-management',\n name: config.module,\n title: '@workflow-management:module.title',\n icon: 'fa-light fa-diagram-project',\n },\n /** Task-board suspend activity type ids (match activity definition keys). */\n activities: {\n humanTask: 'workflow-activity:human-task',\n cartable: 'workflow-activity:cartable',\n },\n entities: {\n workflowDefinition: {\n name: 'WorkflowDefinition',\n fullName: `${config.module}.WorkflowDefinition`,\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.title',\n titlePlural: '@workflow-management:workflow-definitions.entities.workflow-definition.plural',\n icon: 'fa-light fa-diagram-project',\n },\n workflowInstance: {\n name: 'WorkflowInstance',\n fullName: `${config.module}.WorkflowInstance`,\n title: '@workflow-management:workflow-instances.entities.workflow-instance.title',\n titlePlural: '@workflow-management:workflow-instances.entities.workflow-instance.plural',\n icon: 'fa-light fa-play-circle',\n },\n activityDefinition: {\n name: 'ActivityDefinition',\n fullName: `${config.module}.ActivityDefinition`,\n title: '@workflow-management:activities.entities.activity-definition.title',\n titlePlural: '@workflow-management:activities.entities.activity-definition.plural',\n icon: 'fa-light fa-puzzle-piece',\n },\n automation: {\n name: 'Automation',\n fullName: `${config.module}.Automation`,\n title: '@workflow-management:automations.entities.automation.title',\n titlePlural: '@workflow-management:automations.entities.automation.plural',\n icon: 'fa-light fa-bolt',\n },\n },\n /**\n * Live dashboard queries bound to base DashboardManagement chart/KPI widgets.\n * Keys: `{module}:Dashboard:{Name}`.\n */\n queries: {\n dashboard: {\n definitionsKpi: `${config.module}:Dashboard:DefinitionsKpi`,\n activitiesKpi: `${config.module}:Dashboard:ActivitiesKpi`,\n definitionsByStatusBar: `${config.module}:Dashboard:DefinitionsByStatusBar`,\n activitiesByCategoryDonut: `${config.module}:Dashboard:ActivitiesByCategoryDonut`,\n publishedDefinitionsGauge: `${config.module}:Dashboard:PublishedDefinitionsGauge`,\n /** @deprecated Prefer {@link runningInstancesKpi} for runtime ops dashboards. */\n workflowDefinitionsKpi: `${config.module}:Dashboard:WorkflowDefinitionsKpi`,\n /** @deprecated Prefer {@link instancesBySubStatusDonut} for runtime ops dashboards. */\n workflowsByStatusBar: `${config.module}:Dashboard:WorkflowsByStatusBar`,\n runningInstancesKpi: `${config.module}:Dashboard:RunningInstancesKpi`,\n faultedInstancesKpi: `${config.module}:Dashboard:FaultedInstancesKpi`,\n awaitingActionInstancesKpi: `${config.module}:Dashboard:AwaitingActionInstancesKpi`,\n startedTodayInstancesKpi: `${config.module}:Dashboard:StartedTodayInstancesKpi`,\n completedTodayInstancesKpi: `${config.module}:Dashboard:CompletedTodayInstancesKpi`,\n avgRunningAgeHoursKpi: `${config.module}:Dashboard:AvgRunningAgeHoursKpi`,\n instancesBySubStatusDonut: `${config.module}:Dashboard:InstancesBySubStatusDonut`,\n instancesByDefinitionBar: `${config.module}:Dashboard:InstancesByDefinitionBar`,\n instancesThroughputLine: `${config.module}:Dashboard:InstancesThroughputLine`,\n instancesByCurrentActivityBar: `${config.module}:Dashboard:InstancesByCurrentActivityBar`,\n instancesFaultHeatmap: `${config.module}:Dashboard:InstancesFaultHeatmap`,\n },\n },\n} as const;\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityDetailsCrudActions, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function factoryAutomation(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.automation.name,\n title: RootConfig.entities.automation.title,\n icon: RootConfig.entities.automation.icon,\n searchTags: [\n 'automation',\n 'workflow automation',\n 'conditional action',\n 'rule automation',\n 'trigger command',\n 'condition expression',\n 'اتوماسیون',\n 'اتوماسیونها',\n 'گردش کار',\n 'دستور',\n 'شرط',\n 'workflow trigger',\n ],\n plugins: [\n { name: 'history' },\n { name: 'audit-info' },\n {\n name: 'unique-fields',\n options: { fields: 'name', scope: 'parent', parentField: 'refId' },\n },\n ],\n formats: {\n individual: RootConfig.entities.automation.title,\n plural: RootConfig.entities.automation.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ context.eval(\"refType\") + \" (\" + context.eval(\"refId\") + \")\" }}',\n },\n },\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n { id: 'condition', title: '@workflow-management:automations.entities.automation.groups.condition' },\n { id: 'command', title: '@workflow-management:automations.entities.automation.groups.command' },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'refType',\n title: '@workflow-management:automations.entities.automation.fields.ref-type.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder:\n '@workflow-management:automations.entities.automation.fields.ref-type.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'refId',\n title: '@workflow-management:automations.entities.automation.fields.ref-id.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'reference',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder:\n '@workflow-management:automations.entities.automation.fields.ref-id.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'name',\n title: '@workflow-management:automations.entities.automation.fields.name.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder:\n '@workflow-management:automations.entities.automation.fields.name.placeholder',\n },\n },\n },\n validations: [\n { rule: 'required' },\n { rule: 'variable-name' },\n ],\n },\n {\n name: 'title',\n title: '@workflow-management:automations.entities.automation.fields.title.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder:\n '@workflow-management:automations.entities.automation.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@workflow-management:automations.entities.automation.fields.description.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder:\n '@workflow-management:automations.entities.automation.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'condition',\n title: '@workflow-management:automations.entities.automation.fields.condition.title',\n groupId: 'condition',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsList.ExpressionBuilders.ConditionBuilder,\n options: {\n filterDefinitions:\n \"{{ automation.rules(context.eval('refType'), context.eval('refId')) }}\",\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'command',\n title: '@workflow-management:automations.entities.automation.fields.command.title',\n groupId: 'command',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsList.Editors.ActivityCommandConfigurator,\n options: {},\n },\n },\n validations: [{ rule: 'required' }],\n },\n ],\n columns: [{ name: 'name' }, { name: 'title' }, { name: 'description' }, { name: 'command' }],\n interfaces: {\n master: {\n create: {\n sections: [\n { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'condition', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'command', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'refType', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'refId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n {\n name: 'condition',\n layout: {\n label: { visible: false },\n positions: { lg: { colSpan: 12 } },\n },\n },\n {\n name: 'command',\n layout: {\n label: { visible: false },\n positions: { lg: { colSpan: 12 } },\n },\n },\n ],\n },\n update: {\n sections: [\n { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'condition', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'command', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'refType', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'refId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n {\n name: 'condition',\n layout: {\n label: { visible: false },\n positions: { lg: { colSpan: 12 } },\n },\n },\n {\n name: 'command',\n layout: {\n label: { visible: false },\n positions: { lg: { colSpan: 12 } },\n },\n },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'condition', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'command', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'refType', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'refId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n {\n name: 'condition',\n layout: {\n label: { visible: false },\n positions: { lg: { colSpan: 12 } },\n },\n },\n {\n name: 'command',\n layout: {\n label: { visible: false },\n positions: { lg: { colSpan: 12 } },\n },\n },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.automation';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,qBAAqB;AAC3B,IAAA,MAAM,EAAE,oBAAoB;CAC7B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,qBAAqB;QAC5B,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,mCAAmC;AAC1C,QAAA,IAAI,EAAE,6BAA6B;AACpC,KAAA;;AAED,IAAA,UAAU,EAAE;AACV,QAAA,SAAS,EAAE,8BAA8B;AACzC,QAAA,QAAQ,EAAE,4BAA4B;AACvC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,kBAAkB,EAAE;AAClB,YAAA,IAAI,EAAE,oBAAoB;AAC1B,YAAA,QAAQ,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,mBAAA,CAAqB;AAC/C,YAAA,KAAK,EAAE,8EAA8E;AACrF,YAAA,WAAW,EAAE,+EAA+E;AAC5F,YAAA,IAAI,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AAK,EAAE;gCACzB,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE;AACnC,6BAAA;AACF,yBAAA;AACF,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;AC1SA;;AAEG;;"}
|
|
@@ -86,11 +86,11 @@ const RootConfig = {
|
|
|
86
86
|
const workflowManagementLocalEntityCatalog = {
|
|
87
87
|
moduleName: RootConfig.module.name,
|
|
88
88
|
loaders: {
|
|
89
|
-
'activity-category': () => import('./acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-
|
|
90
|
-
[RootConfig.entities.activityDefinition.name]: () => import('./acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-
|
|
91
|
-
[RootConfig.entities.automation.name]: () => import('./acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-
|
|
92
|
-
[RootConfig.entities.workflowDefinition.name]: () => import('./acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-
|
|
93
|
-
[RootConfig.entities.workflowInstance.name]: () => import('./acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-
|
|
89
|
+
'activity-category': () => import('./acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-DyB1oUwY.mjs').then((m) => m.factoryActivityCategory()),
|
|
90
|
+
[RootConfig.entities.activityDefinition.name]: () => import('./acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-DXu2hFJW.mjs').then((m) => m.factoryActivityDefinition()),
|
|
91
|
+
[RootConfig.entities.automation.name]: () => import('./acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-CcCT3L9D.mjs').then((m) => m.factoryAutomation()),
|
|
92
|
+
[RootConfig.entities.workflowDefinition.name]: () => import('./acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-BKYn5nnd.mjs').then((m) => m.factoryWorkflowDefinition()),
|
|
93
|
+
[RootConfig.entities.workflowInstance.name]: () => import('./acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-Bg_3eDOz.mjs').then((m) => m.factoryWorkflowInstance()),
|
|
94
94
|
},
|
|
95
95
|
};
|
|
96
96
|
//#endregion
|
|
@@ -100,4 +100,4 @@ const workflowManagementLocalEntityCatalog = {
|
|
|
100
100
|
*/
|
|
101
101
|
|
|
102
102
|
export { RootConfig as R, workflowManagementLocalEntityCatalog as w };
|
|
103
|
-
//# sourceMappingURL=acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-
|
|
103
|
+
//# sourceMappingURL=acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-BvPz8y4z.mjs.map
|