@quantumbpm/sdk 1.3.0 → 2.1.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/README.md +57 -34
- package/dist/auth.d.ts +19 -14
- package/dist/auth.js +62 -84
- package/dist/bpmn.d.ts +86 -23
- package/dist/bpmn.js +66 -34
- package/dist/dmn.d.ts +0 -6
- package/dist/dmn.js +1 -15
- package/dist/generated/RawClient.js +2 -2
- package/dist/generated/core/OpenAPI.js +2 -2
- package/dist/generated/index.d.ts +9 -3
- package/dist/generated/index.js +10 -4
- package/dist/generated/models/BpmnActivityState.d.ts +85 -0
- package/dist/generated/models/BpmnActivityState.js +18 -0
- package/dist/generated/models/BpmnElementStatistics.d.ts +36 -0
- package/dist/generated/models/BpmnElementStatistics.js +17 -0
- package/dist/generated/models/BpmnExternalJobPaginatedResponse.d.ts +2 -2
- package/dist/generated/models/BpmnExternalJobPaginatedResponse.js +1 -1
- package/dist/generated/models/BpmnHistoryPage.d.ts +15 -0
- package/dist/generated/models/BpmnHistoryPage.js +3 -0
- package/dist/generated/models/BpmnIncident.d.ts +11 -17
- package/dist/generated/models/BpmnIncident.js +7 -11
- package/dist/generated/models/BpmnIncidentRecord.d.ts +7 -13
- package/dist/generated/models/BpmnIncidentRecord.js +4 -6
- package/dist/generated/models/BpmnIncidentRecordPaginatedResponse.d.ts +2 -2
- package/dist/generated/models/BpmnIncidentRecordPaginatedResponse.js +1 -1
- package/dist/generated/models/BpmnInstance.d.ts +14 -29
- package/dist/generated/models/BpmnInstance.js +1 -17
- package/dist/generated/models/BpmnInstancePaginatedResponse.d.ts +2 -2
- package/dist/generated/models/BpmnInstancePaginatedResponse.js +1 -1
- package/dist/generated/models/BpmnInstanceState.d.ts +31 -14
- package/dist/generated/models/BpmnInstanceState.js +1 -1
- package/dist/generated/models/BpmnInstanceStatus.d.ts +10 -0
- package/dist/generated/models/BpmnInstanceStatus.js +19 -0
- package/dist/generated/models/BpmnProcessDefinition.d.ts +5 -5
- package/dist/generated/models/BpmnProcessDefinition.js +1 -1
- package/dist/generated/models/BpmnProcessVersion.d.ts +9 -9
- package/dist/generated/models/BpmnProcessVersion.js +1 -1
- package/dist/generated/models/BpmnUserTaskPaginatedResponse.d.ts +2 -2
- package/dist/generated/models/BpmnUserTaskPaginatedResponse.js +1 -1
- package/dist/generated/models/CorrelationKeys.d.ts +7 -6
- package/dist/generated/models/CorrelationKeys.js +1 -1
- package/dist/generated/models/CreateDefinitionRequest.d.ts +1 -5
- package/dist/generated/models/CreateDefinitionRequest.js +1 -1
- package/dist/generated/models/CursorPage.d.ts +12 -0
- package/dist/generated/models/CursorPage.js +3 -0
- package/dist/generated/models/DecisionKind.d.ts +10 -0
- package/dist/generated/models/DecisionKind.js +19 -0
- package/dist/generated/models/DecisionSummary.d.ts +8 -6
- package/dist/generated/models/DecisionSummary.js +1 -1
- package/dist/generated/models/DecisionVersion.d.ts +25 -0
- package/dist/generated/models/DecisionVersion.js +3 -0
- package/dist/generated/models/DecisionVersionList.d.ts +7 -0
- package/dist/generated/models/DecisionVersionList.js +3 -0
- package/dist/generated/models/Definition.d.ts +16 -8
- package/dist/generated/models/Definition.js +1 -1
- package/dist/generated/models/Error.d.ts +4 -4
- package/dist/generated/models/Error.js +3 -3
- package/dist/generated/models/EvaluateStoredRequest.d.ts +5 -6
- package/dist/generated/models/EvaluateStoredRequest.js +1 -1
- package/dist/generated/models/EvaluationResult.d.ts +6 -0
- package/dist/generated/models/EvaluationResult.js +1 -1
- package/dist/generated/models/Execution.d.ts +37 -9
- package/dist/generated/models/Execution.js +1 -1
- package/dist/generated/models/ExternalJob.d.ts +8 -8
- package/dist/generated/models/ExternalJob.js +1 -1
- package/dist/generated/models/HitRule.d.ts +4 -0
- package/dist/generated/models/HitRule.js +1 -1
- package/dist/generated/models/PaginatedExecutionsResponse.d.ts +2 -2
- package/dist/generated/models/PaginatedExecutionsResponse.js +1 -1
- package/dist/generated/models/StartBpmnInstanceRequest.d.ts +6 -2
- package/dist/generated/models/StartBpmnInstanceRequest.js +1 -1
- package/dist/generated/models/SuspendBpmnInstanceRequest.d.ts +1 -1
- package/dist/generated/models/SuspendBpmnInstanceRequest.js +1 -1
- package/dist/generated/models/UpdateDefinitionRequest.d.ts +1 -5
- package/dist/generated/models/UpdateDefinitionRequest.js +1 -1
- package/dist/generated/models/UserTask.d.ts +15 -11
- package/dist/generated/models/UserTask.js +1 -1
- package/dist/generated/services/BpmnService.d.ts +189 -91
- package/dist/generated/services/BpmnService.js +276 -124
- package/dist/generated/services/DefaultService.d.ts +111 -115
- package/dist/generated/services/DefaultService.js +136 -168
- package/dist/index.d.ts +8 -8
- package/dist/index.js +7 -7
- package/dist/tracing.js +2 -2
- package/dist/workers.d.ts +2 -2
- package/dist/workers.js +4 -3
- package/package.json +2 -4
- package/src/auth.test.ts +128 -0
- package/src/auth.ts +67 -64
- package/src/bpmn.ts +133 -46
- package/src/dmn.ts +0 -19
- package/src/generated/RawClient.ts +1 -1
- package/src/generated/core/OpenAPI.ts +1 -1
- package/src/generated/index.ts +9 -3
- package/src/generated/models/BpmnActivityState.ts +90 -0
- package/src/generated/models/BpmnElementStatistics.ts +41 -0
- package/src/generated/models/BpmnExternalJobPaginatedResponse.ts +2 -2
- package/src/generated/models/BpmnHistoryPage.ts +20 -0
- package/src/generated/models/BpmnIncident.ts +11 -17
- package/src/generated/models/BpmnIncidentRecord.ts +7 -13
- package/src/generated/models/BpmnIncidentRecordPaginatedResponse.ts +2 -2
- package/src/generated/models/BpmnInstance.ts +14 -29
- package/src/generated/models/BpmnInstancePaginatedResponse.ts +2 -2
- package/src/generated/models/BpmnInstanceState.ts +31 -14
- package/src/generated/models/BpmnInstanceStatus.ts +14 -0
- package/src/generated/models/BpmnProcessDefinition.ts +5 -5
- package/src/generated/models/BpmnProcessVersion.ts +9 -9
- package/src/generated/models/BpmnUserTaskPaginatedResponse.ts +2 -2
- package/src/generated/models/CorrelationKeys.ts +7 -6
- package/src/generated/models/CreateDefinitionRequest.ts +1 -5
- package/src/generated/models/CursorPage.ts +17 -0
- package/src/generated/models/DecisionKind.ts +14 -0
- package/src/generated/models/DecisionSummary.ts +8 -6
- package/src/generated/models/DecisionVersion.ts +30 -0
- package/src/generated/models/DecisionVersionList.ts +12 -0
- package/src/generated/models/Definition.ts +16 -8
- package/src/generated/models/Error.ts +4 -4
- package/src/generated/models/EvaluateStoredRequest.ts +5 -6
- package/src/generated/models/EvaluationResult.ts +6 -0
- package/src/generated/models/Execution.ts +37 -9
- package/src/generated/models/ExternalJob.ts +8 -8
- package/src/generated/models/HitRule.ts +4 -0
- package/src/generated/models/PaginatedExecutionsResponse.ts +2 -2
- package/src/generated/models/StartBpmnInstanceRequest.ts +6 -2
- package/src/generated/models/SuspendBpmnInstanceRequest.ts +1 -1
- package/src/generated/models/UpdateDefinitionRequest.ts +1 -5
- package/src/generated/models/UserTask.ts +15 -11
- package/src/generated/services/BpmnService.ts +333 -142
- package/src/generated/services/DefaultService.ts +160 -198
- package/src/index.test.ts +74 -31
- package/src/index.ts +13 -7
- package/src/tracing.ts +1 -1
- package/src/workers.test.ts +2 -3
- package/src/workers.ts +5 -4
- package/dist/generated/models/BpmnInstanceChildrenResponse.d.ts +0 -7
- package/dist/generated/models/BpmnInstanceChildrenResponse.js +0 -3
- package/dist/generated/models/CreateProjectRequest.d.ts +0 -9
- package/dist/generated/models/CreateProjectRequest.js +0 -3
- package/src/generated/models/BpmnInstanceChildrenResponse.ts +0 -12
- package/src/generated/models/CreateProjectRequest.ts +0 -14
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import type { BpmnActivityState } from '../models/BpmnActivityState';
|
|
2
|
+
import type { BpmnHistoryPage } from '../models/BpmnHistoryPage';
|
|
1
3
|
import type { BpmnIncidentRecordPaginatedResponse } from '../models/BpmnIncidentRecordPaginatedResponse';
|
|
2
|
-
import type {
|
|
4
|
+
import type { BpmnInstancePaginatedResponse } from '../models/BpmnInstancePaginatedResponse';
|
|
3
5
|
import type { BpmnProcessSummaryPaginatedResponse } from '../models/BpmnProcessSummaryPaginatedResponse';
|
|
6
|
+
import type { BpmnProcessVersion } from '../models/BpmnProcessVersion';
|
|
4
7
|
import type { BpmnProcessVersionPaginatedResponse } from '../models/BpmnProcessVersionPaginatedResponse';
|
|
5
8
|
import type { BpmnResourceDetail } from '../models/BpmnResourceDetail';
|
|
6
9
|
import type { BpmnResourcePaginatedResponse } from '../models/BpmnResourcePaginatedResponse';
|
|
@@ -39,7 +42,9 @@ export declare class BpmnService {
|
|
|
39
42
|
* Create a BPMN resource
|
|
40
43
|
* Uploads a new BPMN XML resource as a draft. Drafts can be edited and
|
|
41
44
|
* tested but cannot start production instances until they are deployed.
|
|
42
|
-
*
|
|
45
|
+
* Invalid XML is rejected. XML identical to the latest deployed resource
|
|
46
|
+
* of the same `<definitions id>` is refused with 409, and nothing is
|
|
47
|
+
* saved.
|
|
43
48
|
*
|
|
44
49
|
* @param projectId
|
|
45
50
|
* @param requestBody
|
|
@@ -83,8 +88,11 @@ export declare class BpmnService {
|
|
|
83
88
|
/**
|
|
84
89
|
* Deploy a BPMN resource
|
|
85
90
|
* Marks all processes inside the resource as executable, making them
|
|
86
|
-
* available to start instances of.
|
|
87
|
-
* deployed resource, upload a new
|
|
91
|
+
* available to start instances of. Each of them gets its next version.
|
|
92
|
+
* Deployment is one-way. To change a deployed resource, upload a new
|
|
93
|
+
* version and deploy that. A resource identical to the latest deployed
|
|
94
|
+
* resource of the same `<definitions id>` is refused with 409, and
|
|
95
|
+
* deploying that latest one again changes nothing.
|
|
88
96
|
*
|
|
89
97
|
* @param projectId
|
|
90
98
|
* @param resourceId
|
|
@@ -96,9 +104,19 @@ export declare class BpmnService {
|
|
|
96
104
|
* Start a test instance from a resource
|
|
97
105
|
* Starts a test instance of a resource, draft or deployed. A draft can
|
|
98
106
|
* only be started this way, which makes it the way to try out an
|
|
99
|
-
* in-progress design before deploying.
|
|
100
|
-
*
|
|
101
|
-
*
|
|
107
|
+
* in-progress design before deploying. A suspended definition does not
|
|
108
|
+
* stop it, since the test run takes no deployed version.
|
|
109
|
+
*
|
|
110
|
+
* A test run runs on the same engine as production but stays apart from
|
|
111
|
+
* it, and so do its call-activity children. It stays a test run for
|
|
112
|
+
* life, also after a migration to a deployed version.
|
|
113
|
+
* - Its job task types, message names and signal names carry the
|
|
114
|
+
* `draft:` prefix. A worker activates `draft:<type>` to work its jobs,
|
|
115
|
+
* and a publish names `draft:<name>` to reach it.
|
|
116
|
+
* - Its user tasks, jobs and incidents list only when `instanceID` names
|
|
117
|
+
* it.
|
|
118
|
+
* - Instance counts, analytics and job queue depth leave it out. The
|
|
119
|
+
* instance list shows it, with `draft` set.
|
|
102
120
|
*
|
|
103
121
|
* @param projectId
|
|
104
122
|
* @param resourceId
|
|
@@ -108,9 +126,9 @@ export declare class BpmnService {
|
|
|
108
126
|
*/
|
|
109
127
|
startBpmnTestInstance(projectId: string, resourceId: string, requestBody: StartBpmnTestInstanceRequest): CancelablePromise<{
|
|
110
128
|
/**
|
|
111
|
-
*
|
|
129
|
+
* Identifier of the new test instance.
|
|
112
130
|
*/
|
|
113
|
-
|
|
131
|
+
instanceID?: string;
|
|
114
132
|
}>;
|
|
115
133
|
/**
|
|
116
134
|
* List the latest version of each BPMN resource
|
|
@@ -124,7 +142,7 @@ export declare class BpmnService {
|
|
|
124
142
|
listLatestBpmnResources(projectId: string, page?: number, pageSize?: number): CancelablePromise<BpmnResourceSummaryPaginatedResponse>;
|
|
125
143
|
/**
|
|
126
144
|
* List all versions of a BPMN resource
|
|
127
|
-
* Returns every stored version of a resource identified by the BPMN XML's outer `definitions` id,
|
|
145
|
+
* Returns every stored version of a resource identified by the BPMN XML's outer `definitions` id, newest first.
|
|
128
146
|
* @param projectId
|
|
129
147
|
* @param definitionsId
|
|
130
148
|
* @param page
|
|
@@ -148,25 +166,27 @@ export declare class BpmnService {
|
|
|
148
166
|
validateBpmnXml(projectId: string, requestBody: ValidateBpmnResourceRequest): CancelablePromise<BpmnValidateResponse>;
|
|
149
167
|
/**
|
|
150
168
|
* List child instances of a BPMN instance
|
|
151
|
-
* Returns instances that this instance spawned via CallActivity elements
|
|
152
|
-
* Useful for navigating into a multi-level process hierarchy
|
|
153
|
-
* can be discovered via `
|
|
169
|
+
* Returns instances that this instance spawned via CallActivity elements,
|
|
170
|
+
* newest first. Useful for navigating into a multi-level process hierarchy
|
|
171
|
+
* (parents can be discovered via `parentInstanceID` on the child).
|
|
154
172
|
*
|
|
155
173
|
* @param projectId
|
|
156
|
-
* @param
|
|
157
|
-
* @
|
|
174
|
+
* @param instanceId
|
|
175
|
+
* @param cursor The `nextCursor` of the page before, absent for the first page.
|
|
176
|
+
* @param limit Most instances per page, 20 by default and 100 at most.
|
|
177
|
+
* @returns BpmnInstancePaginatedResponse OK
|
|
158
178
|
* @throws ApiError
|
|
159
179
|
*/
|
|
160
|
-
getBpmnInstanceChildren(projectId: string,
|
|
180
|
+
getBpmnInstanceChildren(projectId: string, instanceId: string, cursor?: string, limit?: number): CancelablePromise<BpmnInstancePaginatedResponse>;
|
|
161
181
|
/**
|
|
162
182
|
* Get BPMN instance variables
|
|
163
183
|
* Returns the current variables in the root scope of a running or completed instance.
|
|
164
184
|
* @param projectId
|
|
165
|
-
* @param
|
|
185
|
+
* @param instanceId
|
|
166
186
|
* @returns any OK
|
|
167
187
|
* @throws ApiError
|
|
168
188
|
*/
|
|
169
|
-
getBpmnInstanceVariables(projectId: string,
|
|
189
|
+
getBpmnInstanceVariables(projectId: string, instanceId: string): CancelablePromise<{
|
|
170
190
|
variables?: Record<string, any>;
|
|
171
191
|
}>;
|
|
172
192
|
/**
|
|
@@ -177,14 +197,49 @@ export declare class BpmnService {
|
|
|
177
197
|
* payload are kept; pass `null` to clear a key.
|
|
178
198
|
*
|
|
179
199
|
* @param projectId
|
|
180
|
-
* @param
|
|
200
|
+
* @param instanceId
|
|
181
201
|
* @param requestBody
|
|
182
202
|
* @returns any OK
|
|
183
203
|
* @throws ApiError
|
|
184
204
|
*/
|
|
185
|
-
updateBpmnInstanceVariables(projectId: string,
|
|
205
|
+
updateBpmnInstanceVariables(projectId: string, instanceId: string, requestBody: {
|
|
186
206
|
variables: Record<string, any>;
|
|
187
207
|
}): CancelablePromise<any>;
|
|
208
|
+
/**
|
|
209
|
+
* Get a page of a BPMN instance's history
|
|
210
|
+
* A window of an instance's BPMN history, oldest first, for a running or
|
|
211
|
+
* an ended instance. Without a cursor it is the newest entries.
|
|
212
|
+
* `beforeSeq` reads the entries before one, to walk back, and `fromSeq`
|
|
213
|
+
* the entries from one on, to follow a running instance. Every entry
|
|
214
|
+
* carries its `seq`.
|
|
215
|
+
*
|
|
216
|
+
* Page entries leave out `inputs` and `outputs`, so a page costs the same
|
|
217
|
+
* however long the history is. Read one entry's payload from
|
|
218
|
+
* `GetBpmnInstanceHistoryEntry`. The diagram needs no history at all: the
|
|
219
|
+
* instance state's `elementStatistics` and `takenFlows` summarise it.
|
|
220
|
+
*
|
|
221
|
+
* @param projectId
|
|
222
|
+
* @param instanceId
|
|
223
|
+
* @param fromSeq Read the entries from this seq on. Takes precedence over `beforeSeq`.
|
|
224
|
+
* @param beforeSeq Read the newest entries before this seq.
|
|
225
|
+
* @param limit Max entries per page. Clamped server-side to the engine's max page size.
|
|
226
|
+
* @returns BpmnHistoryPage OK
|
|
227
|
+
* @throws ApiError
|
|
228
|
+
*/
|
|
229
|
+
getBpmnInstanceHistory(projectId: string, instanceId: string, fromSeq?: number, beforeSeq?: number, limit?: number): CancelablePromise<BpmnHistoryPage>;
|
|
230
|
+
/**
|
|
231
|
+
* Get one BPMN history entry with its payload
|
|
232
|
+
* One history entry with its `inputs` and `outputs`. The engine rebuilds
|
|
233
|
+
* them from the variable writes of every entry before it, so the read
|
|
234
|
+
* grows with the entry's position: around 0.3 s at entry 40,000.
|
|
235
|
+
*
|
|
236
|
+
* @param projectId
|
|
237
|
+
* @param instanceId
|
|
238
|
+
* @param seq
|
|
239
|
+
* @returns BpmnActivityState OK
|
|
240
|
+
* @throws ApiError
|
|
241
|
+
*/
|
|
242
|
+
getBpmnInstanceHistoryEntry(projectId: string, instanceId: string, seq: number): CancelablePromise<BpmnActivityState>;
|
|
188
243
|
/**
|
|
189
244
|
* Resolve an incident and retry the failed activity
|
|
190
245
|
* Marks an incident as resolved and re-runs the activity that produced it.
|
|
@@ -193,41 +248,42 @@ export declare class BpmnService {
|
|
|
193
248
|
* that triggered a FEEL evaluation error).
|
|
194
249
|
*
|
|
195
250
|
* @param projectId
|
|
196
|
-
* @param
|
|
251
|
+
* @param instanceId
|
|
197
252
|
* @param incidentId
|
|
198
253
|
* @param requestBody
|
|
199
254
|
* @returns any OK
|
|
200
255
|
* @throws ApiError
|
|
201
256
|
*/
|
|
202
|
-
resolveBpmnIncident(projectId: string,
|
|
257
|
+
resolveBpmnIncident(projectId: string, instanceId: string, incidentId: string, requestBody?: {
|
|
203
258
|
variables?: Record<string, any>;
|
|
204
259
|
}): CancelablePromise<any>;
|
|
205
260
|
/**
|
|
206
261
|
* List BPMN incidents
|
|
207
262
|
* Cross-instance audit listing of incidents in the project. By default
|
|
208
263
|
* returns open incidents first (unresolved), ordered by recency.
|
|
209
|
-
* Filterable by
|
|
264
|
+
* Filterable by process version, error type, status, and time window.
|
|
210
265
|
*
|
|
211
266
|
* Each row carries the parent process metadata (processID, processName)
|
|
212
267
|
* so a single page render needs no follow-up queries against the
|
|
213
268
|
* instances endpoint. Click-through to a specific instance still uses
|
|
214
|
-
* the
|
|
269
|
+
* the instance detail endpoint.
|
|
215
270
|
*
|
|
216
271
|
* @param projectId
|
|
217
|
-
* @param
|
|
218
|
-
* @param
|
|
272
|
+
* @param processId Restrict to incidents on instances of one process, in any version unless `version` names one.
|
|
273
|
+
* @param version Restrict to one version of `processID`. Ignored without `processID`.
|
|
274
|
+
* @param instanceId Restrict to incidents on a single instance - useful for an instance-detail "all incidents ever raised here" view that includes resolved rows. A test run's incidents list only by its instance.
|
|
219
275
|
* @param status Filter by lifecycle status. `open` returns unresolved incidents;
|
|
220
276
|
* `resolved` returns only resolved ones. Omit to return both.
|
|
221
277
|
*
|
|
222
278
|
* @param errorType Restrict to a single error category (matches `BpmnIncidentRecord.errorType`).
|
|
223
279
|
* @param since Earliest `raisedAt` to include (inclusive).
|
|
224
280
|
* @param until Latest `raisedAt` to include (exclusive).
|
|
225
|
-
* @param page
|
|
226
|
-
* @param
|
|
281
|
+
* @param cursor The `nextCursor` of the page before, absent for the first page.
|
|
282
|
+
* @param limit Most incidents per page, 20 by default and 100 at most.
|
|
227
283
|
* @returns BpmnIncidentRecordPaginatedResponse OK
|
|
228
284
|
* @throws ApiError
|
|
229
285
|
*/
|
|
230
|
-
listBpmnIncidents(projectId: string,
|
|
286
|
+
listBpmnIncidents(projectId: string, processId?: string, version?: number, instanceId?: string, status?: 'open' | 'resolved', errorType?: 'BpmnError' | 'CompensationError' | 'FeelError' | 'GatewayNoMatch' | 'TimerResolution' | 'LinkNotFound' | 'MigrationError' | 'CallActivityCanceled' | 'ExternalRowRefreshError' | 'JobLockLost' | 'DecisionNotFound' | 'DecisionEvaluationError' | 'ProcessNotFound' | 'ProcessSuspended' | 'Unknown', since?: string, until?: string, cursor?: string, limit?: number): CancelablePromise<BpmnIncidentRecordPaginatedResponse>;
|
|
231
287
|
/**
|
|
232
288
|
* Migrate a running instance to a newer process version
|
|
233
289
|
* Moves a running instance from its current process version to a newer
|
|
@@ -236,12 +292,12 @@ export declare class BpmnService {
|
|
|
236
292
|
* and target. Validate the migration plan first via `MigrateValidate`.
|
|
237
293
|
*
|
|
238
294
|
* @param projectId
|
|
239
|
-
* @param
|
|
295
|
+
* @param instanceId
|
|
240
296
|
* @param requestBody
|
|
241
297
|
* @returns any OK
|
|
242
298
|
* @throws ApiError
|
|
243
299
|
*/
|
|
244
|
-
migrateBpmnInstance(projectId: string,
|
|
300
|
+
migrateBpmnInstance(projectId: string, instanceId: string, requestBody: MigrateBpmnInstanceRequest): CancelablePromise<any>;
|
|
245
301
|
/**
|
|
246
302
|
* Validate a migration plan without executing it
|
|
247
303
|
* Returns the issues a migration plan would hit if executed: missing
|
|
@@ -250,12 +306,12 @@ export declare class BpmnService {
|
|
|
250
306
|
* to the user.
|
|
251
307
|
*
|
|
252
308
|
* @param projectId
|
|
253
|
-
* @param
|
|
309
|
+
* @param instanceId
|
|
254
310
|
* @param requestBody
|
|
255
311
|
* @returns MigrationValidationResult OK
|
|
256
312
|
* @throws ApiError
|
|
257
313
|
*/
|
|
258
|
-
validateBpmnInstanceMigration(projectId: string,
|
|
314
|
+
validateBpmnInstanceMigration(projectId: string, instanceId: string, requestBody: MigrateBpmnInstanceRequest): CancelablePromise<MigrationValidationResult>;
|
|
259
315
|
/**
|
|
260
316
|
* Modify a running instance with ad-hoc token operations
|
|
261
317
|
* Operational recovery tool: applies a sequence of token-level
|
|
@@ -271,12 +327,12 @@ export declare class BpmnService {
|
|
|
271
327
|
* A batch is applied whole or not at all.
|
|
272
328
|
*
|
|
273
329
|
* @param projectId
|
|
274
|
-
* @param
|
|
330
|
+
* @param instanceId
|
|
275
331
|
* @param requestBody
|
|
276
332
|
* @returns any OK
|
|
277
333
|
* @throws ApiError
|
|
278
334
|
*/
|
|
279
|
-
modifyBpmnInstance(projectId: string,
|
|
335
|
+
modifyBpmnInstance(projectId: string, instanceId: string, requestBody: ModifyBpmnInstanceRequest): CancelablePromise<any>;
|
|
280
336
|
/**
|
|
281
337
|
* Activate an activity inside a running ad-hoc subprocess
|
|
282
338
|
* Manually starts one of the activities inside an active ad-hoc
|
|
@@ -284,13 +340,13 @@ export declare class BpmnService {
|
|
|
284
340
|
* can be triggered repeatedly until the ad-hoc subprocess completes.
|
|
285
341
|
*
|
|
286
342
|
* @param projectId
|
|
287
|
-
* @param
|
|
343
|
+
* @param instanceId
|
|
288
344
|
* @param adHocNodeId
|
|
289
345
|
* @param requestBody
|
|
290
346
|
* @returns any OK
|
|
291
347
|
* @throws ApiError
|
|
292
348
|
*/
|
|
293
|
-
triggerBpmnAdHocNode(projectId: string,
|
|
349
|
+
triggerBpmnAdHocNode(projectId: string, instanceId: string, adHocNodeId: string, requestBody: {
|
|
294
350
|
nodeID: string;
|
|
295
351
|
}): CancelablePromise<any>;
|
|
296
352
|
/**
|
|
@@ -300,13 +356,13 @@ export declare class BpmnService {
|
|
|
300
356
|
* values, which may cause the subprocess to complete or branch.
|
|
301
357
|
*
|
|
302
358
|
* @param projectId
|
|
303
|
-
* @param
|
|
359
|
+
* @param instanceId
|
|
304
360
|
* @param adHocNodeId
|
|
305
361
|
* @param requestBody
|
|
306
362
|
* @returns any OK
|
|
307
363
|
* @throws ApiError
|
|
308
364
|
*/
|
|
309
|
-
setBpmnAdHocVariables(projectId: string,
|
|
365
|
+
setBpmnAdHocVariables(projectId: string, instanceId: string, adHocNodeId: string, requestBody: {
|
|
310
366
|
variables?: Record<string, any>;
|
|
311
367
|
}): CancelablePromise<any>;
|
|
312
368
|
/**
|
|
@@ -316,22 +372,22 @@ export declare class BpmnService {
|
|
|
316
372
|
* flag layers on top. Idempotent - a second call against an already-
|
|
317
373
|
* suspended instance is a no-op.
|
|
318
374
|
*
|
|
319
|
-
* While suspended
|
|
320
|
-
*
|
|
321
|
-
*
|
|
322
|
-
*
|
|
375
|
+
* While suspended, cancel, terminate, resolve-incident and variable
|
|
376
|
+
* update still apply. Anything else that reaches the instance, such as a
|
|
377
|
+
* job completion, a message or a due timer, applies on resume, in the
|
|
378
|
+
* order it arrived.
|
|
323
379
|
*
|
|
324
|
-
* The
|
|
325
|
-
*
|
|
326
|
-
*
|
|
380
|
+
* The suspension (operator, reason, timestamp) is also recorded in the
|
|
381
|
+
* instance's history as a `SuspendInstanceEvent`, so the timeline view on
|
|
382
|
+
* the instance detail page can render the cycle.
|
|
327
383
|
*
|
|
328
384
|
* @param projectId
|
|
329
|
-
* @param
|
|
385
|
+
* @param instanceId
|
|
330
386
|
* @param requestBody
|
|
331
387
|
* @returns void
|
|
332
388
|
* @throws ApiError
|
|
333
389
|
*/
|
|
334
|
-
suspendBpmnInstance(projectId: string,
|
|
390
|
+
suspendBpmnInstance(projectId: string, instanceId: string, requestBody?: SuspendBpmnInstanceRequest): CancelablePromise<void>;
|
|
335
391
|
/**
|
|
336
392
|
* Resume a suspended BPMN instance
|
|
337
393
|
* Clears the instance-scope suspension. If the parent definition is also
|
|
@@ -339,49 +395,47 @@ export declare class BpmnService {
|
|
|
339
395
|
* is resumed as well. Idempotent.
|
|
340
396
|
*
|
|
341
397
|
* @param projectId
|
|
342
|
-
* @param
|
|
398
|
+
* @param instanceId
|
|
343
399
|
* @returns void
|
|
344
400
|
* @throws ApiError
|
|
345
401
|
*/
|
|
346
|
-
resumeBpmnInstance(projectId: string,
|
|
402
|
+
resumeBpmnInstance(projectId: string, instanceId: string): CancelablePromise<void>;
|
|
347
403
|
/**
|
|
348
|
-
* Suspend
|
|
349
|
-
* Pauses every running instance of one deployed process
|
|
350
|
-
* rejects new instance starts on that
|
|
404
|
+
* Suspend a deployed version of a BPMN process
|
|
405
|
+
* Pauses every running instance of one deployed process version AND
|
|
406
|
+
* rejects new instance starts on that version until it is resumed.
|
|
351
407
|
*
|
|
352
|
-
* The handler acquires a row-level lock on the definition before flipping
|
|
353
|
-
* the flag so a `StartBpmnInstance` racing the suspend can't slip through.
|
|
354
|
-
* It then iterates over every running instance (`status='RUNNING'`) and
|
|
355
|
-
* sends each one a definition-scope suspend signal via the engine API.
|
|
356
408
|
* Instances that were also explicitly instance-suspended stay paused
|
|
357
409
|
* after a definition-scope resume - the operator must clear that scope
|
|
358
410
|
* too.
|
|
359
411
|
*
|
|
360
|
-
* Idempotent.
|
|
361
|
-
*
|
|
362
|
-
* came
|
|
412
|
+
* Idempotent. Suspending again reaches the running instances an earlier
|
|
413
|
+
* call missed. The reason reaches every affected instance's history
|
|
414
|
+
* (`SuspendDefinitionEvent`) so the UI can render where the pause came
|
|
415
|
+
* from.
|
|
363
416
|
*
|
|
364
417
|
* @param projectId
|
|
365
|
-
* @param
|
|
418
|
+
* @param processId
|
|
419
|
+
* @param version
|
|
366
420
|
* @param requestBody
|
|
367
421
|
* @returns void
|
|
368
422
|
* @throws ApiError
|
|
369
423
|
*/
|
|
370
|
-
suspendBpmnDefinition(projectId: string,
|
|
424
|
+
suspendBpmnDefinition(projectId: string, processId: string, version: number, requestBody?: SuspendBpmnDefinitionRequest): CancelablePromise<void>;
|
|
371
425
|
/**
|
|
372
|
-
* Resume a suspended BPMN
|
|
373
|
-
* Clears the definition-scope suspension and
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
*
|
|
377
|
-
* Idempotent.
|
|
426
|
+
* Resume a suspended version of a BPMN process
|
|
427
|
+
* Clears the definition-scope suspension and resumes every running
|
|
428
|
+
* instance of the version. Instances that were also instance-suspended
|
|
429
|
+
* stay paused until their own scope is cleared. New instance starts are
|
|
430
|
+
* accepted again. Idempotent.
|
|
378
431
|
*
|
|
379
432
|
* @param projectId
|
|
380
|
-
* @param
|
|
433
|
+
* @param processId
|
|
434
|
+
* @param version
|
|
381
435
|
* @returns void
|
|
382
436
|
* @throws ApiError
|
|
383
437
|
*/
|
|
384
|
-
resumeBpmnDefinition(projectId: string,
|
|
438
|
+
resumeBpmnDefinition(projectId: string, processId: string, version: number): CancelablePromise<void>;
|
|
385
439
|
/**
|
|
386
440
|
* PENDING job counts grouped by taskType
|
|
387
441
|
* Returns one entry per `taskType` with at least one PENDING job. Useful for
|
|
@@ -412,6 +466,9 @@ export declare class BpmnService {
|
|
|
412
466
|
* never fix (e.g. `PAYMENT_DECLINED`). SDK workers send this automatically
|
|
413
467
|
* when a handler throws a typed `BpmnError`.
|
|
414
468
|
*
|
|
469
|
+
* Once the instance has ended, any report on its jobs answers 200 and
|
|
470
|
+
* changes nothing.
|
|
471
|
+
*
|
|
415
472
|
* @param projectId
|
|
416
473
|
* @param executionKey
|
|
417
474
|
* @param requestBody
|
|
@@ -419,13 +476,19 @@ export declare class BpmnService {
|
|
|
419
476
|
* @throws ApiError
|
|
420
477
|
*/
|
|
421
478
|
throwBpmnExternalJobError(projectId: string, executionKey: string, requestBody: {
|
|
479
|
+
/**
|
|
480
|
+
* Instance ID returned by the poll response.
|
|
481
|
+
*/
|
|
482
|
+
instanceID: string;
|
|
422
483
|
errorCode: string;
|
|
423
484
|
/**
|
|
424
485
|
* Optional worker identity (the same `clientID` used to poll).
|
|
425
486
|
* When supplied, a worker that no longer holds the job's lock
|
|
426
487
|
* gets 409 and its report is discarded, so a stale report can't
|
|
427
|
-
* requeue or fail the job.
|
|
428
|
-
*
|
|
488
|
+
* requeue or fail the job. Repeating the report this worker last
|
|
489
|
+
* made on the job answers 200 again and changes nothing. Without
|
|
490
|
+
* it, the report applies to an open job no worker holds a live
|
|
491
|
+
* lock on.
|
|
429
492
|
*
|
|
430
493
|
*/
|
|
431
494
|
clientID?: string;
|
|
@@ -459,14 +522,16 @@ export declare class BpmnService {
|
|
|
459
522
|
* Optional worker identity (the same `clientID` used to poll)
|
|
460
523
|
* applied to every item in the batch - a batch is one worker's
|
|
461
524
|
* report. When supplied, an item this worker no longer holds
|
|
462
|
-
* comes back with status `error` and its result is discarded
|
|
463
|
-
*
|
|
525
|
+
* comes back with status `error` and its result is discarded,
|
|
526
|
+
* and repeating this worker's last report on an item changes
|
|
527
|
+
* nothing. Without it, an item a worker holds a live lock on, or
|
|
528
|
+
* one that already ended, comes back with status `error`.
|
|
464
529
|
*
|
|
465
530
|
*/
|
|
466
531
|
clientID?: string;
|
|
467
532
|
items: Array<{
|
|
468
533
|
executionKey: string;
|
|
469
|
-
|
|
534
|
+
instanceID: string;
|
|
470
535
|
variables?: Record<string, any>;
|
|
471
536
|
}>;
|
|
472
537
|
}): CancelablePromise<ExternalJobBatchResponse>;
|
|
@@ -491,8 +556,10 @@ export declare class BpmnService {
|
|
|
491
556
|
* Optional worker identity (the same `clientID` used to poll)
|
|
492
557
|
* applied to every item in the batch - a batch is one worker's
|
|
493
558
|
* report. When supplied, an item this worker no longer holds
|
|
494
|
-
* comes back with status `error` and the job is left untouched
|
|
495
|
-
*
|
|
559
|
+
* comes back with status `error` and the job is left untouched,
|
|
560
|
+
* and repeating this worker's last report on an item changes
|
|
561
|
+
* nothing. Without it, an item a worker holds a live lock on, or
|
|
562
|
+
* one that already ended, comes back with status `error`.
|
|
496
563
|
*
|
|
497
564
|
*/
|
|
498
565
|
clientID?: string;
|
|
@@ -507,7 +574,7 @@ export declare class BpmnService {
|
|
|
507
574
|
retryable?: boolean;
|
|
508
575
|
items: Array<{
|
|
509
576
|
executionKey: string;
|
|
510
|
-
|
|
577
|
+
instanceID: string;
|
|
511
578
|
errorCode: string;
|
|
512
579
|
variables?: Record<string, any>;
|
|
513
580
|
}>;
|
|
@@ -515,22 +582,29 @@ export declare class BpmnService {
|
|
|
515
582
|
/**
|
|
516
583
|
* List User Tasks
|
|
517
584
|
* Paginated list of user tasks for the project, optionally filtered by
|
|
518
|
-
*
|
|
585
|
+
* instance, status, assignee, candidate user, candidate group or due date.
|
|
519
586
|
* Requires Executor role on the project.
|
|
520
587
|
*
|
|
521
588
|
* @param projectId
|
|
522
|
-
* @param
|
|
589
|
+
* @param instanceId Only this instance's tasks. A test run's tasks list only by its instance.
|
|
523
590
|
* @param status
|
|
524
591
|
* @param assignee
|
|
525
592
|
* @param candidateUser
|
|
526
593
|
* @param candidateGroup
|
|
527
594
|
* @param businessId Exact-match filter on the caller-supplied correlation key.
|
|
528
|
-
* @param
|
|
529
|
-
* @param
|
|
595
|
+
* @param dueAfter Only tasks due at or after this time.
|
|
596
|
+
* @param dueBefore Only tasks due before this time. With `status=CREATED` and the current time, the overdue tasks.
|
|
597
|
+
* @param sort `created` lists the newest first, and is the default. `dueDate` lists
|
|
598
|
+
* the soonest due first and tasks without a due date last. `priority`
|
|
599
|
+
* lists the highest priority first. Both list the oldest first among
|
|
600
|
+
* equals. A cursor continues only a list of the same sort.
|
|
601
|
+
*
|
|
602
|
+
* @param cursor The `nextCursor` of the page before, absent for the first page.
|
|
603
|
+
* @param limit Most tasks per page, 20 by default and 100 at most.
|
|
530
604
|
* @returns BpmnUserTaskPaginatedResponse OK
|
|
531
605
|
* @throws ApiError
|
|
532
606
|
*/
|
|
533
|
-
listBpmnUserTasks(projectId: string,
|
|
607
|
+
listBpmnUserTasks(projectId: string, instanceId?: string, status?: 'CREATED' | 'COMPLETED' | 'CANCELED' | 'FAILED', assignee?: string, candidateUser?: string, candidateGroup?: string, businessId?: string, dueAfter?: string, dueBefore?: string, sort?: 'created' | 'dueDate' | 'priority', cursor?: string, limit?: number): CancelablePromise<BpmnUserTaskPaginatedResponse>;
|
|
534
608
|
/**
|
|
535
609
|
* List User Tasks for the Caller
|
|
536
610
|
* Returns CREATED user tasks the caller can act on: directly assigned,
|
|
@@ -538,12 +612,19 @@ export declare class BpmnService {
|
|
|
538
612
|
* the caller's identity-provider groups. Requires Viewer role on the project.
|
|
539
613
|
*
|
|
540
614
|
* @param projectId
|
|
541
|
-
* @param
|
|
542
|
-
* @param
|
|
615
|
+
* @param dueAfter Only tasks due at or after this time.
|
|
616
|
+
* @param dueBefore Only tasks due before this time. With the current time, the caller's overdue tasks.
|
|
617
|
+
* @param sort `created` lists the newest first, and is the default. `dueDate` lists
|
|
618
|
+
* the soonest due first and tasks without a due date last. `priority`
|
|
619
|
+
* lists the highest priority first. Both list the oldest first among
|
|
620
|
+
* equals. A cursor continues only a list of the same sort.
|
|
621
|
+
*
|
|
622
|
+
* @param cursor The `nextCursor` of the page before, absent for the first page.
|
|
623
|
+
* @param limit Most tasks per page, 20 by default and 100 at most.
|
|
543
624
|
* @returns BpmnUserTaskPaginatedResponse OK
|
|
544
625
|
* @throws ApiError
|
|
545
626
|
*/
|
|
546
|
-
listBpmnUserTasksForCaller(projectId: string,
|
|
627
|
+
listBpmnUserTasksForCaller(projectId: string, dueAfter?: string, dueBefore?: string, sort?: 'created' | 'dueDate' | 'priority', cursor?: string, limit?: number): CancelablePromise<BpmnUserTaskPaginatedResponse>;
|
|
547
628
|
/**
|
|
548
629
|
* Get User Task
|
|
549
630
|
* Fetch a single user task by execution key. Allowed for callers with
|
|
@@ -607,7 +688,7 @@ export declare class BpmnService {
|
|
|
607
688
|
* Publish a BPMN message
|
|
608
689
|
* Publishes a message into the project. Each message is delivered to at
|
|
609
690
|
* most one waiting catch event whose subscription matches `messageName`
|
|
610
|
-
* and whose correlation
|
|
691
|
+
* and whose correlation value equals `correlationKeys`. If no
|
|
611
692
|
* subscriber is currently waiting the message is buffered up to its TTL
|
|
612
693
|
* and delivered to the first matching subscriber that registers.
|
|
613
694
|
*
|
|
@@ -677,11 +758,11 @@ export declare class BpmnService {
|
|
|
677
758
|
* @param projectId
|
|
678
759
|
* @param page
|
|
679
760
|
* @param pageSize
|
|
680
|
-
* @param q Optional case-insensitive
|
|
761
|
+
* @param q Optional case-insensitive substring match against process id or process name.
|
|
681
762
|
* @param createdAfter Bounds the totalCount aggregate to instances created at or after this
|
|
682
|
-
* timestamp. Strongly recommended for monitoring views -
|
|
683
|
-
*
|
|
684
|
-
*
|
|
763
|
+
* timestamp. Strongly recommended for monitoring views - ended
|
|
764
|
+
* instances stay until retention deletes them, and unfiltered totals
|
|
765
|
+
* scan every kept instance per definition. runningCount ignores this filter (it is always
|
|
685
766
|
* point-in-time).
|
|
686
767
|
*
|
|
687
768
|
* @param suspended Filter by paused versions. `true` → only processes with at least one
|
|
@@ -714,4 +795,21 @@ export declare class BpmnService {
|
|
|
714
795
|
* @throws ApiError
|
|
715
796
|
*/
|
|
716
797
|
listBpmnProcessVersions(projectId: string, processId: string, page?: number, pageSize?: number, createdAfter?: string, suspended?: boolean): CancelablePromise<BpmnProcessVersionPaginatedResponse>;
|
|
798
|
+
/**
|
|
799
|
+
* Get one deployed version of a BPMN process
|
|
800
|
+
* Returns the single deployed version identified by (processID, version)
|
|
801
|
+
* with its instance counts and suspension state, wherever it falls in the
|
|
802
|
+
* pages of `ListBpmnProcessVersions`.
|
|
803
|
+
*
|
|
804
|
+
* @param projectId
|
|
805
|
+
* @param processId
|
|
806
|
+
* @param version
|
|
807
|
+
* @param createdAfter Bounds the totalCount aggregate to instances created at or after this
|
|
808
|
+
* timestamp. See ListBpmnProcesses for rationale. runningCount ignores
|
|
809
|
+
* this filter.
|
|
810
|
+
*
|
|
811
|
+
* @returns BpmnProcessVersion OK
|
|
812
|
+
* @throws ApiError
|
|
813
|
+
*/
|
|
814
|
+
getBpmnProcessVersion(projectId: string, processId: string, version: number, createdAfter?: string): CancelablePromise<BpmnProcessVersion>;
|
|
717
815
|
}
|