@acorex-platform/module-workflow-management-client 1.0.2 → 2.0.0-beta.0
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
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import { AXPDataExecutionConfigPatch } from '@acorex-platform/framework-shared/runtime';
|
|
1
2
|
import { AXPModuleManifest, AXPActivityCategory, AXPActivityDefinition, AXPFilterClause, AXPWorkflowDefinition, AXPMultiLanguageString, AXPWorkflowStatus, AXPWorkflowSubStatus, AXPWorkflowInstance } from '@acorex-platform/framework-shared/core';
|
|
2
3
|
import { AXPEntityModel } from '@acorex-platform/framework-shared/entity';
|
|
3
4
|
|
|
5
|
+
declare const WORKFLOW_OFFLINE_READ_ENTITIES: readonly ["WorkflowManagement.WorkflowDefinition"];
|
|
6
|
+
declare const WORKFLOW_OFFLINE_REFERENCE_ENTITIES: readonly ["WorkflowManagement.WorkflowDefinitionCategory"];
|
|
7
|
+
declare const WORKFLOW_TASK_BOARD_OFFLINE_CONFIG: AXPDataExecutionConfigPatch;
|
|
8
|
+
|
|
4
9
|
declare const AXPWorkflowManagementMenuKeys: {
|
|
5
10
|
readonly Root: "workflow-management:menu";
|
|
6
11
|
readonly Workflow: "workflow-management:workflow";
|
|
@@ -343,5 +348,122 @@ interface AXMWorkflowManagementWorkflowInstanceEntityModel extends AXPEntityMode
|
|
|
343
348
|
};
|
|
344
349
|
}
|
|
345
350
|
|
|
346
|
-
|
|
347
|
-
|
|
351
|
+
/** Task-list projection; execution state and history are deliberately absent. */
|
|
352
|
+
declare const WORKFLOW_TASK_BOARD_QUERY = "WorkflowManagement:TaskBoard:List";
|
|
353
|
+
interface WorkflowTaskBoardSource {
|
|
354
|
+
provider: string;
|
|
355
|
+
definitionId?: string;
|
|
356
|
+
}
|
|
357
|
+
interface WorkflowTaskBoardRequest {
|
|
358
|
+
sources: WorkflowTaskBoardSource[];
|
|
359
|
+
skip?: number;
|
|
360
|
+
take?: number;
|
|
361
|
+
assigneeIds?: (string | number)[];
|
|
362
|
+
reporterIds?: (string | number)[];
|
|
363
|
+
priorities?: string[];
|
|
364
|
+
dueStatusKeys?: string[];
|
|
365
|
+
subjectRefTypes?: string[];
|
|
366
|
+
subjectRefIds?: string[];
|
|
367
|
+
tags?: string[];
|
|
368
|
+
range?: {
|
|
369
|
+
from: string;
|
|
370
|
+
end: string;
|
|
371
|
+
};
|
|
372
|
+
/** Browser-local calendar boundaries, preserving locale/timezone filter semantics. */
|
|
373
|
+
calendar: {
|
|
374
|
+
today: string;
|
|
375
|
+
tomorrow: string;
|
|
376
|
+
dayAfterTomorrow: string;
|
|
377
|
+
weekEnd: string;
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
interface WorkflowTaskBoardRow {
|
|
381
|
+
provider: string;
|
|
382
|
+
instanceId: string;
|
|
383
|
+
definitionId: string;
|
|
384
|
+
createdAt: string;
|
|
385
|
+
updatedAt?: string;
|
|
386
|
+
entityRefId?: string;
|
|
387
|
+
entityRefType?: string;
|
|
388
|
+
initiatorUserId?: string;
|
|
389
|
+
creator?: {
|
|
390
|
+
id: string;
|
|
391
|
+
fullName?: string;
|
|
392
|
+
};
|
|
393
|
+
/** null means the secured lookup was performed but no display status was available. */
|
|
394
|
+
linkedTaskStatus?: {
|
|
395
|
+
id: string;
|
|
396
|
+
title: string;
|
|
397
|
+
color?: string;
|
|
398
|
+
icon?: string;
|
|
399
|
+
} | null;
|
|
400
|
+
bookmark: {
|
|
401
|
+
id: string;
|
|
402
|
+
activityId: string;
|
|
403
|
+
payload: Record<string, unknown>;
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
interface WorkflowTaskBoardPage {
|
|
407
|
+
items: WorkflowTaskBoardRow[];
|
|
408
|
+
total: number;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/** An action reference is a hint; the server always resolves and authorizes it again. */
|
|
412
|
+
interface WorkflowTaskActionRef {
|
|
413
|
+
taskId: string;
|
|
414
|
+
actionId: string;
|
|
415
|
+
expectedTaskVersion: number;
|
|
416
|
+
actionRevision: string;
|
|
417
|
+
}
|
|
418
|
+
interface WorkflowTaskActionInputField {
|
|
419
|
+
name: string;
|
|
420
|
+
title: string;
|
|
421
|
+
type: 'string' | 'number' | 'integer' | 'boolean';
|
|
422
|
+
required: boolean;
|
|
423
|
+
choices?: Array<string | number>;
|
|
424
|
+
maxLength?: number;
|
|
425
|
+
}
|
|
426
|
+
interface WorkflowTaskActionPresentation {
|
|
427
|
+
workflowAction: WorkflowTaskActionRef;
|
|
428
|
+
title: string;
|
|
429
|
+
confirmation?: string;
|
|
430
|
+
inputFields?: WorkflowTaskActionInputField[];
|
|
431
|
+
}
|
|
432
|
+
interface ExecuteWorkflowTaskActionRequest extends WorkflowTaskActionRef {
|
|
433
|
+
commandId: string;
|
|
434
|
+
input?: Record<string, unknown>;
|
|
435
|
+
/** Explicit decisions collected locally; absent means open without advancing. */
|
|
436
|
+
completion?: WorkflowTaskInteractionCompletion[];
|
|
437
|
+
}
|
|
438
|
+
interface WorkflowTaskInteractionCompletion {
|
|
439
|
+
activityId: string;
|
|
440
|
+
outcome: string;
|
|
441
|
+
output: Record<string, unknown>;
|
|
442
|
+
}
|
|
443
|
+
interface WorkflowTaskInteraction {
|
|
444
|
+
startActivityId: string;
|
|
445
|
+
activities: Array<{
|
|
446
|
+
activityId: string;
|
|
447
|
+
activityType: string;
|
|
448
|
+
input: Record<string, unknown>;
|
|
449
|
+
outputToVariables?: Record<string, string>;
|
|
450
|
+
/** null marks a boundary that needs an actual workflow commit. */
|
|
451
|
+
routes: Record<string, string | null>;
|
|
452
|
+
}>;
|
|
453
|
+
}
|
|
454
|
+
interface ExecuteWorkflowTaskActionResult {
|
|
455
|
+
kind?: 'claimed' | 'resumed' | 'opened';
|
|
456
|
+
interaction?: WorkflowTaskInteraction;
|
|
457
|
+
instanceId: string;
|
|
458
|
+
activityId: string;
|
|
459
|
+
bookmarkId: string;
|
|
460
|
+
outcome: string;
|
|
461
|
+
replayed?: boolean;
|
|
462
|
+
/** The workflow engine response is consumed by the framework workflow manager. */
|
|
463
|
+
response: unknown;
|
|
464
|
+
}
|
|
465
|
+
declare const WORKFLOW_TASK_EXECUTE_ACTION = "WorkflowManagement:Task:ExecuteAction";
|
|
466
|
+
declare const WORKFLOW_TASK_ACTION_UI = "WorkflowManagement.WorkflowTask:ExecuteAction";
|
|
467
|
+
|
|
468
|
+
export { AXMPermissionsKeys, AXPAdministrationPermissionKeys, AXPWorkflowManagementMenuKeys, AXP_WORKFLOW_TASK_CONTEXT_I18N_KEY, AXP_WORKFLOW_TASK_CONTEXT_TITLE_PARTS_KEY, RootConfig, WORKFLOW_DEFINITION_ACTIVITIES_PAGE_COMPONENT_KEY, WORKFLOW_INSTANCE_ACTIVITY_INSTANCES_PAGE_COMPONENT_KEY, WORKFLOW_OFFLINE_READ_ENTITIES, WORKFLOW_OFFLINE_REFERENCE_ENTITIES, WORKFLOW_TASK_ACTION_UI, WORKFLOW_TASK_BOARD_OFFLINE_CONFIG, WORKFLOW_TASK_BOARD_QUERY, WORKFLOW_TASK_EXECUTE_ACTION, WorkflowManagementManifest };
|
|
469
|
+
export type { AXMWorkflowManagementActivityCategoryEntityModel, AXMWorkflowManagementActivityDefinitionEntityModel, AXMWorkflowManagementAutomationEntityModel, AXMWorkflowManagementWorkflowDefinitionEntityModel, AXMWorkflowManagementWorkflowInstanceEntityModel, ExecuteWorkflowTaskActionRequest, ExecuteWorkflowTaskActionResult, WorkflowTaskActionInputField, WorkflowTaskActionPresentation, WorkflowTaskActionRef, WorkflowTaskBoardPage, WorkflowTaskBoardRequest, WorkflowTaskBoardRow, WorkflowTaskBoardSource, WorkflowTaskInteraction, WorkflowTaskInteractionCompletion };
|
|
@@ -9,9 +9,10 @@ import { AXPActivityCategoryProvider, AXPActivityProvider, AXPWorkflowContinuati
|
|
|
9
9
|
import { AXPCommand, AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';
|
|
10
10
|
import { AXStyleColorType } from '@acorex/cdk/common';
|
|
11
11
|
import { AXPopupSizeType } from '@acorex/components/popup';
|
|
12
|
-
import {
|
|
12
|
+
import { AXPTaskWorkspaceContentRef, AXPTaskWorkspaceAction } from '@acorex-platform/module-task-management-client';
|
|
13
|
+
import { AXPWorkBoardProvider, AXPWorkBoardFilter, AXPWorkItem, AXPWorkBoardActionMenuItem, AXPExtraField, AXPWorkBoardStatus, AXPWorkItemMetadata, AXPWorkItemDetailsComponent, AXPWorkBoardProviderResolveOptions } from '@acorex-platform/framework-client/layout/components';
|
|
13
14
|
import { AXPSessionService } from '@acorex-platform/framework-client/auth';
|
|
14
|
-
import { AXMWorkflowManagementWorkflowInstanceEntityModel } from '@acorex-platform/module-workflow-management-client/contracts';
|
|
15
|
+
import { AXMWorkflowManagementWorkflowInstanceEntityModel, WorkflowTaskBoardSource, WorkflowTaskBoardPage } from '@acorex-platform/module-workflow-management-client/contracts';
|
|
15
16
|
import { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';
|
|
16
17
|
|
|
17
18
|
declare class AXMMenuProvider implements AXPMenuProvider {
|
|
@@ -405,13 +406,26 @@ interface SignOffActivityInput {
|
|
|
405
406
|
* Pass an empty string to hide the saved-signature action.
|
|
406
407
|
*/
|
|
407
408
|
signatureProvider?: string;
|
|
409
|
+
/** When the previous step already collected ink, skip the dialog. */
|
|
410
|
+
signature?: string;
|
|
411
|
+
note?: string;
|
|
412
|
+
signedAt?: string;
|
|
413
|
+
/** `workspace` renders the signature fields beside the task content. */
|
|
414
|
+
presentation?: 'dialog' | 'workspace';
|
|
415
|
+
/** Allow a workspace reviewer to reject with a required note. */
|
|
416
|
+
allowReject?: boolean;
|
|
417
|
+
taskId?: string;
|
|
418
|
+
content?: AXPTaskWorkspaceContentRef | null;
|
|
419
|
+
layout?: AXPWidgetNode | null;
|
|
408
420
|
}
|
|
409
|
-
/** Output
|
|
410
|
-
|
|
421
|
+
/** Output for the selected sign-off outcome. */
|
|
422
|
+
type SignOffActivityOutput = {
|
|
411
423
|
signature: string;
|
|
412
424
|
note?: string;
|
|
413
425
|
signedAt: string;
|
|
414
|
-
}
|
|
426
|
+
} | {
|
|
427
|
+
reason: string;
|
|
428
|
+
};
|
|
415
429
|
/**
|
|
416
430
|
* Sign-off activity (frontend).
|
|
417
431
|
*
|
|
@@ -419,12 +433,14 @@ interface SignOffActivityOutput {
|
|
|
419
433
|
* Use after review/approval paths in workflows that require an auditable sign-off.
|
|
420
434
|
*
|
|
421
435
|
* Activity type: `workflow-activity:sign-off`
|
|
422
|
-
* Outcomes: `Signed` | `Cancelled`
|
|
436
|
+
* Outcomes: `Signed` | `Rejected` | `Cancelled`
|
|
423
437
|
*/
|
|
424
438
|
declare class SignOffActivity implements AXPCommand<SignOffActivityInput, SignOffActivityOutput> {
|
|
425
439
|
private readonly layoutBuilder;
|
|
426
440
|
private readonly translationService;
|
|
441
|
+
private readonly taskWorkspace;
|
|
427
442
|
execute(input: SignOffActivityInput): AXPCommandExecuteResultPromise<SignOffActivityOutput>;
|
|
443
|
+
private openWorkspace;
|
|
428
444
|
private resolveCaptureMode;
|
|
429
445
|
private resolveSignatureProvider;
|
|
430
446
|
private showSignOffDialog;
|
|
@@ -438,6 +454,9 @@ interface RejectionReasonActivityInput {
|
|
|
438
454
|
message?: string;
|
|
439
455
|
/** When true, reason must be non-empty before submit (default: true). */
|
|
440
456
|
requireReason?: boolean;
|
|
457
|
+
/** When the task window already collected a reason, skip the dialog. */
|
|
458
|
+
reason?: string;
|
|
459
|
+
rejectedAt?: string;
|
|
441
460
|
}
|
|
442
461
|
/** Output when the user submits or cancels the rejection dialog. */
|
|
443
462
|
interface RejectionReasonActivityOutput {
|
|
@@ -529,6 +548,7 @@ declare class CreateEntityFormActivity implements AXPCommand<CreateEntityFormInp
|
|
|
529
548
|
private readonly entityForm;
|
|
530
549
|
private readonly entityService;
|
|
531
550
|
private readonly translationService;
|
|
551
|
+
private readonly fileStorage;
|
|
532
552
|
execute(input: CreateEntityFormInput): AXPCommandExecuteResultPromise<CreateEntityFormOutput>;
|
|
533
553
|
/**
|
|
534
554
|
* Maps dialog.show() result to a command result with a stable workflow outcome in metadata.
|
|
@@ -612,24 +632,22 @@ declare const AXP_GENERIC_WORKFLOW_TASK_PROVIDER_CONFIG: InjectionToken<AXPGener
|
|
|
612
632
|
/**
|
|
613
633
|
* Generic Workflow Task Provider
|
|
614
634
|
*
|
|
615
|
-
*
|
|
616
|
-
* Queries suspended workflow instances and extracts tasks from bookmarks.
|
|
635
|
+
* Displays the server's filtered, paged projection of active workflow bookmarks.
|
|
617
636
|
*
|
|
618
637
|
* Create one provider per workflow definition by passing a config (name, title, definitionId).
|
|
619
638
|
* E.g. leave request: { name: 'leave-request-workflow-tasks', title: 'Leave Request', definitionId: 'LeaveRequestWorkflow' }
|
|
620
639
|
*
|
|
621
640
|
* Architecture:
|
|
622
|
-
* -
|
|
623
|
-
* -
|
|
624
|
-
* -
|
|
625
|
-
* - Parses bookmark payload for assignment/actions
|
|
641
|
+
* - Groups workflow providers into one TaskBoard query
|
|
642
|
+
* - Server filters definitions, assignment, priority and dates before pagination
|
|
643
|
+
* - Keeps action context/tokens while execution state stays on the server
|
|
626
644
|
* - Maps to task board format
|
|
627
645
|
*/
|
|
628
|
-
declare class AXPGenericWorkflowTaskProvider extends
|
|
646
|
+
declare class AXPGenericWorkflowTaskProvider extends AXPWorkBoardProvider<Record<string, any>> {
|
|
629
647
|
private readonly config;
|
|
630
648
|
private readonly entityService;
|
|
631
649
|
private readonly workflowInstanceQuery;
|
|
632
|
-
private readonly
|
|
650
|
+
private readonly referenceReads;
|
|
633
651
|
private readonly translationService;
|
|
634
652
|
private readonly formatService;
|
|
635
653
|
private readonly settingsService;
|
|
@@ -638,6 +656,7 @@ declare class AXPGenericWorkflowTaskProvider extends AXPWorkflowTaskProvider<Rec
|
|
|
638
656
|
private readonly workflowDefinitionService;
|
|
639
657
|
private readonly workflowManager;
|
|
640
658
|
private readonly humanTaskService;
|
|
659
|
+
private readonly preparedTasks;
|
|
641
660
|
private readonly sessionService;
|
|
642
661
|
private readonly toastService;
|
|
643
662
|
private readonly commandService;
|
|
@@ -645,19 +664,12 @@ declare class AXPGenericWorkflowTaskProvider extends AXPWorkflowTaskProvider<Rec
|
|
|
645
664
|
private readonly expressionScopeService;
|
|
646
665
|
private readonly expressionEvaluator;
|
|
647
666
|
/** Primary entity type (with status plugin) inferred from the workflow definition. */
|
|
648
|
-
private primaryEntityTypeWithStatus;
|
|
649
667
|
/** Per-provider caches (one instance per workflow definition). */
|
|
650
|
-
private readonly entityDefinitionCache;
|
|
651
668
|
private readonly statusDefinitionKeyByEntityType;
|
|
652
|
-
private readonly statusProviderByDefinitionKey;
|
|
653
|
-
private readonly userReferenceCache;
|
|
654
|
-
private readonly entityStatusIdCache;
|
|
655
669
|
constructor(config: AXPGenericWorkflowTaskProviderConfig);
|
|
656
670
|
get name(): string;
|
|
657
671
|
getTitle(): Promise<string>;
|
|
658
672
|
getIcon(): Promise<string>;
|
|
659
|
-
/** Bookmark types shown on the workflow task board. */
|
|
660
|
-
private isTaskBoardBookmarkPayload;
|
|
661
673
|
/** Pooled task: must be claimed before submit/cancel (cartable, or human-task with candidates only). */
|
|
662
674
|
private isPooledClaimablePayload;
|
|
663
675
|
/** Normalizes bookmark assignee/candidate ids (array or single string from expressions). */
|
|
@@ -682,17 +694,18 @@ declare class AXPGenericWorkflowTaskProvider extends AXPWorkflowTaskProvider<Rec
|
|
|
682
694
|
* - definitionId (if provided in filter)
|
|
683
695
|
* - assignee/claimant (if filter provided)
|
|
684
696
|
*
|
|
685
|
-
*
|
|
697
|
+
* The server extracts active bookmarks and returns one filtered page.
|
|
686
698
|
*/
|
|
687
|
-
getTasks(options:
|
|
688
|
-
items:
|
|
699
|
+
getTasks(options: AXPWorkBoardFilter): Promise<{
|
|
700
|
+
items: AXPWorkItem<Record<string, any>>[];
|
|
689
701
|
total: number;
|
|
690
702
|
}>;
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
703
|
+
get taskQueryGroup(): string;
|
|
704
|
+
getTasksForProviders(providers: AXPWorkBoardProvider[], options?: AXPWorkBoardFilter): Promise<{
|
|
705
|
+
items: AXPWorkItem[];
|
|
706
|
+
total: number;
|
|
707
|
+
}>;
|
|
708
|
+
private mapTaskBoardRow;
|
|
696
709
|
/**
|
|
697
710
|
* Task-board "started by": workflow instance creator (initiator), never the current viewer.
|
|
698
711
|
* Uses audit creator when present; otherwise resolves `initiatorUserId` from workflow variables.
|
|
@@ -717,7 +730,7 @@ declare class AXPGenericWorkflowTaskProvider extends AXPWorkflowTaskProvider<Rec
|
|
|
717
730
|
/**
|
|
718
731
|
* Update tasks (not applicable for workflow instances - they are read-only from task provider perspective).
|
|
719
732
|
*/
|
|
720
|
-
updateTasks(tasksToUpdate:
|
|
733
|
+
updateTasks(tasksToUpdate: AXPWorkItem<Record<string, any>>[]): Promise<AXPWorkItem<Record<string, any>>[]>;
|
|
721
734
|
/**
|
|
722
735
|
* Execute commands on tasks.
|
|
723
736
|
*
|
|
@@ -732,9 +745,9 @@ declare class AXPGenericWorkflowTaskProvider extends AXPWorkflowTaskProvider<Rec
|
|
|
732
745
|
*
|
|
733
746
|
* Extracts actions from bookmark payload.
|
|
734
747
|
*/
|
|
735
|
-
getActions(task?:
|
|
748
|
+
getActions(task?: AXPWorkItem<Record<string, any>>): Promise<AXPWorkBoardActionMenuItem[]>;
|
|
736
749
|
getExtraFields(): Promise<AXPExtraField[]>;
|
|
737
|
-
getStatuses(): Promise<
|
|
750
|
+
getStatuses(): Promise<AXPWorkBoardStatus[]>;
|
|
738
751
|
/** Resolves task status from bookmark context `statusId` and entity status plugin; falls back to workflow Pending. */
|
|
739
752
|
private resolveTaskStatus;
|
|
740
753
|
/**
|
|
@@ -779,7 +792,7 @@ declare class AXPGenericWorkflowTaskProvider extends AXPWorkflowTaskProvider<Rec
|
|
|
779
792
|
* First `entity-create` target in this workflow whose entity has a status plugin (cached per provider).
|
|
780
793
|
*/
|
|
781
794
|
private resolvePrimaryEntityTypeForProvider;
|
|
782
|
-
getPopoverMetadata(task:
|
|
795
|
+
getPopoverMetadata(task: AXPWorkItem<Record<string, unknown>>): Promise<AXPWorkItemMetadata>;
|
|
783
796
|
/**
|
|
784
797
|
* Builds label/value metadata rows for the workflow task popover (view-mode widgets).
|
|
785
798
|
*/
|
|
@@ -791,7 +804,7 @@ declare class AXPGenericWorkflowTaskProvider extends AXPWorkflowTaskProvider<Rec
|
|
|
791
804
|
/** Parses `yyyy-mm-dd` (and ISO date prefixes) in local time to avoid UTC day shifts in the date widget. */
|
|
792
805
|
private parseDateOnlyString;
|
|
793
806
|
private resolveTaskPriorityColor;
|
|
794
|
-
getComponent(): (() => Promise<Type<
|
|
807
|
+
getComponent(): (() => Promise<Type<AXPWorkItemDetailsComponent>>) | Type<AXPWorkItemDetailsComponent> | null;
|
|
795
808
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPGenericWorkflowTaskProvider, never>;
|
|
796
809
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPGenericWorkflowTaskProvider>;
|
|
797
810
|
}
|
|
@@ -970,6 +983,8 @@ declare class AXPWorkflowInstanceHumanTaskService {
|
|
|
970
983
|
private readonly sessionService;
|
|
971
984
|
private readonly translationService;
|
|
972
985
|
private readonly dialogService;
|
|
986
|
+
private readonly layoutBuilder;
|
|
987
|
+
private readonly commands;
|
|
973
988
|
private readonly toastService;
|
|
974
989
|
private readonly eventService;
|
|
975
990
|
private readonly workflowEngine;
|
|
@@ -981,7 +996,7 @@ declare class AXPWorkflowInstanceHumanTaskService {
|
|
|
981
996
|
*/
|
|
982
997
|
resumeSuspendedHumanTask(request: ResumeSuspendedHumanTaskRequest): Promise<WorkflowResumeResult>;
|
|
983
998
|
/**
|
|
984
|
-
* Runs the
|
|
999
|
+
* Runs an explicitly chosen decision, or the sole navigation action, on a suspended human-task bookmark.
|
|
985
1000
|
*/
|
|
986
1001
|
executePrimaryHumanTaskAction(instanceId: string, activityId: string, options?: {
|
|
987
1002
|
suppressContinuation?: boolean;
|
|
@@ -995,8 +1010,11 @@ declare class AXPWorkflowInstanceHumanTaskService {
|
|
|
995
1010
|
* Take over with confirmation dialog (task board "Take Over" action).
|
|
996
1011
|
*/
|
|
997
1012
|
reassignBookmarkToCurrentUserWithConfirm(instanceId: string, bookmarkId: string, activityId: string): Promise<boolean>;
|
|
998
|
-
|
|
1013
|
+
availableActions(payload: HumanTaskBookmarkPayload): AXPActionMenuItem[];
|
|
1014
|
+
/** A synchronous caller must never turn ordering into a business decision. */
|
|
999
1015
|
resolvePrimaryTaskOutcome(payload: HumanTaskBookmarkPayload): string;
|
|
1016
|
+
/** Continue opens a decision picker; a single navigation action can still open its form. */
|
|
1017
|
+
chooseTaskOutcome(payload: HumanTaskBookmarkPayload): Promise<string | null>;
|
|
1000
1018
|
private canTakeOver;
|
|
1001
1019
|
private confirmReassignToSelf;
|
|
1002
1020
|
private showResumeError;
|
|
@@ -1007,36 +1025,33 @@ declare class AXPWorkflowInstanceHumanTaskService {
|
|
|
1007
1025
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPWorkflowInstanceHumanTaskService>;
|
|
1008
1026
|
}
|
|
1009
1027
|
|
|
1010
|
-
/**
|
|
1011
|
-
* Shared suspended {@link WorkflowManagement.WorkflowInstance} query for task-board providers.
|
|
1012
|
-
* One API round-trip serves all per-definition workflow task providers.
|
|
1013
|
-
*/
|
|
1028
|
+
/** One filtered, paged query for all selected workflow providers. No full execution rows. */
|
|
1014
1029
|
declare class AXPWorkflowTaskInstanceQueryService {
|
|
1015
|
-
private readonly
|
|
1016
|
-
private readonly
|
|
1017
|
-
private readonly
|
|
1018
|
-
private readonly
|
|
1019
|
-
private
|
|
1020
|
-
private
|
|
1021
|
-
private cacheExpiresAt;
|
|
1022
|
-
private inFlight;
|
|
1030
|
+
private readonly queries;
|
|
1031
|
+
private readonly session;
|
|
1032
|
+
private readonly locale;
|
|
1033
|
+
private readonly refresh;
|
|
1034
|
+
private revision;
|
|
1035
|
+
private lastScope;
|
|
1023
1036
|
constructor();
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
* Returns suspended workflow instances, optionally scoped to one definition.
|
|
1027
|
-
* The underlying entity query always loads the full suspended set once per cache window.
|
|
1028
|
-
*/
|
|
1029
|
-
getSuspendedInstances(definitionId?: string): Promise<AXMWorkflowManagementWorkflowInstanceEntityModel[]>;
|
|
1030
|
-
private loadAllSuspendedInstances;
|
|
1037
|
+
getTasks(sources: WorkflowTaskBoardSource[], options?: AXPWorkBoardFilter): Promise<WorkflowTaskBoardPage>;
|
|
1038
|
+
private scopeKey;
|
|
1031
1039
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPWorkflowTaskInstanceQueryService, never>;
|
|
1032
1040
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPWorkflowTaskInstanceQueryService>;
|
|
1033
1041
|
}
|
|
1034
1042
|
|
|
1035
1043
|
/**
|
|
1036
1044
|
* Discovers one workflow task provider per workflow definition.
|
|
1037
|
-
* Re-runs discovery when {@link
|
|
1045
|
+
* Re-runs discovery when {@link AXPWorkBoardProviderResolveOptions.force} is set.
|
|
1038
1046
|
*/
|
|
1039
|
-
declare function discoverWorkflowTaskProviders(injector: Injector, options?:
|
|
1047
|
+
declare function discoverWorkflowTaskProviders(injector: Injector, options?: AXPWorkBoardProviderResolveOptions): Promise<AXPWorkBoardProvider[]>;
|
|
1048
|
+
|
|
1049
|
+
declare function workflowSignOffLayout(options?: {
|
|
1050
|
+
noteLabelKey?: string;
|
|
1051
|
+
signatureProvider?: string;
|
|
1052
|
+
captureMode?: 'inline' | 'popup';
|
|
1053
|
+
}): AXPWidgetNode;
|
|
1054
|
+
declare function workflowSignOffActions(allowReject: boolean): AXPTaskWorkspaceAction[];
|
|
1040
1055
|
|
|
1041
|
-
export { AXCCategoryProvider, AXMMenuProvider, AXMWorkflowActivitiesDefinitionProvider, AXMWorkflowManagementModule, AXPCreateEntityActivity, AXPGenericWorkflowTaskProvider, AXPWorkflowInstanceHumanTaskService, AXPWorkflowTaskContinuationService, AXPWorkflowTaskInstanceQueryService, AXP_GENERIC_WORKFLOW_TASK_PROVIDER_CONFIG, CartableTaskActivity, CreateEntityFormActivity, HumanTaskActivity, RejectionReasonActivity, ShowConfirmPopupActivity, ShowLayoutPopupActivity, ShowToastActivity, SignOffActivity, createWorkflowInstanceBookmarkAccess, discoverWorkflowTaskProviders, findActiveHumanTaskAssigneeId, findHumanTaskAssigneeIdForActivity, getWorkflowInstanceInitiatorUserId, isWorkflowPooledClaimablePayload, isWorkflowReassignableHumanTaskPayload, isWorkflowTaskBoardBookmarkPayload, needsTakeOverForWorkflowInteractiveContinuation, needsTakeOverForWorkflowTaskContinuation, normalizeWorkflowTaskUserIds, parseWorkflowTaskContinuationPayload, resolveWorkflowHumanTaskAssigneeId, resolveWorkflowInitiatorUserIdFromVariables, resolveWorkflowTaskContinuationAssigneeId, shouldOfferWorkflowContinuationAfterStep, shouldOfferWorkflowInteractiveStepContinuation, shouldOfferWorkflowTaskContinuation, shouldSkipContinuationBeforeInteractive, wasWorkflowTaskBoardActivity };
|
|
1056
|
+
export { AXCCategoryProvider, AXMMenuProvider, AXMWorkflowActivitiesDefinitionProvider, AXMWorkflowManagementModule, AXPCreateEntityActivity, AXPGenericWorkflowTaskProvider, AXPWorkflowInstanceHumanTaskService, AXPWorkflowTaskContinuationService, AXPWorkflowTaskInstanceQueryService, AXP_GENERIC_WORKFLOW_TASK_PROVIDER_CONFIG, CartableTaskActivity, CreateEntityFormActivity, HumanTaskActivity, RejectionReasonActivity, ShowConfirmPopupActivity, ShowLayoutPopupActivity, ShowToastActivity, SignOffActivity, createWorkflowInstanceBookmarkAccess, discoverWorkflowTaskProviders, findActiveHumanTaskAssigneeId, findHumanTaskAssigneeIdForActivity, getWorkflowInstanceInitiatorUserId, isWorkflowPooledClaimablePayload, isWorkflowReassignableHumanTaskPayload, isWorkflowTaskBoardBookmarkPayload, needsTakeOverForWorkflowInteractiveContinuation, needsTakeOverForWorkflowTaskContinuation, normalizeWorkflowTaskUserIds, parseWorkflowTaskContinuationPayload, resolveWorkflowHumanTaskAssigneeId, resolveWorkflowInitiatorUserIdFromVariables, resolveWorkflowTaskContinuationAssigneeId, shouldOfferWorkflowContinuationAfterStep, shouldOfferWorkflowInteractiveStepContinuation, shouldOfferWorkflowTaskContinuation, shouldSkipContinuationBeforeInteractive, wasWorkflowTaskBoardActivity, workflowSignOffActions, workflowSignOffLayout };
|
|
1042
1057
|
export type { AXPGenericWorkflowTaskProviderConfig, CartableTaskInput, CartableTaskOutput, CreateEnityInput, CreateEnityOutput, CreateEntityFormInput, CreateEntityFormOutput, HumanTaskBookmarkPayload, HumanTaskInput, HumanTaskOutput, RejectionReasonActivityInput, RejectionReasonActivityOutput, ResumeSuspendedHumanTaskRequest, ShowConfirmPopupInput, ShowConfirmPopupOutput, ShowLayoutPopupInput, ShowToastCommandInput, ShowToastEntityCommandEnvelope, ShowToastInput, ShowToastOutput, SignOffActivityInput, SignOffActivityOutput, WorkflowInstanceBookmarkAccess, WorkflowInstanceBookmarkRow, WorkflowTaskContinuationBookmark, WorkflowTaskContinuationContext, WorkflowTaskContinuationPayload };
|