@uipath/maestro-sdk 1.199.0-preview.99 → 1.199.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/dist/bpmn-validation/canvas/index.js +18153 -0
- package/dist/bpmn-validation/project-validator.js +23 -8
- package/dist/index.js +4553 -19640
- package/dist/manifest/bpmn-spec.js +3 -3
- package/dist/src/bpmn-validation/canvas/index.d.ts +4 -0
- package/dist/src/index.d.ts +0 -4
- package/package.json +7 -2
|
@@ -2250,8 +2250,8 @@ var bpmn_spec_default = {
|
|
|
2250
2250
|
<bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
|
|
2251
2251
|
</bpmn:Task>`,
|
|
2252
2252
|
inputNotes: "Variable mappings use uipath:mapping with direct input/output elements, not a jsonBody pattern",
|
|
2253
|
-
bpmnElementNotes: "Also used on bpmn:StartEvent and bpmn:
|
|
2254
|
-
extensionTagNotes: "Uses uipath:mapping (not uipath:activity).
|
|
2253
|
+
bpmnElementNotes: "Also used on bpmn:StartEvent, bpmn:EndEvent, bpmn:ScriptTask, and bpmn:SubProcess for variable mappings. On bpmn:Task with no serviceType, defaults to BPMN.Variables.",
|
|
2254
|
+
extensionTagNotes: "Uses uipath:mapping (not uipath:activity). BPMN.Variables mappings are supported on StartEvent, EndEvent, Task, ScriptTask, and SubProcess owners."
|
|
2255
2255
|
},
|
|
2256
2256
|
"BPMN.ScriptTask": {
|
|
2257
2257
|
extensionType: "BPMN.ScriptTask",
|
|
@@ -2998,6 +2998,7 @@ var SUPPORTED_UIPATH_EXTENSION_TAGS = Object.freeze(SUPPORTED_UIPATH_EXTENSION_T
|
|
|
2998
2998
|
// src/bpmn-validation/project-validator.ts
|
|
2999
2999
|
var KNOWN_UIPATH_TAGS = new Set(SUPPORTED_UIPATH_EXTENSION_TAGS);
|
|
3000
3000
|
var SEMANTIC_VALIDATION_ERROR = "BPMN_VALIDATION_ERROR";
|
|
3001
|
+
var BPMN_MODEL_NAMESPACE = "http://www.omg.org/spec/BPMN/20100524/MODEL";
|
|
3001
3002
|
|
|
3002
3003
|
class BpmnValidateService {
|
|
3003
3004
|
fileSystem;
|
|
@@ -3204,7 +3205,7 @@ class BpmnValidateService {
|
|
|
3204
3205
|
});
|
|
3205
3206
|
}
|
|
3206
3207
|
const allowedOwners = getAllowedOwnerTypes(contract);
|
|
3207
|
-
if (!allowedOwners.some((allowedOwner) =>
|
|
3208
|
+
if (!allowedOwners.some((allowedOwner) => getLocalName(allowedOwner) === getLocalName(owner.name) && resolveNamespace(owner) === BPMN_MODEL_NAMESPACE)) {
|
|
3208
3209
|
diagnostics.push({
|
|
3209
3210
|
file,
|
|
3210
3211
|
element: describeElement(owner),
|
|
@@ -3673,10 +3674,23 @@ function findFirst(node, predicate) {
|
|
|
3673
3674
|
return;
|
|
3674
3675
|
}
|
|
3675
3676
|
function hasLocalName(node, localName) {
|
|
3676
|
-
return
|
|
3677
|
+
return getLocalName(node.name) === localName.toLowerCase();
|
|
3677
3678
|
}
|
|
3678
|
-
function
|
|
3679
|
-
return name.toLowerCase();
|
|
3679
|
+
function getLocalName(name) {
|
|
3680
|
+
return name.slice(name.lastIndexOf(":") + 1).toLowerCase();
|
|
3681
|
+
}
|
|
3682
|
+
function resolveNamespace(node) {
|
|
3683
|
+
const separator = node.name.indexOf(":");
|
|
3684
|
+
const prefix = separator === -1 ? "" : node.name.slice(0, separator);
|
|
3685
|
+
const declaration = prefix ? `xmlns:${prefix}` : "xmlns";
|
|
3686
|
+
let current = node;
|
|
3687
|
+
while (current) {
|
|
3688
|
+
if (Object.hasOwn(current.attributes, declaration)) {
|
|
3689
|
+
return current.attributes[declaration];
|
|
3690
|
+
}
|
|
3691
|
+
current = current.parent;
|
|
3692
|
+
}
|
|
3693
|
+
return;
|
|
3680
3694
|
}
|
|
3681
3695
|
function findBpmnOwner(payload) {
|
|
3682
3696
|
const extensionElements = payload.parent;
|
|
@@ -3705,7 +3719,8 @@ function getAllowedOwnerTypes(contract) {
|
|
|
3705
3719
|
"bpmn:StartEvent",
|
|
3706
3720
|
"bpmn:EndEvent",
|
|
3707
3721
|
"bpmn:Task",
|
|
3708
|
-
"bpmn:ScriptTask"
|
|
3722
|
+
"bpmn:ScriptTask",
|
|
3723
|
+
"bpmn:SubProcess"
|
|
3709
3724
|
];
|
|
3710
3725
|
}
|
|
3711
3726
|
const placementTypes = Object.values(contract.placements).map((placement) => placement.type);
|
|
@@ -3865,4 +3880,4 @@ export {
|
|
|
3865
3880
|
BpmnValidateService
|
|
3866
3881
|
};
|
|
3867
3882
|
|
|
3868
|
-
//# debugId=
|
|
3883
|
+
//# debugId=DE15716967BCD42764756E2164756E21
|