@uipath/maestro-sdk 1.207.0-preview.361 → 1.207.0-preview.363
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/bpmn-packaging/index.js +7 -1
- package/dist/bpmn-validation/project-validator.js +84 -2
- package/dist/connector-spec/index.js +9 -2
- package/dist/debug-http-client.js +8 -1
- package/dist/debug-service.js +8 -2
- package/dist/index.js +92 -4
- package/dist/json-input.js +8 -1
- package/dist/manifest/bpmn-spec.js +2 -1
- package/dist/registry/command.js +9 -2
- package/dist/registry/snapshot.js +8 -1
- package/dist/shared-commands/index.js +8 -2
- package/dist/shared-utils.js +8 -1
- package/dist/studio-catalog.js +8 -1
- package/dist/with-pims-call.js +8 -1
- package/package.json +2 -2
|
@@ -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
|
|
@@ -1121,7 +1121,7 @@ var init_package = __esm(() => {
|
|
|
1121
1121
|
name: "@uipath/integrationservice-sdk",
|
|
1122
1122
|
author: "UiPath",
|
|
1123
1123
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
1124
|
-
version: "1.207.0-preview.
|
|
1124
|
+
version: "1.207.0-preview.363",
|
|
1125
1125
|
repository: {
|
|
1126
1126
|
type: "git",
|
|
1127
1127
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -22957,6 +22957,12 @@ var init_named_second = __esm(() => {
|
|
|
22957
22957
|
init_output_context();
|
|
22958
22958
|
});
|
|
22959
22959
|
|
|
22960
|
+
// ../common/src/no-personal-robot.ts
|
|
22961
|
+
var NO_PERSONAL_ROBOT_ERROR_CODE = "1230";
|
|
22962
|
+
var init_no_personal_robot = __esm(() => {
|
|
22963
|
+
init_result_types();
|
|
22964
|
+
});
|
|
22965
|
+
|
|
22960
22966
|
// ../common/src/option-aliases.ts
|
|
22961
22967
|
function warnDeprecatedOptionAlias(deprecatedFlag, preferredFlag) {
|
|
22962
22968
|
getOutputSink().writeErr(`[WARN] ${deprecatedFlag} is deprecated. Use ${preferredFlag} instead.
|
|
@@ -23227,6 +23233,7 @@ var init_src4 = __esm(() => {
|
|
|
23227
23233
|
init_logger();
|
|
23228
23234
|
init_mime_types();
|
|
23229
23235
|
init_named_second();
|
|
23236
|
+
init_no_personal_robot();
|
|
23230
23237
|
init_option_aliases();
|
|
23231
23238
|
init_option_groups();
|
|
23232
23239
|
init_option_validators();
|
|
@@ -265605,4 +265612,4 @@ export {
|
|
|
265605
265612
|
studioCatalogTypeCache
|
|
265606
265613
|
};
|
|
265607
265614
|
|
|
265608
|
-
//# debugId=
|
|
265615
|
+
//# debugId=26F550CD30214AF364756E2164756E21
|
|
@@ -12727,6 +12727,12 @@ var init_named_second = __esm(() => {
|
|
|
12727
12727
|
init_output_context();
|
|
12728
12728
|
});
|
|
12729
12729
|
|
|
12730
|
+
// ../common/src/no-personal-robot.ts
|
|
12731
|
+
var NO_PERSONAL_ROBOT_ERROR_CODE = "1230";
|
|
12732
|
+
var init_no_personal_robot = __esm(() => {
|
|
12733
|
+
init_result_types();
|
|
12734
|
+
});
|
|
12735
|
+
|
|
12730
12736
|
// ../common/src/option-aliases.ts
|
|
12731
12737
|
function warnDeprecatedOptionAlias(deprecatedFlag, preferredFlag) {
|
|
12732
12738
|
getOutputSink().writeErr(`[WARN] ${deprecatedFlag} is deprecated. Use ${preferredFlag} instead.
|
|
@@ -13078,6 +13084,7 @@ var init_src2 = __esm(() => {
|
|
|
13078
13084
|
init_logger();
|
|
13079
13085
|
init_mime_types();
|
|
13080
13086
|
init_named_second();
|
|
13087
|
+
init_no_personal_robot();
|
|
13081
13088
|
init_option_aliases();
|
|
13082
13089
|
init_option_groups();
|
|
13083
13090
|
init_option_validators();
|
|
@@ -13454,4 +13461,4 @@ export {
|
|
|
13454
13461
|
studioWebPost
|
|
13455
13462
|
};
|
|
13456
13463
|
|
|
13457
|
-
//# debugId=
|
|
13464
|
+
//# debugId=764AEDE3781F4B6764756E2164756E21
|
package/dist/debug-service.js
CHANGED
|
@@ -12727,6 +12727,12 @@ var init_named_second = __esm(() => {
|
|
|
12727
12727
|
init_output_context();
|
|
12728
12728
|
});
|
|
12729
12729
|
|
|
12730
|
+
// ../common/src/no-personal-robot.ts
|
|
12731
|
+
var NO_PERSONAL_ROBOT_ERROR_CODE = "1230";
|
|
12732
|
+
var init_no_personal_robot = __esm(() => {
|
|
12733
|
+
init_result_types();
|
|
12734
|
+
});
|
|
12735
|
+
|
|
12730
12736
|
// ../common/src/option-aliases.ts
|
|
12731
12737
|
function warnDeprecatedOptionAlias(deprecatedFlag, preferredFlag) {
|
|
12732
12738
|
getOutputSink().writeErr(`[WARN] ${deprecatedFlag} is deprecated. Use ${preferredFlag} instead.
|
|
@@ -13078,6 +13084,7 @@ var init_src2 = __esm(() => {
|
|
|
13078
13084
|
init_logger();
|
|
13079
13085
|
init_mime_types();
|
|
13080
13086
|
init_named_second();
|
|
13087
|
+
init_no_personal_robot();
|
|
13081
13088
|
init_option_aliases();
|
|
13082
13089
|
init_option_groups();
|
|
13083
13090
|
init_option_validators();
|
|
@@ -13822,7 +13829,6 @@ async function personalFolderById(config, folderId, notFound) {
|
|
|
13822
13829
|
return personal;
|
|
13823
13830
|
}
|
|
13824
13831
|
var NO_PERSONAL_ROBOT_STATUS = 409;
|
|
13825
|
-
var NO_PERSONAL_ROBOT_ERROR_CODE = "1230";
|
|
13826
13832
|
var BEGIN_SESSION_RETRY_DELAYS_MS = [2000, 5000];
|
|
13827
13833
|
var isNoPersonalRobot = (error) => error instanceof MaestroHttpError && error.httpStatus === NO_PERSONAL_ROBOT_STATUS && error.parsedErrorCode === NO_PERSONAL_ROBOT_ERROR_CODE;
|
|
13828
13834
|
async function postBeginSession(config, body) {
|
|
@@ -14459,4 +14465,4 @@ export {
|
|
|
14459
14465
|
uploadAndDebugSolution
|
|
14460
14466
|
};
|
|
14461
14467
|
|
|
14462
|
-
//# debugId=
|
|
14468
|
+
//# debugId=0F94871705D5E98764756E2164756E21
|
package/dist/index.js
CHANGED
|
@@ -12891,6 +12891,12 @@ var init_named_second = __esm(() => {
|
|
|
12891
12891
|
init_output_context();
|
|
12892
12892
|
});
|
|
12893
12893
|
|
|
12894
|
+
// ../common/src/no-personal-robot.ts
|
|
12895
|
+
var NO_PERSONAL_ROBOT_ERROR_CODE = "1230";
|
|
12896
|
+
var init_no_personal_robot = __esm(() => {
|
|
12897
|
+
init_result_types();
|
|
12898
|
+
});
|
|
12899
|
+
|
|
12894
12900
|
// ../common/src/option-aliases.ts
|
|
12895
12901
|
function warnDeprecatedOptionAlias(deprecatedFlag, preferredFlag) {
|
|
12896
12902
|
getOutputSink().writeErr(`[WARN] ${deprecatedFlag} is deprecated. Use ${preferredFlag} instead.
|
|
@@ -13242,6 +13248,7 @@ var init_src2 = __esm(() => {
|
|
|
13242
13248
|
init_logger();
|
|
13243
13249
|
init_mime_types();
|
|
13244
13250
|
init_named_second();
|
|
13251
|
+
init_no_personal_robot();
|
|
13245
13252
|
init_option_aliases();
|
|
13246
13253
|
init_option_groups();
|
|
13247
13254
|
init_option_validators();
|
|
@@ -145065,7 +145072,7 @@ var init_package = __esm(() => {
|
|
|
145065
145072
|
name: "@uipath/integrationservice-sdk",
|
|
145066
145073
|
author: "UiPath",
|
|
145067
145074
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
145068
|
-
version: "1.207.0-preview.
|
|
145075
|
+
version: "1.207.0-preview.363",
|
|
145069
145076
|
repository: {
|
|
145070
145077
|
type: "git",
|
|
145071
145078
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -276718,6 +276725,7 @@ var bpmn_spec_default = {
|
|
|
276718
276725
|
<bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
|
|
276719
276726
|
</bpmn:userTask>`,
|
|
276720
276727
|
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 }).",
|
|
276728
|
+
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.`,
|
|
276721
276729
|
bindingInfo: {
|
|
276722
276730
|
resource: "app",
|
|
276723
276731
|
resourceKeyPattern: "${metadata.key}",
|
|
@@ -281817,6 +281825,81 @@ function isQuickFormHitl(extensionType, payload) {
|
|
|
281817
281825
|
}
|
|
281818
281826
|
return hasSchemaInput;
|
|
281819
281827
|
}
|
|
281828
|
+
var HITL_SCHEMA_ID_INPUT = "hitlSchemaId";
|
|
281829
|
+
var HITL_FORM_SCHEMA_INPUT = "__hitlFormSchema";
|
|
281830
|
+
var HITL_ACTION_OUTPUT = "Action";
|
|
281831
|
+
var MULTI_INSTANCE_RESPONSE_OUTPUT = "response";
|
|
281832
|
+
var HITL_FIELD_REFERENCE = /^=([A-Za-z_$][A-Za-z0-9_$]*)$/;
|
|
281833
|
+
var HITL_LITERAL_KEYWORDS = new Set([
|
|
281834
|
+
"true",
|
|
281835
|
+
"false",
|
|
281836
|
+
"null"
|
|
281837
|
+
]);
|
|
281838
|
+
function validateQuickFormHitl(file, payload, owner, diagnostics) {
|
|
281839
|
+
const contextInputs = getContextInputs(payload);
|
|
281840
|
+
const schemaId = contextInputs.find((input) => input.attributes.name === HITL_SCHEMA_ID_INPUT)?.attributes.value;
|
|
281841
|
+
if (schemaId !== undefined && !schemaId.trimStart().startsWith("=") && !parsesAsRuntimeGuid(schemaId)) {
|
|
281842
|
+
diagnostics.push({
|
|
281843
|
+
file,
|
|
281844
|
+
element: describeElement(owner),
|
|
281845
|
+
message: `Actions.HITL quick-form hitlSchemaId "${schemaId}" is not a GUID. The runtime rejects the task with "Invalid input for the HITL task".`,
|
|
281846
|
+
instruction: "Set hitlSchemaId to a GUID, and use the same GUID as the id inside __hitlFormSchema when the task carries one."
|
|
281847
|
+
});
|
|
281848
|
+
}
|
|
281849
|
+
const formSchemaInput = contextInputs.find((input) => input.attributes.name === HITL_FORM_SCHEMA_INPUT);
|
|
281850
|
+
const outputFieldIds = formSchemaInput ? readQuickFormOutputFieldIds(formSchemaInput.text.trim()) : undefined;
|
|
281851
|
+
const elementId = owner.attributes.id ?? "<elementId>";
|
|
281852
|
+
const reservedSources = isMultiInstanceTask(owner) ? [HITL_ACTION_OUTPUT, MULTI_INSTANCE_RESPONSE_OUTPUT] : [HITL_ACTION_OUTPUT];
|
|
281853
|
+
for (const output of childElements(payload, "uipath:output")) {
|
|
281854
|
+
const name = output.attributes.name ?? "";
|
|
281855
|
+
const source = output.text.trim() || output.attributes.source;
|
|
281856
|
+
if (!source) {
|
|
281857
|
+
diagnostics.push({
|
|
281858
|
+
file,
|
|
281859
|
+
element: describeElement(output),
|
|
281860
|
+
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.`,
|
|
281861
|
+
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.`
|
|
281862
|
+
});
|
|
281863
|
+
continue;
|
|
281864
|
+
}
|
|
281865
|
+
const fieldId = HITL_FIELD_REFERENCE.exec(source)?.[1];
|
|
281866
|
+
if (outputFieldIds && fieldId !== undefined && !reservedSources.includes(fieldId) && !HITL_LITERAL_KEYWORDS.has(fieldId) && !outputFieldIds.includes(fieldId)) {
|
|
281867
|
+
const known = [...outputFieldIds, HITL_ACTION_OUTPUT].join(", ");
|
|
281868
|
+
diagnostics.push({
|
|
281869
|
+
file,
|
|
281870
|
+
element: describeElement(output),
|
|
281871
|
+
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}.`,
|
|
281872
|
+
instruction: "Set source to =<fieldId> using the id of an output field in __hitlFormSchema, or =Action for the outcome."
|
|
281873
|
+
});
|
|
281874
|
+
}
|
|
281875
|
+
}
|
|
281876
|
+
}
|
|
281877
|
+
var UNDASHED_GUID_REGEX = /^[0-9a-f]{32}$/i;
|
|
281878
|
+
function parsesAsRuntimeGuid(value) {
|
|
281879
|
+
let text = value.trim();
|
|
281880
|
+
const first = text[0];
|
|
281881
|
+
const last = text[text.length - 1];
|
|
281882
|
+
if (first === "{" && last === "}" || first === "(" && last === ")") {
|
|
281883
|
+
text = text.slice(1, -1);
|
|
281884
|
+
return isGuid(text);
|
|
281885
|
+
}
|
|
281886
|
+
return isGuid(text) || UNDASHED_GUID_REGEX.test(text);
|
|
281887
|
+
}
|
|
281888
|
+
function readQuickFormOutputFieldIds(text) {
|
|
281889
|
+
const schema = parseJsonObject(text);
|
|
281890
|
+
if (!schema || !Array.isArray(schema.fields))
|
|
281891
|
+
return;
|
|
281892
|
+
const ids = [];
|
|
281893
|
+
for (const field of schema.fields) {
|
|
281894
|
+
if (!field || typeof field !== "object")
|
|
281895
|
+
continue;
|
|
281896
|
+
const { id, direction } = field;
|
|
281897
|
+
if (typeof id === "string" && (direction === "output" || direction === "inOut")) {
|
|
281898
|
+
ids.push(id);
|
|
281899
|
+
}
|
|
281900
|
+
}
|
|
281901
|
+
return ids;
|
|
281902
|
+
}
|
|
281820
281903
|
function v2BuildInstruction(extensionType) {
|
|
281821
281904
|
return `Build it with 'uip maestro bpmn registry get ${extensionType} --connection-id <id> --object-name <object> --input-details <json>' and paste Data.V2.`;
|
|
281822
281905
|
}
|
|
@@ -282476,6 +282559,9 @@ class BpmnValidateService {
|
|
|
282476
282559
|
if (boundRule && !isQuickFormHitl(contract.extensionType, payload)) {
|
|
282477
282560
|
this.validateBoundResource(file, payload, owner, contract.extensionType, boundRule, typeNode?.attributes.version, bindings, diagnostics);
|
|
282478
282561
|
}
|
|
282562
|
+
if (isQuickFormHitl(contract.extensionType, payload)) {
|
|
282563
|
+
validateQuickFormHitl(file, payload, owner, diagnostics);
|
|
282564
|
+
}
|
|
282479
282565
|
if (contract.extensionType === "Intsvc.EventTrigger" || contract.extensionType === "Intsvc.WaitForEvent") {
|
|
282480
282566
|
this.validateTriggerConnectionBinding(file, payload, owner, bindings, contract.extensionType, diagnostics);
|
|
282481
282567
|
}
|
|
@@ -283610,7 +283696,10 @@ var COLLAPSED_MULTI_INSTANCE_OUTPUT_CONTRACTS = new Set([
|
|
|
283610
283696
|
"Queue.WaitForEvent"
|
|
283611
283697
|
]);
|
|
283612
283698
|
function savesCollapsedMultiInstanceOutputs(owner, contract) {
|
|
283613
|
-
return COLLAPSED_MULTI_INSTANCE_OUTPUT_CONTRACTS.has(contract.extensionType) &&
|
|
283699
|
+
return COLLAPSED_MULTI_INSTANCE_OUTPUT_CONTRACTS.has(contract.extensionType) && isMultiInstanceTask(owner);
|
|
283700
|
+
}
|
|
283701
|
+
function isMultiInstanceTask(owner) {
|
|
283702
|
+
return !hasLocalName(owner, "subProcess") && owner.children.some((child) => hasLocalName(child, "multiInstanceLoopCharacteristics") && resolveNamespace(child) === BPMN_MODEL_NAMESPACE);
|
|
283614
283703
|
}
|
|
283615
283704
|
function collapsedMultiInstanceOutputs(contract) {
|
|
283616
283705
|
const error = declaredOutputs(contract).find((output) => output.name === "Error" && output.source === "=Error");
|
|
@@ -284788,7 +284877,6 @@ async function personalFolderById(config, folderId, notFound) {
|
|
|
284788
284877
|
return personal;
|
|
284789
284878
|
}
|
|
284790
284879
|
var NO_PERSONAL_ROBOT_STATUS = 409;
|
|
284791
|
-
var NO_PERSONAL_ROBOT_ERROR_CODE = "1230";
|
|
284792
284880
|
var BEGIN_SESSION_RETRY_DELAYS_MS = [2000, 5000];
|
|
284793
284881
|
var isNoPersonalRobot = (error) => error instanceof MaestroHttpError && error.httpStatus === NO_PERSONAL_ROBOT_STATUS && error.parsedErrorCode === NO_PERSONAL_ROBOT_ERROR_CODE;
|
|
284794
284882
|
async function postBeginSession(config, body) {
|
|
@@ -289326,4 +289414,4 @@ export {
|
|
|
289326
289414
|
withPimsCall
|
|
289327
289415
|
};
|
|
289328
289416
|
|
|
289329
|
-
//# debugId=
|
|
289417
|
+
//# debugId=2A9875D551FF1E0C64756E2164756E21
|
package/dist/json-input.js
CHANGED
|
@@ -12727,6 +12727,12 @@ var init_named_second = __esm(() => {
|
|
|
12727
12727
|
init_output_context();
|
|
12728
12728
|
});
|
|
12729
12729
|
|
|
12730
|
+
// ../common/src/no-personal-robot.ts
|
|
12731
|
+
var NO_PERSONAL_ROBOT_ERROR_CODE = "1230";
|
|
12732
|
+
var init_no_personal_robot = __esm(() => {
|
|
12733
|
+
init_result_types();
|
|
12734
|
+
});
|
|
12735
|
+
|
|
12730
12736
|
// ../common/src/option-aliases.ts
|
|
12731
12737
|
function warnDeprecatedOptionAlias(deprecatedFlag, preferredFlag) {
|
|
12732
12738
|
getOutputSink().writeErr(`[WARN] ${deprecatedFlag} is deprecated. Use ${preferredFlag} instead.
|
|
@@ -13078,6 +13084,7 @@ var init_src2 = __esm(() => {
|
|
|
13078
13084
|
init_logger();
|
|
13079
13085
|
init_mime_types();
|
|
13080
13086
|
init_named_second();
|
|
13087
|
+
init_no_personal_robot();
|
|
13081
13088
|
init_option_aliases();
|
|
13082
13089
|
init_option_groups();
|
|
13083
13090
|
init_option_validators();
|
|
@@ -13288,4 +13295,4 @@ export {
|
|
|
13288
13295
|
resolveJsonInput
|
|
13289
13296
|
};
|
|
13290
13297
|
|
|
13291
|
-
//# debugId=
|
|
13298
|
+
//# debugId=0ACCA028727BD7A164756E2164756E21
|
|
@@ -113,6 +113,7 @@ var bpmn_spec_default = {
|
|
|
113
113
|
<bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
|
|
114
114
|
</bpmn:userTask>`,
|
|
115
115
|
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 }).",
|
|
116
|
+
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.`,
|
|
116
117
|
bindingInfo: {
|
|
117
118
|
resource: "app",
|
|
118
119
|
resourceKeyPattern: "${metadata.key}",
|
|
@@ -4955,4 +4956,4 @@ export {
|
|
|
4955
4956
|
toBpmnXmlElementName
|
|
4956
4957
|
};
|
|
4957
4958
|
|
|
4958
|
-
//# debugId=
|
|
4959
|
+
//# debugId=0AAB07E7DE8E57F564756E2164756E21
|
package/dist/registry/command.js
CHANGED
|
@@ -12727,6 +12727,12 @@ var init_named_second = __esm(() => {
|
|
|
12727
12727
|
init_output_context();
|
|
12728
12728
|
});
|
|
12729
12729
|
|
|
12730
|
+
// ../common/src/no-personal-robot.ts
|
|
12731
|
+
var NO_PERSONAL_ROBOT_ERROR_CODE = "1230";
|
|
12732
|
+
var init_no_personal_robot = __esm(() => {
|
|
12733
|
+
init_result_types();
|
|
12734
|
+
});
|
|
12735
|
+
|
|
12730
12736
|
// ../common/src/option-aliases.ts
|
|
12731
12737
|
function warnDeprecatedOptionAlias(deprecatedFlag, preferredFlag) {
|
|
12732
12738
|
getOutputSink().writeErr(`[WARN] ${deprecatedFlag} is deprecated. Use ${preferredFlag} instead.
|
|
@@ -13078,6 +13084,7 @@ var init_src2 = __esm(() => {
|
|
|
13078
13084
|
init_logger();
|
|
13079
13085
|
init_mime_types();
|
|
13080
13086
|
init_named_second();
|
|
13087
|
+
init_no_personal_robot();
|
|
13081
13088
|
init_option_aliases();
|
|
13082
13089
|
init_option_groups();
|
|
13083
13090
|
init_option_validators();
|
|
@@ -144901,7 +144908,7 @@ var init_package = __esm(() => {
|
|
|
144901
144908
|
name: "@uipath/integrationservice-sdk",
|
|
144902
144909
|
author: "UiPath",
|
|
144903
144910
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
144904
|
-
version: "1.207.0-preview.
|
|
144911
|
+
version: "1.207.0-preview.363",
|
|
144905
144912
|
repository: {
|
|
144906
144913
|
type: "git",
|
|
144907
144914
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -265181,4 +265188,4 @@ export {
|
|
|
265181
265188
|
shownRows
|
|
265182
265189
|
};
|
|
265183
265190
|
|
|
265184
|
-
//# debugId=
|
|
265191
|
+
//# debugId=E8CA4DDFA37FD11A64756E2164756E21
|
|
@@ -12727,6 +12727,12 @@ var init_named_second = __esm(() => {
|
|
|
12727
12727
|
init_output_context();
|
|
12728
12728
|
});
|
|
12729
12729
|
|
|
12730
|
+
// ../common/src/no-personal-robot.ts
|
|
12731
|
+
var NO_PERSONAL_ROBOT_ERROR_CODE = "1230";
|
|
12732
|
+
var init_no_personal_robot = __esm(() => {
|
|
12733
|
+
init_result_types();
|
|
12734
|
+
});
|
|
12735
|
+
|
|
12730
12736
|
// ../common/src/option-aliases.ts
|
|
12731
12737
|
function warnDeprecatedOptionAlias(deprecatedFlag, preferredFlag) {
|
|
12732
12738
|
getOutputSink().writeErr(`[WARN] ${deprecatedFlag} is deprecated. Use ${preferredFlag} instead.
|
|
@@ -13078,6 +13084,7 @@ var init_src2 = __esm(() => {
|
|
|
13078
13084
|
init_logger();
|
|
13079
13085
|
init_mime_types();
|
|
13080
13086
|
init_named_second();
|
|
13087
|
+
init_no_personal_robot();
|
|
13081
13088
|
init_option_aliases();
|
|
13082
13089
|
init_option_groups();
|
|
13083
13090
|
init_option_validators();
|
|
@@ -13177,4 +13184,4 @@ export {
|
|
|
13177
13184
|
resolveMaestroRegistry
|
|
13178
13185
|
};
|
|
13179
13186
|
|
|
13180
|
-
//# debugId=
|
|
13187
|
+
//# debugId=0E9B503B33A4117264756E2164756E21
|
|
@@ -12727,6 +12727,12 @@ var init_named_second = __esm(() => {
|
|
|
12727
12727
|
init_output_context();
|
|
12728
12728
|
});
|
|
12729
12729
|
|
|
12730
|
+
// ../common/src/no-personal-robot.ts
|
|
12731
|
+
var NO_PERSONAL_ROBOT_ERROR_CODE = "1230";
|
|
12732
|
+
var init_no_personal_robot = __esm(() => {
|
|
12733
|
+
init_result_types();
|
|
12734
|
+
});
|
|
12735
|
+
|
|
12730
12736
|
// ../common/src/option-aliases.ts
|
|
12731
12737
|
function warnDeprecatedOptionAlias(deprecatedFlag, preferredFlag) {
|
|
12732
12738
|
getOutputSink().writeErr(`[WARN] ${deprecatedFlag} is deprecated. Use ${preferredFlag} instead.
|
|
@@ -13078,6 +13084,7 @@ var init_src2 = __esm(() => {
|
|
|
13078
13084
|
init_logger();
|
|
13079
13085
|
init_mime_types();
|
|
13080
13086
|
init_named_second();
|
|
13087
|
+
init_no_personal_robot();
|
|
13081
13088
|
init_option_aliases();
|
|
13082
13089
|
init_option_groups();
|
|
13083
13090
|
init_option_validators();
|
|
@@ -27119,7 +27126,6 @@ async function personalFolderById(config, folderId, notFound) {
|
|
|
27119
27126
|
return personal;
|
|
27120
27127
|
}
|
|
27121
27128
|
var NO_PERSONAL_ROBOT_STATUS = 409;
|
|
27122
|
-
var NO_PERSONAL_ROBOT_ERROR_CODE = "1230";
|
|
27123
27129
|
var BEGIN_SESSION_RETRY_DELAYS_MS = [2000, 5000];
|
|
27124
27130
|
var isNoPersonalRobot = (error) => error instanceof MaestroHttpError && error.httpStatus === NO_PERSONAL_ROBOT_STATUS && error.parsedErrorCode === NO_PERSONAL_ROBOT_ERROR_CODE;
|
|
27125
27131
|
async function postBeginSession(config, body) {
|
|
@@ -30484,4 +30490,4 @@ export {
|
|
|
30484
30490
|
splitProcessKey
|
|
30485
30491
|
};
|
|
30486
30492
|
|
|
30487
|
-
//# debugId=
|
|
30493
|
+
//# debugId=BE862BF5584D725064756E2164756E21
|
package/dist/shared-utils.js
CHANGED
|
@@ -12727,6 +12727,12 @@ var init_named_second = __esm(() => {
|
|
|
12727
12727
|
init_output_context();
|
|
12728
12728
|
});
|
|
12729
12729
|
|
|
12730
|
+
// ../common/src/no-personal-robot.ts
|
|
12731
|
+
var NO_PERSONAL_ROBOT_ERROR_CODE = "1230";
|
|
12732
|
+
var init_no_personal_robot = __esm(() => {
|
|
12733
|
+
init_result_types();
|
|
12734
|
+
});
|
|
12735
|
+
|
|
12730
12736
|
// ../common/src/option-aliases.ts
|
|
12731
12737
|
function warnDeprecatedOptionAlias(deprecatedFlag, preferredFlag) {
|
|
12732
12738
|
getOutputSink().writeErr(`[WARN] ${deprecatedFlag} is deprecated. Use ${preferredFlag} instead.
|
|
@@ -13078,6 +13084,7 @@ var init_src2 = __esm(() => {
|
|
|
13078
13084
|
init_logger();
|
|
13079
13085
|
init_mime_types();
|
|
13080
13086
|
init_named_second();
|
|
13087
|
+
init_no_personal_robot();
|
|
13081
13088
|
init_option_aliases();
|
|
13082
13089
|
init_option_groups();
|
|
13083
13090
|
init_option_validators();
|
|
@@ -13248,4 +13255,4 @@ export {
|
|
|
13248
13255
|
tracesFailure
|
|
13249
13256
|
};
|
|
13250
13257
|
|
|
13251
|
-
//# debugId=
|
|
13258
|
+
//# debugId=224E1D399A2A79CD64756E2164756E21
|
package/dist/studio-catalog.js
CHANGED
|
@@ -14323,6 +14323,12 @@ var init_named_second = __esm(() => {
|
|
|
14323
14323
|
init_output_context();
|
|
14324
14324
|
});
|
|
14325
14325
|
|
|
14326
|
+
// ../common/src/no-personal-robot.ts
|
|
14327
|
+
var NO_PERSONAL_ROBOT_ERROR_CODE = "1230";
|
|
14328
|
+
var init_no_personal_robot = __esm(() => {
|
|
14329
|
+
init_result_types();
|
|
14330
|
+
});
|
|
14331
|
+
|
|
14326
14332
|
// ../common/src/option-aliases.ts
|
|
14327
14333
|
function warnDeprecatedOptionAlias(deprecatedFlag, preferredFlag) {
|
|
14328
14334
|
getOutputSink().writeErr(`[WARN] ${deprecatedFlag} is deprecated. Use ${preferredFlag} instead.
|
|
@@ -14674,6 +14680,7 @@ var init_src3 = __esm(() => {
|
|
|
14674
14680
|
init_logger();
|
|
14675
14681
|
init_mime_types();
|
|
14676
14682
|
init_named_second();
|
|
14683
|
+
init_no_personal_robot();
|
|
14677
14684
|
init_option_aliases();
|
|
14678
14685
|
init_option_groups();
|
|
14679
14686
|
init_option_validators();
|
|
@@ -14803,4 +14810,4 @@ export {
|
|
|
14803
14810
|
searchTriggers
|
|
14804
14811
|
};
|
|
14805
14812
|
|
|
14806
|
-
//# debugId=
|
|
14813
|
+
//# debugId=34F64DF82E43A22464756E2164756E21
|
package/dist/with-pims-call.js
CHANGED
|
@@ -12727,6 +12727,12 @@ var init_named_second = __esm(() => {
|
|
|
12727
12727
|
init_output_context();
|
|
12728
12728
|
});
|
|
12729
12729
|
|
|
12730
|
+
// ../common/src/no-personal-robot.ts
|
|
12731
|
+
var NO_PERSONAL_ROBOT_ERROR_CODE = "1230";
|
|
12732
|
+
var init_no_personal_robot = __esm(() => {
|
|
12733
|
+
init_result_types();
|
|
12734
|
+
});
|
|
12735
|
+
|
|
12730
12736
|
// ../common/src/option-aliases.ts
|
|
12731
12737
|
function warnDeprecatedOptionAlias(deprecatedFlag, preferredFlag) {
|
|
12732
12738
|
getOutputSink().writeErr(`[WARN] ${deprecatedFlag} is deprecated. Use ${preferredFlag} instead.
|
|
@@ -13078,6 +13084,7 @@ var init_src2 = __esm(() => {
|
|
|
13078
13084
|
init_logger();
|
|
13079
13085
|
init_mime_types();
|
|
13080
13086
|
init_named_second();
|
|
13087
|
+
init_no_personal_robot();
|
|
13081
13088
|
init_option_aliases();
|
|
13082
13089
|
init_option_groups();
|
|
13083
13090
|
init_option_validators();
|
|
@@ -15073,4 +15080,4 @@ export {
|
|
|
15073
15080
|
withPimsCall
|
|
15074
15081
|
};
|
|
15075
15082
|
|
|
15076
|
-
//# debugId=
|
|
15083
|
+
//# debugId=6F3354F5E93428FE64756E2164756E21
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uipath/maestro-sdk",
|
|
3
3
|
"author": "UiPath",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
-
"version": "1.207.0-preview.
|
|
5
|
+
"version": "1.207.0-preview.363",
|
|
6
6
|
"description": "SDK for the UiPath Maestro (PIMS) API — process instance management.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"files": [
|
|
114
114
|
"dist"
|
|
115
115
|
],
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "6b4f9c892e0bfce807eca7190739711f0f6a7b2c"
|
|
117
117
|
}
|