@uipath/packager-tool-bpmn 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.
Files changed (2) hide show
  1. package/dist/index.js +24 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -2954,6 +2954,10 @@ var SUPPORTED_UIPATH_EXTENSION_TAG_NAMES = Object.freeze([
2954
2954
  ])
2955
2955
  ].sort());
2956
2956
  var SUPPORTED_UIPATH_EXTENSION_TAGS = Object.freeze(SUPPORTED_UIPATH_EXTENSION_TAG_NAMES.map((tag) => `uipath:${tag}`));
2957
+ var GUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
2958
+ function isGuid(value) {
2959
+ return GUID_REGEX.test(value);
2960
+ }
2957
2961
  var KNOWN_UIPATH_TAGS = new Set(SUPPORTED_UIPATH_EXTENSION_TAGS);
2958
2962
  var SEMANTIC_VALIDATION_ERROR = "BPMN_VALIDATION_ERROR";
2959
2963
  var BPMN_MODEL_NAMESPACE = "http://www.omg.org/spec/BPMN/20100524/MODEL";
@@ -3060,11 +3064,30 @@ class BpmnValidateService {
3060
3064
  instruction: "Add a bpmn:StartEvent to each process."
3061
3065
  });
3062
3066
  }
3067
+ this.validateRootEntryPointIds(file, process, diagnostics);
3063
3068
  }
3064
3069
  const availableBindings = new Map(bindings);
3065
3070
  collectInlineBindings(definitions, availableBindings);
3066
3071
  this.validateUiPathTags(file, definitions, availableBindings, diagnostics);
3067
3072
  }
3073
+ validateRootEntryPointIds(file, process, diagnostics) {
3074
+ const rootStartEvents = findChildren(process, (node) => hasLocalName(node, "startEvent"));
3075
+ for (const startEvent of rootStartEvents) {
3076
+ const entryPointIds = findDescendants(startEvent, (node) => node.name === "uipath:entryPointId");
3077
+ for (const entryPointId of entryPointIds) {
3078
+ const value = entryPointId.attributes.value ?? "";
3079
+ if (isGuid(value)) {
3080
+ continue;
3081
+ }
3082
+ diagnostics.push({
3083
+ file,
3084
+ element: describeElement(startEvent),
3085
+ message: `Root start event uipath:entryPointId value "${value}" must be a GUID.`,
3086
+ instruction: "Set uipath:entryPointId value to a GUID and use the same value for the matching entry-points.json uniqueId."
3087
+ });
3088
+ }
3089
+ }
3090
+ }
3068
3091
  validateUiPathTags(file, root, bindings, diagnostics) {
3069
3092
  const uipathNodes = findDescendants(root, (node) => node.name.startsWith("uipath:"));
3070
3093
  for (const node of uipathNodes) {
@@ -4010,4 +4033,4 @@ export {
4010
4033
  BpmnToolFactory
4011
4034
  };
4012
4035
 
4013
- //# debugId=DFBAED50B7EADE9664756E2164756E21
4036
+ //# debugId=5BF054B517D10FFA64756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/packager-tool-bpmn",
3
- "version": "1.199.0",
3
+ "version": "1.200.0-preview.117",
4
4
  "description": "UiPath ProcessOrchestration (BPMN) tool implementation",
5
5
  "type": "module",
6
6
  "exports": {
@@ -25,10 +25,10 @@
25
25
  "author": "",
26
26
  "license": "ISC",
27
27
  "peerDependencies": {
28
- "@uipath/solutionpackager-tool-core": "1.199.0"
28
+ "@uipath/solutionpackager-tool-core": "1.200.0"
29
29
  },
30
30
  "dependencies": {
31
- "@uipath/maestro-sdk": "1.199.0"
31
+ "@uipath/maestro-sdk": "1.200.0"
32
32
  },
33
- "gitHead": "723e6801b77b5926ba75e75b6a756cc38b1b7adc"
33
+ "gitHead": "5ba432ca14252784a1e20c03f5a858a5ae39746e"
34
34
  }