@acorex/modules 21.0.0-next.12 → 21.0.0-next.13

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 (34) hide show
  1. package/data-management/index.d.ts +35 -2
  2. package/document-management/index.d.ts +76 -261
  3. package/fesm2022/acorex-modules-data-management.mjs +231 -2
  4. package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
  5. package/fesm2022/acorex-modules-document-management.mjs +529 -2717
  6. package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
  7. package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-BDSyXKSF.mjs → acorex-modules-human-capital-management-leave-request.entity-CviI9xJC.mjs} +2 -2
  8. package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-CviI9xJC.mjs.map +1 -0
  9. package/fesm2022/acorex-modules-human-capital-management.mjs +350 -695
  10. package/fesm2022/acorex-modules-human-capital-management.mjs.map +1 -1
  11. package/fesm2022/{acorex-modules-task-management-task-board.page-Cgxdk78j.mjs → acorex-modules-task-management-task-board.page-B_S373L-.mjs} +47 -54
  12. package/fesm2022/acorex-modules-task-management-task-board.page-B_S373L-.mjs.map +1 -0
  13. package/fesm2022/acorex-modules-task-management.mjs +39 -11
  14. package/fesm2022/acorex-modules-task-management.mjs.map +1 -1
  15. package/fesm2022/acorex-modules-workflow-management-activity-definition.entity-BbBEPTBa.mjs +258 -0
  16. package/fesm2022/acorex-modules-workflow-management-activity-definition.entity-BbBEPTBa.mjs.map +1 -0
  17. package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-nJMBL0qt.mjs +371 -0
  18. package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-nJMBL0qt.mjs.map +1 -0
  19. package/fesm2022/acorex-modules-workflow-management-workflow-instance.entity-Pso0oRN5.mjs +313 -0
  20. package/fesm2022/acorex-modules-workflow-management-workflow-instance.entity-Pso0oRN5.mjs.map +1 -0
  21. package/fesm2022/acorex-modules-workflow-management.mjs +710 -2536
  22. package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
  23. package/human-capital-management/index.d.ts +19 -79
  24. package/package.json +14 -14
  25. package/task-management/index.d.ts +12 -1
  26. package/workflow-management/index.d.ts +220 -265
  27. package/fesm2022/acorex-modules-human-capital-management-leave-request-task-popover.component-yGvT9kSL.mjs +0 -381
  28. package/fesm2022/acorex-modules-human-capital-management-leave-request-task-popover.component-yGvT9kSL.mjs.map +0 -1
  29. package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-BDSyXKSF.mjs.map +0 -1
  30. package/fesm2022/acorex-modules-task-management-task-board.page-Cgxdk78j.mjs.map +0 -1
  31. package/fesm2022/acorex-modules-workflow-management-cartable-page.component-Bso0XRkJ.mjs +0 -296
  32. package/fesm2022/acorex-modules-workflow-management-cartable-page.component-Bso0XRkJ.mjs.map +0 -1
  33. package/fesm2022/acorex-modules-workflow-management-index-xB36g4F1.mjs +0 -469
  34. package/fesm2022/acorex-modules-workflow-management-index-xB36g4F1.mjs.map +0 -1
@@ -1,10 +1,10 @@
1
1
  import { AXPEntity, AXPMenuProvider, AXPMenuProviderContext } from '@acorex/platform/common';
2
- import { AXPEntityDefinitionLoader, AXPEntityPreloadEntity, AXPEntityModel, AXMEntityCrudServiceImpl } from '@acorex/platform/layout/entity';
2
+ import { AXPEntityDefinitionLoader, AXPEntityPreloadEntity, AXPEntityModel } from '@acorex/platform/layout/entity';
3
3
  import * as i0 from '@angular/core';
4
- import { Injector } from '@angular/core';
4
+ import { InjectionToken } from '@angular/core';
5
5
  import * as i1 from '@acorex/modules/calendar-management';
6
6
  import * as i2 from '@acorex/platform/domain';
7
- import { AXPWorkflowDefinition, AXPWorkflowStatus, AXPWorkflowSubStatus, AXPWorkflowInstance, AXPActivityCategory, AXPActivityDefinition, AXPActivityCategoryProvider, AXPActivityProvider } from '@acorex/platform/workflow';
7
+ import { AXPActivityCategory, AXPActivityDefinition, AXPWorkflowDefinition, AXPWorkflowStatus, AXPWorkflowSubStatus, AXPWorkflowInstance, AXPActivityCategoryProvider, AXPActivityProvider } from '@acorex/platform/workflow';
8
8
  import { AXPExecuteCommandResult, AXPActionMenuItem, AXPExecuteCommand, AXPCategoryEntity } from '@acorex/platform/core';
