@acorex-platform/module-workflow-management-client 0.0.37 → 0.0.46
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-CKudtLpx.mjs → acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-TTHRxuyL.mjs} +71 -47
- package/fesm2022/acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-TTHRxuyL.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-activity-category.mjs +12 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-activity-category.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-activity-definition.mjs +14 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-activity-definition.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-automation.mjs +14 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-automation.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-workflow-definition.mjs +14 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-workflow-definition.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-workflow-instance.mjs +14 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-workflow-instance.mjs.map +1 -1
- 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
- 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
- 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
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-3VLEu-L6.mjs.map +1 -0
- 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
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-ClVokZpw.mjs.map +1 -0
- 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
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-BY4uwLMZ.mjs.map +1 -0
- 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
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-DN9KS_mu.mjs.map +1 -0
- 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
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-BnfbJExU.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts.mjs +20 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-index-BKMDbQ8Z.mjs → acorex-platform-module-workflow-management-client-index-BtRQ0iDG.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-workflow-management-client-index-BKMDbQ8Z.mjs.map → acorex-platform-module-workflow-management-client-index-BtRQ0iDG.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-index-C3pkrctS.mjs → acorex-platform-module-workflow-management-client-index-C7OwbRxk.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workflow-management-client-index-C3pkrctS.mjs.map → acorex-platform-module-workflow-management-client-index-C7OwbRxk.mjs.map} +1 -1
- 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-DsRb14pz.mjs} +5 -5
- 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-DsRb14pz.mjs.map} +1 -1
- 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
- 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
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-task-popover.component-Y9rWe3O6.mjs → acorex-platform-module-workflow-management-client-workflow-task-popover.component-C74XVWMw.mjs} +2 -2
- 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-C74XVWMw.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-workflow-management-client.mjs +1 -1
- package/package.json +2 -2
- package/types/acorex-platform-module-workflow-management-client-contracts.d.ts +8 -2
- package/types/acorex-platform-module-workflow-management-client.d.ts +3 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-CKudtLpx.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-1EWdojoP.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-DYoF3vVe.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-DbJeeZpQ.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-BVSAGT0z.mjs.map +0 -1
- 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,
|
|
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:
|
|
226
|
+
draggable: true,
|
|
227
227
|
data: {
|
|
228
228
|
config: dialogConfig,
|
|
229
229
|
callBack: (result) => {
|
|
@@ -2948,25 +2948,6 @@ class AXMWorkflowDefinitionStatusProvider extends AXPStatusProvider {
|
|
|
2948
2948
|
}
|
|
2949
2949
|
//#endregion
|
|
2950
2950
|
|
|
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
2951
|
//#endregion
|
|
2971
2952
|
//#region ---- Permission Definition Provider ----
|
|
2972
2953
|
/**
|
|
@@ -3098,29 +3079,29 @@ class AXMWorkflowManagementModule {
|
|
|
3098
3079
|
},
|
|
3099
3080
|
{
|
|
3100
3081
|
key: 'WorkflowManagement.WorkflowRun:Continue',
|
|
3101
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3082
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BtRQ0iDG.mjs').then((c) => c.ContinueWorkflowRunCommand),
|
|
3102
3083
|
},
|
|
3103
3084
|
{
|
|
3104
3085
|
key: 'WorkflowManagement.WorkflowRun:CancelRun',
|
|
3105
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3086
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BtRQ0iDG.mjs').then((c) => c.CancelWorkflowRunCommand),
|
|
3106
3087
|
},
|
|
3107
3088
|
{
|
|
3108
3089
|
key: 'WorkflowManagement.WorkflowRun:TakeOver',
|
|
3109
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3090
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BtRQ0iDG.mjs').then((c) => c.TakeOverWorkflowRunCommand),
|
|
3110
3091
|
},
|
|
3111
3092
|
{
|
|
3112
3093
|
key: 'WorkflowManagement.WorkflowRun:ShowHistory',
|
|
3113
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3094
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BtRQ0iDG.mjs').then((c) => c.ShowWorkflowRunHistoryCommand),
|
|
3114
3095
|
},
|
|
3115
3096
|
{
|
|
3116
3097
|
key: 'WorkflowManagement.WorkflowRun:ShowHistory',
|
|
3117
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3098
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BtRQ0iDG.mjs').then((c) => c.ShowWorkflowRunHistoryCommand),
|
|
3118
3099
|
},
|
|
3119
3100
|
]),
|
|
3120
3101
|
// provideEntity([RootConfig.entities.activityDefinition.fullName]),
|
|
3121
3102
|
// Entity Definition Loader
|
|
3122
3103
|
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-
|
|
3104
|
+
provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-workflow-management-client-index-C7OwbRxk.mjs').then((m) => m.AXMWorkflowDefinitionActivitiesPageComponentProvider)),
|
|
3124
3105
|
// Automation condition builder: default automation.rules(refType, refId); modules override for their refTypes
|
|
3125
3106
|
{
|
|
3126
3107
|
provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER,
|
|
@@ -3144,12 +3125,6 @@ class AXMWorkflowManagementModule {
|
|
|
3144
3125
|
useClass: AXMPermissionDefinitionProvider,
|
|
3145
3126
|
multi: true,
|
|
3146
3127
|
},
|
|
3147
|
-
// Module Manifest Provider
|
|
3148
|
-
{
|
|
3149
|
-
provide: AXP_MODULE_MANIFEST_PROVIDER,
|
|
3150
|
-
useValue: WorkflowManagementManifest,
|
|
3151
|
-
multi: true,
|
|
3152
|
-
},
|
|
3153
3128
|
{
|
|
3154
3129
|
provide: AXP_WORKFLOW_PROVIDER,
|
|
3155
3130
|
useClass: AXMWorkflowDefinitionProvider,
|
|
@@ -3278,29 +3253,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3278
3253
|
},
|
|
3279
3254
|
{
|
|
3280
3255
|
key: 'WorkflowManagement.WorkflowRun:Continue',
|
|
3281
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3256
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BtRQ0iDG.mjs').then((c) => c.ContinueWorkflowRunCommand),
|
|
3282
3257
|
},
|
|
3283
3258
|
{
|
|
3284
3259
|
key: 'WorkflowManagement.WorkflowRun:CancelRun',
|
|
3285
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3260
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BtRQ0iDG.mjs').then((c) => c.CancelWorkflowRunCommand),
|
|
3286
3261
|
},
|
|
3287
3262
|
{
|
|
3288
3263
|
key: 'WorkflowManagement.WorkflowRun:TakeOver',
|
|
3289
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3264
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BtRQ0iDG.mjs').then((c) => c.TakeOverWorkflowRunCommand),
|
|
3290
3265
|
},
|
|
3291
3266
|
{
|
|
3292
3267
|
key: 'WorkflowManagement.WorkflowRun:ShowHistory',
|
|
3293
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3268
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BtRQ0iDG.mjs').then((c) => c.ShowWorkflowRunHistoryCommand),
|
|
3294
3269
|
},
|
|
3295
3270
|
{
|
|
3296
3271
|
key: 'WorkflowManagement.WorkflowRun:ShowHistory',
|
|
3297
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3272
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BtRQ0iDG.mjs').then((c) => c.ShowWorkflowRunHistoryCommand),
|
|
3298
3273
|
},
|
|
3299
3274
|
]),
|
|
3300
3275
|
// provideEntity([RootConfig.entities.activityDefinition.fullName]),
|
|
3301
3276
|
// Entity Definition Loader
|
|
3302
3277
|
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-
|
|
3278
|
+
provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-workflow-management-client-index-C7OwbRxk.mjs').then((m) => m.AXMWorkflowDefinitionActivitiesPageComponentProvider)),
|
|
3304
3279
|
// Automation condition builder: default automation.rules(refType, refId); modules override for their refTypes
|
|
3305
3280
|
{
|
|
3306
3281
|
provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER,
|
|
@@ -3324,12 +3299,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3324
3299
|
useClass: AXMPermissionDefinitionProvider,
|
|
3325
3300
|
multi: true,
|
|
3326
3301
|
},
|
|
3327
|
-
// Module Manifest Provider
|
|
3328
|
-
{
|
|
3329
|
-
provide: AXP_MODULE_MANIFEST_PROVIDER,
|
|
3330
|
-
useValue: WorkflowManagementManifest,
|
|
3331
|
-
multi: true,
|
|
3332
|
-
},
|
|
3333
3302
|
{
|
|
3334
3303
|
provide: AXP_WORKFLOW_PROVIDER,
|
|
3335
3304
|
useClass: AXMWorkflowDefinitionProvider,
|
|
@@ -3750,6 +3719,9 @@ async function rehydrateWorkflowStateInputTitles(workflowState, translationServi
|
|
|
3750
3719
|
* Prefer {@link provideGenericWorkflowTaskProvider} (dynamic import) instead of a static class import in NgModule providers.
|
|
3751
3720
|
*/
|
|
3752
3721
|
const AXP_GENERIC_WORKFLOW_TASK_PROVIDER_CONFIG = new InjectionToken('AXP_GENERIC_WORKFLOW_TASK_PROVIDER_CONFIG');
|
|
3722
|
+
function isRecord(value) {
|
|
3723
|
+
return value != null && typeof value === 'object' && !Array.isArray(value);
|
|
3724
|
+
}
|
|
3753
3725
|
//#endregion
|
|
3754
3726
|
//#region ---- Provider Class ----
|
|
3755
3727
|
/**
|
|
@@ -3861,6 +3833,13 @@ class AXPGenericWorkflowTaskProvider extends AXPWorkflowTaskProvider {
|
|
|
3861
3833
|
isWorkflowRunCommand(commandName) {
|
|
3862
3834
|
return Object.values(AXMWorkflowManagementCommandKeys.WorkflowRun).includes(commandName);
|
|
3863
3835
|
}
|
|
3836
|
+
/** Platform commands (`Module.Entity:Action`) must not resume the human-task bookmark. */
|
|
3837
|
+
isDelegatedPlatformCommand(commandName) {
|
|
3838
|
+
return commandName.includes(':');
|
|
3839
|
+
}
|
|
3840
|
+
resolveBookmarkContext(payload) {
|
|
3841
|
+
return isRecord(payload.context) ? payload.context : {};
|
|
3842
|
+
}
|
|
3864
3843
|
/**
|
|
3865
3844
|
* Secondary popover menu: workflow run utilities (history, take over).
|
|
3866
3845
|
*/
|
|
@@ -4269,6 +4248,25 @@ class AXPGenericWorkflowTaskProvider extends AXPWorkflowTaskProvider {
|
|
|
4269
4248
|
});
|
|
4270
4249
|
return runResult ?? { success: false };
|
|
4271
4250
|
}
|
|
4251
|
+
if (this.isDelegatedPlatformCommand(command.name)) {
|
|
4252
|
+
const options = isRecord(command.options) ? command.options : {};
|
|
4253
|
+
const nestedData = isRecord(options['data']) ? options['data'] : {};
|
|
4254
|
+
const rowData = isRecord(taskData) ? taskData : {};
|
|
4255
|
+
const payload = isRecord(rowData['payload']) ? rowData['payload'] : {};
|
|
4256
|
+
const payloadContext = isRecord(payload['context']) ? payload['context'] : {};
|
|
4257
|
+
const documentId = (typeof options['documentId'] === 'string' ? options['documentId'].trim() : '') ||
|
|
4258
|
+
(typeof payloadContext['documentId'] === 'string' ? payloadContext['documentId'].trim() : '');
|
|
4259
|
+
const delegated = await this.commandService.execute(command.name, {
|
|
4260
|
+
...options,
|
|
4261
|
+
...(documentId ? { documentId } : {}),
|
|
4262
|
+
data: {
|
|
4263
|
+
...nestedData,
|
|
4264
|
+
...rowData,
|
|
4265
|
+
...(documentId ? { documentId } : {}),
|
|
4266
|
+
},
|
|
4267
|
+
});
|
|
4268
|
+
return delegated ?? { success: false };
|
|
4269
|
+
}
|
|
4272
4270
|
return { success: true, kind: 'object', data: undefined };
|
|
4273
4271
|
}
|
|
4274
4272
|
//#endregion
|
|
@@ -4316,8 +4314,34 @@ class AXPGenericWorkflowTaskProvider extends AXPWorkflowTaskProvider {
|
|
|
4316
4314
|
// Extract actions from payload
|
|
4317
4315
|
if (payload.actions) {
|
|
4318
4316
|
const allActions = [...(payload.actions.prefix || []), ...(payload.actions.suffix || [])];
|
|
4317
|
+
const context = this.resolveBookmarkContext(payload);
|
|
4319
4318
|
for (const action of allActions) {
|
|
4320
4319
|
const actionName = action.command?.name || action.name || 'unknown';
|
|
4320
|
+
const commandOptions = isRecord(action.command?.options) ? action.command.options : {};
|
|
4321
|
+
if (this.isDelegatedPlatformCommand(actionName)) {
|
|
4322
|
+
const isSignAction = actionName.toLowerCase().includes('sign');
|
|
4323
|
+
const isViewDocumentAction = action.name === 'view-document' || actionName.toLowerCase().includes('document:open');
|
|
4324
|
+
actions.push({
|
|
4325
|
+
name: action.name || actionName,
|
|
4326
|
+
title: this.resolveWorkflowActionTitle(action.title, actionName),
|
|
4327
|
+
icon: action.icon,
|
|
4328
|
+
color: action.color,
|
|
4329
|
+
priority: isSignAction || isViewDocumentAction ? 'primary' : 'secondary',
|
|
4330
|
+
command: {
|
|
4331
|
+
name: actionName,
|
|
4332
|
+
options: {
|
|
4333
|
+
...commandOptions,
|
|
4334
|
+
...context,
|
|
4335
|
+
instanceId: taskData.instanceId,
|
|
4336
|
+
bookmarkId: taskData.bookmarkId,
|
|
4337
|
+
activityId: taskData.activityId,
|
|
4338
|
+
taskToken: taskData.taskToken,
|
|
4339
|
+
data: taskData,
|
|
4340
|
+
},
|
|
4341
|
+
},
|
|
4342
|
+
});
|
|
4343
|
+
continue;
|
|
4344
|
+
}
|
|
4321
4345
|
actions.push({
|
|
4322
4346
|
name: actionName,
|
|
4323
4347
|
title: this.resolveWorkflowActionTitle(action.title, actionName),
|
|
@@ -4964,7 +4988,7 @@ class AXPGenericWorkflowTaskProvider extends AXPWorkflowTaskProvider {
|
|
|
4964
4988
|
//#endregion
|
|
4965
4989
|
//#region ---- Component ----
|
|
4966
4990
|
getComponent() {
|
|
4967
|
-
return () => import('./acorex-platform-module-workflow-management-client-workflow-task-popover.component-
|
|
4991
|
+
return () => import('./acorex-platform-module-workflow-management-client-workflow-task-popover.component-C74XVWMw.mjs').then((m) => m.AXMWorkflowTaskPopoverComponent);
|
|
4968
4992
|
}
|
|
4969
4993
|
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
4994
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPGenericWorkflowTaskProvider }); }
|
|
@@ -4987,4 +5011,4 @@ var genericWorkflowTask_provider = /*#__PURE__*/Object.freeze({
|
|
|
4987
5011
|
*/
|
|
4988
5012
|
|
|
4989
5013
|
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-
|
|
5014
|
+
//# sourceMappingURL=acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-TTHRxuyL.mjs.map
|