@acorex-platform/module-workflow-management-client 0.0.38 → 0.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/fesm2022/{acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-CKudtLpx.mjs → acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-mxu-pura.mjs} +100 -49
  2. package/fesm2022/acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-mxu-pura.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-activity-category.mjs +12 -0
  4. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-activity-category.mjs.map +1 -1
  5. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-activity-definition.mjs +14 -0
  6. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-activity-definition.mjs.map +1 -1
  7. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-automation.mjs +14 -0
  8. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-automation.mjs.map +1 -1
  9. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-workflow-definition.mjs +14 -0
  10. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-workflow-definition.mjs.map +1 -1
  11. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-workflow-instance.mjs +14 -0
  12. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-workflow-instance.mjs.map +1 -1
  13. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-DKDogTU7.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-Drne-WcE.mjs} +6 -6
  14. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-DKDogTU7.mjs.map → acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-Drne-WcE.mjs.map} +1 -1
  15. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-1EWdojoP.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-3VLEu-L6.mjs} +14 -2
  16. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-3VLEu-L6.mjs.map +1 -0
  17. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-DYoF3vVe.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-ClVokZpw.mjs} +16 -2
  18. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-ClVokZpw.mjs.map +1 -0
  19. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-DbJeeZpQ.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-BY4uwLMZ.mjs} +16 -2
  20. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-BY4uwLMZ.mjs.map +1 -0
  21. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-BVSAGT0z.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-DN9KS_mu.mjs} +16 -2
  22. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-DN9KS_mu.mjs.map +1 -0
  23. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-BEA4WQX2.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-BnfbJExU.mjs} +16 -2
  24. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-BnfbJExU.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog.mjs +1 -1
  26. package/fesm2022/acorex-platform-module-workflow-management-client-contracts.mjs +20 -1
  27. package/fesm2022/acorex-platform-module-workflow-management-client-contracts.mjs.map +1 -1
  28. package/fesm2022/{acorex-platform-module-workflow-management-client-index-BKMDbQ8Z.mjs → acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs} +3 -3
  29. package/fesm2022/{acorex-platform-module-workflow-management-client-index-BKMDbQ8Z.mjs.map → acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs.map} +1 -1
  30. package/fesm2022/{acorex-platform-module-workflow-management-client-index-C3pkrctS.mjs → acorex-platform-module-workflow-management-client-index-C7OwbRxk.mjs} +2 -2
  31. package/fesm2022/{acorex-platform-module-workflow-management-client-index-C3pkrctS.mjs.map → acorex-platform-module-workflow-management-client-index-C7OwbRxk.mjs.map} +1 -1
  32. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-DbeueT-X.mjs → acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-DBswxGAs.mjs} +5 -5
  33. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-DbeueT-X.mjs.map → acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-DBswxGAs.mjs.map} +1 -1
  34. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-Bw68Jwcb.mjs → acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-34kIeL5C.mjs} +2 -2
  35. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-Bw68Jwcb.mjs.map → acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-34kIeL5C.mjs.map} +1 -1
  36. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-task-popover.component-Y9rWe3O6.mjs → acorex-platform-module-workflow-management-client-workflow-task-popover.component-BDhOlDkg.mjs} +2 -2
  37. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-task-popover.component-Y9rWe3O6.mjs.map → acorex-platform-module-workflow-management-client-workflow-task-popover.component-BDhOlDkg.mjs.map} +1 -1
  38. package/fesm2022/acorex-platform-module-workflow-management-client.mjs +1 -1
  39. package/package.json +2 -2
  40. package/types/acorex-platform-module-workflow-management-client-contracts.d.ts +8 -2
  41. package/types/acorex-platform-module-workflow-management-client.d.ts +13 -0
  42. package/fesm2022/acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-CKudtLpx.mjs.map +0 -1
  43. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-1EWdojoP.mjs.map +0 -1
  44. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-DYoF3vVe.mjs.map +0 -1
  45. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-DbJeeZpQ.mjs.map +0 -1
  46. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-BVSAGT0z.mjs.map +0 -1
  47. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-BEA4WQX2.mjs.map +0 -1
