@uipath/maestro-sdk 1.199.0 → 1.200.0-preview.117
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-validation/canvas/index.js +13314 -13344
- package/dist/bpmn-validation/project-validator.js +26 -1
- package/dist/index.js +82908 -44454
- package/dist/src/bpmn-validation/project-validator.d.ts +1 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/registry/index.d.ts +1 -1
- package/dist/src/registry/integration-service-fetcher.d.ts +1 -1
- package/package.json +2 -2
|
@@ -2995,6 +2995,12 @@ var SUPPORTED_UIPATH_EXTENSION_TAG_NAMES = Object.freeze([
|
|
|
2995
2995
|
].sort());
|
|
2996
2996
|
var SUPPORTED_UIPATH_EXTENSION_TAGS = Object.freeze(SUPPORTED_UIPATH_EXTENSION_TAG_NAMES.map((tag) => `uipath:${tag}`));
|
|
2997
2997
|
|
|
2998
|
+
// ../common/src/guid.ts
|
|
2999
|
+
var GUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
3000
|
+
function isGuid(value) {
|
|
3001
|
+
return GUID_REGEX.test(value);
|
|
3002
|
+
}
|
|
3003
|
+
|
|
2998
3004
|
// src/bpmn-validation/project-validator.ts
|
|
2999
3005
|
var KNOWN_UIPATH_TAGS = new Set(SUPPORTED_UIPATH_EXTENSION_TAGS);
|
|
3000
3006
|
var SEMANTIC_VALIDATION_ERROR = "BPMN_VALIDATION_ERROR";
|
|
@@ -3102,11 +3108,30 @@ class BpmnValidateService {
|
|
|
3102
3108
|
instruction: "Add a bpmn:StartEvent to each process."
|
|
3103
3109
|
});
|
|
3104
3110
|
}
|
|
3111
|
+
this.validateRootEntryPointIds(file, process, diagnostics);
|
|
3105
3112
|
}
|
|
3106
3113
|
const availableBindings = new Map(bindings);
|
|
3107
3114
|
collectInlineBindings(definitions, availableBindings);
|
|
3108
3115
|
this.validateUiPathTags(file, definitions, availableBindings, diagnostics);
|
|
3109
3116
|
}
|
|
3117
|
+
validateRootEntryPointIds(file, process, diagnostics) {
|
|
3118
|
+
const rootStartEvents = findChildren(process, (node) => hasLocalName(node, "startEvent"));
|
|
3119
|
+
for (const startEvent of rootStartEvents) {
|
|
3120
|
+
const entryPointIds = findDescendants(startEvent, (node) => node.name === "uipath:entryPointId");
|
|
3121
|
+
for (const entryPointId of entryPointIds) {
|
|
3122
|
+
const value = entryPointId.attributes.value ?? "";
|
|
3123
|
+
if (isGuid(value)) {
|
|
3124
|
+
continue;
|
|
3125
|
+
}
|
|
3126
|
+
diagnostics.push({
|
|
3127
|
+
file,
|
|
3128
|
+
element: describeElement(startEvent),
|
|
3129
|
+
message: `Root start event uipath:entryPointId value "${value}" must be a GUID.`,
|
|
3130
|
+
instruction: "Set uipath:entryPointId value to a GUID and use the same value for the matching entry-points.json uniqueId."
|
|
3131
|
+
});
|
|
3132
|
+
}
|
|
3133
|
+
}
|
|
3134
|
+
}
|
|
3110
3135
|
validateUiPathTags(file, root, bindings, diagnostics) {
|
|
3111
3136
|
const uipathNodes = findDescendants(root, (node) => node.name.startsWith("uipath:"));
|
|
3112
3137
|
for (const node of uipathNodes) {
|
|
@@ -3880,4 +3905,4 @@ export {
|
|
|
3880
3905
|
BpmnValidateService
|
|
3881
3906
|
};
|
|
3882
3907
|
|
|
3883
|
-
//# debugId=
|
|
3908
|
+
//# debugId=0728160A73E2BCA564756E2164756E21
|