@uipath/maestro-sdk 1.207.0-preview.360 → 1.207.0-preview.362
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/THIRD-PARTY-NOTICES.md +3 -3
- package/dist/bpmn-packaging/index.js +7 -1
- package/dist/bpmn-validation/project-validator.js +84 -2
- package/dist/connector-spec/index.js +806 -718
- package/dist/index.js +893 -723
- package/dist/manifest/bpmn-spec.js +2 -1
- package/dist/registry/command.js +808 -720
- package/package.json +2 -2
|
@@ -27,7 +27,7 @@ those licences require.
|
|
|
27
27
|
- define-lazy-prop@3.0.0 — MIT
|
|
28
28
|
- fast-deep-equal@3.1.3 — MIT
|
|
29
29
|
- fast-uri@3.1.9 — BSD-3-Clause
|
|
30
|
-
- i18next@
|
|
30
|
+
- i18next@26.7.2 — MIT
|
|
31
31
|
- is-docker@3.0.0 — MIT
|
|
32
32
|
- is-in-ssh@1.0.0 — MIT
|
|
33
33
|
- is-inside-container@1.0.0 — MIT
|
|
@@ -734,14 +734,14 @@ The complete list of contributors can be found at:
|
|
|
734
734
|
|
|
735
735
|
---
|
|
736
736
|
|
|
737
|
-
## i18next@
|
|
737
|
+
## i18next@26.7.2
|
|
738
738
|
|
|
739
739
|
SPDX: MIT
|
|
740
740
|
|
|
741
741
|
```
|
|
742
742
|
The MIT License (MIT)
|
|
743
743
|
|
|
744
|
-
Copyright (c)
|
|
744
|
+
Copyright (c) 2011-present i18next
|
|
745
745
|
|
|
746
746
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
747
747
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -6130,6 +6130,7 @@ var bpmn_spec_default = {
|
|
|
6130
6130
|
<bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
|
|
6131
6131
|
</bpmn:userTask>`,
|
|
6132
6132
|
discoveryNotes: "Uses getSupportedHumanTasks(search, systemName) to list available action app tasks. A quick-form task (hitlType=quick, no app) takes no name or folderPath; write it as Studio Web does or with builder-sdk humanTask({ form }).",
|
|
6133
|
+
outputNotes: `The xmlTemplate's "Process response" output is the app task's. A quick form (hitlType=quick) never fills it: write one output per form output field instead, <uipath:output name="<fieldId>" type="<type>" source="=<fieldId>" var="<elementId>_<fieldId>" />, where source names the field id in __hitlFormSchema exactly (case-sensitive), plus <uipath:output name="Action" type="string" source="=Action" var="<elementId>_Action" /> for the outcome. Declare each var as a <uipath:inputOutput> with the task's elementId and read it as =vars.<var>. hitlSchemaId, and the id inside __hitlFormSchema, must be a GUID.`,
|
|
6133
6134
|
bindingInfo: {
|
|
6134
6135
|
resource: "app",
|
|
6135
6136
|
resourceKeyPattern: "${metadata.key}",
|
|
@@ -10987,6 +10988,11 @@ var SCRIPT_TASK_INPUT_CONTRACT = {
|
|
|
10987
10988
|
var CALL_ACTIVITY_TYPES = Object.entries(BPMN_SPEC.extensionTypes).filter(([, contract]) => contract.bpmnElement === "bpmn:CallActivity").map(([type]) => type).sort((a, b) => a.localeCompare(b));
|
|
10988
10989
|
var CALL_ACTIVITY_PAYLOAD_TAGS = new Set(Object.values(BPMN_SPEC.extensionTypes).filter((contract) => contract.bpmnElement === "bpmn:CallActivity").map((contract) => contract.extensionTag).filter((tag) => typeof tag === "string"));
|
|
10989
10990
|
var ACTIVITY_CONFIGURATION_V1 = "v1";
|
|
10991
|
+
var HITL_LITERAL_KEYWORDS = new Set([
|
|
10992
|
+
"true",
|
|
10993
|
+
"false",
|
|
10994
|
+
"null"
|
|
10995
|
+
]);
|
|
10990
10996
|
var VERSIONED_CONNECTOR_TYPES = new Set([
|
|
10991
10997
|
"Intsvc.ActivityExecution",
|
|
10992
10998
|
"Intsvc.EventTrigger",
|
|
@@ -17610,4 +17616,4 @@ export {
|
|
|
17610
17616
|
required
|
|
17611
17617
|
};
|
|
17612
17618
|
|
|
17613
|
-
//# debugId=
|
|
17619
|
+
//# debugId=16066166BE55624864756E2164756E21
|
|
@@ -6573,6 +6573,7 @@ var bpmn_spec_default = {
|
|
|
6573
6573
|
<bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
|
|
6574
6574
|
</bpmn:userTask>`,
|
|
6575
6575
|
discoveryNotes: "Uses getSupportedHumanTasks(search, systemName) to list available action app tasks. A quick-form task (hitlType=quick, no app) takes no name or folderPath; write it as Studio Web does or with builder-sdk humanTask({ form }).",
|
|
6576
|
+
outputNotes: `The xmlTemplate's "Process response" output is the app task's. A quick form (hitlType=quick) never fills it: write one output per form output field instead, <uipath:output name="<fieldId>" type="<type>" source="=<fieldId>" var="<elementId>_<fieldId>" />, where source names the field id in __hitlFormSchema exactly (case-sensitive), plus <uipath:output name="Action" type="string" source="=Action" var="<elementId>_Action" /> for the outcome. Declare each var as a <uipath:inputOutput> with the task's elementId and read it as =vars.<var>. hitlSchemaId, and the id inside __hitlFormSchema, must be a GUID.`,
|
|
6576
6577
|
bindingInfo: {
|
|
6577
6578
|
resource: "app",
|
|
6578
6579
|
resourceKeyPattern: "${metadata.key}",
|
|
@@ -11672,6 +11673,81 @@ function isQuickFormHitl(extensionType, payload) {
|
|
|
11672
11673
|
}
|
|
11673
11674
|
return hasSchemaInput;
|
|
11674
11675
|
}
|
|
11676
|
+
var HITL_SCHEMA_ID_INPUT = "hitlSchemaId";
|
|
11677
|
+
var HITL_FORM_SCHEMA_INPUT = "__hitlFormSchema";
|
|
11678
|
+
var HITL_ACTION_OUTPUT = "Action";
|
|
11679
|
+
var MULTI_INSTANCE_RESPONSE_OUTPUT = "response";
|
|
11680
|
+
var HITL_FIELD_REFERENCE = /^=([A-Za-z_$][A-Za-z0-9_$]*)$/;
|
|
11681
|
+
var HITL_LITERAL_KEYWORDS = new Set([
|
|
11682
|
+
"true",
|
|
11683
|
+
"false",
|
|
11684
|
+
"null"
|
|
11685
|
+
]);
|
|
11686
|
+
function validateQuickFormHitl(file, payload, owner, diagnostics) {
|
|
11687
|
+
const contextInputs = getContextInputs(payload);
|
|
11688
|
+
const schemaId = contextInputs.find((input) => input.attributes.name === HITL_SCHEMA_ID_INPUT)?.attributes.value;
|
|
11689
|
+
if (schemaId !== undefined && !schemaId.trimStart().startsWith("=") && !parsesAsRuntimeGuid(schemaId)) {
|
|
11690
|
+
diagnostics.push({
|
|
11691
|
+
file,
|
|
11692
|
+
element: describeElement(owner),
|
|
11693
|
+
message: `Actions.HITL quick-form hitlSchemaId "${schemaId}" is not a GUID. The runtime rejects the task with "Invalid input for the HITL task".`,
|
|
11694
|
+
instruction: "Set hitlSchemaId to a GUID, and use the same GUID as the id inside __hitlFormSchema when the task carries one."
|
|
11695
|
+
});
|
|
11696
|
+
}
|
|
11697
|
+
const formSchemaInput = contextInputs.find((input) => input.attributes.name === HITL_FORM_SCHEMA_INPUT);
|
|
11698
|
+
const outputFieldIds = formSchemaInput ? readQuickFormOutputFieldIds(formSchemaInput.text.trim()) : undefined;
|
|
11699
|
+
const elementId = owner.attributes.id ?? "<elementId>";
|
|
11700
|
+
const reservedSources = isMultiInstanceTask(owner) ? [HITL_ACTION_OUTPUT, MULTI_INSTANCE_RESPONSE_OUTPUT] : [HITL_ACTION_OUTPUT];
|
|
11701
|
+
for (const output of childElements(payload, "uipath:output")) {
|
|
11702
|
+
const name = output.attributes.name ?? "";
|
|
11703
|
+
const source = output.text.trim() || output.attributes.source;
|
|
11704
|
+
if (!source) {
|
|
11705
|
+
diagnostics.push({
|
|
11706
|
+
file,
|
|
11707
|
+
element: describeElement(output),
|
|
11708
|
+
message: `Actions.HITL quick-form output "${name}" has no source, so the runtime never fills var "${output.attributes.var ?? ""}" and every read of it is null.`,
|
|
11709
|
+
instruction: `Write one output per form output field, as Studio Web does: <uipath:output name="<fieldId>" type="<type>" source="=<fieldId>" var="${elementId}_<fieldId>" />, plus <uipath:output name="Action" type="string" source="=Action" var="${elementId}_Action" /> for the outcome. Declare each var as a uipath:inputOutput with elementId="${elementId}". "Process response" is the app-task output and is not filled for a quick form.`
|
|
11710
|
+
});
|
|
11711
|
+
continue;
|
|
11712
|
+
}
|
|
11713
|
+
const fieldId = HITL_FIELD_REFERENCE.exec(source)?.[1];
|
|
11714
|
+
if (outputFieldIds && fieldId !== undefined && !reservedSources.includes(fieldId) && !HITL_LITERAL_KEYWORDS.has(fieldId) && !outputFieldIds.includes(fieldId)) {
|
|
11715
|
+
const known = [...outputFieldIds, HITL_ACTION_OUTPUT].join(", ");
|
|
11716
|
+
diagnostics.push({
|
|
11717
|
+
file,
|
|
11718
|
+
element: describeElement(output),
|
|
11719
|
+
message: `Actions.HITL quick-form output source "${source}" names no output field of the form, so var "${output.attributes.var ?? ""}" is never filled. Field ids are case-sensitive; the form has: ${known}.`,
|
|
11720
|
+
instruction: "Set source to =<fieldId> using the id of an output field in __hitlFormSchema, or =Action for the outcome."
|
|
11721
|
+
});
|
|
11722
|
+
}
|
|
11723
|
+
}
|
|
11724
|
+
}
|
|
11725
|
+
var UNDASHED_GUID_REGEX = /^[0-9a-f]{32}$/i;
|
|
11726
|
+
function parsesAsRuntimeGuid(value) {
|
|
11727
|
+
let text = value.trim();
|
|
11728
|
+
const first = text[0];
|
|
11729
|
+
const last = text[text.length - 1];
|
|
11730
|
+
if (first === "{" && last === "}" || first === "(" && last === ")") {
|
|
11731
|
+
text = text.slice(1, -1);
|
|
11732
|
+
return isGuid(text);
|
|
11733
|
+
}
|
|
11734
|
+
return isGuid(text) || UNDASHED_GUID_REGEX.test(text);
|
|
11735
|
+
}
|
|
11736
|
+
function readQuickFormOutputFieldIds(text) {
|
|
11737
|
+
const schema = parseJsonObject(text);
|
|
11738
|
+
if (!schema || !Array.isArray(schema.fields))
|
|
11739
|
+
return;
|
|
11740
|
+
const ids = [];
|
|
11741
|
+
for (const field of schema.fields) {
|
|
11742
|
+
if (!field || typeof field !== "object")
|
|
11743
|
+
continue;
|
|
11744
|
+
const { id, direction } = field;
|
|
11745
|
+
if (typeof id === "string" && (direction === "output" || direction === "inOut")) {
|
|
11746
|
+
ids.push(id);
|
|
11747
|
+
}
|
|
11748
|
+
}
|
|
11749
|
+
return ids;
|
|
11750
|
+
}
|
|
11675
11751
|
function v2BuildInstruction(extensionType) {
|
|
11676
11752
|
return `Build it with 'uip maestro bpmn registry get ${extensionType} --connection-id <id> --object-name <object> --input-details <json>' and paste Data.V2.`;
|
|
11677
11753
|
}
|
|
@@ -12331,6 +12407,9 @@ class BpmnValidateService {
|
|
|
12331
12407
|
if (boundRule && !isQuickFormHitl(contract.extensionType, payload)) {
|
|
12332
12408
|
this.validateBoundResource(file, payload, owner, contract.extensionType, boundRule, typeNode?.attributes.version, bindings, diagnostics);
|
|
12333
12409
|
}
|
|
12410
|
+
if (isQuickFormHitl(contract.extensionType, payload)) {
|
|
12411
|
+
validateQuickFormHitl(file, payload, owner, diagnostics);
|
|
12412
|
+
}
|
|
12334
12413
|
if (contract.extensionType === "Intsvc.EventTrigger" || contract.extensionType === "Intsvc.WaitForEvent") {
|
|
12335
12414
|
this.validateTriggerConnectionBinding(file, payload, owner, bindings, contract.extensionType, diagnostics);
|
|
12336
12415
|
}
|
|
@@ -13465,7 +13544,10 @@ var COLLAPSED_MULTI_INSTANCE_OUTPUT_CONTRACTS = new Set([
|
|
|
13465
13544
|
"Queue.WaitForEvent"
|
|
13466
13545
|
]);
|
|
13467
13546
|
function savesCollapsedMultiInstanceOutputs(owner, contract) {
|
|
13468
|
-
return COLLAPSED_MULTI_INSTANCE_OUTPUT_CONTRACTS.has(contract.extensionType) &&
|
|
13547
|
+
return COLLAPSED_MULTI_INSTANCE_OUTPUT_CONTRACTS.has(contract.extensionType) && isMultiInstanceTask(owner);
|
|
13548
|
+
}
|
|
13549
|
+
function isMultiInstanceTask(owner) {
|
|
13550
|
+
return !hasLocalName(owner, "subProcess") && owner.children.some((child) => hasLocalName(child, "multiInstanceLoopCharacteristics") && resolveNamespace(child) === BPMN_MODEL_NAMESPACE);
|
|
13469
13551
|
}
|
|
13470
13552
|
function collapsedMultiInstanceOutputs(contract) {
|
|
13471
13553
|
const error = declaredOutputs(contract).find((output) => output.name === "Error" && output.source === "=Error");
|
|
@@ -13783,4 +13865,4 @@ export {
|
|
|
13783
13865
|
isIntsvcActivityExecutionV1
|
|
13784
13866
|
};
|
|
13785
13867
|
|
|
13786
|
-
//# debugId=
|
|
13868
|
+
//# debugId=004E5F5C43C91DFF64756E2164756E21
|