@uipath/maestro-builder-sdk 6.97.0 → 6.97.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/dist/api-index.md +72 -71
- package/dist/api-members.md +333 -330
- package/dist/bpmn/bpmn-sdk.d.ts +79 -10
- package/dist/bpmn/bpmn-sdk.js +3 -3
- package/dist/bpmn/decompile.js +10 -6
- package/dist/bpmn/serialize.js +8 -2
- package/dist/bpmn/typed-node.d.ts +7 -0
- package/dist/bpmn/typed-node.js +50 -26
- package/dist/bpmn-api.md +16 -7
- package/dist/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/bpmn/bpmn-sdk.d.ts
CHANGED
|
@@ -393,14 +393,47 @@ export interface BpmnFlow {
|
|
|
393
393
|
* return value), or `'inputOutput'` (a mutable flow variable).
|
|
394
394
|
*/
|
|
395
395
|
export type VarDirection = 'input' | 'inputOutput' | 'output';
|
|
396
|
+
/**
|
|
397
|
+
* A BPMN variable's `type` — the core {@link TypeDesc} spellings, plus the ones
|
|
398
|
+
* the product writes that are not core types.
|
|
399
|
+
*
|
|
400
|
+
* Studio Web stores a variable's `type` as free text, and the engine coerces a
|
|
401
|
+
* value only for the primitives it knows (`string`, `number`, `integer`,
|
|
402
|
+
* `boolean`, `null`); any other name is parsed generically. The designer fills it
|
|
403
|
+
* from the activity's manifest `outputType` when a task's output lands in a
|
|
404
|
+
* variable, so a real export carries names no core type covers:
|
|
405
|
+
*
|
|
406
|
+
* - `'null'` — the JSON-schema `null` type. Studio Web gives it to an output
|
|
407
|
+
* whose inferred schema is empty, such as a script task's `response`; the
|
|
408
|
+
* engine reads a value of this type as null.
|
|
409
|
+
* - `'custom'` — the manifest `outputType` of an activity whose output shape is
|
|
410
|
+
* per instance (timer and connector triggers, for example).
|
|
411
|
+
* - `` `${Namespace}.${Name}` `` — the manifest `outputType` of an activity with a
|
|
412
|
+
* named output shape: `'Orchestrator.RunJob'` for a start-job task,
|
|
413
|
+
* `'Actions.HITL'`, `'Maestro.ReceiveMessageEvent'`. The namespace is one the
|
|
414
|
+
* manifest's `outputType` values use (`A2A`, `Actions`, `Maestro`,
|
|
415
|
+
* `Orchestrator`), so a quoted descriptor such as `'types.string'` is still
|
|
416
|
+
* a type error.
|
|
417
|
+
* - `` `Collection{${T}}` `` — the output of a multi-instance (looped) task or
|
|
418
|
+
* sub-process: Studio Web wraps the per-iteration type `T`, so a looped string
|
|
419
|
+
* output is `'Collection{string}'`.
|
|
420
|
+
*
|
|
421
|
+
* `compile` writes each one back exactly as spelled; only the core types are
|
|
422
|
+
* mapped (`object`/`array`/`any` to `json`).
|
|
423
|
+
*
|
|
424
|
+
* ```ts
|
|
425
|
+
* .vars([{ id: 'job', type: 'Orchestrator.RunJob', elementId: 'startJob' }])
|
|
426
|
+
* ```
|
|
427
|
+
*/
|
|
428
|
+
export type BpmnVarType = TypeDesc | 'null' | 'custom' | `${'A2A' | 'Actions' | 'Maestro' | 'Orchestrator'}.${string}` | `Collection{${string}}`;
|
|
396
429
|
/** A declared variable in the built graph (`uipath:input` / `uipath:inputOutput` / `uipath:output`, by `direction`). */
|
|
397
430
|
export interface BpmnVarDecl {
|
|
398
431
|
/** The variable's id — what expressions read as `vars.<id>`. */
|
|
399
432
|
id: string;
|
|
400
433
|
/** Display name; `.var()`/`.input()`/`.output()` default it to the id. */
|
|
401
434
|
name: string;
|
|
402
|
-
/** The variable's `types.*` descriptor. */
|
|
403
|
-
type:
|
|
435
|
+
/** The variable's type — a `types.*` descriptor or another product spelling; see {@link BpmnVarType}. */
|
|
436
|
+
type: BpmnVarType;
|
|
404
437
|
/** How the variable crosses the process boundary — see {@link VarDirection}. */
|
|
405
438
|
direction: VarDirection;
|
|
406
439
|
/** Optional initial value. */
|
|
@@ -605,6 +638,14 @@ export interface ProcessMetadata {
|
|
|
605
638
|
* the product's `name` is the SOURCE variable's display name, not the target's,
|
|
606
639
|
* and no derivation reproduces that.
|
|
607
640
|
*
|
|
641
|
+
* A payload can also CONFIGURE its element: Studio Web puts a connector call on a
|
|
642
|
+
* message end event or intermediate throw event (`Intsvc.ActivityExecution`), and a
|
|
643
|
+
* connector wait on an intermediate catch or boundary event (`Intsvc.WaitForEvent`),
|
|
644
|
+
* none of which is the element the registry names for the type. Those carry their
|
|
645
|
+
* connector key, connection binding, operation and request rows in
|
|
646
|
+
* {@link ExtensionPayload.contextRows} and {@link ExtensionPayload.inputRows}, and
|
|
647
|
+
* the runtime reads them there (`IntSvcIntermediateThrowEventWorkflowV2`).
|
|
648
|
+
*
|
|
608
649
|
* @example
|
|
609
650
|
* **A start event mapping two process inputs onto variables**
|
|
610
651
|
* ```ts
|
|
@@ -647,6 +688,34 @@ export interface ExtensionPayload {
|
|
|
647
688
|
tag?: 'uipath:activity' | 'uipath:event' | 'uipath:mapping';
|
|
648
689
|
/** The `uipath:type` `version` attribute, when it is not `v1` — see `ActivityNodeOpts.typeVersion`. */
|
|
649
690
|
typeVersion?: string;
|
|
691
|
+
/**
|
|
692
|
+
* The `uipath:context` rows, emitted verbatim — see {@link TypedContextRow}.
|
|
693
|
+
*
|
|
694
|
+
* Decompile writes these for a payload that configures its element, such as a
|
|
695
|
+
* connector call on an end event:
|
|
696
|
+
*
|
|
697
|
+
* ```ts
|
|
698
|
+
* .endEvent('notify', {
|
|
699
|
+
* message: '',
|
|
700
|
+
* payload: {
|
|
701
|
+
* type: 'Intsvc.ActivityExecution',
|
|
702
|
+
* contextRows: [
|
|
703
|
+
* { name: 'connectorKey', value: 'uipath-microsoft-outlook365' },
|
|
704
|
+
* { name: 'connection', value: '=bindings.outlook' },
|
|
705
|
+
* ],
|
|
706
|
+
* outputRows: [],
|
|
707
|
+
* },
|
|
708
|
+
* })
|
|
709
|
+
* ```
|
|
710
|
+
*
|
|
711
|
+
* Without them the recompiled element calls a connector with no connector key
|
|
712
|
+
* and no connection, and `check` reports `INTSVC_CONNECTION_MISSING`.
|
|
713
|
+
*/
|
|
714
|
+
contextRows?: TypedContextRow[];
|
|
715
|
+
/** The `uipath:inputSchema` body inside `uipath:context` — see `ActivityNodeOpts.inputSchema`. */
|
|
716
|
+
inputSchema?: unknown;
|
|
717
|
+
/** The payload's own `uipath:input` rows, emitted verbatim — see {@link TypedInputRow}. */
|
|
718
|
+
inputRows?: TypedInputRow[];
|
|
650
719
|
}
|
|
651
720
|
/**
|
|
652
721
|
* Options for `.startEvent()`. At most one of `message` / `timer` picks the
|
|
@@ -1089,8 +1158,8 @@ export interface SubProcessOpts extends ActivityOpts {
|
|
|
1089
1158
|
export interface VarEntry extends VarOpts {
|
|
1090
1159
|
/** The variable's id — what expressions read as `vars.<id>`. */
|
|
1091
1160
|
id: string;
|
|
1092
|
-
/** A `types.*` descriptor. */
|
|
1093
|
-
type:
|
|
1161
|
+
/** A `types.*` descriptor, or another product spelling — see {@link BpmnVarType}. */
|
|
1162
|
+
type: BpmnVarType;
|
|
1094
1163
|
/** Which declaration this is. Defaults to `'inputOutput'`, the `.var()` kind. */
|
|
1095
1164
|
direction?: VarDirection;
|
|
1096
1165
|
}
|
|
@@ -3392,29 +3461,29 @@ declare abstract class ScopeBuilder {
|
|
|
3392
3461
|
* A mutable flow variable (`uipath:inputOutput`). Root unless `elementId` scopes it.
|
|
3393
3462
|
*
|
|
3394
3463
|
* @param id - The variable's name.
|
|
3395
|
-
* @param type - A `types.*` descriptor.
|
|
3464
|
+
* @param type - A `types.*` descriptor, or another product spelling ({@link BpmnVarType}).
|
|
3396
3465
|
* @param opts - `direction`, a `default`, and `elementId` to scope it to one element.
|
|
3397
3466
|
* @returns This builder, so calls chain.
|
|
3398
3467
|
*/
|
|
3399
|
-
var(id: string, type:
|
|
3468
|
+
var(id: string, type: BpmnVarType, opts?: VarOpts): this;
|
|
3400
3469
|
/**
|
|
3401
3470
|
* A read-only entry input (`uipath:input`).
|
|
3402
3471
|
*
|
|
3403
3472
|
* @param id - The input's name.
|
|
3404
|
-
* @param type - A `types.*` descriptor.
|
|
3473
|
+
* @param type - A `types.*` descriptor, or another product spelling ({@link BpmnVarType}).
|
|
3405
3474
|
* @param opts - A `default`, and `elementId` to scope it to one element.
|
|
3406
3475
|
* @returns This builder, so calls chain.
|
|
3407
3476
|
*/
|
|
3408
|
-
input(id: string, type:
|
|
3477
|
+
input(id: string, type: BpmnVarType, opts?: VarOpts): this;
|
|
3409
3478
|
/**
|
|
3410
3479
|
* A return value (`uipath:output`).
|
|
3411
3480
|
*
|
|
3412
3481
|
* @param id - The output's name.
|
|
3413
|
-
* @param type - A `types.*` descriptor.
|
|
3482
|
+
* @param type - A `types.*` descriptor, or another product spelling ({@link BpmnVarType}).
|
|
3414
3483
|
* @param opts - A `default`, and `elementId` to scope it to one element.
|
|
3415
3484
|
* @returns This builder, so calls chain.
|
|
3416
3485
|
*/
|
|
3417
|
-
output(id: string, type:
|
|
3486
|
+
output(id: string, type: BpmnVarType, opts?: VarOpts): this;
|
|
3418
3487
|
/**
|
|
3419
3488
|
* Several declarations as one call — the array form of `.var()` / `.input()` /
|
|
3420
3489
|
* `.output()`.
|
package/dist/bpmn/bpmn-sdk.js
CHANGED
|
@@ -2420,7 +2420,7 @@ class ScopeBuilder {
|
|
|
2420
2420
|
* A mutable flow variable (`uipath:inputOutput`). Root unless `elementId` scopes it.
|
|
2421
2421
|
*
|
|
2422
2422
|
* @param id - The variable's name.
|
|
2423
|
-
* @param type - A `types.*` descriptor.
|
|
2423
|
+
* @param type - A `types.*` descriptor, or another product spelling ({@link BpmnVarType}).
|
|
2424
2424
|
* @param opts - `direction`, a `default`, and `elementId` to scope it to one element.
|
|
2425
2425
|
* @returns This builder, so calls chain.
|
|
2426
2426
|
*/
|
|
@@ -2431,7 +2431,7 @@ class ScopeBuilder {
|
|
|
2431
2431
|
* A read-only entry input (`uipath:input`).
|
|
2432
2432
|
*
|
|
2433
2433
|
* @param id - The input's name.
|
|
2434
|
-
* @param type - A `types.*` descriptor.
|
|
2434
|
+
* @param type - A `types.*` descriptor, or another product spelling ({@link BpmnVarType}).
|
|
2435
2435
|
* @param opts - A `default`, and `elementId` to scope it to one element.
|
|
2436
2436
|
* @returns This builder, so calls chain.
|
|
2437
2437
|
*/
|
|
@@ -2442,7 +2442,7 @@ class ScopeBuilder {
|
|
|
2442
2442
|
* A return value (`uipath:output`).
|
|
2443
2443
|
*
|
|
2444
2444
|
* @param id - The output's name.
|
|
2445
|
-
* @param type - A `types.*` descriptor.
|
|
2445
|
+
* @param type - A `types.*` descriptor, or another product spelling ({@link BpmnVarType}).
|
|
2446
2446
|
* @param opts - A `default`, and `elementId` to scope it to one element.
|
|
2447
2447
|
* @returns This builder, so calls chain.
|
|
2448
2448
|
*/
|
package/dist/bpmn/decompile.js
CHANGED
|
@@ -1073,6 +1073,11 @@ function emitDecorationPayload(payload, type) {
|
|
|
1073
1073
|
['type', tsText(type)],
|
|
1074
1074
|
['tag', isSnapshotType(type) ? undefined : tsText(payloadTagOf(payload))],
|
|
1075
1075
|
['typeVersion', version && version !== 'v1' ? tsText(version) : undefined],
|
|
1076
|
+
// A payload that configures its element (a connector call on an end event, a
|
|
1077
|
+
// connector wait on a catch or boundary event) keeps its context and input rows.
|
|
1078
|
+
['contextRows', emitContextRows(payload)],
|
|
1079
|
+
['inputSchema', payload.context?.inputSchema?.body !== undefined ? jsonLiteral(payload.context.inputSchema.body) : undefined],
|
|
1080
|
+
['inputRows', emitInputRows(payload.input ?? [])],
|
|
1076
1081
|
['outputRows', emitOutputRows(payload) ?? '[]'],
|
|
1077
1082
|
]);
|
|
1078
1083
|
}
|
|
@@ -2103,9 +2108,9 @@ function typeDescribesElement(kind, type) {
|
|
|
2103
2108
|
* <bpmn:messageEventDefinition />
|
|
2104
2109
|
* </bpmn:startEvent>
|
|
2105
2110
|
*
|
|
2106
|
-
* The
|
|
2107
|
-
*
|
|
2108
|
-
* which
|
|
2111
|
+
* The typed form needs the element, the tag and the definition — all of which the
|
|
2112
|
+
* file states — and makes the trigger the node, not a decoration of a plain start
|
|
2113
|
+
* event, which is what an unlisted trigger is. The typed form writes a definition with nothing in it, so
|
|
2109
2114
|
* only a bare one (no reference, no body; an `id` is fine) is carried; anything else, and an
|
|
2110
2115
|
* attribute `.activity()` cannot write (a boundary's host, a non-interrupting start),
|
|
2111
2116
|
* refuses here instead of losing it.
|
|
@@ -2154,9 +2159,8 @@ function definitionIsBare(def) {
|
|
|
2154
2159
|
* legal, and the boundary's extra two are additive.
|
|
2155
2160
|
*/
|
|
2156
2161
|
function emitEvent(chain, el, kind, payload, type) {
|
|
2157
|
-
//
|
|
2158
|
-
//
|
|
2159
|
-
// after all, which is the branch this function is not on.
|
|
2162
|
+
// A decorating payload carries its output rows, and — on a connector call or wait
|
|
2163
|
+
// hosted by an event — its context and input rows too (`emitDecorationPayload`).
|
|
2160
2164
|
const eventPayload = emitDecorationPayload(payload, type);
|
|
2161
2165
|
if (kind === 'boundaryEvent') {
|
|
2162
2166
|
chain.add(`.boundaryEvent(${tsText(el.id)}, ${opts([
|
package/dist/bpmn/serialize.js
CHANGED
|
@@ -53,7 +53,7 @@ function mapType(t) {
|
|
|
53
53
|
case 'any':
|
|
54
54
|
return 'json';
|
|
55
55
|
default:
|
|
56
|
-
return t; //
|
|
56
|
+
return t; // a core primitive, or a product spelling (`null`, `Orchestrator.RunJob`, …) written back as-is
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
export async function serialize(built, opts = {}) {
|
|
@@ -872,7 +872,13 @@ function attachExtensionPayload(ctx, el, payload) {
|
|
|
872
872
|
if (!payload)
|
|
873
873
|
return;
|
|
874
874
|
const ext = (el.extensionElements ??= ctx.m.create('bpmn:ExtensionElements', { values: [] }));
|
|
875
|
-
(ext.values ??= []).unshift(createExtensionPayload(ctx.m, payload.type, payload.outputRows, {
|
|
875
|
+
(ext.values ??= []).unshift(createExtensionPayload(ctx.m, payload.type, payload.outputRows, {
|
|
876
|
+
tag: payload.tag,
|
|
877
|
+
typeVersion: payload.typeVersion,
|
|
878
|
+
contextRows: payload.contextRows,
|
|
879
|
+
inputSchema: payload.inputSchema,
|
|
880
|
+
inputRows: payload.inputRows,
|
|
881
|
+
}));
|
|
876
882
|
}
|
|
877
883
|
/**
|
|
878
884
|
* Attach what every ACTIVITY can carry — a retry policy and a multi-instance loop
|
|
@@ -449,11 +449,18 @@ export declare function verbatimOutputRows(m: BpmnModdle, rows: TypedOutputRow[]
|
|
|
449
449
|
* @param m - The moddle instance.
|
|
450
450
|
* @param type - The extension type, e.g. `BPMN.Variables` or `uipath:Activity`.
|
|
451
451
|
* @param rows - Output rows, emitted verbatim.
|
|
452
|
+
* @param carried - What the file carried beside the outputs: the tag and type version
|
|
453
|
+
* for a type the snapshot lacks, and the context, input schema and input rows of a
|
|
454
|
+
* payload that configures its element (a connector call on an end event), each
|
|
455
|
+
* emitted verbatim.
|
|
452
456
|
* @returns The payload element, ready to go inside a `bpmn:ExtensionElements`.
|
|
453
457
|
*/
|
|
454
458
|
export declare function createExtensionPayload(m: BpmnModdle, type: string, rows: TypedOutputRow[], carried?: {
|
|
455
459
|
tag?: string;
|
|
456
460
|
typeVersion?: string;
|
|
461
|
+
contextRows?: TypedContextRow[];
|
|
462
|
+
inputSchema?: unknown;
|
|
463
|
+
inputRows?: TypedInputRow[];
|
|
457
464
|
}): El;
|
|
458
465
|
/**
|
|
459
466
|
* The context fields this type requires to be a `=bindings.<id>` reference rather
|
package/dist/bpmn/typed-node.js
CHANGED
|
@@ -488,6 +488,40 @@ export function verbatimInputRows(m, rows) {
|
|
|
488
488
|
return m.create('uipath:Input', props);
|
|
489
489
|
});
|
|
490
490
|
}
|
|
491
|
+
/** `uipath:input` context rows exactly as the caller spelled them, deriving nothing. */
|
|
492
|
+
function verbatimContextRows(m, rows) {
|
|
493
|
+
return rows.map((row) => {
|
|
494
|
+
const props = { name: row.name, type: row.type ?? 'string' };
|
|
495
|
+
if (row.required)
|
|
496
|
+
props.required = 'true';
|
|
497
|
+
if (row.target !== undefined)
|
|
498
|
+
props.target = row.target;
|
|
499
|
+
if (row.value !== undefined)
|
|
500
|
+
props.value = row.value;
|
|
501
|
+
if (row.body !== undefined)
|
|
502
|
+
props.body = jsonBody(row.body);
|
|
503
|
+
return m.create('uipath:Input', props);
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* The `uipath:context` around `rows` and `inputSchema`, or `undefined` when there is
|
|
508
|
+
* neither. The schema is a sibling of the rows, and can be the only thing in it — a
|
|
509
|
+
* script task's context carries an inputSchema and no rows at all.
|
|
510
|
+
*/
|
|
511
|
+
function contextElement(m, rows, inputSchema) {
|
|
512
|
+
if (!rows.length && inputSchema === undefined)
|
|
513
|
+
return undefined;
|
|
514
|
+
const context = {};
|
|
515
|
+
if (rows.length)
|
|
516
|
+
context.input = rows;
|
|
517
|
+
if (inputSchema !== undefined) {
|
|
518
|
+
context.inputSchema = m.create('uipath:InputSchema', {
|
|
519
|
+
type: 'jsonSchema',
|
|
520
|
+
body: typeof inputSchema === 'string' ? inputSchema : JSON.stringify(inputSchema),
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
return m.create('uipath:Context', context);
|
|
524
|
+
}
|
|
491
525
|
/** The `uipath:output` row, when the type declares one. */
|
|
492
526
|
function outputRow(m, spec, varName) {
|
|
493
527
|
if (!spec.output)
|
|
@@ -536,33 +570,11 @@ varType) {
|
|
|
536
570
|
payload.skipCondition = input.skipCondition;
|
|
537
571
|
}
|
|
538
572
|
const ctx = input.contextRows
|
|
539
|
-
? input.contextRows
|
|
540
|
-
const props = { name: row.name, type: row.type ?? 'string' };
|
|
541
|
-
if (row.required)
|
|
542
|
-
props.required = 'true';
|
|
543
|
-
if (row.target !== undefined)
|
|
544
|
-
props.target = row.target;
|
|
545
|
-
if (row.value !== undefined)
|
|
546
|
-
props.value = row.value;
|
|
547
|
-
if (row.body !== undefined)
|
|
548
|
-
props.body = jsonBody(row.body);
|
|
549
|
-
return m.create('uipath:Input', props);
|
|
550
|
-
})
|
|
573
|
+
? verbatimContextRows(m, input.contextRows)
|
|
551
574
|
: contextRows(m, type, spec, input.context ?? {}, input.contextVerbatim);
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
const context = {};
|
|
556
|
-
if (ctx.length)
|
|
557
|
-
context.input = ctx;
|
|
558
|
-
if (input.inputSchema !== undefined) {
|
|
559
|
-
context.inputSchema = m.create('uipath:InputSchema', {
|
|
560
|
-
type: 'jsonSchema',
|
|
561
|
-
body: typeof input.inputSchema === 'string' ? input.inputSchema : JSON.stringify(input.inputSchema),
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
|
-
payload.context = m.create('uipath:Context', context);
|
|
565
|
-
}
|
|
575
|
+
const context = contextElement(m, ctx, input.inputSchema);
|
|
576
|
+
if (context)
|
|
577
|
+
payload.context = context;
|
|
566
578
|
// Spelled out by the caller: emit exactly these rows, deriving nothing — see
|
|
567
579
|
// TypedNodeInput.inputRows. This is what lets a connector's per-parameter rows
|
|
568
580
|
// (`name="start" type="string" value="0" target="query"`) survive a round trip.
|
|
@@ -653,6 +665,10 @@ export function verbatimOutputRows(m, rows) {
|
|
|
653
665
|
* @param m - The moddle instance.
|
|
654
666
|
* @param type - The extension type, e.g. `BPMN.Variables` or `uipath:Activity`.
|
|
655
667
|
* @param rows - Output rows, emitted verbatim.
|
|
668
|
+
* @param carried - What the file carried beside the outputs: the tag and type version
|
|
669
|
+
* for a type the snapshot lacks, and the context, input schema and input rows of a
|
|
670
|
+
* payload that configures its element (a connector call on an end event), each
|
|
671
|
+
* emitted verbatim.
|
|
656
672
|
* @returns The payload element, ready to go inside a `bpmn:ExtensionElements`.
|
|
657
673
|
*/
|
|
658
674
|
export function createExtensionPayload(m, type, rows, carried) {
|
|
@@ -661,6 +677,14 @@ export function createExtensionPayload(m, type, rows, carried) {
|
|
|
661
677
|
version: 'v1',
|
|
662
678
|
type: m.create('uipath:Type', { value: type, version: carried?.typeVersion ?? 'v1' }),
|
|
663
679
|
};
|
|
680
|
+
// The rows a decorated element carries beside its outputs, in the order a typed
|
|
681
|
+
// node writes them: context, then inputs, then outputs.
|
|
682
|
+
const context = contextElement(m, verbatimContextRows(m, carried?.contextRows ?? []), carried?.inputSchema);
|
|
683
|
+
if (context)
|
|
684
|
+
payload.context = context;
|
|
685
|
+
const ins = verbatimInputRows(m, carried?.inputRows ?? []);
|
|
686
|
+
if (ins.length)
|
|
687
|
+
payload.input = ins;
|
|
664
688
|
const out = verbatimOutputRows(m, rows);
|
|
665
689
|
if (out.length)
|
|
666
690
|
payload.output = out;
|
package/dist/bpmn-api.md
CHANGED
|
@@ -94,9 +94,9 @@ The set of node/flow/variable methods common to the process root and every sub-p
|
|
|
94
94
|
- `ScopeBuilder.race(id: string, arms: ArmBodyFn[], opts?: SplitOpts): this` — An event-based gateway whose arms are written in place: each arm begins with something to wait for, the first to happen…
|
|
95
95
|
- `ScopeBuilder.flowIds(entries: PinnedFlowId[]): this` — Give the edges the nesting constructs IMPLY the ids you choose.
|
|
96
96
|
- `ScopeBuilder.sequenceFlow(source: string, target: string, opts?: FlowOpts): this` — A sequence flow from `source` to `target` (1-1 with `bpmn:sequenceFlow`).
|
|
97
|
-
- `ScopeBuilder.var(id: string, type:
|
|
98
|
-
- `ScopeBuilder.input(id: string, type:
|
|
99
|
-
- `ScopeBuilder.output(id: string, type:
|
|
97
|
+
- `ScopeBuilder.var(id: string, type: BpmnVarType, opts?: VarOpts): this` — A mutable flow variable (`uipath:inputOutput`).
|
|
98
|
+
- `ScopeBuilder.input(id: string, type: BpmnVarType, opts?: VarOpts): this` — A read-only entry input (`uipath:input`).
|
|
99
|
+
- `ScopeBuilder.output(id: string, type: BpmnVarType, opts?: VarOpts): this` — A return value (`uipath:output`).
|
|
100
100
|
- `ScopeBuilder.vars(entries: VarEntry[]): this` — Several declarations as one call — the array form of `.var()` / `.input()` / `.output()`.
|
|
101
101
|
|
|
102
102
|
### `SubProcessBuilder`
|
|
@@ -621,7 +621,7 @@ A declared variable in the built graph (`uipath:input` / `uipath:inputOutput` /
|
|
|
621
621
|
|
|
622
622
|
- `BpmnVarDecl.id: string` — The variable's id — what expressions read as `vars.<id>`.
|
|
623
623
|
- `BpmnVarDecl.name: string` — Display name; `.var()`/`.input()`/`.output()` default it to the id.
|
|
624
|
-
- `BpmnVarDecl.type:
|
|
624
|
+
- `BpmnVarDecl.type: BpmnVarType` — The variable's type — a `types.*` descriptor or another product spelling; see BpmnVarType.
|
|
625
625
|
- `BpmnVarDecl.direction: VarDirection` — How the variable crosses the process boundary — see VarDirection.
|
|
626
626
|
- `BpmnVarDecl.default?: unknown` — Optional initial value.
|
|
627
627
|
- `BpmnVarDecl.elementId?: string | null` — The element the declaration belongs to — see VarOpts.elementId.
|
|
@@ -781,9 +781,11 @@ One implied edge whose id is pinned — see ScopeBuilder.flowIds.
|
|
|
781
781
|
- `PinnedFlowId.target: string` — The element it flows into.
|
|
782
782
|
- `PinnedFlowId.id: string` — The id to give it instead of the derived `Flow_<source>_<target>`.
|
|
783
783
|
|
|
784
|
-
### `
|
|
784
|
+
### `BpmnVarType`
|
|
785
785
|
|
|
786
|
-
|
|
786
|
+
A BPMN variable's `type` — the core TypeDesc spellings, plus the ones the product writes that are not core types.
|
|
787
|
+
|
|
788
|
+
- `` type BpmnVarType = TypeDesc | 'null' | 'custom' | `${'A2A' | 'Actions' | 'Maestro' | 'Orchestrator'}.${string}` | `Collection{${string}}` ``
|
|
787
789
|
|
|
788
790
|
### `VarEntry`
|
|
789
791
|
|
|
@@ -792,7 +794,7 @@ One entry of ScopeBuilder.vars — a `.var()` / `.input()` / `.output()` call wr
|
|
|
792
794
|
Extends `VarOpts` — its fields and methods apply here too.
|
|
793
795
|
|
|
794
796
|
- `VarEntry.id: string` — The variable's id — what expressions read as `vars.<id>`.
|
|
795
|
-
- `VarEntry.type:
|
|
797
|
+
- `VarEntry.type: BpmnVarType` — A `types.*` descriptor, or another product spelling — see BpmnVarType.
|
|
796
798
|
- `VarEntry.direction?: VarDirection` — Which declaration this is.
|
|
797
799
|
|
|
798
800
|
### `MessageDecl`
|
|
@@ -836,6 +838,9 @@ An extension payload carried by an element the payload does not describe.
|
|
|
836
838
|
- `ExtensionPayload.outputRows: TypedOutputRow[]` — `uipath:output` rows, emitted exactly as given — see TypedOutputRow.
|
|
837
839
|
- `ExtensionPayload.tag?: 'uipath:activity' | 'uipath:event' | 'uipath:mapping'` — The payload's own tag — `'uipath:activity'`, `'uipath:event'` or `'uipath:mapping'` — for a `type` the registry snapshot…
|
|
838
840
|
- `ExtensionPayload.typeVersion?: string` — The `uipath:type` `version` attribute, when it is not `v1` — see `ActivityNodeOpts.typeVersion`.
|
|
841
|
+
- `ExtensionPayload.contextRows?: TypedContextRow[]` — The `uipath:context` rows, emitted verbatim — see TypedContextRow.
|
|
842
|
+
- `ExtensionPayload.inputSchema?: unknown` — The `uipath:inputSchema` body inside `uipath:context` — see `ActivityNodeOpts.inputSchema`.
|
|
843
|
+
- `ExtensionPayload.inputRows?: TypedInputRow[]` — The payload's own `uipath:input` rows, emitted verbatim — see TypedInputRow.
|
|
839
844
|
|
|
840
845
|
### `GatewayKind`
|
|
841
846
|
|
|
@@ -983,6 +988,10 @@ The entity a `.dataService()` addresses: a tenant-level entity by name; a folder
|
|
|
983
988
|
|
|
984
989
|
- `type DataServiceEntity = string | EntityRef | DataServiceFolderEntity`
|
|
985
990
|
|
|
991
|
+
### `TypeDesc`
|
|
992
|
+
|
|
993
|
+
- `type TypeDesc = (typeof types)[keyof typeof types]`
|
|
994
|
+
|
|
986
995
|
### `RetrySpec`
|
|
987
996
|
|
|
988
997
|
Retry an activity that fails (`uipath:retry`).
|
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export type { CaseRule, CaseRuleInput, CaseRuleGrid, WhenExpression, CaseJsonPre
|
|
|
25
25
|
export { serialize as serializeCase } from './case/serialize.js';
|
|
26
26
|
export { decompile as decompileCase, decompileWithDiagnostics as decompileCaseWithDiagnostics } from './case/decompile.js';
|
|
27
27
|
export { bpmn } from './bpmn/bpmn-sdk.js';
|
|
28
|
-
export type { BuiltBpmn, BpmnNode, BpmnFlow, BpmnVarDecl, EventDef, GatewayKind, EventKind, LoopSpec, RetrySpec, ActivityOpts, HttpOpts, ActivityBodyFn, ArmBodyFn, HandlerOpts, ErrorHandlerOpts, TimerHandlerOpts, MessageHandlerOpts, ChooseArm, ChooseOpts, SplitOpts, JoinOpts, EventSubProcessOpts, FlowMode, } from './bpmn/bpmn-sdk.js';
|
|
28
|
+
export type { BuiltBpmn, BpmnNode, BpmnFlow, BpmnVarDecl, BpmnVarType, EventDef, GatewayKind, EventKind, LoopSpec, RetrySpec, ActivityOpts, HttpOpts, ActivityBodyFn, ArmBodyFn, HandlerOpts, ErrorHandlerOpts, TimerHandlerOpts, MessageHandlerOpts, ChooseArm, ChooseOpts, SplitOpts, JoinOpts, EventSubProcessOpts, FlowMode, } from './bpmn/bpmn-sdk.js';
|
|
29
29
|
export { PathBuilder, ActivityBuilder } from './bpmn/bpmn-sdk.js';
|
|
30
30
|
export { renderGraph as renderBpmnGraph, graphModel as bpmnGraphModel } from './bpmn/graph.js';
|
|
31
31
|
export type { GraphScope as BpmnGraphScope, GraphNode as BpmnGraphNode, GraphEdge as BpmnGraphEdge } from './bpmn/graph.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.97.
|
|
3
|
+
"version": "6.97.2",
|
|
4
4
|
"description": "Build UiPath Flow, Case, and BPMN artifacts by writing TypeScript.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://docs.uipath.com/maestro",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"@types/node": "^22.7.0",
|
|
115
115
|
"esbuild": "^0.28.1"
|
|
116
116
|
},
|
|
117
|
-
"gitref": "
|
|
117
|
+
"gitref": "9ad73714ac7ceb1c2b19bf4053ddd91cc122a5ed"
|
|
118
118
|
}
|