@quantumbpm/sdk 1.0.1 → 1.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 +6 -6
- package/dist/bpmn.d.ts +4 -4
- package/dist/bpmn.js +4 -4
- package/dist/dmn.d.ts +1 -1
- package/dist/dmn.js +2 -2
- package/dist/generated/RawClient.js +2 -2
- package/dist/generated/core/OpenAPI.js +2 -2
- package/dist/generated/models/ActiveScope.d.ts +2 -2
- package/dist/generated/models/ActiveScope.js +1 -1
- package/dist/generated/models/BpmnIncident.d.ts +43 -20
- package/dist/generated/models/BpmnIncident.js +21 -11
- package/dist/generated/models/BpmnIncidentRecord.d.ts +16 -3
- package/dist/generated/models/BpmnIncidentRecord.js +7 -2
- package/dist/generated/models/BpmnInstance.d.ts +11 -4
- package/dist/generated/models/BpmnInstance.js +1 -1
- package/dist/generated/models/BpmnInstanceState.d.ts +1 -1
- package/dist/generated/models/BpmnInstanceState.js +1 -1
- package/dist/generated/models/BpmnProcessDefinition.d.ts +8 -0
- package/dist/generated/models/BpmnProcessDefinition.js +1 -1
- package/dist/generated/models/BpmnProcessSummary.d.ts +8 -0
- package/dist/generated/models/BpmnProcessSummary.js +1 -1
- package/dist/generated/models/BpmnResource.d.ts +7 -0
- package/dist/generated/models/BpmnResource.js +1 -1
- package/dist/generated/models/BpmnResourceSummary.d.ts +7 -0
- package/dist/generated/models/BpmnResourceSummary.js +1 -1
- package/dist/generated/models/CorrelationKeys.d.ts +1 -1
- package/dist/generated/models/CorrelationKeys.js +1 -1
- package/dist/generated/models/Error.d.ts +10 -10
- package/dist/generated/models/Error.js +6 -6
- package/dist/generated/models/EvaluationResult.d.ts +8 -8
- package/dist/generated/models/EvaluationResult.js +5 -5
- package/dist/generated/models/ExternalJobBatchResponse.d.ts +4 -4
- package/dist/generated/models/ExternalJobBatchResponse.js +1 -1
- package/dist/generated/models/FeelNumber.d.ts +1 -1
- package/dist/generated/models/FeelNumber.js +1 -1
- package/dist/generated/models/ModificationInstruction.d.ts +4 -4
- package/dist/generated/models/ModificationInstruction.js +3 -3
- package/dist/generated/models/SuspensionEntry.d.ts +1 -1
- package/dist/generated/models/SuspensionEntry.js +1 -1
- package/dist/generated/models/UpdateUserTaskAssignmentRequest.d.ts +1 -1
- package/dist/generated/models/UpdateUserTaskAssignmentRequest.js +1 -1
- package/dist/generated/models/UserTask.d.ts +1 -1
- package/dist/generated/models/UserTask.js +1 -1
- package/dist/generated/services/BpmnService.d.ts +19 -11
- package/dist/generated/services/BpmnService.js +24 -14
- package/dist/generated/services/DefaultService.d.ts +14 -12
- package/dist/generated/services/DefaultService.js +16 -13
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/variables.d.ts +1 -1
- package/dist/variables.js +2 -2
- package/dist/workers.d.ts +3 -3
- package/dist/workers.js +2 -2
- package/package.json +3 -3
- package/src/bpmn.ts +5 -5
- package/src/dmn.ts +1 -1
- package/src/generated/RawClient.ts +1 -1
- package/src/generated/core/OpenAPI.ts +1 -1
- package/src/generated/models/ActiveScope.ts +2 -2
- package/src/generated/models/BpmnIncident.ts +43 -20
- package/src/generated/models/BpmnIncidentRecord.ts +16 -3
- package/src/generated/models/BpmnInstance.ts +11 -4
- package/src/generated/models/BpmnInstanceState.ts +1 -1
- package/src/generated/models/BpmnProcessDefinition.ts +8 -0
- package/src/generated/models/BpmnProcessSummary.ts +8 -0
- package/src/generated/models/BpmnResource.ts +7 -0
- package/src/generated/models/BpmnResourceSummary.ts +7 -0
- package/src/generated/models/CorrelationKeys.ts +1 -1
- package/src/generated/models/Error.ts +10 -10
- package/src/generated/models/EvaluationResult.ts +8 -8
- package/src/generated/models/ExternalJobBatchResponse.ts +4 -4
- package/src/generated/models/FeelNumber.ts +1 -1
- package/src/generated/models/ModificationInstruction.ts +4 -4
- package/src/generated/models/SuspensionEntry.ts +1 -1
- package/src/generated/models/UpdateUserTaskAssignmentRequest.ts +1 -1
- package/src/generated/models/UserTask.ts +1 -1
- package/src/generated/services/BpmnService.ts +26 -14
- package/src/generated/services/DefaultService.ts +15 -11
- package/src/index.ts +2 -2
- package/src/variables.ts +1 -1
- package/src/workers.ts +3 -3
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
/**
|
|
6
6
|
* Reassign a CREATED user task. All fields are optional but at least one
|
|
7
|
-
* must be present. Fields are REPLACED atomically
|
|
7
|
+
* must be present. Fields are REPLACED atomically - pass the full set of
|
|
8
8
|
* candidateUsers / candidateGroups you want stored, not a delta.
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
@@ -126,7 +126,7 @@ export class BpmnService {
|
|
|
126
126
|
body: requestBody,
|
|
127
127
|
mediaType: 'application/json',
|
|
128
128
|
errors: {
|
|
129
|
-
409: `Conflict
|
|
129
|
+
409: `Conflict - resource is already deployed`,
|
|
130
130
|
},
|
|
131
131
|
});
|
|
132
132
|
}
|
|
@@ -153,7 +153,7 @@ export class BpmnService {
|
|
|
153
153
|
'resourceID': resourceId,
|
|
154
154
|
},
|
|
155
155
|
errors: {
|
|
156
|
-
409: `Conflict
|
|
156
|
+
409: `Conflict - resource has running instances`,
|
|
157
157
|
},
|
|
158
158
|
});
|
|
159
159
|
}
|
|
@@ -395,7 +395,7 @@ export class BpmnService {
|
|
|
395
395
|
/**
|
|
396
396
|
* Resolve an incident and retry the failed activity
|
|
397
397
|
* Marks an incident as resolved and re-runs the activity that produced it.
|
|
398
|
-
* Optional `variables` are merged into the activity's scope before retry
|
|
398
|
+
* Optional `variables` are merged into the activity's scope before retry -
|
|
399
399
|
* use this to fix the input that caused the failure (e.g. correct a value
|
|
400
400
|
* that triggered a FEEL evaluation error).
|
|
401
401
|
*
|
|
@@ -439,7 +439,7 @@ export class BpmnService {
|
|
|
439
439
|
*
|
|
440
440
|
* @param projectId
|
|
441
441
|
* @param definitionId Restrict to incidents on instances of a single process definition.
|
|
442
|
-
* @param workflowId Restrict to incidents on a single instance
|
|
442
|
+
* @param workflowId Restrict to incidents on a single instance - useful for an instance-detail "all incidents ever raised here" view that includes resolved rows.
|
|
443
443
|
* @param status Filter by lifecycle status. `open` returns unresolved incidents;
|
|
444
444
|
* `resolved` returns only resolved ones. Omit to return both.
|
|
445
445
|
*
|
|
@@ -456,7 +456,7 @@ export class BpmnService {
|
|
|
456
456
|
definitionId?: string,
|
|
457
457
|
workflowId?: string,
|
|
458
458
|
status?: 'open' | 'resolved',
|
|
459
|
-
errorType?: 'BpmnError' | 'EscalationError' | 'CompensationError' | 'FeelError' | 'NoHandler' | 'GatewayNoMatch' | 'TimerResolution' | 'LinkNotFound' | 'MigrationError' | 'Unknown',
|
|
459
|
+
errorType?: 'BpmnError' | 'EscalationError' | 'CompensationError' | 'FeelError' | 'NoHandler' | 'GatewayNoMatch' | 'TimerResolution' | 'LinkNotFound' | 'MigrationError' | 'SubscriptionError' | 'RotationLimitError' | 'SnapshotSizeExceeded' | 'CallActivityCanceled' | 'ExternalRowRefreshError' | 'Unknown',
|
|
460
460
|
since?: string,
|
|
461
461
|
until?: string,
|
|
462
462
|
page?: number,
|
|
@@ -637,7 +637,7 @@ export class BpmnService {
|
|
|
637
637
|
* Suspend a BPMN instance
|
|
638
638
|
* Pauses forward token dispatch on a single running instance. The
|
|
639
639
|
* instance's lifecycle status stays RUNNING; an orthogonal `suspendedAt`
|
|
640
|
-
* flag layers on top. Idempotent
|
|
640
|
+
* flag layers on top. Idempotent - a second call against an already-
|
|
641
641
|
* suspended instance is a no-op.
|
|
642
642
|
*
|
|
643
643
|
* While suspended: cancel / terminate / migrate / force-rotate / resolve-
|
|
@@ -705,7 +705,7 @@ export class BpmnService {
|
|
|
705
705
|
* It then iterates over every running instance (`status='RUNNING'`) and
|
|
706
706
|
* sends each one a definition-scope suspend signal via the engine API.
|
|
707
707
|
* Instances that were also explicitly instance-suspended stay paused
|
|
708
|
-
* after a definition-scope resume
|
|
708
|
+
* after a definition-scope resume - the operator must clear that scope
|
|
709
709
|
* too.
|
|
710
710
|
*
|
|
711
711
|
* Idempotent. The reason cascades to every affected instance's history
|
|
@@ -872,7 +872,7 @@ export class BpmnService {
|
|
|
872
872
|
requestBody: {
|
|
873
873
|
/**
|
|
874
874
|
* Optional worker identity (the same `clientID` used to poll)
|
|
875
|
-
* applied to every item in the batch
|
|
875
|
+
* applied to every item in the batch - a batch is one worker's
|
|
876
876
|
* report. When supplied, an item is completed only if this
|
|
877
877
|
* worker still holds its lock; items re-acquired by a peer drop
|
|
878
878
|
* out silently. Omit for the legacy unchecked behavior.
|
|
@@ -917,7 +917,7 @@ export class BpmnService {
|
|
|
917
917
|
requestBody: {
|
|
918
918
|
/**
|
|
919
919
|
* Optional worker identity (the same `clientID` used to poll)
|
|
920
|
-
* applied to every item in the batch
|
|
920
|
+
* applied to every item in the batch - a batch is one worker's
|
|
921
921
|
* report. When supplied, an item is requeued/failed only if this
|
|
922
922
|
* worker still holds its lock; items held by a peer are reported
|
|
923
923
|
* as an error and left untouched. Omit for the legacy unchecked
|
|
@@ -1033,7 +1033,7 @@ export class BpmnService {
|
|
|
1033
1033
|
* Fetch a single user task by execution key. Allowed for callers with
|
|
1034
1034
|
* Executor (or higher) role on the project, OR for callers who are the
|
|
1035
1035
|
* task's assignee, listed in candidateUsers, or whose identity groups
|
|
1036
|
-
* overlap candidateGroups
|
|
1036
|
+
* overlap candidateGroups - same access semantics as Complete and Error.
|
|
1037
1037
|
*
|
|
1038
1038
|
* @param projectId
|
|
1039
1039
|
* @param executionKey
|
|
@@ -1052,7 +1052,7 @@ export class BpmnService {
|
|
|
1052
1052
|
'executionKey': executionKey,
|
|
1053
1053
|
},
|
|
1054
1054
|
errors: {
|
|
1055
|
-
403: `Forbidden
|
|
1055
|
+
403: `Forbidden - caller is not Executor and not assigned to the task`,
|
|
1056
1056
|
404: `Not Found`,
|
|
1057
1057
|
},
|
|
1058
1058
|
});
|
|
@@ -1118,7 +1118,7 @@ export class BpmnService {
|
|
|
1118
1118
|
body: requestBody,
|
|
1119
1119
|
mediaType: 'application/json',
|
|
1120
1120
|
errors: {
|
|
1121
|
-
403: `Forbidden
|
|
1121
|
+
403: `Forbidden - caller is not Executor and not assigned to the task`,
|
|
1122
1122
|
404: `User task not found`,
|
|
1123
1123
|
},
|
|
1124
1124
|
});
|
|
@@ -1153,7 +1153,7 @@ export class BpmnService {
|
|
|
1153
1153
|
body: requestBody,
|
|
1154
1154
|
mediaType: 'application/json',
|
|
1155
1155
|
errors: {
|
|
1156
|
-
403: `Forbidden
|
|
1156
|
+
403: `Forbidden - caller is not Executor and not assigned to the task`,
|
|
1157
1157
|
404: `User task not found`,
|
|
1158
1158
|
},
|
|
1159
1159
|
});
|
|
@@ -1260,11 +1260,16 @@ export class BpmnService {
|
|
|
1260
1260
|
* @param pageSize
|
|
1261
1261
|
* @param q Optional case-insensitive substring match against process id or process name.
|
|
1262
1262
|
* @param createdAfter Bounds the totalCount aggregate to instances created at or after this
|
|
1263
|
-
* timestamp. Strongly recommended for monitoring views
|
|
1263
|
+
* timestamp. Strongly recommended for monitoring views - instance
|
|
1264
1264
|
* history accumulates indefinitely and unfiltered totals scan the full
|
|
1265
1265
|
* table per definition. runningCount ignores this filter (it is always
|
|
1266
1266
|
* point-in-time).
|
|
1267
1267
|
*
|
|
1268
|
+
* @param suspended Filter by paused versions. `true` → only processes with at least one
|
|
1269
|
+
* paused version; `false` → only processes with none. Omit for no
|
|
1270
|
+
* filter. This is the cross-process answer to "which definitions are
|
|
1271
|
+
* paused?"; `suspendedVersionCount` on each row says how many.
|
|
1272
|
+
*
|
|
1268
1273
|
* @returns BpmnProcessSummaryPaginatedResponse OK
|
|
1269
1274
|
* @throws ApiError
|
|
1270
1275
|
*/
|
|
@@ -1274,6 +1279,7 @@ export class BpmnService {
|
|
|
1274
1279
|
pageSize: number = 20,
|
|
1275
1280
|
q?: string,
|
|
1276
1281
|
createdAfter?: string,
|
|
1282
|
+
suspended?: boolean,
|
|
1277
1283
|
): CancelablePromise<BpmnProcessSummaryPaginatedResponse> {
|
|
1278
1284
|
return this.httpRequest.request({
|
|
1279
1285
|
method: 'GET',
|
|
@@ -1286,6 +1292,7 @@ export class BpmnService {
|
|
|
1286
1292
|
'pageSize': pageSize,
|
|
1287
1293
|
'q': q,
|
|
1288
1294
|
'createdAfter': createdAfter,
|
|
1295
|
+
'suspended': suspended,
|
|
1289
1296
|
},
|
|
1290
1297
|
errors: {
|
|
1291
1298
|
401: `Unauthorized`,
|
|
@@ -1307,6 +1314,9 @@ export class BpmnService {
|
|
|
1307
1314
|
* timestamp. See ListBpmnProcesses for rationale. runningCount ignores
|
|
1308
1315
|
* this filter.
|
|
1309
1316
|
*
|
|
1317
|
+
* @param suspended Filter by definition-scope suspension. `true` → only paused versions;
|
|
1318
|
+
* `false` → only active ones. Omit for no filter.
|
|
1319
|
+
*
|
|
1310
1320
|
* @returns BpmnProcessVersionPaginatedResponse OK
|
|
1311
1321
|
* @throws ApiError
|
|
1312
1322
|
*/
|
|
@@ -1316,6 +1326,7 @@ export class BpmnService {
|
|
|
1316
1326
|
page: number = 1,
|
|
1317
1327
|
pageSize: number = 20,
|
|
1318
1328
|
createdAfter?: string,
|
|
1329
|
+
suspended?: boolean,
|
|
1319
1330
|
): CancelablePromise<BpmnProcessVersionPaginatedResponse> {
|
|
1320
1331
|
return this.httpRequest.request({
|
|
1321
1332
|
method: 'GET',
|
|
@@ -1328,6 +1339,7 @@ export class BpmnService {
|
|
|
1328
1339
|
'page': page,
|
|
1329
1340
|
'pageSize': pageSize,
|
|
1330
1341
|
'createdAfter': createdAfter,
|
|
1342
|
+
'suspended': suspended,
|
|
1331
1343
|
},
|
|
1332
1344
|
errors: {
|
|
1333
1345
|
401: `Unauthorized`,
|
|
@@ -595,6 +595,7 @@ export class DefaultService {
|
|
|
595
595
|
* @param projectId
|
|
596
596
|
* @param definitionsId Filter by DMN `<definitions id>` (XML id).
|
|
597
597
|
* @param businessId Exact-match filter on the caller-supplied correlation key.
|
|
598
|
+
* @param startDate Only return executions at or after this instant (ISO 8601). Bounds the scan and the reported total; omit for the full unbounded history.
|
|
598
599
|
* @param page Page number (1-indexed)
|
|
599
600
|
* @param pageSize Number of items per page (max 100)
|
|
600
601
|
* @returns PaginatedExecutionsResponse OK
|
|
@@ -604,6 +605,7 @@ export class DefaultService {
|
|
|
604
605
|
projectId: string,
|
|
605
606
|
definitionsId?: string,
|
|
606
607
|
businessId?: string,
|
|
608
|
+
startDate?: string,
|
|
607
609
|
page: number = 1,
|
|
608
610
|
pageSize: number = 20,
|
|
609
611
|
): CancelablePromise<PaginatedExecutionsResponse> {
|
|
@@ -616,6 +618,7 @@ export class DefaultService {
|
|
|
616
618
|
query: {
|
|
617
619
|
'definitionsID': definitionsId,
|
|
618
620
|
'businessId': businessId,
|
|
621
|
+
'startDate': startDate,
|
|
619
622
|
'page': page,
|
|
620
623
|
'pageSize': pageSize,
|
|
621
624
|
},
|
|
@@ -663,14 +666,15 @@ export class DefaultService {
|
|
|
663
666
|
* `true` to show only instances that need operator attention; pass
|
|
664
667
|
* `false` to exclude blocked instances.
|
|
665
668
|
*
|
|
666
|
-
* @param suspended Filter by
|
|
667
|
-
* `suspendedAt` set
|
|
668
|
-
*
|
|
669
|
-
*
|
|
670
|
-
*
|
|
669
|
+
* @param suspended Filter by effective suspension - either scope counts. `true` → only
|
|
670
|
+
* instances paused at instance scope (`suspendedAt` set) or whose
|
|
671
|
+
* definition is paused (`definitionSuspended`); `false` → only
|
|
672
|
+
* instances paused at neither scope. Omit for no filter. Read those
|
|
673
|
+
* two row fields to tell the scopes apart; resume acts on one scope
|
|
674
|
+
* at a time.
|
|
671
675
|
*
|
|
672
676
|
* @param createdAfter Only return instances created at or after this timestamp. Strongly
|
|
673
|
-
* recommended for monitoring views
|
|
677
|
+
* recommended for monitoring views - terminal-state instance rows
|
|
674
678
|
* accumulate indefinitely, and unfiltered queries grow linearly with
|
|
675
679
|
* that history.
|
|
676
680
|
*
|
|
@@ -712,7 +716,7 @@ export class DefaultService {
|
|
|
712
716
|
/**
|
|
713
717
|
* Start a BPMN process instance
|
|
714
718
|
* Starts a new instance of a deployed BPMN process. The returned
|
|
715
|
-
* `workflowID` is the stable execution identifier
|
|
719
|
+
* `workflowID` is the stable execution identifier - use it to fetch
|
|
716
720
|
* state, send signals/messages, complete user tasks, etc.
|
|
717
721
|
*
|
|
718
722
|
* @param projectId
|
|
@@ -746,7 +750,7 @@ export class DefaultService {
|
|
|
746
750
|
}
|
|
747
751
|
/**
|
|
748
752
|
* Get BPMN instance state
|
|
749
|
-
* Returns the full runtime state of a process instance
|
|
753
|
+
* Returns the full runtime state of a process instance - current variables,
|
|
750
754
|
* activity history, active scopes, and any unresolved incidents. Use this
|
|
751
755
|
* to render dashboards or to drive operational decisions on a single
|
|
752
756
|
* instance.
|
|
@@ -772,7 +776,7 @@ export class DefaultService {
|
|
|
772
776
|
/**
|
|
773
777
|
* Cancel a BPMN instance
|
|
774
778
|
* Cancels a running instance and all of its active activities, jobs, and
|
|
775
|
-
* child instances. Cancellation is best-effort
|
|
779
|
+
* child instances. Cancellation is best-effort - handlers in flight may
|
|
776
780
|
* still complete before the cancel propagates. Cancelled instances move
|
|
777
781
|
* to status `CANCELED` and stop consuming further work.
|
|
778
782
|
*
|
|
@@ -807,7 +811,7 @@ export class DefaultService {
|
|
|
807
811
|
* @param workflowId Filter jobs by workflow ID
|
|
808
812
|
* @param businessId Exact-match filter on the caller-supplied correlation key.
|
|
809
813
|
* @param createdAfter Only return jobs created at or after this timestamp. Strongly
|
|
810
|
-
* recommended for monitoring views
|
|
814
|
+
* recommended for monitoring views - completed-job records accumulate
|
|
811
815
|
* indefinitely, and unfiltered queries grow linearly with that history.
|
|
812
816
|
*
|
|
813
817
|
* @param page
|
|
@@ -847,7 +851,7 @@ export class DefaultService {
|
|
|
847
851
|
* Long-polls for PENDING jobs of a given `taskType`. Returns a batch of
|
|
848
852
|
* jobs (up to `maxJobs`) as soon as any are available, or `204 No Content`
|
|
849
853
|
* when the timeout elapses with no work. Each returned job is exclusively
|
|
850
|
-
* leased to the caller for `lockDuration`
|
|
854
|
+
* leased to the caller for `lockDuration` - call `Heartbeat` to extend
|
|
851
855
|
* the lock, then `Complete` or `ThrowError` to finalize.
|
|
852
856
|
*
|
|
853
857
|
* @param projectId
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* QuantumBPM SDK
|
|
2
|
+
* QuantumBPM SDK - top-level entry point.
|
|
3
3
|
*
|
|
4
4
|
* @example
|
|
5
5
|
* ```typescript
|
|
@@ -52,7 +52,7 @@ export class QuantumBPM {
|
|
|
52
52
|
readonly raw: RawClient;
|
|
53
53
|
/** DMN evaluation surface. */
|
|
54
54
|
readonly dmn: DmnClient;
|
|
55
|
-
/** BPMN runtime surface
|
|
55
|
+
/** BPMN runtime surface - resources, instances, messaging, user tasks. */
|
|
56
56
|
readonly bpmn: BpmnClient;
|
|
57
57
|
/** Project the client is bound to. */
|
|
58
58
|
readonly projectId: string;
|
package/src/variables.ts
CHANGED
|
@@ -38,7 +38,7 @@ export class Vars {
|
|
|
38
38
|
/**
|
|
39
39
|
* Return the value at name typed as T. Throws when the variable is not
|
|
40
40
|
* set. Use this for opt-in typed access in worker handlers and DMN
|
|
41
|
-
* results
|
|
41
|
+
* results - TypeScript treats the cast as a hint, not a runtime check.
|
|
42
42
|
*/
|
|
43
43
|
get<T>(name: string): T {
|
|
44
44
|
if (!(name in this.data)) {
|
package/src/workers.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { Vars } from './variables';
|
|
|
17
17
|
/**
|
|
18
18
|
* Throw this from a handler to fail the job with a BPMN error code.
|
|
19
19
|
* The runtime translates it into a ThrowError call against the originating
|
|
20
|
-
* service task
|
|
20
|
+
* service task - matching boundary error events on the task can then route
|
|
21
21
|
* the exception in the BPMN model.
|
|
22
22
|
*/
|
|
23
23
|
export class BpmnError extends Error {
|
|
@@ -33,7 +33,7 @@ export interface Job<TVars = Record<string, unknown>> {
|
|
|
33
33
|
executionKey: string;
|
|
34
34
|
/** Workflow ID of the originating instance. */
|
|
35
35
|
workflowId: string;
|
|
36
|
-
/** Worker selector
|
|
36
|
+
/** Worker selector - the task type the handler was registered for. */
|
|
37
37
|
taskType: string;
|
|
38
38
|
/** Input variables resolved by the service task at activity entry. */
|
|
39
39
|
vars: Vars;
|
|
@@ -70,7 +70,7 @@ export type Handler<TVars = Record<string, unknown>> = (
|
|
|
70
70
|
export interface HandleOptions {
|
|
71
71
|
/** Maximum jobs in flight for this task type. Default 1. */
|
|
72
72
|
maxJobs?: number;
|
|
73
|
-
/** Long-poll wait
|
|
73
|
+
/** Long-poll wait - duration string like "30s", "2m". Default "30s". */
|
|
74
74
|
pollTimeout?: string;
|
|
75
75
|
/** Exclusive lock duration on each acquired job. Default "30s". */
|
|
76
76
|
lockDuration?: string;
|