9
9
  import { AXPCommand } from '@acorex/platform/runtime';
10
10
  import { AXStyleColorType } from '@acorex/cdk/common';
@@ -12,6 +12,7 @@ import { AXPWidgetNode } from '@acorex/platform/layout/widget-core';
12
12
  import { AXPopupSizeType } from '@acorex/components/popup';
13
13
  import { AXPPageLayoutBaseComponent } from '@acorex/platform/layout/views';
14
14
  import { AXPCategoryTreeDataSource, AXPCategoryTreeConfig, AXPCategoryTreeActions, AXPCategoryTreeEvents } from '@acorex/platform/layout/components';
15
+ import { AXPWorkflowTaskProvider, AXPTaskFilter, AXPTask, AXPTaskActionMenuItem, AXPExtraField, AXPTaskStatus } from '@acorex/modules/task-management';
15
16
 
16
17
  declare const RootConfig: {
17
18
  config: {
@@ -39,13 +40,6 @@ declare const RootConfig: {
39
40
  titlePlural: string;
40
41
  icon: string;
41
42
  };
42
- activityCategory: {
43
- name: string;
44
- fullName: string;
45
- title: string;
46
- titlePlural: string;
47
- icon: string;
48
- };
49
43
  activityDefinition: {
50
44
  name: string;
51
45
  fullName: string;
@@ -53,26 +47,11 @@ declare const RootConfig: {
53
47
  titlePlural: string;
54
48
  icon: string;
55
49
  };
56
- workItem: {
57
- name: string;
58
- fullName: string;
59
- title: string;
60
- titlePlural: string;
61
- icon: string;
62
- };
63
- workItemCandidate: {
64
- name: string;
65
- fullName: string;
66
- title: string;
67
- titlePlural: string;
68
- icon: string;
69
- };
70
50
  };
71
51
  };
72
52
 
73
53
  declare class AXMWorkflowManagementModuleEntityProvider implements AXPEntityDefinitionLoader {
74
54
  preload(): AXPEntityPreloadEntity[];
75
- private injector;
76
55
  get(moduleName: string, entityName: string): Promise<AXPEntity | null>;
77
56
  list(): Promise<{
78
57
  name: string;
@@ -88,42 +67,6 @@ declare class AXMMenuProvider implements AXPMenuProvider {
88
67
  provide(context: AXPMenuProviderContext): Promise<void>;
89
68
  }
90
69
 
91
- declare class AXMWorkflowManagementWorkflowDefinitionEntityModule {
92
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMWorkflowManagementWorkflowDefinitionEntityModule, never>;
93
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXMWorkflowManagementWorkflowDefinitionEntityModule, never, never, never>;
94
- static ɵinj: i0.ɵɵInjectorDeclaration<AXMWorkflowManagementWorkflowDefinitionEntityModule>;
95
- }
96
-
97
- declare class AXMWorkflowManagementWorkflowInstanceEntityModule {
98
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMWorkflowManagementWorkflowInstanceEntityModule, never>;
99
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXMWorkflowManagementWorkflowInstanceEntityModule, never, never, never>;
100
- static ɵinj: i0.ɵɵInjectorDeclaration<AXMWorkflowManagementWorkflowInstanceEntityModule>;
101
- }
102
-
103
- declare class AXMWorkflowManagementActivityCategoryEntityModule {
104
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMWorkflowManagementActivityCategoryEntityModule, never>;
105
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXMWorkflowManagementActivityCategoryEntityModule, never, never, never>;
106
- static ɵinj: i0.ɵɵInjectorDeclaration<AXMWorkflowManagementActivityCategoryEntityModule>;
107
- }
108
-
109
- declare class AXMWorkflowManagementActivityDefinitionEntityModule {
110
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMWorkflowManagementActivityDefinitionEntityModule, never>;
111
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXMWorkflowManagementActivityDefinitionEntityModule, never, never, never>;
112
- static ɵinj: i0.ɵɵInjectorDeclaration<AXMWorkflowManagementActivityDefinitionEntityModule>;
113
- }
114
-
115
- declare class AXMWorkflowManagementWorkItemEntityModule {
116
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMWorkflowManagementWorkItemEntityModule, never>;
117
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXMWorkflowManagementWorkItemEntityModule, never, never, never>;
118
- static ɵinj: i0.ɵɵInjectorDeclaration<AXMWorkflowManagementWorkItemEntityModule>;
119
- }
120
-
121
- declare class AXMWorkflowManagementWorkItemCandidateEntityModule {
122
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMWorkflowManagementWorkItemCandidateEntityModule, never>;
123
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXMWorkflowManagementWorkItemCandidateEntityModule, never, never, never>;
124
- static ɵinj: i0.ɵɵInjectorDeclaration<AXMWorkflowManagementWorkItemCandidateEntityModule>;
125
- }
126
-
127
70
  /**
128
71
  * Workflow Plugin Module
129
72
  *
@@ -137,10 +80,17 @@ declare class AXMWorkflowPluginModule {
137
80
 
138
81
  declare class AXMWorkflowManagementModule {
139
82
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMWorkflowManagementModule, never>;
140
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXMWorkflowManagementModule, never, [typeof i1.AXMCalendarManagementModule, typeof i2.AXPDomainModule, typeof AXMWorkflowManagementWorkflowDefinitionEntityModule, typeof AXMWorkflowManagementWorkflowInstanceEntityModule, typeof AXMWorkflowManagementActivityCategoryEntityModule, typeof AXMWorkflowManagementActivityDefinitionEntityModule, typeof AXMWorkflowManagementWorkItemEntityModule, typeof AXMWorkflowManagementWorkItemCandidateEntityModule, typeof AXMWorkflowPluginModule], never>;
83
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXMWorkflowManagementModule, never, [typeof i1.AXMCalendarManagementModule, typeof i2.AXPDomainModule, typeof AXMWorkflowPluginModule], never>;
141
84
  static ɵinj: i0.ɵɵInjectorDeclaration<AXMWorkflowManagementModule>;
142
85
  }
143
86
 
87
+ interface AXMWorkflowManagementActivityCategoryEntityModel extends AXPEntityModel<string>, AXPActivityCategory {
88
+ id: string;
89
+ }
90
+
91
+ interface AXMWorkflowManagementActivityDefinitionEntityModel extends AXPEntityModel<string>, AXPActivityDefinition {
92
+ }
93
+
144
94
  /**
145
95
  * Workflow Definition Entity Model.
146
96
  *
@@ -190,16 +140,6 @@ interface AXMWorkflowManagementWorkflowDefinitionEntityModel extends AXPEntityMo
190
140
  isPublished: boolean;
191
141
  }
192
142
 
193
- declare abstract class AXMWorkflowManagementWorkflowDefinitionEntityService extends AXMEntityCrudServiceImpl<string, AXMWorkflowManagementWorkflowDefinitionEntityModel> {
194
- }
195
- declare class AXMWorkflowManagementWorkflowDefinitionEntityServiceImpl extends AXMWorkflowManagementWorkflowDefinitionEntityService {
196
- constructor();
197
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMWorkflowManagementWorkflowDefinitionEntityServiceImpl, never>;
198
- static ɵprov: i0.ɵɵInjectableDeclaration<AXMWorkflowManagementWorkflowDefinitionEntityServiceImpl>;
199
- }
200
-
201
- declare function factory$5(injector: Injector): Promise<AXPEntity | null>;
202
-
203
143
  /**
204
144
  * Workflow Instance Entity Model.
205
145
  *
@@ -258,135 +198,23 @@ interface AXMWorkflowManagementWorkflowInstanceEntityModel extends AXPEntityMode
258
198
  * Full workflow instance (stored as JSON)
259
199
  */
260
200
  workflowInstance?: AXPWorkflowInstance;
201
+ /**
202
+ * Entity reference type
203
+ */
204
+ entityRefType?: string;
205
+ /**
206
+ * Entity reference ID
207
+ */
208
+ entityRefId?: string;
261
209
  }
262
210
 
263
- declare abstract class AXMWorkflowManagementWorkflowInstanceEntityService extends AXMEntityCrudServiceImpl<string, AXMWorkflowManagementWorkflowInstanceEntityModel> {
264
- }
265
- declare class AXMWorkflowManagementWorkflowInstanceEntityServiceImpl extends AXMWorkflowManagementWorkflowInstanceEntityService {
266
- constructor();
267
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMWorkflowManagementWorkflowInstanceEntityServiceImpl, never>;
268
- static ɵprov: i0.ɵɵInjectableDeclaration<AXMWorkflowManagementWorkflowInstanceEntityServiceImpl>;
269
- }
270
-
271
- declare function factory$4(injector: Injector): Promise<AXPEntity | null>;
272
-
273
- interface AXMWorkflowManagementActivityCategoryEntityModel extends AXPEntityModel<string>, AXPActivityCategory {
274
- id: string;
275
- }
276
-
277
- declare abstract class AXMWorkflowManagementActivityCategoryEntityService extends AXMEntityCrudServiceImpl<string, AXMWorkflowManagementActivityCategoryEntityModel> {
278
- }
279
- declare class AXMWorkflowManagementActivityCategoryEntityServiceImpl extends AXMWorkflowManagementActivityCategoryEntityService {
280
- constructor();
281
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMWorkflowManagementActivityCategoryEntityServiceImpl, never>;
282
- static ɵprov: i0.ɵɵInjectableDeclaration<AXMWorkflowManagementActivityCategoryEntityServiceImpl>;
283
- }
284
-
285
- declare function factory$3(injector: Injector): Promise<AXPEntity | null>;
286
-
287
- interface AXMWorkflowManagementActivityDefinitionEntityModel extends AXPEntityModel<string>, AXPActivityDefinition {
288
- }
289
-
290
- declare abstract class AXMWorkflowManagementActivityDefinitionEntityService extends AXMEntityCrudServiceImpl<string, AXMWorkflowManagementActivityDefinitionEntityModel> {
291
- }
292
- declare class AXMWorkflowManagementActivityDefinitionEntityServiceImpl extends AXMWorkflowManagementActivityDefinitionEntityService {
293
- constructor();
294
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMWorkflowManagementActivityDefinitionEntityServiceImpl, never>;
295
- static ɵprov: i0.ɵɵInjectableDeclaration<AXMWorkflowManagementActivityDefinitionEntityServiceImpl>;
296
- }
297
-
298
- declare function factory$2(_injector: Injector): Promise<AXPEntity | null>;
299
-
300
- type WorkItemStatus = 'Pending' | 'Claimed' | 'InProgress' | 'Completed' | 'Cancelled' | 'Rejected';
301
- type WorkItemKind = 'HumanTask' | 'Approval' | 'Review' | 'Notification' | 'Other';
302
- type WorkItemPriority = 'Low' | 'Normal' | 'High' | 'Urgent';
303
- interface AXMWorkflowManagementWorkItemEntityModel extends AXPEntityModel<string> {
304
- instanceId: string;
305
- bookmarkId?: string | null;
306
- activityNodeId: string;
307
- activityName?: string | null;
308
- title: string;
309
- description?: string | null;
310
- kind: WorkItemKind;
311
- status: WorkItemStatus;
312
- priority: WorkItemPriority;
313
- assignedUserId?: string | null;
314
- claimedByUserId?: string | null;
315
- completedByUserId?: string | null;
316
- createdByUserId?: string | null;
317
- assignedAt?: string | null;
318
- claimedAt?: string | null;
319
- completedAt?: string | null;
320
- dueDate?: string | null;
321
- createdAt: string;
322
- updatedAt: string;
323
- entityRefId?: string | null;
324
- entityRefType?: string | null;
325
- instance?: {
326
- id: string;
327
- name?: string;
328
- definitionId: string;
329
- };
330
- assignedUser?: {
331
- id: string;
332
- displayName: string;
333
- };
334
- claimedByUser?: {
335
- id: string;
336
- displayName: string;
337
- };
338
- completedByUser?: {
339
- id: string;
340
- displayName: string;
341
- };
342
- createdByUser?: {
343
- id: string;
344
- displayName: string;
345
- };
346
- }
347
-
348
- declare abstract class AXMWorkflowManagementWorkItemEntityService extends AXMEntityCrudServiceImpl<string, AXMWorkflowManagementWorkItemEntityModel> {
349
- }
350
- declare class AXMWorkflowManagementWorkItemEntityServiceImpl extends AXMWorkflowManagementWorkItemEntityService {
351
- constructor();
352
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMWorkflowManagementWorkItemEntityServiceImpl, never>;
353
- static ɵprov: i0.ɵɵInjectableDeclaration<AXMWorkflowManagementWorkItemEntityServiceImpl>;
354
- }
355
-
356
- declare function factory$1(injector: Injector): Promise<AXPEntity | null>;
357
-
358
- interface AXMWorkflowManagementWorkItemCandidateEntityModel extends AXPEntityModel<string> {
359
- workItemId: string;
360
- userId: string;
361
- createdAt: string;
362
- updatedAt: string;
363
- workItem?: {
364
- id: string;
365
- title: string;
366
- status: string;
367
- };
368
- user?: {
369
- id: string;
370
- displayName: string;
371
- };
372
- }
373
-
374
- declare abstract class AXMWorkflowManagementWorkItemCandidateEntityService extends AXMEntityCrudServiceImpl<string, AXMWorkflowManagementWorkItemCandidateEntityModel> {
375
- }
376
- declare class AXMWorkflowManagementWorkItemCandidateEntityServiceImpl extends AXMWorkflowManagementWorkItemCandidateEntityService {
377
- constructor();
378
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMWorkflowManagementWorkItemCandidateEntityServiceImpl, never>;
379
- static ɵprov: i0.ɵɵInjectableDeclaration<AXMWorkflowManagementWorkItemCandidateEntityServiceImpl>;
380
- }
381
-
382
- declare function factory(injector: Injector): Promise<AXPEntity | null>;
383
-
384
211
  /**
385
212
  * Provider for activity categories.
386
213
  * Reads categories from entity service (mock data).
387
214
  */
388
215
  declare class AXCCategoryProvider implements AXPActivityCategoryProvider {
389
216
  private readonly entityService;
217
+ /** Category entity is provided by category plugin (ActivityDefinition → ActivityDefinitionCategory). */
390
218
  private categoryService;
391
219
  getList(parentId?: string): Promise<AXPActivityCategory[]>;
392
220
  getById(id: string): Promise<AXPActivityCategory | undefined>;
@@ -394,64 +222,6 @@ declare class AXCCategoryProvider implements AXPActivityCategoryProvider {
394
222
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCCategoryProvider>;
395
223
  }
396
224
 
397
- /**
398
- * Input for CheckPermission activity.
399
- */
400
- interface CheckPermissionInput {
401
- /**
402
- * Permission key to check (e.g., "Users.Create")
403
- */
404
- permission: string;
405
- /**
406
- * User ID to check (optional, defaults to current user)
407
- */
408
- userId?: string;
409
- }
410
- /**
411
- * Output for CheckPermission activity.
412
- */
413
- interface CheckPermissionOutput {
414
- /**
415
- * Whether user has the permission
416
- */
417
- hasPermission: boolean;
418
- /**
419
- * User ID that was checked
420
- */
421
- userId: string;
422
- /**
423
- * Permission that was checked
424
- */
425
- permission: string;
426
- }
427
- /**
428
- * CheckPermission Activity (Backend)
429
- *
430
- * Checks if a user has specific permission.
431
- * This is a mock implementation that always grants permission for demo purposes.
432
- *
433
- * In production, this would check against real permission system.
434
- *
435
- * Execution Mode: backend
436
- * Activity Type: workflow-activity:check-permission
437
- *
438
- * Outcomes:
439
- * - HasPermission: User has the permission
440
- * - NoPermission: User does not have the permission
441
- */
442
- declare class CheckPermissionActivity implements AXPCommand<CheckPermissionInput, {
443
- output: CheckPermissionOutput;
444
- outcomes: Record<string, any>;
445
- }> {
446
- private readonly sessionService;
447
- execute(input: CheckPermissionInput): Promise<AXPExecuteCommandResult<{
448
- output: CheckPermissionOutput;
449
- outcomes: Record<string, any>;
450
- }>>;
451
- static ɵfac: i0.ɵɵFactoryDeclaration<CheckPermissionActivity, never>;
452
- static ɵprov: i0.ɵɵInjectableDeclaration<CheckPermissionActivity>;
453
- }
454
-
455
225
  /**
456
226
  * Input for ExecuteQuery activity.
457
227
  */
@@ -734,6 +504,104 @@ declare class ShowLayoutPopupActivity implements AXPCommand<ShowLayoutPopupInput
734
504
  static ɵprov: i0.ɵɵInjectableDeclaration<ShowLayoutPopupActivity>;
735
505
  }
736
506
 
507
+ /**
508
+ * Input for Human Task activity.
509
+ */
510
+ interface HumanTaskInput {
511
+ /**
512
+ * Task title
513
+ */
514
+ title?: string;
515
+ /**
516
+ * Task description
517
+ */
518
+ description?: string;
519
+ /**
520
+ * Assigned user IDs (direct assignment)
521
+ */
522
+ assignedUserIds?: string[];
523
+ /**
524
+ * Candidate user IDs (users who can claim the task)
525
+ */
526
+ candidateUserIds?: string[];
527
+ /**
528
+ * Candidate role IDs (roles whose members can claim the task)
529
+ */
530
+ candidateRoleIds?: string[];
531
+ /**
532
+ * Task priority
533
+ */
534
+ priority?: 'Low' | 'Normal' | 'High' | 'Urgent';
535
+ /**
536
+ * Task due date (ISO date string or Date)
537
+ */
538
+ dueDate?: string | Date;
539
+ /**
540
+ * Initial context data for the form
541
+ */
542
+ context?: Record<string, any>;
543
+ }
544
+ /**
545
+ * Output for Human Task activity.
546
+ */
547
+ interface HumanTaskOutput {
548
+ /**
549
+ * Result data from task completion (form values)
550
+ */
551
+ result: Record<string, any>;
552
+ /**
553
+ * Action that was clicked (e.g., 'approve', 'reject', 'cancel')
554
+ */
555
+ action: string;
556
+ }
557
+ /**
558
+ * Human Task Activity (Frontend)
559
+ *
560
+ * Generic human task activity that suspends workflow and waits for user interaction.
561
+ * Supports assignment and actions (displayed inline). For dialog-style flow, use a follow-up activity.
562
+ *
563
+ * Execution Mode: frontend
564
+ * Task Type: human-task
565
+ * Activity Type: workflow-activity:human-task
566
+ *
567
+ * Outcomes:
568
+ * Outcomes are dynamically generated based on the actions provided in the input.
569
+ * Each action creates a corresponding outcome with the action name (from command.name or action.name).
570
+ * If no actions are provided, default actions (cancel, submit) are used.
571
+ *
572
+ * Examples:
573
+ * - If action has command.name = 'approve', outcome will be { approve: true }
574
+ * - If action has name = 'reject', outcome will be { reject: true }
575
+ * - Default outcomes: { cancel: true } or { submit: true }
576
+ *
577
+ * Assignment:
578
+ * - assignedUserIds: Direct assignment to specific users
579
+ * - candidateUserIds: Users who can claim the task
580
+ * - candidateRoleIds: Roles whose members can claim the task
581
+ *
582
+ * Display Modes:
583
+ * - 'dialog': Traditional modal dialog (default)
584
+ * - 'inline': Actions displayed directly on page before resume
585
+ */
586
+ declare class HumanTaskActivity implements AXPCommand<HumanTaskInput, {
587
+ output: HumanTaskOutput;
588
+ outcomes: Record<string, any>;
589
+ }> {
590
+ /**
591
+ * Execute human task activity.
592
+ *
593
+ * This method doesn't actually show UI - it just validates input and returns success.
594
+ * The workflow engine will suspend at this activity and create a bookmark.
595
+ * The Generic Task Provider will handle displaying the task UI inline.
596
+ */
597
+ execute(input: HumanTaskInput): Promise<AXPExecuteCommandResult<{
598
+ output: HumanTaskOutput;
599
+ outcomes: Record<string, any>;
600
+ }>>;
601
+ static ɵfac: i0.ɵɵFactoryDeclaration<HumanTaskActivity, never>;
602
+ static ɵprov: i0.ɵɵInjectableDeclaration<HumanTaskActivity>;
603
+ }
604
+
737
605
  /**
738
606
  * Input for ShowToast activity.
739
607
  */
@@ -907,18 +775,6 @@ declare class AXPCreateEntityActivity implements AXPCommand<CreateEnityInput, {
907
775
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPCreateEntityActivity>;
908
776
  }
909
777
 
910
- declare class AssignToManggerActivity implements AXPCommand<any, {
911
- output: any;
912
- outcomes: Record<string, any>;
913
- }> {
914
- execute(input: any): Promise<AXPExecuteCommandResult<{
915
- output: any;
916
- outcomes: Record<string, any>;
917
- }>>;
918
- static ɵfac: i0.ɵɵFactoryDeclaration<AssignToManggerActivity, never>;
919
- static ɵprov: i0.ɵɵInjectableDeclaration<AssignToManggerActivity>;
920
- }
921
-
922
778
  interface PropertySchema {
923
779
  name: string;
924
780
  type: 'string' | 'number' | 'boolean' | 'object' | 'array' | 'select' | 'any';
@@ -1372,5 +1228,104 @@ declare class AXMActivityCategoriesTreeComponent {
1372
1228
  static ɵcmp: i0.ɵɵComponentDeclaration<AXMActivityCategoriesTreeComponent, "axp-activity-categories-tree", never, {}, { "categoryClick": "categoryClick"; "activityClick": "activityClick"; }, never, never, true, never>;
1373
1229
  }
1374
1230
 
1375
- export { AXCCategoryProvider, AXMActivityCategoriesTreeComponent, AXMMenuProvider, AXMWorkflowActivitiesDefinitionProvider, AXMWorkflowManagementActivityCategoryEntityModule, AXMWorkflowManagementActivityCategoryEntityService, AXMWorkflowManagementActivityCategoryEntityServiceImpl, AXMWorkflowManagementActivityDefinitionEntityModule, AXMWorkflowManagementActivityDefinitionEntityService, AXMWorkflowManagementActivityDefinitionEntityServiceImpl, AXMWorkflowManagementModule, AXMWorkflowManagementModuleEntityProvider, AXMWorkflowManagementWorkItemCandidateEntityModule, AXMWorkflowManagementWorkItemCandidateEntityService, AXMWorkflowManagementWorkItemCandidateEntityServiceImpl, AXMWorkflowManagementWorkItemEntityModule, AXMWorkflowManagementWorkItemEntityService, AXMWorkflowManagementWorkItemEntityServiceImpl, AXMWorkflowManagementWorkflowDefinitionEntityModule, AXMWorkflowManagementWorkflowDefinitionEntityService, AXMWorkflowManagementWorkflowDefinitionEntityServiceImpl, AXMWorkflowManagementWorkflowInstanceEntityModule, AXMWorkflowManagementWorkflowInstanceEntityService, AXMWorkflowManagementWorkflowInstanceEntityServiceImpl, AXPCreateEntityActivity, AssignToManggerActivity, CheckPermissionActivity, CollectSignatureActivity, ExecuteCommandActivity, ExecuteQueryActivity, RootConfig, ShowConfirmPopupActivity, ShowLayoutPopupActivity, ShowToastActivity, WorkflowStudioComponent, factory$3 as activityCategoryEntityFactory, factory$2 as activityDefinitionEntityFactory, factory as workItemCandidateEntityFactory, factory$1 as workItemEntityFactory, factory$5 as workflowDefinitionEntityFactory, factory$4 as workflowInstanceEntityFactory };
1376
- export type { AXMWorkflowManagementActivityCategoryEntityModel, AXMWorkflowManagementActivityDefinitionEntityModel, AXMWorkflowManagementWorkItemCandidateEntityModel, AXMWorkflowManagementWorkItemEntityModel, AXMWorkflowManagementWorkflowDefinitionEntityModel, AXMWorkflowManagementWorkflowInstanceEntityModel, CheckPermissionInput, CheckPermissionOutput, CollectSignatureInput, CollectSignatureOutput, CreateEnityInput, CreateEnityOutput, ExecuteCommandInput, ExecuteCommandOutput, ExecuteQueryInput, ExecuteQueryOutput, ShowConfirmPopupInput, ShowConfirmPopupOutput, ShowLayoutPopupInput, ShowLayoutPopupOutput, ShowToastInput, ShowToastOutput, WorkItemKind, WorkItemPriority, WorkItemStatus };
1231
+ /**
1232
+ * Configuration for a workflow-specific task provider.
1233
+ * One provider per workflow definition – pass definitionId to scope tasks to that definition only.
1234
+ */
1235
+ interface AXPGenericWorkflowTaskProviderConfig {
1236
+ /** Unique provider name (e.g. 'leave-request-workflow-tasks', 'document-review-workflow-tasks'). */
1237
+ name: string;
1238
+ /** Display title in task board type selector. */
1239
+ title: string;
1240
+ /** Optional icon (default: 'fa-light fa-diagram-project'). */
1241
+ icon?: string;
1242
+ /**
1243
+ * When set, only workflow instances for this definition are shown.
1244
+ * One provider = one definition. Omit to show all suspended workflow tasks (single generic provider).
1245
+ */
1246
+ definitionId?: string;
1247
+ }
1248
+ /**
1249
+ * Injection token for provider config. Use when registering via DI (provide token + useFactory with deps).
1250
+ * When creating via useFactory: () => new AXPGenericWorkflowTaskProvider({ ... }), config is passed in the closure.
1251
+ */
1252
+ declare const AXP_GENERIC_WORKFLOW_TASK_PROVIDER_CONFIG: InjectionToken<AXPGenericWorkflowTaskProviderConfig>;
1253
+ /**
1254
+ * Generic Workflow Task Provider
1255
+ *
1256
+ * Provides tasks from Workflow Instances directly (no Work Items).
1257
+ * Queries suspended workflow instances and extracts tasks from bookmarks.
1258
+ *
1259
+ * Create one provider per workflow definition by passing a config (name, title, definitionId).
1260
+ * E.g. leave request: { name: 'leave-request-workflow-tasks', title: 'Leave Request', definitionId: 'LeaveRequestWorkflow' }
1261
+ *
1262
+ * Architecture:
1263
+ * - Queries Workflow Instances with subStatus = 'Suspended'
1264
+ * - Filters by config.definitionId when set (one provider = one definition)
1265
+ * - Extracts active bookmarks for each instance
1266
+ * - Parses bookmark payload for assignment/actions
1267
+ * - Maps to task board format
1268
+ */
1269
+ declare class AXPGenericWorkflowTaskProvider extends AXPWorkflowTaskProvider<Record<string, any>> {
1270
+ private readonly config;
1271
+ private readonly entityService;
1272
+ private readonly workflowInstanceData;
1273
+ private readonly translationService;
1274
+ private readonly workflowManager;
1275
+ constructor(config: AXPGenericWorkflowTaskProviderConfig);
1276
+ get name(): string;
1277
+ get title(): string;
1278
+ get icon(): string;
1279
+ /**
1280
+ * Get tasks from suspended workflow instances.
1281
+ *
1282
+ * Queries workflow instances filtered by:
1283
+ * - subStatus = 'Suspended'
1284
+ * - entityRefType (if provided in filter)
1285
+ * - definitionId (if provided in filter)
1286
+ * - assignee/claimant (if filter provided)
1287
+ *
1288
+ * Then extracts active bookmarks and maps to task board format.
1289
+ */
1290
+ getTasks(options: AXPTaskFilter): Promise<{
1291
+ items: AXPTask<Record<string, any>>[];
1292
+ total: number;
1293
+ }>;
1294
+ /**
1295
+ * Get active (non-consumed) bookmarks from workflow instance entity.
1296
+ * Reads from instance.workflowInstance?.bookmarks — no direct DB access.
1297
+ */
1298
+ private getActiveBookmarksFromInstance;
1299
+ /**
1300
+ * Map bookmark to task board task format.
1301
+ */
1302
+ private mapBookmarkToTask;
1303
+ /**
1304
+ * Map priority to task board priority.
1305
+ */
1306
+ private mapPriorityToTaskPriority;
1307
+ /**
1308
+ * Update tasks (not applicable for workflow instances - they are read-only from task provider perspective).
1309
+ */
1310
+ updateTasks(tasksToUpdate: AXPTask<Record<string, any>>[]): Promise<AXPTask<Record<string, any>>[]>;
1311
+ /**
1312
+ * Execute commands on tasks.
1313
+ *
1314
+ * Supports:
1315
+ * - Workflow resume commands (Complete, Cancel)
1316
+ */
1317
+ executeCommand(command: AXPExecuteCommand): Promise<AXPExecuteCommandResult>;
1318
+ /**
1319
+ * Get available actions for a task.
1320
+ *
1321
+ * Extracts actions from bookmark payload.
1322
+ */
1323
+ getActions(task?: AXPTask<Record<string, any>>): Promise<AXPTaskActionMenuItem[]>;
1324
+ getExtraFields(): Promise<AXPExtraField[]>;
1325
+ getStatuses(): Promise<AXPTaskStatus[]>;
1326
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPGenericWorkflowTaskProvider, never>;
1327
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPGenericWorkflowTaskProvider>;
1328
+ }
1329
+
1330
+ export { AXCCategoryProvider, AXMActivityCategoriesTreeComponent, AXMMenuProvider, AXMWorkflowActivitiesDefinitionProvider, AXMWorkflowManagementModule, AXMWorkflowManagementModuleEntityProvider, AXPCreateEntityActivity, AXPGenericWorkflowTaskProvider, AXP_GENERIC_WORKFLOW_TASK_PROVIDER_CONFIG, CollectSignatureActivity, ExecuteCommandActivity, ExecuteQueryActivity, HumanTaskActivity, RootConfig, ShowConfirmPopupActivity, ShowLayoutPopupActivity, ShowToastActivity, WorkflowStudioComponent };
1331
+ export type { AXMWorkflowManagementActivityCategoryEntityModel, AXMWorkflowManagementActivityDefinitionEntityModel, AXMWorkflowManagementWorkflowDefinitionEntityModel, AXMWorkflowManagementWorkflowInstanceEntityModel, AXPGenericWorkflowTaskProviderConfig, CollectSignatureInput, CollectSignatureOutput, CreateEnityInput, CreateEnityOutput, ExecuteCommandInput, ExecuteCommandOutput, ExecuteQueryInput, ExecuteQueryOutput, HumanTaskInput, HumanTaskOutput, ShowConfirmPopupInput, ShowConfirmPopupOutput, ShowLayoutPopupInput, ShowLayoutPopupOutput, ShowToastInput, ShowToastOutput };