@@ -7,7 +7,7 @@ import { firstValueFrom } from 'rxjs';
7
7
  import { RootConfig, AXPAdministrationPermissionKeys, AXPWorkflowManagementMenuKeys, AXP_WORKFLOW_TASK_CONTEXT_I18N_KEY } from '@acorex-platform/module-workflow-management-client/contracts';
8
8
  import { AXMCalendarManagementModule } from '@acorex-platform/module-calendar-management-client';
9
9
  import { AXP_PROTECTED_ROUTE_GUARDS, AXP_STATUS_PROVIDERS, AXP_MENU_PROVIDER, AXPSettingsService, AXPStatusDefinitionProviderService } from '@acorex-platform/framework-client/common';
10
- import { AXPBroadcastEventService, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, AXP_MODULE_MANIFEST_PROVIDER, provideLazyProvider, AXPExpressionEvaluatorService } from '@acorex-platform/framework-client/core';
10
+ import { AXPBroadcastEventService, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, provideLazyProvider, AXPExpressionEvaluatorService } from '@acorex-platform/framework-client/core';
11
11
  import { AXPDomainModule } from '@acorex-platform/framework-client/domain';
12
12
  import { AXP_PAGE_COMPONENT_PROVIDER } from '@acorex-platform/framework-client/layout/components';
13
13
  import { AXPWidgetSerializationHelper, AXP_WIDGETS_EDITOR_CATEGORY, AXPWidgetCoreModule, AXP_WIDGET_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/layout/widget-core';
@@ -223,7 +223,7 @@ class ShowLayoutPopupActivity {
223
223
  size: input.size || 'md',
224
224
  closeButton: input.closeButton !== undefined ? input.closeButton : true,
225
225
  closeOnBackdropClick: false,
226
- draggable: false,
226
+ draggable: true,
227
227
  data: {
228
228
  config: dialogConfig,
229
229
  callBack: (result) => {
@@ -544,6 +544,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
544
544
  type: Injectable
545
545
  }] });
546
546
 
547
+ /** Keep aligned with AXM_HCM_EMPLOYEE_SIGNATURE_PROVIDER_NAME. */
548
+ const DEFAULT_SIGN_OFF_SIGNATURE_PROVIDER = 'hcm-employee';
547
549
  //#endregion
548
550
  //#region ---- Sign-Off Activity ----
549
551
  /**
@@ -568,7 +570,10 @@ class SignOffActivity {
568
570
  const message = input.message
569
571
  ? await this.translationService.translateAsync(input.message)
570
572
  : await this.translationService.translateAsync('@workflow-management:sign-off.activities.sign-off.default-message');
571
- const dialogResult = await this.showSignOffDialog(message);
573
+ const dialogResult = await this.showSignOffDialog(message, {
574
+ captureMode: this.resolveCaptureMode(input.captureMode),
575
+ signatureProvider: this.resolveSignatureProvider(input.signatureProvider),
576
+ });
572
577
  if (dialogResult.cancelled) {
573
578
  return { success: true, kind: 'object',
574
579
  data: {
@@ -610,7 +615,25 @@ class SignOffActivity {
610
615
  }
611
616
  //#endregion
612
617
  //#region ---- Dialog ----
613
- async showSignOffDialog(message) {
618
+ resolveCaptureMode(value) {
619
+ if (value === 'popup') {
620
+ return 'popup';
621
+ }
622
+ if (value && typeof value === 'object' && 'id' in value) {
623
+ const id = value.id;
624
+ if (id === 'popup') {
625
+ return 'popup';
626
+ }
627
+ }
628
+ return 'inline';
629
+ }
630
+ resolveSignatureProvider(value) {
631
+ if (value === undefined || value === null) {
632
+ return DEFAULT_SIGN_OFF_SIGNATURE_PROVIDER;
633
+ }
634
+ return isString(value) ? trim(value) : DEFAULT_SIGN_OFF_SIGNATURE_PROVIDER;
635
+ }
636
+ async showSignOffDialog(message, signatureOptions) {
614
637
  const rawResult = await this.layoutBuilder
615
638
  .create()
616
639
  .dialog((dialog) => {
@@ -631,6 +654,10 @@ class SignOffActivity {
631
654
  .formField('@workflow-management:sign-off.activities.sign-off.signature-label', (field) => {
632
655
  field.path('signature');
633
656
  field.customWidget(AXPWidgetsList.Editors.SignatureBox, {
657
+ captureMode: signatureOptions.captureMode,
658
+ ...(signatureOptions.signatureProvider
659
+ ? { signatureProvider: signatureOptions.signatureProvider }
660
+ : {}),
634
661
  validations: [
635
662
  {
636
663
  rule: 'required',
@@ -2948,25 +2975,6 @@ class AXMWorkflowDefinitionStatusProvider extends AXPStatusProvider {
2948
2975
  }
2949
2976
  //#endregion
2950
2977
 
2951
- //#region ---- Imports ----
2952
- //#endregion
2953
- //#region ---- Manifest Definition ----
2954
- /**
2955
- * Workflow Management Module Manifest.
2956
- * Defines module metadata, features, and provider references.
2957
- */
2958
- const WorkflowManagementManifest = {
2959
- name: RootConfig.module.name,
2960
- version: '1.0.0',
2961
- title: RootConfig.module.title,
2962
- icon: RootConfig.module.icon,
2963
- i18n: RootConfig.config.i18n,
2964
- type: 'platform',
2965
- domain: 'operations',
2966
- // Module dependencies (optional)
2967
- };
2968
- //#endregion
2969
-
2970
2978
  //#endregion
