@quantumbpm/sdk 0.12.0 → 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 +11 -5
- package/dist/bpmn.d.ts +24 -6
- package/dist/bpmn.js +11 -9
- package/dist/dmn.d.ts +6 -1
- package/dist/dmn.js +4 -2
- package/dist/generated/RawClient.js +2 -2
- package/dist/generated/core/OpenAPI.js +2 -2
- package/dist/generated/index.d.ts +0 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/models/ActiveScope.d.ts +2 -2
- package/dist/generated/models/ActiveScope.js +1 -1
- package/dist/generated/models/BatchEvaluateDesignRequest.d.ts +3 -2
- package/dist/generated/models/BatchEvaluateDesignRequest.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 +15 -4
- package/dist/generated/models/BpmnInstance.js +1 -1
- package/dist/generated/models/BpmnInstanceState.d.ts +5 -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/EvaluateStoredRequest.d.ts +4 -0
- package/dist/generated/models/EvaluateStoredRequest.js +1 -1
- package/dist/generated/models/EvaluationResult.d.ts +8 -8
- package/dist/generated/models/EvaluationResult.js +5 -5
- package/dist/generated/models/Execution.d.ts +4 -0
- package/dist/generated/models/Execution.js +1 -1
- package/dist/generated/models/ExternalJob.d.ts +8 -0
- package/dist/generated/models/ExternalJob.js +1 -1
- 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/StartBpmnInstanceRequest.d.ts +4 -0
- package/dist/generated/models/StartBpmnInstanceRequest.js +1 -1
- package/dist/generated/models/StartBpmnTestInstanceRequest.d.ts +4 -0
- package/dist/generated/models/StartBpmnTestInstanceRequest.js +1 -1
- 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 +5 -1
- package/dist/generated/models/UserTask.js +1 -1
- package/dist/generated/services/BpmnService.d.ts +92 -31
- package/dist/generated/services/BpmnService.js +51 -43
- package/dist/generated/services/DefaultService.d.ts +30 -23
- package/dist/generated/services/DefaultService.js +27 -27
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/tracing.d.ts +17 -0
- package/dist/tracing.js +38 -0
- package/dist/variables.d.ts +1 -1
- package/dist/variables.js +2 -2
- package/dist/workers.d.ts +15 -5
- package/dist/workers.js +27 -7
- package/package.json +4 -3
- package/src/bpmn.ts +31 -8
- package/src/dmn.ts +8 -1
- package/src/generated/RawClient.ts +1 -1
- package/src/generated/core/OpenAPI.ts +1 -1
- package/src/generated/index.ts +0 -2
- package/src/generated/models/ActiveScope.ts +2 -2
- package/src/generated/models/BatchEvaluateDesignRequest.ts +3 -2
- package/src/generated/models/BpmnIncident.ts +43 -20
- package/src/generated/models/BpmnIncidentRecord.ts +16 -3
- package/src/generated/models/BpmnInstance.ts +15 -4
- package/src/generated/models/BpmnInstanceState.ts +5 -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/EvaluateStoredRequest.ts +4 -0
- package/src/generated/models/EvaluationResult.ts +8 -8
- package/src/generated/models/Execution.ts +4 -0
- package/src/generated/models/ExternalJob.ts +8 -0
- 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/StartBpmnInstanceRequest.ts +4 -0
- package/src/generated/models/StartBpmnTestInstanceRequest.ts +4 -0
- package/src/generated/models/SuspensionEntry.ts +1 -1
- package/src/generated/models/UpdateUserTaskAssignmentRequest.ts +1 -1
- package/src/generated/models/UserTask.ts +5 -1
- package/src/generated/services/BpmnService.ts +100 -43
- package/src/generated/services/DefaultService.ts +36 -24
- package/src/index.test.ts +113 -0
- package/src/index.ts +2 -2
- package/src/tracing.ts +49 -0
- package/src/variables.ts +1 -1
- package/src/workers.test.ts +67 -1
- package/src/workers.ts +41 -10
- package/dist/generated/models/ExternalJobActiveWorkersItem.d.ts +0 -7
- package/dist/generated/models/ExternalJobActiveWorkersItem.js +0 -3
- package/dist/generated/models/ExternalJobActiveWorkersResponse.d.ts +0 -7
- package/dist/generated/models/ExternalJobActiveWorkersResponse.js +0 -3
- package/src/generated/models/ExternalJobActiveWorkersItem.ts +0 -12
- package/src/generated/models/ExternalJobActiveWorkersResponse.ts +0 -12
|
@@ -19,9 +19,9 @@ export type ActiveScope = {
|
|
|
19
19
|
*/
|
|
20
20
|
nodeID?: string;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Live token count per flow node in this scope, keyed by node ID. A node can hold more than one token at a time (a parallel fork whose branches re-converge without a join, a non-interrupting boundary handler, a loop edge re-entering a node a prior token has not left yet), so the count matters: a presence-only list cannot tell one token from five. Absent keys mean no live token.
|
|
23
23
|
*/
|
|
24
|
-
activeNodes?:
|
|
24
|
+
activeNodes?: Record<string, number>;
|
|
25
25
|
/**
|
|
26
26
|
* Version of the process definition active in this scope.
|
|
27
27
|
*/
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
+
import type { FeelContext } from './FeelContext';
|
|
5
6
|
/**
|
|
6
7
|
* Payload for batch evaluating ad-hoc DMN XML against multiple input rows.
|
|
7
8
|
*/
|
|
@@ -11,8 +12,8 @@ export type BatchEvaluateDesignRequest = {
|
|
|
11
12
|
*/
|
|
12
13
|
xml?: string;
|
|
13
14
|
/**
|
|
14
|
-
* One input context per row to evaluate.
|
|
15
|
+
* One input context per row to evaluate. At most 500 rows per request.
|
|
15
16
|
*/
|
|
16
|
-
inputs?: Array<
|
|
17
|
+
inputs?: Array<FeelContext>;
|
|
17
18
|
};
|
|
18
19
|
|
|
@@ -22,6 +22,14 @@ export type BpmnIncident = {
|
|
|
22
22
|
* Execution key of the activity that failed.
|
|
23
23
|
*/
|
|
24
24
|
executionKey?: string;
|
|
25
|
+
/**
|
|
26
|
+
* ID of the scope containing `scopeID`, empty for the root scope. Scope IDs are opaque, so this is how a client walks a failure back up the process tree.
|
|
27
|
+
*/
|
|
28
|
+
parentScopeID?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Zero-based multi-instance body index when the failure happened inside one iteration of a multi-instance activity. Absent otherwise.
|
|
31
|
+
*/
|
|
32
|
+
miIndex?: number;
|
|
25
33
|
/**
|
|
26
34
|
* Human-readable description of the error.
|
|
27
35
|
*/
|
|
@@ -32,16 +40,21 @@ export type BpmnIncident = {
|
|
|
32
40
|
errorCode?: string;
|
|
33
41
|
/**
|
|
34
42
|
* Category of the error. Values:
|
|
35
|
-
* * `BpmnError`
|
|
36
|
-
* * `EscalationError`
|
|
37
|
-
* * `CompensationError`
|
|
38
|
-
* * `FeelError`
|
|
39
|
-
* * `NoHandler`
|
|
40
|
-
* * `GatewayNoMatch`
|
|
41
|
-
* * `TimerResolution`
|
|
42
|
-
* * `LinkNotFound`
|
|
43
|
-
* * `MigrationError`
|
|
44
|
-
* * `
|
|
43
|
+
* * `BpmnError` - A `bpmn:error` thrown by the process or an external job worker.
|
|
44
|
+
* * `EscalationError` - A `bpmn:escalation` raised by the process.
|
|
45
|
+
* * `CompensationError` - Failure during compensation handler execution.
|
|
46
|
+
* * `FeelError` - A FEEL expression failed to evaluate.
|
|
47
|
+
* * `NoHandler` - A thrown error/escalation has no matching catch event.
|
|
48
|
+
* * `GatewayNoMatch` - An exclusive gateway evaluated all conditions to false with no default flow.
|
|
49
|
+
* * `TimerResolution` - A timer expression could not be parsed or resolved.
|
|
50
|
+
* * `LinkNotFound` - A link throw event has no matching link catch.
|
|
51
|
+
* * `MigrationError` - A process instance migration could not be applied.
|
|
52
|
+
* * `SubscriptionError` - A message/signal listener's registry row could not be written; the listener is dead until resolved.
|
|
53
|
+
* * `RotationLimitError` - The instance reached its ContinueAsNew rotation cap.
|
|
54
|
+
* * `SnapshotSizeExceeded` - A ContinueAsNew snapshot exceeded the configured size cap.
|
|
55
|
+
* * `CallActivityCanceled` - A call-activity child terminated as Canceled out-of-band.
|
|
56
|
+
* * `ExternalRowRefreshError` - A migration could not rewrite a parked wait's external row (job, user task or subscription) against the target definition. Resolving re-runs the refresh.
|
|
57
|
+
* * `Unknown` - Internal error not classified above.
|
|
45
58
|
*
|
|
46
59
|
*/
|
|
47
60
|
errorType?: BpmnIncident.errorType;
|
|
@@ -57,16 +70,21 @@ export type BpmnIncident = {
|
|
|
57
70
|
export namespace BpmnIncident {
|
|
58
71
|
/**
|
|
59
72
|
* Category of the error. Values:
|
|
60
|
-
* * `BpmnError`
|
|
61
|
-
* * `EscalationError`
|
|
62
|
-
* * `CompensationError`
|
|
63
|
-
* * `FeelError`
|
|
64
|
-
* * `NoHandler`
|
|
65
|
-
* * `GatewayNoMatch`
|
|
66
|
-
* * `TimerResolution`
|
|
67
|
-
* * `LinkNotFound`
|
|
68
|
-
* * `MigrationError`
|
|
69
|
-
* * `
|
|
73
|
+
* * `BpmnError` - A `bpmn:error` thrown by the process or an external job worker.
|
|
74
|
+
* * `EscalationError` - A `bpmn:escalation` raised by the process.
|
|
75
|
+
* * `CompensationError` - Failure during compensation handler execution.
|
|
76
|
+
* * `FeelError` - A FEEL expression failed to evaluate.
|
|
77
|
+
* * `NoHandler` - A thrown error/escalation has no matching catch event.
|
|
78
|
+
* * `GatewayNoMatch` - An exclusive gateway evaluated all conditions to false with no default flow.
|
|
79
|
+
* * `TimerResolution` - A timer expression could not be parsed or resolved.
|
|
80
|
+
* * `LinkNotFound` - A link throw event has no matching link catch.
|
|
81
|
+
* * `MigrationError` - A process instance migration could not be applied.
|
|
82
|
+
* * `SubscriptionError` - A message/signal listener's registry row could not be written; the listener is dead until resolved.
|
|
83
|
+
* * `RotationLimitError` - The instance reached its ContinueAsNew rotation cap.
|
|
84
|
+
* * `SnapshotSizeExceeded` - A ContinueAsNew snapshot exceeded the configured size cap.
|
|
85
|
+
* * `CallActivityCanceled` - A call-activity child terminated as Canceled out-of-band.
|
|
86
|
+
* * `ExternalRowRefreshError` - A migration could not rewrite a parked wait's external row (job, user task or subscription) against the target definition. Resolving re-runs the refresh.
|
|
87
|
+
* * `Unknown` - Internal error not classified above.
|
|
70
88
|
*
|
|
71
89
|
*/
|
|
72
90
|
export enum errorType {
|
|
@@ -79,6 +97,11 @@ export namespace BpmnIncident {
|
|
|
79
97
|
TIMER_RESOLUTION = 'TimerResolution',
|
|
80
98
|
LINK_NOT_FOUND = 'LinkNotFound',
|
|
81
99
|
MIGRATION_ERROR = 'MigrationError',
|
|
100
|
+
SUBSCRIPTION_ERROR = 'SubscriptionError',
|
|
101
|
+
ROTATION_LIMIT_ERROR = 'RotationLimitError',
|
|
102
|
+
SNAPSHOT_SIZE_EXCEEDED = 'SnapshotSizeExceeded',
|
|
103
|
+
CALL_ACTIVITY_CANCELED = 'CallActivityCanceled',
|
|
104
|
+
EXTERNAL_ROW_REFRESH_ERROR = 'ExternalRowRefreshError',
|
|
82
105
|
UNKNOWN = 'Unknown',
|
|
83
106
|
}
|
|
84
107
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
/**
|
|
6
|
-
* A persisted incident
|
|
6
|
+
* A persisted incident - the cross-instance audit row that backs the
|
|
7
7
|
* "Incidents" view. The same incident is also available in
|
|
8
8
|
* `BpmnInstanceState.incidents` while it is still open in the engine; the
|
|
9
9
|
* persisted row additionally carries `raisedAt` / `resolvedAt` /
|
|
@@ -49,7 +49,15 @@ export type BpmnIncidentRecord = {
|
|
|
49
49
|
*/
|
|
50
50
|
executionKey?: string;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* ID of the scope containing `scopeID`, empty for the root scope. Scope IDs are opaque, so this is how a client walks a failure back up the process tree.
|
|
53
|
+
*/
|
|
54
|
+
parentScopeID?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Zero-based multi-instance body index when the failure happened inside one iteration of a multi-instance activity. Absent otherwise.
|
|
57
|
+
*/
|
|
58
|
+
miIndex?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Category of the error - same enum as `BpmnIncident.errorType`.
|
|
53
61
|
*/
|
|
54
62
|
errorType: BpmnIncidentRecord.errorType;
|
|
55
63
|
/**
|
|
@@ -75,7 +83,7 @@ export type BpmnIncidentRecord = {
|
|
|
75
83
|
};
|
|
76
84
|
export namespace BpmnIncidentRecord {
|
|
77
85
|
/**
|
|
78
|
-
* Category of the error
|
|
86
|
+
* Category of the error - same enum as `BpmnIncident.errorType`.
|
|
79
87
|
*/
|
|
80
88
|
export enum errorType {
|
|
81
89
|
BPMN_ERROR = 'BpmnError',
|
|
@@ -87,6 +95,11 @@ export namespace BpmnIncidentRecord {
|
|
|
87
95
|
TIMER_RESOLUTION = 'TimerResolution',
|
|
88
96
|
LINK_NOT_FOUND = 'LinkNotFound',
|
|
89
97
|
MIGRATION_ERROR = 'MigrationError',
|
|
98
|
+
SUBSCRIPTION_ERROR = 'SubscriptionError',
|
|
99
|
+
ROTATION_LIMIT_ERROR = 'RotationLimitError',
|
|
100
|
+
SNAPSHOT_SIZE_EXCEEDED = 'SnapshotSizeExceeded',
|
|
101
|
+
CALL_ACTIVITY_CANCELED = 'CallActivityCanceled',
|
|
102
|
+
EXTERNAL_ROW_REFRESH_ERROR = 'ExternalRowRefreshError',
|
|
90
103
|
UNKNOWN = 'Unknown',
|
|
91
104
|
}
|
|
92
105
|
}
|
|
@@ -11,7 +11,7 @@ export type BpmnInstance = {
|
|
|
11
11
|
*/
|
|
12
12
|
definitionID: string;
|
|
13
13
|
/**
|
|
14
|
-
* Stable execution identifier for this instance. Use this to address the instance in all API calls
|
|
14
|
+
* Stable execution identifier for this instance. Use this to address the instance in all API calls - fetch state, send signals/messages, complete user tasks, list children, cancel, etc.
|
|
15
15
|
*/
|
|
16
16
|
workflowID: string;
|
|
17
17
|
/**
|
|
@@ -35,14 +35,13 @@ export type BpmnInstance = {
|
|
|
35
35
|
*/
|
|
36
36
|
completedAt?: string;
|
|
37
37
|
/**
|
|
38
|
-
* True when at least one unresolved incident is currently attached to this instance. Computed at query time against the open-incidents index
|
|
38
|
+
* True when at least one unresolved incident is currently attached to this instance. Computed at query time against the open-incidents index - useful for rendering a "needs attention" indicator in instance lists without paying for a per-row state fetch from the engine.
|
|
39
39
|
*/
|
|
40
40
|
hasIncident?: boolean;
|
|
41
41
|
/**
|
|
42
42
|
* Timestamp at which this instance was paused at INSTANCE scope. Empty
|
|
43
43
|
* when not instance-suspended. The instance may still be effectively
|
|
44
|
-
* suspended via its definition
|
|
45
|
-
* scopes if you need the full picture.
|
|
44
|
+
* suspended via its definition - see `definitionSuspended`.
|
|
46
45
|
*
|
|
47
46
|
*/
|
|
48
47
|
suspendedAt?: string;
|
|
@@ -54,6 +53,18 @@ export type BpmnInstance = {
|
|
|
54
53
|
* Free-text reason captured at suspend time.
|
|
55
54
|
*/
|
|
56
55
|
suspendReason?: string;
|
|
56
|
+
/**
|
|
57
|
+
* True when the process definition this instance runs is paused. Token
|
|
58
|
+
* dispatch stops while either scope is set, so an instance is
|
|
59
|
+
* effectively paused if this is true or `suspendedAt` is present. The
|
|
60
|
+
* two stay separate because resume acts on one scope at a time.
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
definitionSuspended?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Caller-supplied correlation key set when the instance was started. Inherited unchanged on child instances spawned via CallActivity.
|
|
66
|
+
*/
|
|
67
|
+
businessId?: string;
|
|
57
68
|
};
|
|
58
69
|
export namespace BpmnInstance {
|
|
59
70
|
/**
|
|
@@ -56,7 +56,7 @@ export type BpmnInstanceState = {
|
|
|
56
56
|
/**
|
|
57
57
|
* Present when this instance has been explicitly suspended by an
|
|
58
58
|
* operator. Persisted across CaN rotations. Clear via the resume
|
|
59
|
-
* instance endpoint. Composes with `definitionSuspension`
|
|
59
|
+
* instance endpoint. Composes with `definitionSuspension` - both must
|
|
60
60
|
* be null for the instance to dispatch tokens.
|
|
61
61
|
*
|
|
62
62
|
*/
|
|
@@ -68,5 +68,9 @@ export type BpmnInstanceState = {
|
|
|
68
68
|
*
|
|
69
69
|
*/
|
|
70
70
|
definitionSuspension?: SuspensionEntry;
|
|
71
|
+
/**
|
|
72
|
+
* Caller-supplied correlation key set when the instance was started.
|
|
73
|
+
*/
|
|
74
|
+
businessId?: string;
|
|
71
75
|
};
|
|
72
76
|
|
|
@@ -30,5 +30,13 @@ export type BpmnProcessDefinition = {
|
|
|
30
30
|
* Timestamp when this version became available.
|
|
31
31
|
*/
|
|
32
32
|
createdAt: string;
|
|
33
|
+
/**
|
|
34
|
+
* Timestamp at which this process definition was paused. Empty when active.
|
|
35
|
+
*/
|
|
36
|
+
suspendedAt?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Free-text reason captured at suspend time.
|
|
39
|
+
*/
|
|
40
|
+
suspendReason?: string;
|
|
33
41
|
};
|
|
34
42
|
|
|
@@ -18,6 +18,14 @@ export type BpmnProcessSummary = {
|
|
|
18
18
|
* Number of deployed versions of this process.
|
|
19
19
|
*/
|
|
20
20
|
versionCount: number;
|
|
21
|
+
/**
|
|
22
|
+
* How many versions of this process are paused. Zero means the process
|
|
23
|
+
* starts and dispatches normally; anything higher means at least one
|
|
24
|
+
* version rejects new instances. Filter the list with `suspended=true`
|
|
25
|
+
* to see only these.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
suspendedVersionCount?: number;
|
|
21
29
|
/**
|
|
22
30
|
* Instances with status RUNNING across all versions.
|
|
23
31
|
*/
|
|
@@ -38,5 +38,12 @@ export type BpmnResource = {
|
|
|
38
38
|
* Timestamp when this version was uploaded.
|
|
39
39
|
*/
|
|
40
40
|
createdAt: string;
|
|
41
|
+
/**
|
|
42
|
+
* True when at least one process definition inside this resource version
|
|
43
|
+
* is paused. Populated on list endpoints; absent on single-resource
|
|
44
|
+
* reads, where the per-process `suspendedAt` is the precise answer.
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
hasSuspendedDefinition?: boolean;
|
|
41
48
|
};
|
|
42
49
|
|
|
@@ -26,6 +26,13 @@ export type BpmnResourceSummary = {
|
|
|
26
26
|
* Whether the latest version is deployed.
|
|
27
27
|
*/
|
|
28
28
|
isDeployed: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* True when any version under this `definitionsID` contains a paused
|
|
31
|
+
* process definition - including older versions, since a pause on a
|
|
32
|
+
* superseded version is exactly what's hard to find otherwise.
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
hasSuspendedDefinition?: boolean;
|
|
29
36
|
/**
|
|
30
37
|
* Upload timestamp of the latest version.
|
|
31
38
|
*/
|
|
@@ -9,7 +9,7 @@ import type { CorrelationKeyString } from './CorrelationKeyString';
|
|
|
9
9
|
/**
|
|
10
10
|
* Selects which subscription(s) receive a published message.
|
|
11
11
|
*
|
|
12
|
-
* The provided value
|
|
12
|
+
* The provided value - primitive (string, number, boolean) or object -
|
|
13
13
|
* is matched against the subscription's resolved correlation value.
|
|
14
14
|
* Matching is type-sensitive (the number `123` does not match the
|
|
15
15
|
* string `"123"`); for objects, the publisher's keys must be a
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
export type Error = {
|
|
9
9
|
/**
|
|
10
10
|
* Machine-readable error category. Values:
|
|
11
|
-
* * `BAD_REQUEST`
|
|
12
|
-
* * `UNAUTHORIZED`
|
|
13
|
-
* * `FORBIDDEN`
|
|
14
|
-
* * `NOT_FOUND`
|
|
15
|
-
* * `INTERNAL_ERROR`
|
|
11
|
+
* * `BAD_REQUEST` - request is malformed or fails validation.
|
|
12
|
+
* * `UNAUTHORIZED` - request lacks or has an invalid authentication token.
|
|
13
|
+
* * `FORBIDDEN` - caller is authenticated but lacks permission, or has hit a quota.
|
|
14
|
+
* * `NOT_FOUND` - the addressed resource does not exist.
|
|
15
|
+
* * `INTERNAL_ERROR` - unexpected server-side failure.
|
|
16
16
|
*
|
|
17
17
|
*/
|
|
18
18
|
code: Error.code;
|
|
@@ -28,11 +28,11 @@ export type Error = {
|
|
|
28
28
|
export namespace Error {
|
|
29
29
|
/**
|
|
30
30
|
* Machine-readable error category. Values:
|
|
31
|
-
* * `BAD_REQUEST`
|
|
32
|
-
* * `UNAUTHORIZED`
|
|
33
|
-
* * `FORBIDDEN`
|
|
34
|
-
* * `NOT_FOUND`
|
|
35
|
-
* * `INTERNAL_ERROR`
|
|
31
|
+
* * `BAD_REQUEST` - request is malformed or fails validation.
|
|
32
|
+
* * `UNAUTHORIZED` - request lacks or has an invalid authentication token.
|
|
33
|
+
* * `FORBIDDEN` - caller is authenticated but lacks permission, or has hit a quota.
|
|
34
|
+
* * `NOT_FOUND` - the addressed resource does not exist.
|
|
35
|
+
* * `INTERNAL_ERROR` - unexpected server-side failure.
|
|
36
36
|
*
|
|
37
37
|
*/
|
|
38
38
|
export enum code {
|
|
@@ -20,5 +20,9 @@ export type EvaluateStoredRequest = {
|
|
|
20
20
|
* Names of decisions or decision services to evaluate. If empty, all decisions are evaluated.
|
|
21
21
|
*/
|
|
22
22
|
decisions?: Array<string>;
|
|
23
|
+
/**
|
|
24
|
+
* Optional caller-supplied correlation key persisted with the resulting execution row for cross-system tracing.
|
|
25
|
+
*/
|
|
26
|
+
businessId?: string;
|
|
23
27
|
};
|
|
24
28
|
|
|
@@ -22,10 +22,10 @@ export type EvaluationResult = {
|
|
|
22
22
|
error?: string | null;
|
|
23
23
|
/**
|
|
24
24
|
* Kind of DMN element that produced this result:
|
|
25
|
-
* * `DECISION`
|
|
26
|
-
* * `DECISION_SERVICE`
|
|
27
|
-
* * `BKM`
|
|
28
|
-
* * `INPUT_DATA`
|
|
25
|
+
* * `DECISION` - a decision node, the typical case.
|
|
26
|
+
* * `DECISION_SERVICE` - a decision service that aggregates multiple decisions.
|
|
27
|
+
* * `BKM` - a business knowledge model (reusable invocable logic).
|
|
28
|
+
* * `INPUT_DATA` - an input variable, included for context, not evaluated.
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
type?: EvaluationResult.type;
|
|
@@ -42,10 +42,10 @@ export type EvaluationResult = {
|
|
|
42
42
|
export namespace EvaluationResult {
|
|
43
43
|
/**
|
|
44
44
|
* Kind of DMN element that produced this result:
|
|
45
|
-
* * `DECISION`
|
|
46
|
-
* * `DECISION_SERVICE`
|
|
47
|
-
* * `BKM`
|
|
48
|
-
* * `INPUT_DATA`
|
|
45
|
+
* * `DECISION` - a decision node, the typical case.
|
|
46
|
+
* * `DECISION_SERVICE` - a decision service that aggregates multiple decisions.
|
|
47
|
+
* * `BKM` - a business knowledge model (reusable invocable logic).
|
|
48
|
+
* * `INPUT_DATA` - an input variable, included for context, not evaluated.
|
|
49
49
|
*
|
|
50
50
|
*/
|
|
51
51
|
export enum type {
|
|
@@ -30,5 +30,9 @@ export type Execution = {
|
|
|
30
30
|
* The DMN XML's `<definitions id="…">` value, useful for grouping executions across versions.
|
|
31
31
|
*/
|
|
32
32
|
definitionsID?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Caller-supplied correlation key passed at evaluation time (REST) or inherited from the parent BPMN process (business rule task).
|
|
35
|
+
*/
|
|
36
|
+
businessId?: string;
|
|
33
37
|
};
|
|
34
38
|
|
|
@@ -66,6 +66,14 @@ export type ExternalJob = {
|
|
|
66
66
|
* Best-effort label describing why a CANCELED job was interrupted (e.g. instance cancelled, instance terminated).
|
|
67
67
|
*/
|
|
68
68
|
cancelReason?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Caller-supplied correlation key inherited from the parent BPMN process. Workers can use it for log correlation or downstream tracing.
|
|
71
|
+
*/
|
|
72
|
+
businessId?: string;
|
|
73
|
+
/**
|
|
74
|
+
* W3C trace-propagation carrier (e.g. `traceparent`/`tracestate`) captured from the originating process instance. Present only when distributed tracing is enabled on the server. SDK workers pass this map to their OpenTelemetry propagator's extract so the worker span joins the instance's trace; plain workers can ignore it.
|
|
75
|
+
*/
|
|
76
|
+
traceContext?: Record<string, string>;
|
|
69
77
|
};
|
|
70
78
|
export namespace ExternalJob {
|
|
71
79
|
/**
|
|
@@ -13,10 +13,10 @@ export type ExternalJobBatchResponse = {
|
|
|
13
13
|
executionKey: string;
|
|
14
14
|
/**
|
|
15
15
|
* Outcome for this item:
|
|
16
|
-
* * `completed`
|
|
17
|
-
* * `failed`
|
|
18
|
-
* * `requeued`
|
|
19
|
-
* * `error`
|
|
16
|
+
* * `completed` - the job was completed successfully.
|
|
17
|
+
* * `failed` - the job exhausted its retries and surfaced as an incident.
|
|
18
|
+
* * `requeued` - a retry budget remained, the job is back in PENDING.
|
|
19
|
+
* * `error` - the per-item operation itself failed; the job's state is unchanged.
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
status: 'completed' | 'failed' | 'requeued' | 'error';
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
/**
|
|
6
|
-
* FEEL number. Maps to a decimal value at runtime.
|
|
6
|
+
* FEEL number. Maps to a decimal value at runtime. Exact decimal semantics end-to-end - the Go types use json.Number so values are never narrowed through float64.
|
|
7
7
|
*/
|
|
8
8
|
export type FeelNumber = number;
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
export type ModificationInstruction = {
|
|
9
9
|
/**
|
|
10
10
|
* Kind of operation:
|
|
11
|
-
* * `START_BEFORE_NODE`
|
|
12
|
-
* * `CANCEL_TOKEN`
|
|
11
|
+
* * `START_BEFORE_NODE` - activate `nodeID` in the given scope, optionally seeding `variables` first.
|
|
12
|
+
* * `CANCEL_TOKEN` - cancel the active token at `nodeID` in the given scope.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
15
|
type: ModificationInstruction.type;
|
|
@@ -29,8 +29,8 @@ export type ModificationInstruction = {
|
|
|
29
29
|
export namespace ModificationInstruction {
|
|
30
30
|
/**
|
|
31
31
|
* Kind of operation:
|
|
32
|
-
* * `START_BEFORE_NODE`
|
|
33
|
-
* * `CANCEL_TOKEN`
|
|
32
|
+
* * `START_BEFORE_NODE` - activate `nodeID` in the given scope, optionally seeding `variables` first.
|
|
33
|
+
* * `CANCEL_TOKEN` - cancel the active token at `nodeID` in the given scope.
|
|
34
34
|
*
|
|
35
35
|
*/
|
|
36
36
|
export enum type {
|
|
@@ -14,5 +14,9 @@ export type StartBpmnInstanceRequest = {
|
|
|
14
14
|
* Initial process variables. Available to FEEL expressions and service tasks from the first activity onward.
|
|
15
15
|
*/
|
|
16
16
|
variables?: Record<string, any>;
|
|
17
|
+
/**
|
|
18
|
+
* Optional caller-supplied correlation key (order number, ticket ID, etc.) indexed for filtering and stamped on every child instance, external job, user task, and DMN execution emitted by this process.
|
|
19
|
+
*/
|
|
20
|
+
businessId?: string;
|
|
17
21
|
};
|
|
18
22
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
/**
|
|
6
6
|
* Audit-shaped record of an active suspension at one scope (instance or
|
|
7
|
-
* definition). Returned inline on `BpmnInstanceState`
|
|
7
|
+
* definition). Returned inline on `BpmnInstanceState` - `null` when not
|
|
8
8
|
* suspended at that scope. An instance is "effectively suspended" if either
|
|
9
9
|
* scope's entry is present; the dispatcher pauses forward token dispatch
|
|
10
10
|
* while either flag is set.
|
|
@@ -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
|
*/
|
|
@@ -27,7 +27,7 @@ export type UserTask = {
|
|
|
27
27
|
*/
|
|
28
28
|
nodeID: string;
|
|
29
29
|
/**
|
|
30
|
-
* BPMN element type
|
|
30
|
+
* BPMN element type - typically `UserTask` or `ManualTask`.
|
|
31
31
|
*/
|
|
32
32
|
taskType?: string;
|
|
33
33
|
/**
|
|
@@ -82,6 +82,10 @@ export type UserTask = {
|
|
|
82
82
|
* Timestamp when the task reached a terminal status.
|
|
83
83
|
*/
|
|
84
84
|
completedAt?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Caller-supplied correlation key inherited from the parent BPMN process.
|
|
87
|
+
*/
|
|
88
|
+
businessId?: string;
|
|
85
89
|
};
|
|
86
90
|
export namespace UserTask {
|
|
87
91
|
/**
|