@acorex/platform 20.6.0 → 20.6.2
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-workflow.mjs +273 -296
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/package.json +16 -16
- package/workflow/index.d.ts +578 -276
package/workflow/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import * as rxjs from 'rxjs';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { Type, ModuleWithProviders, Injector, InjectionToken } from '@angular/core';
|
|
5
|
-
import { AXPCommand } from '@acorex/platform/runtime';
|
|
5
|
+
import { AXPCommand, AXPExecuteCommandResultPromise } from '@acorex/platform/runtime';
|
|
6
6
|
import * as _acorex_platform_core from '@acorex/platform/core';
|
|
7
|
-
import {
|
|
7
|
+
import { AXPValidationRules, AXPActionMenuItem } from '@acorex/platform/core';
|
|
8
8
|
import { AXPWidgetTypesMap, AXPWidgetNode } from '@acorex/platform/layout/widget-core';
|
|
9
9
|
import { AXStyleColorType } from '@acorex/cdk/common';
|
|
10
10
|
import { AXPopupSizeType } from '@acorex/components/popup';
|
|
@@ -407,7 +407,7 @@ interface AXPCustomProperties {
|
|
|
407
407
|
* Matches Activity from workflow definition schema.
|
|
408
408
|
* Note: This is the workflow definition format, not the frontend Activity class.
|
|
409
409
|
*/
|
|
410
|
-
interface AXPActivity {
|
|
410
|
+
interface AXPActivity$1 {
|
|
411
411
|
/**
|
|
412
412
|
* Activity ID.
|
|
413
413
|
*/
|
|
@@ -435,7 +435,7 @@ interface AXPActivity {
|
|
|
435
435
|
* - 'backend': Execute in backend (business logic, database operations, API calls)
|
|
436
436
|
* - 'both': Execute in both frontend and backend (hybrid activities)
|
|
437
437
|
*
|
|
438
|
-
* If not specified, falls back to
|
|
438
|
+
* If not specified, falls back to AXPActivity's executionMode.
|
|
439
439
|
* This allows per-instance override of the default execution mode.
|
|
440
440
|
*
|
|
441
441
|
* @example
|
|
@@ -465,7 +465,7 @@ interface AXPActivity {
|
|
|
465
465
|
* Flowchart activity (workflow definition format).
|
|
466
466
|
* This is the root activity that contains all other activities.
|
|
467
467
|
*/
|
|
468
|
-
interface AXPFlowchart extends AXPActivity {
|
|
468
|
+
interface AXPFlowchart extends AXPActivity$1 {
|
|
469
469
|
/**
|
|
470
470
|
* Type must be "workflow-activity:flowchart".
|
|
471
471
|
*/
|
|
@@ -473,7 +473,7 @@ interface AXPFlowchart extends AXPActivity {
|
|
|
473
473
|
/**
|
|
474
474
|
* Activities in this flowchart.
|
|
475
475
|
*/
|
|
476
|
-
activities: AXPActivity[];
|
|
476
|
+
activities: AXPActivity$1[];
|
|
477
477
|
/**
|
|
478
478
|
* Variables in this flowchart.
|
|
479
479
|
*/
|
|
@@ -1095,68 +1095,22 @@ interface ActivityPropertyWidget {
|
|
|
1095
1095
|
options?: Record<string, any>;
|
|
1096
1096
|
}
|
|
1097
1097
|
/**
|
|
1098
|
-
*
|
|
1098
|
+
* Activity interface - command with outcomes and metadata.
|
|
1099
1099
|
* All activities are AXPCommand for unified execution through Command Bus.
|
|
1100
|
+
* Contains both execution logic and metadata for UI and tooling.
|
|
1100
1101
|
*/
|
|
1101
|
-
interface
|
|
1102
|
+
interface AXPActivity<TInput = any, TOutput = any> extends AXPCommand<TInput, {
|
|
1102
1103
|
output: TOutput;
|
|
1103
1104
|
outcomes: Record<string, any>;
|
|
1104
1105
|
}> {
|
|
1105
1106
|
/**
|
|
1106
|
-
* Activity type
|
|
1107
|
-
* Example: "WriteLine", "ShowDialog", "CreateUserCommand"
|
|
1108
|
-
*/
|
|
1109
|
-
type: string;
|
|
1110
|
-
/**
|
|
1111
|
-
* Display name for UI.
|
|
1112
|
-
*/
|
|
1113
|
-
name?: string;
|
|
1114
|
-
/**
|
|
1115
|
-
* Execute the activity as a command.
|
|
1116
|
-
* @param input - Activity input data
|
|
1117
|
-
* @returns Promise with output and outcomes
|
|
1118
|
-
*/
|
|
1119
|
-
execute(input: TInput): Promise<AXPExecuteCommandResult<{
|
|
1120
|
-
output: TOutput;
|
|
1121
|
-
outcomes: Record<string, any>;
|
|
1122
|
-
}>>;
|
|
1123
|
-
}
|
|
1124
|
-
/**
|
|
1125
|
-
* Base abstract class for activities.
|
|
1126
|
-
* Extend this to create custom activities.
|
|
1127
|
-
*/
|
|
1128
|
-
declare abstract class Activity<TInput = any, TOutput = any> implements IActivity<TInput, TOutput> {
|
|
1129
|
-
type: string;
|
|
1130
|
-
name?: string;
|
|
1131
|
-
constructor(type: string, name?: string);
|
|
1132
|
-
/**
|
|
1133
|
-
* Execute the activity as a command.
|
|
1134
|
-
* Override this method in subclasses to implement activity logic.
|
|
1135
|
-
*/
|
|
1136
|
-
abstract execute(input: TInput): Promise<AXPExecuteCommandResult<{
|
|
1137
|
-
output: TOutput;
|
|
1138
|
-
outcomes: Record<string, any>;
|
|
1139
|
-
}>>;
|
|
1140
|
-
/**
|
|
1141
|
-
* Helper method that returns Done outcome by default.
|
|
1142
|
-
*/
|
|
1143
|
-
protected createResult(output: TOutput, outcome?: string): AXPExecuteCommandResult<{
|
|
1144
|
-
output: TOutput;
|
|
1145
|
-
outcomes: Record<string, any>;
|
|
1146
|
-
}>;
|
|
1147
|
-
}
|
|
1148
|
-
/**
|
|
1149
|
-
* Activity descriptor - metadata about an activity type.
|
|
1150
|
-
*/
|
|
1151
|
-
interface ActivityDescriptor {
|
|
1152
|
-
/**
|
|
1153
|
-
* Activity type name.
|
|
1107
|
+
* Activity type.
|
|
1154
1108
|
*/
|
|
1155
1109
|
type: string;
|
|
1156
1110
|
/**
|
|
1157
1111
|
* Display name for UI.
|
|
1158
1112
|
*/
|
|
1159
|
-
|
|
1113
|
+
title?: string;
|
|
1160
1114
|
/**
|
|
1161
1115
|
* Description of what the activity does.
|
|
1162
1116
|
*/
|
|
@@ -1164,7 +1118,7 @@ interface ActivityDescriptor {
|
|
|
1164
1118
|
/**
|
|
1165
1119
|
* Category for grouping in toolbox.
|
|
1166
1120
|
*/
|
|
1167
|
-
category
|
|
1121
|
+
category?: string;
|
|
1168
1122
|
/**
|
|
1169
1123
|
* Icon name or class.
|
|
1170
1124
|
*/
|
|
@@ -1181,11 +1135,11 @@ interface ActivityDescriptor {
|
|
|
1181
1135
|
/**
|
|
1182
1136
|
* Input descriptors.
|
|
1183
1137
|
*/
|
|
1184
|
-
inputs
|
|
1138
|
+
inputs?: InputDescriptor[];
|
|
1185
1139
|
/**
|
|
1186
1140
|
* Output descriptors.
|
|
1187
1141
|
*/
|
|
1188
|
-
outputs
|
|
1142
|
+
outputs?: OutputDescriptor[];
|
|
1189
1143
|
/**
|
|
1190
1144
|
* Static outcomes (exit points).
|
|
1191
1145
|
* Example: ['Done', 'Success', 'Failed']
|
|
@@ -1201,6 +1155,15 @@ interface ActivityDescriptor {
|
|
|
1201
1155
|
* Default: false
|
|
1202
1156
|
*/
|
|
1203
1157
|
isContainer?: boolean;
|
|
1158
|
+
/**
|
|
1159
|
+
* Execute the activity as a command.
|
|
1160
|
+
* @param input - Activity input data
|
|
1161
|
+
* @returns Promise with output and outcomes
|
|
1162
|
+
*/
|
|
1163
|
+
execute(input: TInput): AXPExecuteCommandResultPromise<{
|
|
1164
|
+
output: TOutput;
|
|
1165
|
+
outcomes: Record<string, any>;
|
|
1166
|
+
}>;
|
|
1204
1167
|
}
|
|
1205
1168
|
/**
|
|
1206
1169
|
* Input property descriptor.
|
|
@@ -1231,37 +1194,6 @@ interface OutputDescriptor {
|
|
|
1231
1194
|
dataType: string;
|
|
1232
1195
|
};
|
|
1233
1196
|
}
|
|
1234
|
-
/**
|
|
1235
|
-
* Activity registry for registering and creating activities.
|
|
1236
|
-
*/
|
|
1237
|
-
declare class ActivityRegistry {
|
|
1238
|
-
private registry;
|
|
1239
|
-
private descriptors;
|
|
1240
|
-
/**
|
|
1241
|
-
* Register an activity type.
|
|
1242
|
-
*/
|
|
1243
|
-
register(type: string, factory: () => IActivity, descriptor: ActivityDescriptor): void;
|
|
1244
|
-
/**
|
|
1245
|
-
* Create an activity instance.
|
|
1246
|
-
*/
|
|
1247
|
-
create(type: string): IActivity;
|
|
1248
|
-
/**
|
|
1249
|
-
* Get activity descriptor.
|
|
1250
|
-
*/
|
|
1251
|
-
getDescriptor(type: string): ActivityDescriptor | undefined;
|
|
1252
|
-
/**
|
|
1253
|
-
* Get all registered types.
|
|
1254
|
-
*/
|
|
1255
|
-
getTypes(): string[];
|
|
1256
|
-
/**
|
|
1257
|
-
* Get all descriptors.
|
|
1258
|
-
*/
|
|
1259
|
-
getAllDescriptors(): ActivityDescriptor[];
|
|
1260
|
-
/**
|
|
1261
|
-
* Get descriptors by category.
|
|
1262
|
-
*/
|
|
1263
|
-
getDescriptorsByCategory(category: string): ActivityDescriptor[];
|
|
1264
|
-
}
|
|
1265
1197
|
|
|
1266
1198
|
interface ActivityCategoryDescriptor {
|
|
1267
1199
|
name: string;
|
|
@@ -1298,15 +1230,9 @@ declare class AXPActivityCategoryProviderService {
|
|
|
1298
1230
|
|
|
1299
1231
|
/**
|
|
1300
1232
|
* Context for registering activities in a provider.
|
|
1233
|
+
* Activities are registered through Command Registry, so this context is mainly for category registration.
|
|
1301
1234
|
*/
|
|
1302
1235
|
interface AXPActivityProviderContext {
|
|
1303
|
-
/**
|
|
1304
|
-
* Register an activity with its descriptor.
|
|
1305
|
-
*/
|
|
1306
|
-
registerActivity(config: {
|
|
1307
|
-
key: string;
|
|
1308
|
-
descriptor: ActivityDescriptor;
|
|
1309
|
-
}): void;
|
|
1310
1236
|
}
|
|
1311
1237
|
/**
|
|
1312
1238
|
* Interface for activity providers.
|
|
@@ -1322,25 +1248,11 @@ interface AXPActivityProvider {
|
|
|
1322
1248
|
* Injection token for activity providers.
|
|
1323
1249
|
*/
|
|
1324
1250
|
declare const AXP_ACTIVITY_PROVIDER: InjectionToken<AXPActivityProvider[]>;
|
|
1325
|
-
/**
|
|
1326
|
-
* Category definition for activity categorization.
|
|
1327
|
-
*/
|
|
1328
|
-
interface ActivityCategory {
|
|
1329
|
-
name: string;
|
|
1330
|
-
displayName: string;
|
|
1331
|
-
description?: string;
|
|
1332
|
-
icon?: string;
|
|
1333
|
-
color?: string;
|
|
1334
|
-
order?: number;
|
|
1335
|
-
isVisible?: boolean;
|
|
1336
|
-
tags?: string[];
|
|
1337
|
-
}
|
|
1338
1251
|
/**
|
|
1339
1252
|
* Activity Provider Service.
|
|
1340
1253
|
* Collects all activity providers and manages activity registration.
|
|
1341
1254
|
*/
|
|
1342
1255
|
declare class AXPActivityProviderService {
|
|
1343
|
-
private activityDescriptors;
|
|
1344
1256
|
private categories;
|
|
1345
1257
|
private providers;
|
|
1346
1258
|
private categoryProviders;
|
|
@@ -1360,25 +1272,27 @@ declare class AXPActivityProviderService {
|
|
|
1360
1272
|
*/
|
|
1361
1273
|
initialize(): Promise<void>;
|
|
1362
1274
|
/**
|
|
1363
|
-
* Get activity
|
|
1275
|
+
* Get activity instance by key.
|
|
1276
|
+
* Activity metadata is part of the activity instance itself.
|
|
1364
1277
|
*/
|
|
1365
|
-
|
|
1278
|
+
getActivity(key: string): Promise<AXPActivity | null>;
|
|
1366
1279
|
/**
|
|
1367
|
-
* Get all activity
|
|
1280
|
+
* Get all registered activity keys from Command Registry.
|
|
1368
1281
|
*/
|
|
1369
|
-
|
|
1282
|
+
getAllActivityKeys(): string[];
|
|
1370
1283
|
/**
|
|
1371
|
-
* Get
|
|
1284
|
+
* Get activities by category.
|
|
1285
|
+
* Note: This requires loading all activities and filtering by category.
|
|
1372
1286
|
*/
|
|
1373
|
-
|
|
1287
|
+
getActivitiesByCategory(category: string): Promise<AXPActivity[]>;
|
|
1374
1288
|
/**
|
|
1375
1289
|
* Get all categories.
|
|
1376
1290
|
*/
|
|
1377
|
-
getCategories():
|
|
1291
|
+
getCategories(): ActivityCategoryDescriptor[];
|
|
1378
1292
|
/**
|
|
1379
1293
|
* Create an activity instance by key using AXPCommandService.
|
|
1380
1294
|
*/
|
|
1381
|
-
createActivity(key: string): Promise<
|
|
1295
|
+
createActivity(key: string): Promise<AXPActivity | null>;
|
|
1382
1296
|
private initializeProvider;
|
|
1383
1297
|
private initializeCategoryProvider;
|
|
1384
1298
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPActivityProviderService, never>;
|
|
@@ -1816,41 +1730,29 @@ declare abstract class AXPWorkflowExecutionService {
|
|
|
1816
1730
|
* Usage:
|
|
1817
1731
|
* ```typescript
|
|
1818
1732
|
* const activity = new WriteLine();
|
|
1819
|
-
* await activity.execute({ text: 'Hello World' });
|
|
1733
|
+
* await activity.execute({ type: 'workflow-activity:write-line', text: 'Hello World' });
|
|
1820
1734
|
* ```
|
|
1821
1735
|
*/
|
|
1822
|
-
declare class WriteLine
|
|
1736
|
+
declare class WriteLine implements AXPActivity<{
|
|
1737
|
+
type: "workflow-activity:write-line";
|
|
1823
1738
|
text?: string;
|
|
1824
1739
|
}, void> {
|
|
1825
|
-
|
|
1740
|
+
type: "workflow-activity:write-line";
|
|
1826
1741
|
execute(input: {
|
|
1742
|
+
type: "workflow-activity:write-line";
|
|
1827
1743
|
text?: string;
|
|
1828
|
-
}): Promise<
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
* sequence.activities = [activity1, activity2, activity3];
|
|
1841
|
-
* await sequence.execute({});
|
|
1842
|
-
* ```
|
|
1843
|
-
*/
|
|
1844
|
-
declare class Sequence extends Activity<{}, void> {
|
|
1845
|
-
/**
|
|
1846
|
-
* Activities to execute in sequence.
|
|
1847
|
-
*/
|
|
1848
|
-
activities: IActivity[];
|
|
1849
|
-
constructor();
|
|
1850
|
-
execute(input: {}): Promise<_acorex_platform_core.AXPExecuteCommandResult<{
|
|
1851
|
-
output: void;
|
|
1852
|
-
outcomes: Record<string, any>;
|
|
1853
|
-
}>>;
|
|
1744
|
+
}): Promise<{
|
|
1745
|
+
success: boolean;
|
|
1746
|
+
message: {
|
|
1747
|
+
text: string;
|
|
1748
|
+
};
|
|
1749
|
+
data: {
|
|
1750
|
+
output: undefined;
|
|
1751
|
+
outcomes: {
|
|
1752
|
+
Done: boolean;
|
|
1753
|
+
};
|
|
1754
|
+
};
|
|
1755
|
+
}>;
|
|
1854
1756
|
}
|
|
1855
1757
|
|
|
1856
1758
|
/**
|
|
@@ -1864,13 +1766,15 @@ declare class Sequence extends Activity<{}, void> {
|
|
|
1864
1766
|
* ```typescript
|
|
1865
1767
|
* const dialog = new ShowConfirmDialog();
|
|
1866
1768
|
* await dialog.execute({
|
|
1769
|
+
* type: 'workflow-activity:show-confirm-dialog',
|
|
1867
1770
|
* title: 'Confirm Delete',
|
|
1868
1771
|
* message: 'Are you sure?',
|
|
1869
1772
|
* color: 'danger'
|
|
1870
1773
|
* });
|
|
1871
1774
|
* ```
|
|
1872
1775
|
*/
|
|
1873
|
-
declare class ShowConfirmDialog
|
|
1776
|
+
declare class ShowConfirmDialog implements AXPActivity<{
|
|
1777
|
+
type: "workflow-activity:show-confirm-dialog";
|
|
1874
1778
|
title?: string;
|
|
1875
1779
|
message?: string;
|
|
1876
1780
|
color?: AXStyleColorType;
|
|
@@ -1881,23 +1785,36 @@ declare class ShowConfirmDialog extends Activity<{
|
|
|
1881
1785
|
result: boolean;
|
|
1882
1786
|
action: string;
|
|
1883
1787
|
}> {
|
|
1788
|
+
type: "workflow-activity:show-confirm-dialog";
|
|
1884
1789
|
private readonly dialogService;
|
|
1885
1790
|
private readonly translationService;
|
|
1886
|
-
constructor();
|
|
1887
1791
|
execute(input: {
|
|
1792
|
+
type: "workflow-activity:show-confirm-dialog";
|
|
1888
1793
|
title?: string;
|
|
1889
1794
|
message?: string;
|
|
1890
1795
|
color?: AXStyleColorType;
|
|
1891
1796
|
defaultAction?: 'confirm' | 'cancel';
|
|
1892
1797
|
align?: 'horizontal' | 'vertical';
|
|
1893
1798
|
backdrop?: boolean;
|
|
1894
|
-
}): Promise<
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1799
|
+
}): Promise<{
|
|
1800
|
+
success: boolean;
|
|
1801
|
+
message: {
|
|
1802
|
+
text: string;
|
|
1898
1803
|
};
|
|
1899
|
-
|
|
1900
|
-
|
|
1804
|
+
data: {
|
|
1805
|
+
output: {
|
|
1806
|
+
result: boolean;
|
|
1807
|
+
action: string;
|
|
1808
|
+
};
|
|
1809
|
+
outcomes: {
|
|
1810
|
+
Confirmed: boolean;
|
|
1811
|
+
Cancelled?: undefined;
|
|
1812
|
+
} | {
|
|
1813
|
+
Cancelled: boolean;
|
|
1814
|
+
Confirmed?: undefined;
|
|
1815
|
+
};
|
|
1816
|
+
};
|
|
1817
|
+
}>;
|
|
1901
1818
|
}
|
|
1902
1819
|
|
|
1903
1820
|
/**
|
|
@@ -1910,13 +1827,15 @@ declare class ShowConfirmDialog extends Activity<{
|
|
|
1910
1827
|
* ```typescript
|
|
1911
1828
|
* const dialog = new ShowAlertDialog();
|
|
1912
1829
|
* await dialog.execute({
|
|
1830
|
+
* type: 'workflow-activity:show-alert-dialog',
|
|
1913
1831
|
* title: 'Alert',
|
|
1914
1832
|
* message: 'This is an alert',
|
|
1915
1833
|
* color: 'info'
|
|
1916
1834
|
* });
|
|
1917
1835
|
* ```
|
|
1918
1836
|
*/
|
|
1919
|
-
declare class ShowAlertDialog
|
|
1837
|
+
declare class ShowAlertDialog implements AXPActivity<{
|
|
1838
|
+
type: "workflow-activity:show-alert-dialog";
|
|
1920
1839
|
title?: string;
|
|
1921
1840
|
message?: string;
|
|
1922
1841
|
color?: AXStyleColorType;
|
|
@@ -1924,20 +1843,45 @@ declare class ShowAlertDialog extends Activity<{
|
|
|
1924
1843
|
result: boolean;
|
|
1925
1844
|
action: string;
|
|
1926
1845
|
}> {
|
|
1846
|
+
type: "workflow-activity:show-alert-dialog";
|
|
1927
1847
|
private readonly dialogService;
|
|
1928
1848
|
private readonly translationService;
|
|
1929
|
-
constructor();
|
|
1930
1849
|
execute(input: {
|
|
1850
|
+
type: "workflow-activity:show-alert-dialog";
|
|
1931
1851
|
title?: string;
|
|
1932
1852
|
message?: string;
|
|
1933
1853
|
color?: AXStyleColorType;
|
|
1934
|
-
}): Promise<
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1854
|
+
}): Promise<{
|
|
1855
|
+
success: boolean;
|
|
1856
|
+
message: {
|
|
1857
|
+
text: string;
|
|
1938
1858
|
};
|
|
1939
|
-
|
|
1940
|
-
|
|
1859
|
+
data: {
|
|
1860
|
+
output: {
|
|
1861
|
+
result: boolean;
|
|
1862
|
+
action: string;
|
|
1863
|
+
};
|
|
1864
|
+
outcomes: {
|
|
1865
|
+
Done: boolean;
|
|
1866
|
+
Failed?: undefined;
|
|
1867
|
+
};
|
|
1868
|
+
};
|
|
1869
|
+
} | {
|
|
1870
|
+
success: boolean;
|
|
1871
|
+
message: {
|
|
1872
|
+
text: string;
|
|
1873
|
+
};
|
|
1874
|
+
data: {
|
|
1875
|
+
output: {
|
|
1876
|
+
result: boolean;
|
|
1877
|
+
action: string;
|
|
1878
|
+
};
|
|
1879
|
+
outcomes: {
|
|
1880
|
+
Failed: boolean;
|
|
1881
|
+
Done?: undefined;
|
|
1882
|
+
};
|
|
1883
|
+
};
|
|
1884
|
+
}>;
|
|
1941
1885
|
}
|
|
1942
1886
|
|
|
1943
1887
|
/**
|
|
@@ -2045,7 +1989,8 @@ declare class ShowAlertDialog extends Activity<{
|
|
|
2045
1989
|
* }
|
|
2046
1990
|
* ```
|
|
2047
1991
|
*/
|
|
2048
|
-
declare class ShowDialogLayoutBuilder
|
|
1992
|
+
declare class ShowDialogLayoutBuilder implements AXPActivity<{
|
|
1993
|
+
type: "workflow-activity:show-dialog-layout-builder";
|
|
2049
1994
|
/**
|
|
2050
1995
|
* Dialog title
|
|
2051
1996
|
*/
|
|
@@ -2106,9 +2051,10 @@ declare class ShowDialogLayoutBuilder extends Activity<{
|
|
|
2106
2051
|
*/
|
|
2107
2052
|
confirmed: boolean;
|
|
2108
2053
|
}> {
|
|
2054
|
+
type: "workflow-activity:show-dialog-layout-builder";
|
|
2109
2055
|
private readonly layoutBuilder;
|
|
2110
|
-
constructor();
|
|
2111
2056
|
execute(input: {
|
|
2057
|
+
type: "workflow-activity:show-dialog-layout-builder";
|
|
2112
2058
|
title?: string;
|
|
2113
2059
|
size?: AXPopupSizeType;
|
|
2114
2060
|
context?: Record<string, any>;
|
|
@@ -2120,15 +2066,55 @@ declare class ShowDialogLayoutBuilder extends Activity<{
|
|
|
2120
2066
|
submit?: string;
|
|
2121
2067
|
custom?: AXPActionMenuItem[];
|
|
2122
2068
|
};
|
|
2123
|
-
}): Promise<
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
cancelled: boolean;
|
|
2128
|
-
confirmed: boolean;
|
|
2069
|
+
}): Promise<{
|
|
2070
|
+
success: boolean;
|
|
2071
|
+
message: {
|
|
2072
|
+
text: string;
|
|
2129
2073
|
};
|
|
2130
|
-
|
|
2131
|
-
|
|
2074
|
+
data: {
|
|
2075
|
+
output: {
|
|
2076
|
+
context: Record<string, any>;
|
|
2077
|
+
action: string;
|
|
2078
|
+
cancelled: boolean;
|
|
2079
|
+
confirmed: boolean;
|
|
2080
|
+
};
|
|
2081
|
+
outcomes: {
|
|
2082
|
+
Cancelled: boolean;
|
|
2083
|
+
Confirmed?: undefined;
|
|
2084
|
+
Done?: undefined;
|
|
2085
|
+
Error?: undefined;
|
|
2086
|
+
} | {
|
|
2087
|
+
Confirmed: boolean;
|
|
2088
|
+
Cancelled?: undefined;
|
|
2089
|
+
Done?: undefined;
|
|
2090
|
+
Error?: undefined;
|
|
2091
|
+
} | {
|
|
2092
|
+
Done: boolean;
|
|
2093
|
+
Cancelled?: undefined;
|
|
2094
|
+
Confirmed?: undefined;
|
|
2095
|
+
Error?: undefined;
|
|
2096
|
+
};
|
|
2097
|
+
};
|
|
2098
|
+
} | {
|
|
2099
|
+
success: boolean;
|
|
2100
|
+
message: {
|
|
2101
|
+
text: string;
|
|
2102
|
+
};
|
|
2103
|
+
data: {
|
|
2104
|
+
output: {
|
|
2105
|
+
context: {};
|
|
2106
|
+
action: string;
|
|
2107
|
+
cancelled: boolean;
|
|
2108
|
+
confirmed: boolean;
|
|
2109
|
+
};
|
|
2110
|
+
outcomes: {
|
|
2111
|
+
Error: boolean;
|
|
2112
|
+
Cancelled?: undefined;
|
|
2113
|
+
Confirmed?: undefined;
|
|
2114
|
+
Done?: undefined;
|
|
2115
|
+
};
|
|
2116
|
+
};
|
|
2117
|
+
}>;
|
|
2132
2118
|
}
|
|
2133
2119
|
|
|
2134
2120
|
/**
|
|
@@ -2138,30 +2124,54 @@ declare class ShowDialogLayoutBuilder extends Activity<{
|
|
|
2138
2124
|
* ```typescript
|
|
2139
2125
|
* const toast = new ShowToast();
|
|
2140
2126
|
* await toast.execute({
|
|
2127
|
+
* type: 'workflow-activity:show-toast',
|
|
2141
2128
|
* color: 'success',
|
|
2142
2129
|
* title: 'Success',
|
|
2143
2130
|
* message: 'Operation completed successfully!'
|
|
2144
2131
|
* });
|
|
2145
2132
|
* ```
|
|
2146
2133
|
*/
|
|
2147
|
-
declare class ShowToast
|
|
2134
|
+
declare class ShowToast implements AXPActivity<{
|
|
2135
|
+
type: "workflow-activity:show-toast";
|
|
2148
2136
|
color?: AXStyleColorType;
|
|
2149
2137
|
title?: string;
|
|
2150
2138
|
message?: string;
|
|
2151
2139
|
duration?: number;
|
|
2152
2140
|
}, void> {
|
|
2141
|
+
type: "workflow-activity:show-toast";
|
|
2153
2142
|
private readonly toastService;
|
|
2154
2143
|
private readonly translationService;
|
|
2155
|
-
constructor();
|
|
2156
2144
|
execute(input: {
|
|
2145
|
+
type: "workflow-activity:show-toast";
|
|
2157
2146
|
color?: AXStyleColorType;
|
|
2158
2147
|
title?: string;
|
|
2159
2148
|
message?: string;
|
|
2160
2149
|
duration?: number;
|
|
2161
|
-
}): Promise<
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2150
|
+
}): Promise<{
|
|
2151
|
+
success: boolean;
|
|
2152
|
+
message: {
|
|
2153
|
+
text: string;
|
|
2154
|
+
};
|
|
2155
|
+
data: {
|
|
2156
|
+
output: undefined;
|
|
2157
|
+
outcomes: {
|
|
2158
|
+
Done: boolean;
|
|
2159
|
+
Failed?: undefined;
|
|
2160
|
+
};
|
|
2161
|
+
};
|
|
2162
|
+
} | {
|
|
2163
|
+
success: boolean;
|
|
2164
|
+
message: {
|
|
2165
|
+
text: string;
|
|
2166
|
+
};
|
|
2167
|
+
data: {
|
|
2168
|
+
output: undefined;
|
|
2169
|
+
outcomes: {
|
|
2170
|
+
Failed: boolean;
|
|
2171
|
+
Done?: undefined;
|
|
2172
|
+
};
|
|
2173
|
+
};
|
|
2174
|
+
}>;
|
|
2165
2175
|
}
|
|
2166
2176
|
|
|
2167
2177
|
/**
|
|
@@ -2171,13 +2181,15 @@ declare class ShowToast extends Activity<{
|
|
|
2171
2181
|
* ```typescript
|
|
2172
2182
|
* const navigate = new Navigate();
|
|
2173
2183
|
* await navigate.execute({
|
|
2184
|
+
* type: 'workflow-activity:navigate',
|
|
2174
2185
|
* mode: 'route',
|
|
2175
2186
|
* route: '/users',
|
|
2176
2187
|
* params: { id: '123' }
|
|
2177
2188
|
* });
|
|
2178
2189
|
* ```
|
|
2179
2190
|
*/
|
|
2180
|
-
declare class Navigate
|
|
2191
|
+
declare class Navigate implements AXPActivity<{
|
|
2192
|
+
type: "workflow-activity:navigate";
|
|
2181
2193
|
mode?: 'route' | 'entity-details' | 'entity-list' | 'external';
|
|
2182
2194
|
route?: string;
|
|
2183
2195
|
params?: Record<string, any>;
|
|
@@ -2186,9 +2198,10 @@ declare class Navigate extends Activity<{
|
|
|
2186
2198
|
entityId?: string;
|
|
2187
2199
|
url?: string;
|
|
2188
2200
|
}, void> {
|
|
2201
|
+
type: "workflow-activity:navigate";
|
|
2189
2202
|
private readonly router;
|
|
2190
|
-
constructor();
|
|
2191
2203
|
execute(input: {
|
|
2204
|
+
type: "workflow-activity:navigate";
|
|
2192
2205
|
mode?: 'route' | 'entity-details' | 'entity-list' | 'external';
|
|
2193
2206
|
route?: string;
|
|
2194
2207
|
params?: Record<string, any>;
|
|
@@ -2196,10 +2209,31 @@ declare class Navigate extends Activity<{
|
|
|
2196
2209
|
entity?: string;
|
|
2197
2210
|
entityId?: string;
|
|
2198
2211
|
url?: string;
|
|
2199
|
-
}): Promise<
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2212
|
+
}): Promise<{
|
|
2213
|
+
success: boolean;
|
|
2214
|
+
message: {
|
|
2215
|
+
text: string;
|
|
2216
|
+
};
|
|
2217
|
+
data: {
|
|
2218
|
+
output: undefined;
|
|
2219
|
+
outcomes: {
|
|
2220
|
+
Failed: boolean;
|
|
2221
|
+
Done?: undefined;
|
|
2222
|
+
};
|
|
2223
|
+
};
|
|
2224
|
+
} | {
|
|
2225
|
+
success: boolean;
|
|
2226
|
+
message: {
|
|
2227
|
+
text: string;
|
|
2228
|
+
};
|
|
2229
|
+
data: {
|
|
2230
|
+
output: undefined;
|
|
2231
|
+
outcomes: {
|
|
2232
|
+
Done: boolean;
|
|
2233
|
+
Failed?: undefined;
|
|
2234
|
+
};
|
|
2235
|
+
};
|
|
2236
|
+
}>;
|
|
2203
2237
|
}
|
|
2204
2238
|
|
|
2205
2239
|
/**
|
|
@@ -2214,18 +2248,41 @@ declare class Navigate extends Activity<{
|
|
|
2214
2248
|
* });
|
|
2215
2249
|
* ```
|
|
2216
2250
|
*/
|
|
2217
|
-
declare class SetVariable
|
|
2251
|
+
declare class SetVariable implements AXPActivity<{
|
|
2252
|
+
type: "set-variable";
|
|
2253
|
+
variableName: string;
|
|
2254
|
+
value: any;
|
|
2255
|
+
}, any> {
|
|
2256
|
+
type: "set-variable";
|
|
2218
2257
|
variableName: string;
|
|
2219
2258
|
value: any;
|
|
2220
|
-
}, void> {
|
|
2221
|
-
constructor();
|
|
2222
2259
|
execute(input: {
|
|
2260
|
+
type: "set-variable";
|
|
2223
2261
|
variableName: string;
|
|
2224
2262
|
value: any;
|
|
2225
|
-
}): Promise<
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2263
|
+
}): Promise<{
|
|
2264
|
+
success: boolean;
|
|
2265
|
+
message: {
|
|
2266
|
+
text: string;
|
|
2267
|
+
};
|
|
2268
|
+
data: {
|
|
2269
|
+
output: undefined;
|
|
2270
|
+
outcomes: {
|
|
2271
|
+
Failed?: undefined;
|
|
2272
|
+
};
|
|
2273
|
+
};
|
|
2274
|
+
} | {
|
|
2275
|
+
success: boolean;
|
|
2276
|
+
message: {
|
|
2277
|
+
text: string;
|
|
2278
|
+
};
|
|
2279
|
+
data: {
|
|
2280
|
+
output: undefined;
|
|
2281
|
+
outcomes: {
|
|
2282
|
+
Failed: boolean;
|
|
2283
|
+
};
|
|
2284
|
+
};
|
|
2285
|
+
}>;
|
|
2229
2286
|
}
|
|
2230
2287
|
|
|
2231
2288
|
/**
|
|
@@ -2235,23 +2292,47 @@ declare class SetVariable extends Activity<{
|
|
|
2235
2292
|
* ```typescript
|
|
2236
2293
|
* const dispatch = new DispatchEvent();
|
|
2237
2294
|
* await dispatch.execute({
|
|
2295
|
+
* type: 'workflow-activity:dispatch-event',
|
|
2238
2296
|
* eventName: 'user-created',
|
|
2239
2297
|
* eventData: { userId: '123', name: 'John' }
|
|
2240
2298
|
* });
|
|
2241
2299
|
* ```
|
|
2242
2300
|
*/
|
|
2243
|
-
declare class DispatchEvent
|
|
2301
|
+
declare class DispatchEvent implements AXPActivity<{
|
|
2302
|
+
type: "workflow-activity:dispatch-event";
|
|
2244
2303
|
eventName: string;
|
|
2245
2304
|
eventData?: any;
|
|
2246
2305
|
}, void> {
|
|
2247
|
-
|
|
2306
|
+
type: "workflow-activity:dispatch-event";
|
|
2248
2307
|
execute(input: {
|
|
2308
|
+
type: "workflow-activity:dispatch-event";
|
|
2249
2309
|
eventName: string;
|
|
2250
2310
|
eventData?: any;
|
|
2251
|
-
}): Promise<
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2311
|
+
}): Promise<{
|
|
2312
|
+
success: boolean;
|
|
2313
|
+
message: {
|
|
2314
|
+
text: string;
|
|
2315
|
+
};
|
|
2316
|
+
data: {
|
|
2317
|
+
output: undefined;
|
|
2318
|
+
outcomes: {
|
|
2319
|
+
Done: boolean;
|
|
2320
|
+
Failed?: undefined;
|
|
2321
|
+
};
|
|
2322
|
+
};
|
|
2323
|
+
} | {
|
|
2324
|
+
success: boolean;
|
|
2325
|
+
message: {
|
|
2326
|
+
text: string;
|
|
2327
|
+
};
|
|
2328
|
+
data: {
|
|
2329
|
+
output: undefined;
|
|
2330
|
+
outcomes: {
|
|
2331
|
+
Failed: boolean;
|
|
2332
|
+
Done?: undefined;
|
|
2333
|
+
};
|
|
2334
|
+
};
|
|
2335
|
+
}>;
|
|
2255
2336
|
}
|
|
2256
2337
|
|
|
2257
2338
|
/**
|
|
@@ -2260,52 +2341,74 @@ declare class DispatchEvent extends Activity<{
|
|
|
2260
2341
|
* Usage:
|
|
2261
2342
|
* ```typescript
|
|
2262
2343
|
* const ifActivity = new If();
|
|
2263
|
-
* ifActivity.
|
|
2264
|
-
*
|
|
2265
|
-
*
|
|
2266
|
-
*
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
condition: string | boolean;
|
|
2270
|
-
thenActivities?: IActivity[];
|
|
2271
|
-
elseActivities?: IActivity[];
|
|
2272
|
-
}, any> {
|
|
2273
|
-
constructor();
|
|
2274
|
-
execute(input: {
|
|
2275
|
-
condition: string | boolean;
|
|
2276
|
-
thenActivities?: IActivity[];
|
|
2277
|
-
elseActivities?: IActivity[];
|
|
2278
|
-
}): Promise<_acorex_platform_core.AXPExecuteCommandResult<{
|
|
2279
|
-
output: any;
|
|
2280
|
-
outcomes: Record<string, any>;
|
|
2281
|
-
}>>;
|
|
2282
|
-
private evaluateCondition;
|
|
2283
|
-
}
|
|
2284
|
-
|
|
2285
|
-
/**
|
|
2286
|
-
* While Activity - Loop execution while condition is true.
|
|
2287
|
-
*
|
|
2288
|
-
* Usage:
|
|
2289
|
-
* ```typescript
|
|
2290
|
-
* const whileActivity = new While();
|
|
2291
|
-
* whileActivity.condition = '{{counter < 10}}';
|
|
2292
|
-
* whileActivity.activities = [incrementActivity, logActivity];
|
|
2344
|
+
* await ifActivity.execute({
|
|
2345
|
+
* type: 'workflow-activity:if',
|
|
2346
|
+
* condition: '{{user.isAdmin}}',
|
|
2347
|
+
* thenActivities: [activity1, activity2],
|
|
2348
|
+
* elseActivities: [activity3]
|
|
2349
|
+
* });
|
|
2293
2350
|
* ```
|
|
2294
2351
|
*/
|
|
2295
|
-
declare class
|
|
2352
|
+
declare class If implements AXPActivity<{
|
|
2353
|
+
type: "workflow-activity:if";
|
|
2296
2354
|
condition: string | boolean;
|
|
2297
|
-
|
|
2298
|
-
|
|
2355
|
+
thenActivities?: AXPActivity[];
|
|
2356
|
+
elseActivities?: AXPActivity[];
|
|
2299
2357
|
}, any> {
|
|
2300
|
-
|
|
2358
|
+
type: "workflow-activity:if";
|
|
2301
2359
|
execute(input: {
|
|
2360
|
+
type: "workflow-activity:if";
|
|
2302
2361
|
condition: string | boolean;
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
}): Promise<
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2362
|
+
thenActivities?: AXPActivity[];
|
|
2363
|
+
elseActivities?: AXPActivity[];
|
|
2364
|
+
}): Promise<{
|
|
2365
|
+
success: boolean;
|
|
2366
|
+
message: _acorex_platform_core.AXPCommandMessage | undefined;
|
|
2367
|
+
data: {
|
|
2368
|
+
output: {
|
|
2369
|
+
branch: string;
|
|
2370
|
+
failedActivity: AXPActivity<any, any>;
|
|
2371
|
+
};
|
|
2372
|
+
outcomes: {
|
|
2373
|
+
Failed: boolean;
|
|
2374
|
+
Then?: undefined;
|
|
2375
|
+
Else?: undefined;
|
|
2376
|
+
};
|
|
2377
|
+
};
|
|
2378
|
+
} | {
|
|
2379
|
+
success: boolean;
|
|
2380
|
+
message: {
|
|
2381
|
+
text: string;
|
|
2382
|
+
};
|
|
2383
|
+
data: {
|
|
2384
|
+
output: any;
|
|
2385
|
+
outcomes: {
|
|
2386
|
+
Then: boolean;
|
|
2387
|
+
Failed?: undefined;
|
|
2388
|
+
Else?: undefined;
|
|
2389
|
+
} | {
|
|
2390
|
+
Else: boolean;
|
|
2391
|
+
Failed?: undefined;
|
|
2392
|
+
Then?: undefined;
|
|
2393
|
+
};
|
|
2394
|
+
};
|
|
2395
|
+
} | {
|
|
2396
|
+
success: boolean;
|
|
2397
|
+
message: {
|
|
2398
|
+
text: string;
|
|
2399
|
+
};
|
|
2400
|
+
data: {
|
|
2401
|
+
output: {
|
|
2402
|
+
branch: string;
|
|
2403
|
+
failedActivity?: undefined;
|
|
2404
|
+
};
|
|
2405
|
+
outcomes: {
|
|
2406
|
+
Failed: boolean;
|
|
2407
|
+
Then?: undefined;
|
|
2408
|
+
Else?: undefined;
|
|
2409
|
+
};
|
|
2410
|
+
};
|
|
2411
|
+
}>;
|
|
2309
2412
|
private evaluateCondition;
|
|
2310
2413
|
}
|
|
2311
2414
|
|
|
@@ -2316,27 +2419,57 @@ declare class While extends Activity<{
|
|
|
2316
2419
|
* ```typescript
|
|
2317
2420
|
* const forEach = new ForEach();
|
|
2318
2421
|
* await forEach.execute({
|
|
2422
|
+
* type: 'workflow-activity:for-each',
|
|
2319
2423
|
* items: ['item1', 'item2', 'item3'],
|
|
2320
2424
|
* activities: [processItemActivity]
|
|
2321
2425
|
* });
|
|
2322
2426
|
* ```
|
|
2323
2427
|
*/
|
|
2324
|
-
declare class ForEach
|
|
2428
|
+
declare class ForEach implements AXPActivity<{
|
|
2429
|
+
type: "workflow-activity:for-each";
|
|
2325
2430
|
items: any[];
|
|
2326
|
-
activities?:
|
|
2431
|
+
activities?: AXPActivity[];
|
|
2327
2432
|
itemVariableName?: string;
|
|
2328
2433
|
indexVariableName?: string;
|
|
2329
2434
|
}, any> {
|
|
2330
|
-
|
|
2435
|
+
type: "workflow-activity:for-each";
|
|
2331
2436
|
execute(input: {
|
|
2437
|
+
type: "workflow-activity:for-each";
|
|
2332
2438
|
items: any[];
|
|
2333
|
-
activities?:
|
|
2439
|
+
activities?: AXPActivity[];
|
|
2334
2440
|
itemVariableName?: string;
|
|
2335
2441
|
indexVariableName?: string;
|
|
2336
|
-
}): Promise<
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2442
|
+
}): Promise<{
|
|
2443
|
+
success: boolean;
|
|
2444
|
+
message: _acorex_platform_core.AXPCommandMessage | undefined;
|
|
2445
|
+
data: {
|
|
2446
|
+
output: {
|
|
2447
|
+
totalItems: number;
|
|
2448
|
+
processedItems: number;
|
|
2449
|
+
results: any[];
|
|
2450
|
+
};
|
|
2451
|
+
outcomes: {
|
|
2452
|
+
Failed: boolean;
|
|
2453
|
+
Done?: undefined;
|
|
2454
|
+
};
|
|
2455
|
+
};
|
|
2456
|
+
} | {
|
|
2457
|
+
success: boolean;
|
|
2458
|
+
message: {
|
|
2459
|
+
text: string;
|
|
2460
|
+
};
|
|
2461
|
+
data: {
|
|
2462
|
+
output: {
|
|
2463
|
+
totalItems: number;
|
|
2464
|
+
processedItems: number;
|
|
2465
|
+
results: any[];
|
|
2466
|
+
};
|
|
2467
|
+
outcomes: {
|
|
2468
|
+
Done: boolean;
|
|
2469
|
+
Failed?: undefined;
|
|
2470
|
+
};
|
|
2471
|
+
};
|
|
2472
|
+
}>;
|
|
2340
2473
|
}
|
|
2341
2474
|
|
|
2342
2475
|
/**
|
|
@@ -2346,24 +2479,112 @@ declare class ForEach extends Activity<{
|
|
|
2346
2479
|
* ```typescript
|
|
2347
2480
|
* const executeCmd = new ExecuteCommand();
|
|
2348
2481
|
* await executeCmd.execute({
|
|
2482
|
+
* type: 'workflow-activity:execute-command',
|
|
2349
2483
|
* commandKey: 'UserManagement.CreateUser',
|
|
2350
2484
|
* input: { name: 'John', email: 'john@example.com' }
|
|
2351
2485
|
* });
|
|
2352
2486
|
* ```
|
|
2353
2487
|
*/
|
|
2354
|
-
declare class ExecuteCommand
|
|
2488
|
+
declare class ExecuteCommand implements AXPActivity<{
|
|
2489
|
+
type: "workflow-activity:execute-command";
|
|
2355
2490
|
commandKey: string;
|
|
2356
2491
|
input?: any;
|
|
2357
2492
|
}, any> {
|
|
2493
|
+
type: "workflow-activity:execute-command";
|
|
2358
2494
|
private readonly commandService;
|
|
2359
|
-
constructor();
|
|
2360
2495
|
execute(input: {
|
|
2496
|
+
type: "workflow-activity:execute-command";
|
|
2361
2497
|
commandKey: string;
|
|
2362
2498
|
input?: any;
|
|
2363
|
-
}): Promise<
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2499
|
+
}): Promise<{
|
|
2500
|
+
success: boolean;
|
|
2501
|
+
message: {
|
|
2502
|
+
text: string;
|
|
2503
|
+
};
|
|
2504
|
+
data: {
|
|
2505
|
+
output: {
|
|
2506
|
+
commandKey: string;
|
|
2507
|
+
success: boolean;
|
|
2508
|
+
output: any;
|
|
2509
|
+
executedAt: string;
|
|
2510
|
+
simulated: boolean;
|
|
2511
|
+
};
|
|
2512
|
+
outcomes: {
|
|
2513
|
+
Done: boolean;
|
|
2514
|
+
Failed?: undefined;
|
|
2515
|
+
};
|
|
2516
|
+
};
|
|
2517
|
+
} | {
|
|
2518
|
+
success: boolean;
|
|
2519
|
+
message: {
|
|
2520
|
+
text: string;
|
|
2521
|
+
};
|
|
2522
|
+
data: {
|
|
2523
|
+
output: {
|
|
2524
|
+
commandKey: string;
|
|
2525
|
+
success: boolean;
|
|
2526
|
+
executedAt: string;
|
|
2527
|
+
error?: undefined;
|
|
2528
|
+
output?: undefined;
|
|
2529
|
+
};
|
|
2530
|
+
outcomes: {
|
|
2531
|
+
Failed: boolean;
|
|
2532
|
+
Done?: undefined;
|
|
2533
|
+
};
|
|
2534
|
+
};
|
|
2535
|
+
} | {
|
|
2536
|
+
success: boolean;
|
|
2537
|
+
message: _acorex_platform_core.AXPCommandMessage | undefined;
|
|
2538
|
+
data: {
|
|
2539
|
+
output: {
|
|
2540
|
+
commandKey: string;
|
|
2541
|
+
success: boolean;
|
|
2542
|
+
executedAt: string;
|
|
2543
|
+
error: string | undefined;
|
|
2544
|
+
output?: undefined;
|
|
2545
|
+
};
|
|
2546
|
+
outcomes: {
|
|
2547
|
+
Failed: boolean;
|
|
2548
|
+
Done?: undefined;
|
|
2549
|
+
};
|
|
2550
|
+
};
|
|
2551
|
+
} | {
|
|
2552
|
+
success: boolean;
|
|
2553
|
+
message: {
|
|
2554
|
+
text: string;
|
|
2555
|
+
};
|
|
2556
|
+
data: {
|
|
2557
|
+
output: {
|
|
2558
|
+
commandKey: string;
|
|
2559
|
+
success: boolean;
|
|
2560
|
+
output: any;
|
|
2561
|
+
executedAt: string;
|
|
2562
|
+
error?: undefined;
|
|
2563
|
+
};
|
|
2564
|
+
outcomes: {
|
|
2565
|
+
Done: boolean;
|
|
2566
|
+
Failed?: undefined;
|
|
2567
|
+
};
|
|
2568
|
+
};
|
|
2569
|
+
} | {
|
|
2570
|
+
success: boolean;
|
|
2571
|
+
message: {
|
|
2572
|
+
text: string;
|
|
2573
|
+
};
|
|
2574
|
+
data: {
|
|
2575
|
+
output: {
|
|
2576
|
+
commandKey: string;
|
|
2577
|
+
success: boolean;
|
|
2578
|
+
error: string;
|
|
2579
|
+
executedAt?: undefined;
|
|
2580
|
+
output?: undefined;
|
|
2581
|
+
};
|
|
2582
|
+
outcomes: {
|
|
2583
|
+
Failed: boolean;
|
|
2584
|
+
Done?: undefined;
|
|
2585
|
+
};
|
|
2586
|
+
};
|
|
2587
|
+
}>;
|
|
2367
2588
|
}
|
|
2368
2589
|
|
|
2369
2590
|
/**
|
|
@@ -2373,24 +2594,81 @@ declare class ExecuteCommand extends Activity<{
|
|
|
2373
2594
|
* ```typescript
|
|
2374
2595
|
* const executeQuery = new ExecuteQuery();
|
|
2375
2596
|
* await executeQuery.execute({
|
|
2597
|
+
* type: 'workflow-activity:execute-query',
|
|
2376
2598
|
* queryKey: 'UserManagement.GetUsers',
|
|
2377
2599
|
* input: { page: 1, pageSize: 10 }
|
|
2378
2600
|
* });
|
|
2379
2601
|
* ```
|
|
2380
2602
|
*/
|
|
2381
|
-
declare class ExecuteQuery
|
|
2603
|
+
declare class ExecuteQuery implements AXPActivity<{
|
|
2604
|
+
type: "workflow-activity:execute-query";
|
|
2382
2605
|
queryKey: string;
|
|
2383
2606
|
input?: any;
|
|
2384
2607
|
}, any> {
|
|
2608
|
+
type: "workflow-activity:execute-query";
|
|
2385
2609
|
private readonly queryService;
|
|
2386
|
-
constructor();
|
|
2387
2610
|
execute(input: {
|
|
2611
|
+
type: "workflow-activity:execute-query";
|
|
2388
2612
|
queryKey: string;
|
|
2389
2613
|
input?: any;
|
|
2390
|
-
}): Promise<
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2614
|
+
}): Promise<{
|
|
2615
|
+
success: boolean;
|
|
2616
|
+
message: {
|
|
2617
|
+
text: string;
|
|
2618
|
+
};
|
|
2619
|
+
data: {
|
|
2620
|
+
output: {
|
|
2621
|
+
queryKey: string;
|
|
2622
|
+
success: boolean;
|
|
2623
|
+
data: never[];
|
|
2624
|
+
totalCount: number;
|
|
2625
|
+
executedAt: string;
|
|
2626
|
+
simulated: boolean;
|
|
2627
|
+
};
|
|
2628
|
+
outcomes: {
|
|
2629
|
+
Done: boolean;
|
|
2630
|
+
Failed?: undefined;
|
|
2631
|
+
};
|
|
2632
|
+
};
|
|
2633
|
+
} | {
|
|
2634
|
+
success: boolean;
|
|
2635
|
+
message: {
|
|
2636
|
+
text: string;
|
|
2637
|
+
};
|
|
2638
|
+
data: {
|
|
2639
|
+
output: {
|
|
2640
|
+
queryKey: string;
|
|
2641
|
+
success: boolean;
|
|
2642
|
+
data: any;
|
|
2643
|
+
totalCount: any;
|
|
2644
|
+
executedAt: string;
|
|
2645
|
+
error?: undefined;
|
|
2646
|
+
};
|
|
2647
|
+
outcomes: {
|
|
2648
|
+
Done: boolean;
|
|
2649
|
+
Failed?: undefined;
|
|
2650
|
+
};
|
|
2651
|
+
};
|
|
2652
|
+
} | {
|
|
2653
|
+
success: boolean;
|
|
2654
|
+
message: {
|
|
2655
|
+
text: string;
|
|
2656
|
+
};
|
|
2657
|
+
data: {
|
|
2658
|
+
output: {
|
|
2659
|
+
queryKey: string;
|
|
2660
|
+
success: boolean;
|
|
2661
|
+
error: string;
|
|
2662
|
+
data?: undefined;
|
|
2663
|
+
totalCount?: undefined;
|
|
2664
|
+
executedAt?: undefined;
|
|
2665
|
+
};
|
|
2666
|
+
outcomes: {
|
|
2667
|
+
Failed: boolean;
|
|
2668
|
+
Done?: undefined;
|
|
2669
|
+
};
|
|
2670
|
+
};
|
|
2671
|
+
}>;
|
|
2394
2672
|
}
|
|
2395
2673
|
|
|
2396
2674
|
/**
|
|
@@ -2402,15 +2680,27 @@ declare class ExecuteQuery extends Activity<{
|
|
|
2402
2680
|
* Usage:
|
|
2403
2681
|
* ```typescript
|
|
2404
2682
|
* const start = new StartActivity();
|
|
2405
|
-
* await start.execute({});
|
|
2683
|
+
* await start.execute({ type: 'workflow-activity:start' });
|
|
2406
2684
|
* ```
|
|
2407
2685
|
*/
|
|
2408
|
-
declare class StartActivity
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2686
|
+
declare class StartActivity implements AXPActivity<{
|
|
2687
|
+
type: "workflow-activity:start";
|
|
2688
|
+
}, void> {
|
|
2689
|
+
type: "workflow-activity:start";
|
|
2690
|
+
execute(input: {
|
|
2691
|
+
type: "workflow-activity:start";
|
|
2692
|
+
}): Promise<{
|
|
2693
|
+
success: boolean;
|
|
2694
|
+
message: {
|
|
2695
|
+
text: string;
|
|
2696
|
+
};
|
|
2697
|
+
data: {
|
|
2698
|
+
output: undefined;
|
|
2699
|
+
outcomes: {
|
|
2700
|
+
Done: boolean;
|
|
2701
|
+
};
|
|
2702
|
+
};
|
|
2703
|
+
}>;
|
|
2414
2704
|
}
|
|
2415
2705
|
|
|
2416
2706
|
/**
|
|
@@ -2422,15 +2712,27 @@ declare class StartActivity extends Activity<Record<string, never>, void> {
|
|
|
2422
2712
|
* Usage:
|
|
2423
2713
|
* ```typescript
|
|
2424
2714
|
* const end = new EndActivity();
|
|
2425
|
-
* await end.execute({});
|
|
2715
|
+
* await end.execute({ type: 'workflow-activity:end' });
|
|
2426
2716
|
* ```
|
|
2427
2717
|
*/
|
|
2428
|
-
declare class EndActivity
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2718
|
+
declare class EndActivity implements AXPActivity<{
|
|
2719
|
+
type: "workflow-activity:end";
|
|
2720
|
+
}, void> {
|
|
2721
|
+
type: "workflow-activity:end";
|
|
2722
|
+
execute(input: {
|
|
2723
|
+
type: "workflow-activity:end";
|
|
2724
|
+
}): Promise<{
|
|
2725
|
+
success: boolean;
|
|
2726
|
+
message: {
|
|
2727
|
+
text: string;
|
|
2728
|
+
};
|
|
2729
|
+
data: {
|
|
2730
|
+
output: undefined;
|
|
2731
|
+
outcomes: {
|
|
2732
|
+
Done: boolean;
|
|
2733
|
+
};
|
|
2734
|
+
};
|
|
2735
|
+
}>;
|
|
2434
2736
|
}
|
|
2435
2737
|
|
|
2436
2738
|
/**
|
|
@@ -2439,5 +2741,5 @@ declare class EndActivity extends Activity<Record<string, never>, void> {
|
|
|
2439
2741
|
*/
|
|
2440
2742
|
declare const provideWorkflowActivityCommands: () => i0.EnvironmentProviders;
|
|
2441
2743
|
|
|
2442
|
-
export { AXPActivityCategoryProviderService, AXPActivityProviderService, AXPWorkflowAction, AXPWorkflowContext, AXPWorkflowDefinitionRegistryService, AXPWorkflowDefinitionResolver, AXPWorkflowError, AXPWorkflowEventService, AXPWorkflowExecutionService, AXPWorkflowFunction, AXPWorkflowModule, AXPWorkflowRegistryService, AXPWorkflowService, AXP_ACTIVITY_CATEGORY_PROVIDER, AXP_ACTIVITY_PROVIDER, AXP_WORKFLOW_DEFINITION_LOADER,
|
|
2443
|
-
export type { AXPActivity, AXPActivityCategoryProvider, AXPActivityCategoryProviderContext, AXPActivityExecutionContextState, AXPActivityIncident, AXPActivityProvider, AXPActivityProviderContext, AXPActivityStatus, AXPActivityVariable, AXPBookmark, AXPCompletionCallbackState, AXPConnection, AXPCustomProperties, AXPEndpoint, AXPExceptionState, AXPExpression, AXPFlowchart, AXPGetWorkflowDefinitionRequest, AXPGetWorkflowDefinitionResponse, AXPGetWorkflowExecutionStateRequest, AXPInputValue, AXPMetadata, AXPOutputValue, AXPPosition, AXPResumeWorkflowExecutionRequest, AXPResumeWorkflowExecutionResponse, AXPStartWorkflowExecutionRequest, AXPStartWorkflowExecutionResponse, AXPStoredWorkflowDefinition, AXPVariableDefinition, AXPVariableModel, AXPVersionedEntity, AXPWorkflow, AXPWorkflowActionInput, AXPWorkflowCondition, AXPWorkflowConditionType, AXPWorkflowDefinition, AXPWorkflowDefinitionJson, AXPWorkflowDefinitionLoader, AXPWorkflowDefinitionPreloader, AXPWorkflowEvent, AXPWorkflowExecutionState, AXPWorkflowFaultState, AXPWorkflowInputDefinition, AXPWorkflowInstance, AXPWorkflowModuleConfigs, AXPWorkflowNextStep, AXPWorkflowOptions, AXPWorkflowOutputDefinition, AXPWorkflowState, AXPWorkflowStatus, AXPWorkflowStep, AXPWorkflowSubStatus, AXPWorkflowTask,
|
|
2744
|
+
export { AXPActivityCategoryProviderService, AXPActivityProviderService, AXPWorkflowAction, AXPWorkflowContext, AXPWorkflowDefinitionRegistryService, AXPWorkflowDefinitionResolver, AXPWorkflowError, AXPWorkflowEventService, AXPWorkflowExecutionService, AXPWorkflowFunction, AXPWorkflowModule, AXPWorkflowRegistryService, AXPWorkflowService, AXP_ACTIVITY_CATEGORY_PROVIDER, AXP_ACTIVITY_PROVIDER, AXP_WORKFLOW_DEFINITION_LOADER, DispatchEvent, EndActivity, ExecuteCommand, ExecuteQuery, ForEach, If, Navigate, SetVariable, ShowAlertDialog, ShowConfirmDialog, ShowDialogLayoutBuilder, ShowToast, StartActivity, WorkflowCoordinator, WriteLine, createWorkFlowEvent, ofType, provideWorkflowActivityCommands };
|
|
2745
|
+
export type { AXPActivity$1 as AXPActivity, AXPActivityCategoryProvider, AXPActivityCategoryProviderContext, AXPActivityExecutionContextState, AXPActivityIncident, AXPActivityProvider, AXPActivityProviderContext, AXPActivityStatus, AXPActivityVariable, AXPBookmark, AXPCompletionCallbackState, AXPConnection, AXPCustomProperties, AXPEndpoint, AXPExceptionState, AXPExpression, AXPFlowchart, AXPGetWorkflowDefinitionRequest, AXPGetWorkflowDefinitionResponse, AXPGetWorkflowExecutionStateRequest, AXPInputValue, AXPMetadata, AXPOutputValue, AXPPosition, AXPResumeWorkflowExecutionRequest, AXPResumeWorkflowExecutionResponse, AXPStartWorkflowExecutionRequest, AXPStartWorkflowExecutionResponse, AXPStoredWorkflowDefinition, AXPVariableDefinition, AXPVariableModel, AXPVersionedEntity, AXPWorkflow, AXPWorkflowActionInput, AXPWorkflowCondition, AXPWorkflowConditionType, AXPWorkflowDefinition, AXPWorkflowDefinitionJson, AXPWorkflowDefinitionLoader, AXPWorkflowDefinitionPreloader, AXPWorkflowEvent, AXPWorkflowExecutionState, AXPWorkflowFaultState, AXPWorkflowInputDefinition, AXPWorkflowInstance, AXPWorkflowModuleConfigs, AXPWorkflowNextStep, AXPWorkflowOptions, AXPWorkflowOutputDefinition, AXPWorkflowState, AXPWorkflowStatus, AXPWorkflowStep, AXPWorkflowSubStatus, AXPWorkflowTask, ActivityCategoryDescriptor, ActivityPropertyWidget, InputDescriptor, OutputDescriptor, WorkflowExecutionResult };
|