2971
2979
  //#region ---- Permission Definition Provider ----
2972
2980
  /**
@@ -3098,29 +3106,29 @@ class AXMWorkflowManagementModule {
3098
3106
  },
3099
3107
  {
3100
3108
  key: 'WorkflowManagement.WorkflowRun:Continue',
3101
- command: () => import('./acorex-platform-module-workflow-management-client-index-BKMDbQ8Z.mjs').then((c) => c.ContinueWorkflowRunCommand),
3109
+ command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.ContinueWorkflowRunCommand),
3102
3110
  },
3103
3111
  {
3104
3112
  key: 'WorkflowManagement.WorkflowRun:CancelRun',
3105
- command: () => import('./acorex-platform-module-workflow-management-client-index-BKMDbQ8Z.mjs').then((c) => c.CancelWorkflowRunCommand),
3113
+ command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.CancelWorkflowRunCommand),
3106
3114
  },
3107
3115
  {
3108
3116
  key: 'WorkflowManagement.WorkflowRun:TakeOver',
3109
- command: () => import('./acorex-platform-module-workflow-management-client-index-BKMDbQ8Z.mjs').then((c) => c.TakeOverWorkflowRunCommand),
3117
+ command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.TakeOverWorkflowRunCommand),
3110
3118
  },
3111
3119
  {
3112
3120
  key: 'WorkflowManagement.WorkflowRun:ShowHistory',
3113
- command: () => import('./acorex-platform-module-workflow-management-client-index-BKMDbQ8Z.mjs').then((c) => c.ShowWorkflowRunHistoryCommand),
3121
+ command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.ShowWorkflowRunHistoryCommand),
3114
3122
  },
3115
3123
  {
3116
3124
  key: 'WorkflowManagement.WorkflowRun:ShowHistory',
3117
- command: () => import('./acorex-platform-module-workflow-management-client-index-BKMDbQ8Z.mjs').then((c) => c.ShowWorkflowRunHistoryCommand),
3125
+ command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.ShowWorkflowRunHistoryCommand),
3118
3126
  },
3119
3127
  ]),
3120
3128
  // provideEntity([RootConfig.entities.activityDefinition.fullName]),
3121
3129
  // Entity Definition Loader
3122
3130
  provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-workflow-management-client-index-C8nsbDAw.mjs').then((m) => m.AXMWorkflowInstanceActivityInstancesPageComponentProvider)),
3123
- provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-workflow-management-client-index-C3pkrctS.mjs').then((m) => m.AXMWorkflowDefinitionActivitiesPageComponentProvider)),
3131
+ provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-workflow-management-client-index-C7OwbRxk.mjs').then((m) => m.AXMWorkflowDefinitionActivitiesPageComponentProvider)),
3124
3132
  // Automation condition builder: default automation.rules(refType, refId); modules override for their refTypes
3125
3133
  {
3126
3134
  provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER,
@@ -3144,12 +3152,6 @@ class AXMWorkflowManagementModule {
3144
3152
  useClass: AXMPermissionDefinitionProvider,
3145
3153
  multi: true,
3146
3154
  },
3147
- // Module Manifest Provider
3148
- {
3149
- provide: AXP_MODULE_MANIFEST_PROVIDER,
3150
- useValue: WorkflowManagementManifest,
3151
- multi: true,
3152
- },
3153
3155
  {
3154
3156
  provide: AXP_WORKFLOW_PROVIDER,
3155
3157
  useClass: AXMWorkflowDefinitionProvider,
@@ -3278,29 +3280,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
3278
3280
  },
3279
3281
  {
3280
3282
  key: 'WorkflowManagement.WorkflowRun:Continue',
3281
- command: () => import('./acorex-platform-module-workflow-management-client-index-BKMDbQ8Z.mjs').then((c) => c.ContinueWorkflowRunCommand),
3283
+ command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.ContinueWorkflowRunCommand),
3282
3284
  },
3283
3285
  {
3284
3286
  key: 'WorkflowManagement.WorkflowRun:CancelRun',
3285
- command: () => import('./acorex-platform-module-workflow-management-client-index-BKMDbQ8Z.mjs').then((c) => c.CancelWorkflowRunCommand),
3287
+ command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.CancelWorkflowRunCommand),
3286
3288
  },
3287
3289
  {
3288
3290
  key: 'WorkflowManagement.WorkflowRun:TakeOver',
3289
- command: () => import('./acorex-platform-module-workflow-management-client-index-BKMDbQ8Z.mjs').then((c) => c.TakeOverWorkflowRunCommand),
3291
+ command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.TakeOverWorkflowRunCommand),
3290
3292
  },
3291
3293
  {
3292
3294
  key: 'WorkflowManagement.WorkflowRun:ShowHistory',
3293
- command: () => import('./acorex-platform-module-workflow-management-client-index-BKMDbQ8Z.mjs').then((c) => c.ShowWorkflowRunHistoryCommand),
3295
+ command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.ShowWorkflowRunHistoryCommand),
3294
3296
  },
3295
3297
  {
3296
3298
  key: 'WorkflowManagement.WorkflowRun:ShowHistory',
3297
- command: () => import('./acorex-platform-module-workflow-management-client-index-BKMDbQ8Z.mjs').then((c) => c.ShowWorkflowRunHistoryCommand),
3299
+ command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.ShowWorkflowRunHistoryCommand),
3298
3300
  },
3299
3301
  ]),
3300
3302
  // provideEntity([RootConfig.entities.activityDefinition.fullName]),
3301
3303
  // Entity Definition Loader
3302
3304
  provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-workflow-management-client-index-C8nsbDAw.mjs').then((m) => m.AXMWorkflowInstanceActivityInstancesPageComponentProvider)),
3303
- provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-workflow-management-client-index-C3pkrctS.mjs').then((m) => m.AXMWorkflowDefinitionActivitiesPageComponentProvider)),
3305
+ provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-workflow-management-client-index-C7OwbRxk.mjs').then((m) => m.AXMWorkflowDefinitionActivitiesPageComponentProvider)),
3304
3306
  // Automation condition builder: default automation.rules(refType, refId); modules override for their refTypes
3305
3307
  {
3306
3308
  provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER,
@@ -3324,12 +3326,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
3324
3326
  useClass: AXMPermissionDefinitionProvider,
3325
3327
  multi: true,
3326
3328
  },
3327
- // Module Manifest Provider
3328
- {
3329
- provide: AXP_MODULE_MANIFEST_PROVIDER,
3330
- useValue: WorkflowManagementManifest,
3331
- multi: true,
3332
- },
3333
3329
  {
3334
3330
  provide: AXP_WORKFLOW_PROVIDER,
3335
3331
  useClass: AXMWorkflowDefinitionProvider,
@@ -3750,6 +3746,9 @@ async function rehydrateWorkflowStateInputTitles(workflowState, translationServi
3750
3746
  * Prefer {@link provideGenericWorkflowTaskProvider} (dynamic import) instead of a static class import in NgModule providers.
3751
3747
  */
3752
3748
  const AXP_GENERIC_WORKFLOW_TASK_PROVIDER_CONFIG = new InjectionToken('AXP_GENERIC_WORKFLOW_TASK_PROVIDER_CONFIG');
3749
+ function isRecord(value) {
3750
+ return value != null && typeof value === 'object' && !Array.isArray(value);
3751
+ }
3753
3752
  //#endregion
3754
3753
  //#region ---- Provider Class ----
3755
3754
  /**
@@ -3861,6 +3860,13 @@ class AXPGenericWorkflowTaskProvider extends AXPWorkflowTaskProvider {
3861
3860
  isWorkflowRunCommand(commandName) {
3862
3861
  return Object.values(AXMWorkflowManagementCommandKeys.WorkflowRun).includes(commandName);
3863
3862
  }
3863
+ /** Platform commands (`Module.Entity:Action`) must not resume the human-task bookmark. */
3864
+ isDelegatedPlatformCommand(commandName) {
3865
+ return commandName.includes(':');
3866
+ }
3867
+ resolveBookmarkContext(payload) {
3868
+ return isRecord(payload.context) ? payload.context : {};
3869
+ }
3864
3870
  /**
3865
3871
  * Secondary popover menu: workflow run utilities (history, take over).
3866
3872
  */
@@ -4269,6 +4275,25 @@ class AXPGenericWorkflowTaskProvider extends AXPWorkflowTaskProvider {
4269
4275
  });
4270
4276
  return runResult ?? { success: false };
4271
4277
  }
4278
+ if (this.isDelegatedPlatformCommand(command.name)) {
4279
+ const options = isRecord(command.options) ? command.options : {};
4280
+ const nestedData = isRecord(options['data']) ? options['data'] : {};
4281
+ const rowData = isRecord(taskData) ? taskData : {};
4282
+ const payload = isRecord(rowData['payload']) ? rowData['payload'] : {};
4283
+ const payloadContext = isRecord(payload['context']) ? payload['context'] : {};
4284
+ const documentId = (typeof options['documentId'] === 'string' ? options['documentId'].trim() : '') ||
4285
+ (typeof payloadContext['documentId'] === 'string' ? payloadContext['documentId'].trim() : '');
4286
+ const delegated = await this.commandService.execute(command.name, {
4287
+ ...options,
4288
+ ...(documentId ? { documentId } : {}),
4289
+ data: {
4290
+ ...nestedData,
4291
+ ...rowData,
4292
+ ...(documentId ? { documentId } : {}),
4293
+ },
4294
+ });
4295
+ return delegated ?? { success: false };
4296
+ }
4272
4297
  return { success: true, kind: 'object', data: undefined };
4273
4298
  }
4274
4299
  //#endregion
@@ -4316,8 +4341,34 @@ class AXPGenericWorkflowTaskProvider extends AXPWorkflowTaskProvider {
4316
4341
  // Extract actions from payload
4317
4342
  if (payload.actions) {
4318
4343
  const allActions = [...(payload.actions.prefix || []), ...(payload.actions.suffix || [])];
4344
+ const context = this.resolveBookmarkContext(payload);
4319
4345
  for (const action of allActions) {
4320
4346
  const actionName = action.command?.name || action.name || 'unknown';
4347
+ const commandOptions = isRecord(action.command?.options) ? action.command.options : {};
4348
+ if (this.isDelegatedPlatformCommand(actionName)) {
4349
+ const isSignAction = actionName.toLowerCase().includes('sign');
4350
+ const isViewDocumentAction = action.name === 'view-document' || actionName.toLowerCase().includes('document:open');
4351
+ actions.push({
4352
+ name: action.name || actionName,
4353
+ title: this.resolveWorkflowActionTitle(action.title, actionName),
4354
+ icon: action.icon,
4355
+ color: action.color,
4356
+ priority: isSignAction || isViewDocumentAction ? 'primary' : 'secondary',
4357
+ command: {
4358
+ name: actionName,
4359
+ options: {
4360
+ ...commandOptions,
4361
+ ...context,
4362
+ instanceId: taskData.instanceId,
4363
+ bookmarkId: taskData.bookmarkId,
4364
+ activityId: taskData.activityId,
4365
+ taskToken: taskData.taskToken,
4366
+ data: taskData,
4367
+ },
4368
+ },
4369
+ });
4370
+ continue;
4371
+ }
4321
4372
  actions.push({
4322
4373
  name: actionName,
4323
4374
  title: this.resolveWorkflowActionTitle(action.title, actionName),
@@ -4964,7 +5015,7 @@ class AXPGenericWorkflowTaskProvider extends AXPWorkflowTaskProvider {
4964
5015
  //#endregion
4965
5016
  //#region ---- Component ----
4966
5017
  getComponent() {
4967
- return () => import('./acorex-platform-module-workflow-management-client-workflow-task-popover.component-Y9rWe3O6.mjs').then((m) => m.AXMWorkflowTaskPopoverComponent);
5018
+ return () => import('./acorex-platform-module-workflow-management-client-workflow-task-popover.component-BDhOlDkg.mjs').then((m) => m.AXMWorkflowTaskPopoverComponent);
4968
5019
  }
4969
5020
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPGenericWorkflowTaskProvider, deps: [{ token: AXP_GENERIC_WORKFLOW_TASK_PROVIDER_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable }); }
4970
5021
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPGenericWorkflowTaskProvider }); }
@@ -4987,4 +5038,4 @@ var genericWorkflowTask_provider = /*#__PURE__*/Object.freeze({
4987
5038
  */
4988
5039
 
4989
5040
  export { AXPWorkflowInstanceHumanTaskService as A, needsTakeOverForWorkflowInteractiveContinuation as B, CartableTaskActivity as C, needsTakeOverForWorkflowTaskContinuation as D, parseWorkflowTaskContinuationPayload as E, resolveWorkflowHumanTaskAssigneeId as F, resolveWorkflowInitiatorUserIdFromVariables as G, HumanTaskActivity as H, resolveWorkflowTaskContinuationAssigneeId as I, shouldOfferWorkflowContinuationAfterStep as J, shouldOfferWorkflowInteractiveStepContinuation as K, shouldOfferWorkflowTaskContinuation as L, shouldSkipContinuationBeforeInteractive as M, wasWorkflowTaskBoardActivity as N, RejectionReasonActivity as R, ShowConfirmPopupActivity as S, AXMWorkflowManagementCommandKeys as a, buildWorkflowTaskDisplayParamsFromWorkflowState as b, createWorkflowInstanceBookmarkAccess as c, buildWorkflowTaskDisplayParams as d, AXCCategoryProvider as e, AXMMenuProvider as f, AXMWorkflowActivitiesDefinitionProvider as g, AXMWorkflowManagementModule as h, isWorkflowPooledClaimablePayload as i, AXPCreateEntityActivity as j, AXPGenericWorkflowTaskProvider as k, AXPWorkflowTaskContinuationService as l, AXPWorkflowTaskInstanceQueryService as m, normalizeWorkflowTaskUserIds as n, AXP_GENERIC_WORKFLOW_TASK_PROVIDER_CONFIG as o, CreateEntityFormActivity as p, ShowLayoutPopupActivity as q, rehydrateWorkflowStateInputTitles as r, ShowToastActivity as s, SignOffActivity as t, discoverWorkflowTaskProviders as u, findActiveHumanTaskAssigneeId as v, findHumanTaskAssigneeIdForActivity as w, getWorkflowInstanceInitiatorUserId as x, isWorkflowReassignableHumanTaskPayload as y, isWorkflowTaskBoardBookmarkPayload as z };
4990
- //# sourceMappingURL=acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-CKudtLpx.mjs.map
5041
+ //# sourceMappingURL=acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-mxu-pura.mjs.map