@uipath/packager-tool-bpmn 1.204.0 → 1.205.0-preview.258

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 +1842 -542
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -5968,14 +5968,17 @@ var init_bpmn_spec = __esm(() => {
5968
5968
  requiresDiscovery: true,
5969
5969
  isDynamic: true,
5970
5970
  xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
5971
- <uipath:activity type="Orchestrator.StartAgentJob" version="v1">
5972
- <uipath:context>
5973
- <uipath:input name="name" type="string" value="=bindings.{nameBindingId}" />
5974
- <uipath:input name="folderPath" type="string" value="=bindings.{folderPathBindingId}" />
5975
- </uipath:context>
5976
- <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
5977
- <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
5978
- </uipath:activity>
5971
+ <bpmn:extensionElements>
5972
+ <uipath:activity version="v1">
5973
+ <uipath:type value="Orchestrator.StartAgentJob" version="v2" />
5974
+ <uipath:context>
5975
+ <uipath:input name="name" type="string" value="=bindings.{nameBindingId}" />
5976
+ <uipath:input name="folderPath" type="string" value="=bindings.{folderPathBindingId}" />
5977
+ </uipath:context>
5978
+ <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
5979
+ <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
5980
+ </uipath:activity>
5981
+ </bpmn:extensionElements>
5979
5982
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
5980
5983
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
5981
5984
  </bpmn:ServiceTask>`,
@@ -6003,7 +6006,7 @@ var init_bpmn_spec = __esm(() => {
6003
6006
  defaultValue: null,
6004
6007
  bindingInfo: {
6005
6008
  resource: "BusinessRule",
6006
- resourceKeyPattern: "${metadata.key}",
6009
+ resourceKeyPattern: "${metadata.folderPath}.${metadata.name}",
6007
6010
  propertyAttribute: "name"
6008
6011
  }
6009
6012
  },
@@ -6017,7 +6020,7 @@ var init_bpmn_spec = __esm(() => {
6017
6020
  defaultValue: null,
6018
6021
  bindingInfo: {
6019
6022
  resource: "BusinessRule",
6020
- resourceKeyPattern: "${metadata.key}",
6023
+ resourceKeyPattern: "${metadata.folderPath}.${metadata.name}",
6021
6024
  propertyAttribute: "folderPath"
6022
6025
  }
6023
6026
  },
@@ -6034,13 +6037,22 @@ var init_bpmn_spec = __esm(() => {
6034
6037
  inputPattern: "mergedBody",
6035
6038
  inputName: "JobArguments",
6036
6039
  inputTarget: "bodyField",
6037
- outputSource: null,
6038
- outputType: null,
6040
+ outputName: "output",
6041
+ outputSource: "=result",
6042
+ outputType: "jsonSchema",
6043
+ additionalOutputs: [
6044
+ {
6045
+ name: "Error",
6046
+ type: "jsonSchema",
6047
+ source: "=Error",
6048
+ required: true
6049
+ }
6050
+ ],
6039
6051
  useRelativeSource: true,
6040
6052
  bindingPattern: "businessRule",
6041
6053
  bindingInfo: {
6042
6054
  resource: "BusinessRule",
6043
- resourceKeyPattern: "${metadata.key}",
6055
+ resourceKeyPattern: "${metadata.folderPath}.${metadata.name}",
6044
6056
  propertyAttribute: "name",
6045
6057
  contextField: "name"
6046
6058
  },
@@ -6049,7 +6061,7 @@ var init_bpmn_spec = __esm(() => {
6049
6061
  xmlTemplate: `<bpmn:BusinessRuleTask id="{id}" name="{name}">
6050
6062
  <bpmn:extensionElements>
6051
6063
  <uipath:activity version="v1">
6052
- <uipath:type value="Orchestrator.BusinessRules" version="v2" />
6064
+ <uipath:type value="Orchestrator.BusinessRules" version="v3" />
6053
6065
  <uipath:context>
6054
6066
  <uipath:input name="name" type="string" value="=bindings.{nameBindingId}" />
6055
6067
  <uipath:input name="folderPath" type="string" value="=bindings.{folderPathBindingId}" />
@@ -6057,17 +6069,17 @@ var init_bpmn_spec = __esm(() => {
6057
6069
  <uipath:inputSchema type="jsonSchema"><![CDATA[{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"required":[]}]]></uipath:inputSchema>
6058
6070
  </uipath:context>
6059
6071
  <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
6072
+ <uipath:output name="output" type="jsonSchema" source="=result" var="{outputVarId}" />
6060
6073
  <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
6061
- <uipath:output name="{outputName}" type="{outputType}" source="={outputName}" var="{outputVarId}" />
6062
6074
  </uipath:activity>
6063
6075
  </bpmn:extensionElements>
6064
6076
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
6065
6077
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
6066
6078
  </bpmn:BusinessRuleTask>`,
6067
- discoveryNotes: "Uses getOrchestratorBusinessRules() to list available business rules",
6079
+ discoveryNotes: "Uses `uip rules list --all-folders --output json` to list deployed business rules; it returns 50 rows by default, so keep raising --offset while Pagination.HasMore is true",
6068
6080
  inputNotes: "isSplitInputs=true in design schema: the canvas shows one input per rule argument and serialization merges them into the single JobArguments JSON body. The uipath:context inputSchema lists each argument with its type, and its required array names the required ones.",
6069
- contextFieldNotes: `name and folderPath each point to a root binding with resource="BusinessRule" and propertyAttribute name or folderPath; the engine runs the rule by these two. resourceKey is the rule's entity key, which for a rule in the solution folder is its name; the name and folderPath defaults are the rule name and its folder path. The folderPath binding default is an empty string when the rule lives in the running job's folder. _label holds the rule name as a plain value.`,
6070
- outputNotes: "One uipath:output per rule output, named after the output with source =<output name>, plus an Error output (type jsonSchema, source =Error). Each var names a process variable declared as uipath:inputOutput on this element."
6081
+ contextFieldNotes: "name and folderPath each point to a root binding for a BusinessRule resource. Both bindings share one resourceKey. Use propertyAttribute name for name and folderPath for folderPath. _label is not bound and holds the rule name.",
6082
+ outputNotes: 'One output named output (type jsonSchema, source =result) holding the whole result keyed by decision, so a decision\'s column reads as vars.<outputVarId>.<decision>.<column>; plus an Error output (type jsonSchema, source =Error). Each var names a process variable declared as uipath:inputOutput on this element. Only a decision-keyed rule fits this output: its `uip rules describe` OutputArguments carry "x-uipath-decision-keyed": true; run `uip rules refresh` and redeploy a rule that does not.'
6071
6083
  },
6072
6084
  "Intsvc.ActivityExecution": {
6073
6085
  extensionType: "Intsvc.ActivityExecution",
@@ -7618,52 +7630,123 @@ var init_bpmn_spec = __esm(() => {
7618
7630
  </bpmn:ServiceTask>`,
7619
7631
  discoveryNotes: "Uses getQueueDefinitions(serviceType, search) to list available queues"
7620
7632
  },
7621
- "Orchestrator.StartAgenticProcess": {
7622
- extensionType: "Orchestrator.StartAgenticProcess",
7623
- label: "Start and wait for agentic process",
7624
- bpmnElement: "bpmn:CallActivity",
7633
+ "Orchestrator.SetTransactionStatus": {
7634
+ extensionType: "Orchestrator.SetTransactionStatus",
7635
+ label: "Set transaction status",
7636
+ bpmnElement: "bpmn:ServiceTask",
7625
7637
  placements: {
7626
7638
  activity: {
7627
- type: "bpmn:CallActivity"
7639
+ type: "bpmn:ServiceTask"
7628
7640
  }
7629
7641
  },
7630
7642
  extensionTag: "uipath:activity",
7631
7643
  contextFields: [
7632
7644
  {
7633
- name: "releaseKey",
7634
- displayName: "Process",
7645
+ name: "_label",
7635
7646
  type: "string",
7636
7647
  required: false,
7637
7648
  hidden: true,
7638
7649
  isPrimaryKey: false,
7639
7650
  binding: false,
7651
+ defaultValue: null
7652
+ }
7653
+ ],
7654
+ inputPattern: "mergedBody",
7655
+ outputSource: "=Error",
7656
+ outputType: "jsonSchema",
7657
+ outputName: "Error",
7658
+ bindingPattern: "none",
7659
+ requiresDiscovery: false,
7660
+ isDynamic: false,
7661
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
7662
+ <bpmn:extensionElements>
7663
+ <uipath:activity version="v1">
7664
+ <uipath:type value="Orchestrator.SetTransactionStatus" version="v1" />
7665
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"QueueItem":{QueueItem},"Status":"{Status}","ErrorType":null,"Reason":null,"Details":null}]]></uipath:input>
7666
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{varId}" />
7667
+ </uipath:activity>
7668
+ </bpmn:extensionElements>
7669
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
7670
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
7671
+ </bpmn:ServiceTask>`,
7672
+ inputNotes: 'All inputFields go as keys of one <uipath:input name="body" type="json" target="body"> CDATA object. QueueItem takes either a JSON object literal (e.g. an object with an Id property) or a quoted "=expr"; it is not itself quoted in the template. Optional fields default to null in this example; fill only what you use.',
7673
+ inputFields: [
7674
+ {
7675
+ name: "QueueItem",
7676
+ displayName: "Transaction item",
7677
+ type: "object",
7678
+ required: true,
7679
+ hidden: false,
7680
+ isPrimaryKey: false,
7681
+ binding: false,
7640
7682
  defaultValue: null,
7641
- bindingInfo: {
7642
- resource: "process",
7643
- resourceKeyPattern: "${metadata.key}",
7644
- propertyAttribute: "Key"
7645
- }
7683
+ target: "body"
7646
7684
  },
7647
7685
  {
7648
- name: "folderId",
7649
- type: "string",
7686
+ name: "Status",
7687
+ type: "dropdown",
7688
+ required: true,
7689
+ hidden: false,
7690
+ isPrimaryKey: false,
7691
+ binding: false,
7692
+ defaultValue: null,
7693
+ enum: [
7694
+ "Successful",
7695
+ "Failed"
7696
+ ],
7697
+ target: "body"
7698
+ },
7699
+ {
7700
+ name: "ErrorType",
7701
+ type: "dropdown",
7650
7702
  required: false,
7651
- hidden: true,
7703
+ hidden: false,
7652
7704
  isPrimaryKey: false,
7653
7705
  binding: false,
7654
- defaultValue: null
7706
+ defaultValue: null,
7707
+ enum: [
7708
+ "BusinessException",
7709
+ "ApplicationException"
7710
+ ],
7711
+ target: "body"
7655
7712
  },
7656
7713
  {
7657
- name: "folderPath",
7714
+ name: "Reason",
7658
7715
  type: "string",
7659
7716
  required: false,
7660
- hidden: true,
7717
+ hidden: false,
7661
7718
  isPrimaryKey: false,
7662
7719
  binding: false,
7663
- defaultValue: null
7720
+ defaultValue: null,
7721
+ target: "body"
7664
7722
  },
7665
7723
  {
7666
- name: "name",
7724
+ name: "Details",
7725
+ type: "string",
7726
+ required: false,
7727
+ hidden: false,
7728
+ isPrimaryKey: false,
7729
+ binding: false,
7730
+ defaultValue: null,
7731
+ target: "body"
7732
+ }
7733
+ ],
7734
+ inputName: "body",
7735
+ inputTarget: "body"
7736
+ },
7737
+ "Orchestrator.SetTransactionProgress": {
7738
+ extensionType: "Orchestrator.SetTransactionProgress",
7739
+ label: "Set transaction progress",
7740
+ bpmnElement: "bpmn:ServiceTask",
7741
+ placements: {
7742
+ activity: {
7743
+ type: "bpmn:ServiceTask"
7744
+ }
7745
+ },
7746
+ extensionTag: "uipath:activity",
7747
+ contextFields: [
7748
+ {
7749
+ name: "_label",
7667
7750
  type: "string",
7668
7751
  required: false,
7669
7752
  hidden: true,
@@ -7673,74 +7756,151 @@ var init_bpmn_spec = __esm(() => {
7673
7756
  }
7674
7757
  ],
7675
7758
  inputPattern: "mergedBody",
7676
- inputName: "JobArguments",
7677
- inputTarget: "bodyField",
7678
- outputSource: null,
7679
- outputType: "Orchestrator.RunJob",
7680
- outputName: "Process response",
7681
- useRelativeSource: true,
7682
- bindingPattern: "process",
7683
- bindingInfo: {
7684
- resource: "process",
7685
- resourceKeyPattern: "${metadata.key}",
7686
- propertyAttribute: "Key",
7687
- contextField: "releaseKey"
7688
- },
7689
- requiresDiscovery: true,
7690
- isDynamic: true,
7691
- xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
7759
+ outputSource: "=Error",
7760
+ outputType: "jsonSchema",
7761
+ outputName: "Error",
7762
+ bindingPattern: "none",
7763
+ requiresDiscovery: false,
7764
+ isDynamic: false,
7765
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
7692
7766
  <bpmn:extensionElements>
7693
7767
  <uipath:activity version="v1">
7694
- <uipath:type value="Orchestrator.StartAgenticProcess" version="v1" />
7695
- <uipath:context>
7696
- <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
7697
- <uipath:input name="folderId" type="string" value="{folderId}" />
7698
- <uipath:input name="folderPath" type="string" value="{folderPath}" />
7699
- <uipath:input name="name" type="string" value="{name}" />
7700
- </uipath:context>
7701
- <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
7702
- <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
7768
+ <uipath:type value="Orchestrator.SetTransactionProgress" version="v1" />
7769
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"QueueItem":{QueueItem},"Progress":"{Progress}"}]]></uipath:input>
7770
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{varId}" />
7703
7771
  </uipath:activity>
7704
7772
  </bpmn:extensionElements>
7705
7773
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
7706
7774
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
7707
- </bpmn:CallActivity>`,
7708
- discoveryNotes: "Uses getSupportedOrchestratorTasks('ProcessOrchestration', search, 0, 100, true) to list available agentic processes"
7775
+ </bpmn:ServiceTask>`,
7776
+ inputFields: [
7777
+ {
7778
+ name: "QueueItem",
7779
+ displayName: "Transaction item",
7780
+ type: "object",
7781
+ required: true,
7782
+ hidden: false,
7783
+ isPrimaryKey: false,
7784
+ binding: false,
7785
+ defaultValue: null,
7786
+ target: "body"
7787
+ },
7788
+ {
7789
+ name: "Progress",
7790
+ type: "string",
7791
+ required: true,
7792
+ hidden: false,
7793
+ isPrimaryKey: false,
7794
+ binding: false,
7795
+ defaultValue: null,
7796
+ target: "body"
7797
+ }
7798
+ ],
7799
+ inputName: "body",
7800
+ inputTarget: "body",
7801
+ inputNotes: 'All inputFields go as keys of one <uipath:input name="body" type="json" target="body"> CDATA object. QueueItem takes either a JSON object literal (e.g. an object with an Id property) or a quoted "=expr"; it is not itself quoted in the template.'
7709
7802
  },
7710
- "Orchestrator.StartAgenticProcessAsync": {
7711
- extensionType: "Orchestrator.StartAgenticProcessAsync",
7712
- label: "Start agentic process",
7713
- bpmnElement: "bpmn:CallActivity",
7803
+ "Orchestrator.PostponeTransactionItem": {
7804
+ extensionType: "Orchestrator.PostponeTransactionItem",
7805
+ label: "Postpone transaction item",
7806
+ bpmnElement: "bpmn:ServiceTask",
7714
7807
  placements: {
7715
7808
  activity: {
7716
- type: "bpmn:CallActivity"
7809
+ type: "bpmn:ServiceTask"
7717
7810
  }
7718
7811
  },
7719
7812
  extensionTag: "uipath:activity",
7720
7813
  contextFields: [
7721
7814
  {
7722
- name: "releaseKey",
7723
- displayName: "Process",
7815
+ name: "_label",
7724
7816
  type: "string",
7725
7817
  required: false,
7726
7818
  hidden: true,
7727
7819
  isPrimaryKey: false,
7728
7820
  binding: false,
7821
+ defaultValue: null
7822
+ }
7823
+ ],
7824
+ inputPattern: "mergedBody",
7825
+ outputSource: "=Error",
7826
+ outputType: "jsonSchema",
7827
+ outputName: "Error",
7828
+ bindingPattern: "none",
7829
+ requiresDiscovery: false,
7830
+ isDynamic: false,
7831
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
7832
+ <bpmn:extensionElements>
7833
+ <uipath:activity version="v1">
7834
+ <uipath:type value="Orchestrator.PostponeTransactionItem" version="v1" />
7835
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"QueueItem":{QueueItem},"PostponeDate":"{PostponeDate}","DueDate":null}]]></uipath:input>
7836
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{varId}" />
7837
+ </uipath:activity>
7838
+ </bpmn:extensionElements>
7839
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
7840
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
7841
+ </bpmn:ServiceTask>`,
7842
+ inputFields: [
7843
+ {
7844
+ name: "QueueItem",
7845
+ displayName: "Transaction item",
7846
+ type: "object",
7847
+ required: true,
7848
+ hidden: false,
7849
+ isPrimaryKey: false,
7850
+ binding: false,
7729
7851
  defaultValue: null,
7730
- bindingInfo: {
7731
- resource: "process",
7732
- resourceKeyPattern: "${metadata.key}",
7733
- propertyAttribute: "Key"
7734
- }
7852
+ target: "body"
7735
7853
  },
7736
7854
  {
7737
- name: "folderId",
7855
+ name: "PostponeDate",
7856
+ type: "datetime",
7857
+ required: true,
7858
+ hidden: false,
7859
+ isPrimaryKey: false,
7860
+ binding: false,
7861
+ defaultValue: null,
7862
+ target: "body"
7863
+ },
7864
+ {
7865
+ name: "DueDate",
7866
+ type: "datetime",
7867
+ required: false,
7868
+ hidden: false,
7869
+ isPrimaryKey: false,
7870
+ binding: false,
7871
+ defaultValue: null,
7872
+ target: "body"
7873
+ }
7874
+ ],
7875
+ inputName: "body",
7876
+ inputTarget: "body",
7877
+ inputNotes: 'All inputFields go as keys of one <uipath:input name="body" type="json" target="body"> CDATA object. QueueItem takes either a JSON object literal (e.g. an object with an Id property) or a quoted "=expr"; it is not itself quoted in the template. Optional fields default to null in this example; fill only what you use.'
7878
+ },
7879
+ "Orchestrator.BulkAddQueueItems": {
7880
+ extensionType: "Orchestrator.BulkAddQueueItems",
7881
+ label: "Bulk add queue items",
7882
+ bpmnElement: "bpmn:ServiceTask",
7883
+ placements: {
7884
+ activity: {
7885
+ type: "bpmn:ServiceTask"
7886
+ }
7887
+ },
7888
+ extensionTag: "uipath:activity",
7889
+ contextFields: [
7890
+ {
7891
+ name: "queueName",
7892
+ displayName: "Queue name",
7738
7893
  type: "string",
7739
7894
  required: false,
7740
7895
  hidden: true,
7741
7896
  isPrimaryKey: false,
7742
7897
  binding: false,
7743
- defaultValue: null
7898
+ defaultValue: null,
7899
+ bindingInfo: {
7900
+ resource: "queue",
7901
+ resourceKeyPattern: "${folderPath}.${name}",
7902
+ propertyAttribute: "name"
7903
+ }
7744
7904
  },
7745
7905
  {
7746
7906
  name: "folderPath",
@@ -7752,7 +7912,7 @@ var init_bpmn_spec = __esm(() => {
7752
7912
  defaultValue: null
7753
7913
  },
7754
7914
  {
7755
- name: "name",
7915
+ name: "_label",
7756
7916
  type: "string",
7757
7917
  required: false,
7758
7918
  hidden: true,
@@ -7762,53 +7922,136 @@ var init_bpmn_spec = __esm(() => {
7762
7922
  }
7763
7923
  ],
7764
7924
  inputPattern: "mergedBody",
7765
- inputName: "JobArguments",
7766
- inputTarget: "bodyField",
7767
- outputSource: null,
7768
- outputType: null,
7769
- outputName: null,
7770
- outputNotes: "Fire-and-forget: the canvas clears the process outputs for this type (getAgenticProcessInputOutputValues sets outputs to [] for Orchestrator.StartAgenticProcessAsync), so the payload carries none of the entry-point outputs its sync sibling returns. A process picked straight from Orchestrator (no solutionResourceKey) can still contribute task-definition outputs, which is why this type stays on the canvas-owned dynamic path. Use Orchestrator.StartAgenticProcess when you need the job result.",
7771
- bindingPattern: "process",
7925
+ outputSource: "=response",
7926
+ outputType: "jsonSchema",
7927
+ outputName: "response",
7928
+ bindingPattern: "queue",
7772
7929
  bindingInfo: {
7773
- resource: "process",
7774
- resourceKeyPattern: "${metadata.key}",
7775
- propertyAttribute: "Key",
7776
- contextField: "releaseKey"
7930
+ resource: "queue",
7931
+ resourceKeyPattern: "${folderPath}.${name}",
7932
+ propertyAttribute: "name",
7933
+ contextField: "queueName"
7777
7934
  },
7778
7935
  requiresDiscovery: true,
7779
- isDynamic: true,
7780
- xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
7936
+ isDynamic: false,
7937
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
7781
7938
  <bpmn:extensionElements>
7782
7939
  <uipath:activity version="v1">
7783
- <uipath:type value="Orchestrator.StartAgenticProcessAsync" version="v1" />
7940
+ <uipath:type value="Orchestrator.BulkAddQueueItems" version="v2" />
7784
7941
  <uipath:context>
7785
- <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
7786
- <uipath:input name="folderId" type="string" value="{folderId}" />
7942
+ <uipath:input name="queueName" type="string" value="{queueName}" />
7787
7943
  <uipath:input name="folderPath" type="string" value="{folderPath}" />
7788
- <uipath:input name="name" type="string" value="{name}" />
7789
7944
  </uipath:context>
7790
- <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
7945
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"QueueItems":{QueueItems},"CommitStrategy":"{CommitStrategy}"}]]></uipath:input>
7946
+ <uipath:output name="response" type="jsonSchema" source="=response" var="{varId}" />
7791
7947
  </uipath:activity>
7792
7948
  </bpmn:extensionElements>
7793
7949
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
7794
7950
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
7795
- </bpmn:CallActivity>`,
7796
- discoveryNotes: "Uses getSupportedOrchestratorTasks('ProcessOrchestration', search, 0, 100, true) to list available agentic processes"
7951
+ </bpmn:ServiceTask>`,
7952
+ discoveryNotes: "Uses getQueueDefinitions(serviceType, search) to list available queues.",
7953
+ inputNotes: 'All inputFields go as keys of one <uipath:input name="body" type="json" target="body"> CDATA object. QueueItems takes either a JSON array literal or a quoted "=expr"; it is not itself quoted in the template.',
7954
+ outputNotes: "isDynamic is false even though the design schema says true: the queue picker only sets context and bindings here, and the input/output pair is fixed (see inputNotes), so the strict field checks are safe and should stay.",
7955
+ inputFields: [
7956
+ {
7957
+ name: "QueueItems",
7958
+ displayName: "Transaction items",
7959
+ type: "json",
7960
+ required: true,
7961
+ hidden: false,
7962
+ isPrimaryKey: false,
7963
+ binding: false,
7964
+ target: "body"
7965
+ },
7966
+ {
7967
+ name: "CommitStrategy",
7968
+ displayName: "Commit strategy",
7969
+ type: "dropdown",
7970
+ required: true,
7971
+ hidden: false,
7972
+ isPrimaryKey: false,
7973
+ binding: false,
7974
+ defaultValue: "AllOrNothing",
7975
+ enum: [
7976
+ "AllOrNothing",
7977
+ "StopOnFirstFailure",
7978
+ "ProcessAllIndependently"
7979
+ ],
7980
+ target: "body"
7981
+ }
7982
+ ],
7983
+ inputName: "body",
7984
+ inputTarget: "body"
7797
7985
  },
7798
- "Orchestrator.StartCaseMgmtProcess": {
7799
- extensionType: "Orchestrator.StartCaseMgmtProcess",
7800
- label: "Start and wait for case management",
7801
- bpmnElement: "bpmn:CallActivity",
7986
+ "Orchestrator.DeleteQueueItems": {
7987
+ extensionType: "Orchestrator.DeleteQueueItems",
7988
+ label: "Delete queue items",
7989
+ bpmnElement: "bpmn:ServiceTask",
7802
7990
  placements: {
7803
7991
  activity: {
7804
- type: "bpmn:CallActivity"
7992
+ type: "bpmn:ServiceTask"
7805
7993
  }
7806
7994
  },
7807
7995
  extensionTag: "uipath:activity",
7808
7996
  contextFields: [
7809
7997
  {
7810
- name: "releaseKey",
7811
- displayName: "Process",
7998
+ name: "_label",
7999
+ type: "string",
8000
+ required: false,
8001
+ hidden: true,
8002
+ isPrimaryKey: false,
8003
+ binding: false,
8004
+ defaultValue: null
8005
+ }
8006
+ ],
8007
+ inputPattern: "mergedBody",
8008
+ outputSource: "=deletedCount",
8009
+ outputType: "jsonSchema",
8010
+ outputName: "deletedCount",
8011
+ bindingPattern: "none",
8012
+ requiresDiscovery: false,
8013
+ isDynamic: false,
8014
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
8015
+ <bpmn:extensionElements>
8016
+ <uipath:activity version="v1">
8017
+ <uipath:type value="Orchestrator.DeleteQueueItems" version="v1" />
8018
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"Items":{Items}}]]></uipath:input>
8019
+ <uipath:output name="deletedCount" type="jsonSchema" source="=deletedCount" var="{varId}" />
8020
+ </uipath:activity>
8021
+ </bpmn:extensionElements>
8022
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
8023
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
8024
+ </bpmn:ServiceTask>`,
8025
+ inputNotes: 'All inputFields go as keys of one <uipath:input name="body" type="json" target="body"> CDATA object. Items takes either a JSON array literal or a quoted "=expr"; it is not itself quoted in the template.',
8026
+ inputFields: [
8027
+ {
8028
+ name: "Items",
8029
+ displayName: "Transaction items",
8030
+ type: "json",
8031
+ required: true,
8032
+ hidden: false,
8033
+ isPrimaryKey: false,
8034
+ binding: false,
8035
+ target: "body"
8036
+ }
8037
+ ],
8038
+ inputName: "body",
8039
+ inputTarget: "body"
8040
+ },
8041
+ "Orchestrator.GetTransactionItem": {
8042
+ extensionType: "Orchestrator.GetTransactionItem",
8043
+ label: "Get transaction item",
8044
+ bpmnElement: "bpmn:ServiceTask",
8045
+ placements: {
8046
+ activity: {
8047
+ type: "bpmn:ServiceTask"
8048
+ }
8049
+ },
8050
+ extensionTag: "uipath:activity",
8051
+ contextFields: [
8052
+ {
8053
+ name: "queueName",
8054
+ displayName: "Queue name",
7812
8055
  type: "string",
7813
8056
  required: false,
7814
8057
  hidden: true,
@@ -7816,13 +8059,13 @@ var init_bpmn_spec = __esm(() => {
7816
8059
  binding: false,
7817
8060
  defaultValue: null,
7818
8061
  bindingInfo: {
7819
- resource: "process",
7820
- resourceKeyPattern: "${metadata.key}",
7821
- propertyAttribute: "Key"
8062
+ resource: "queue",
8063
+ resourceKeyPattern: "${folderPath}.${name}",
8064
+ propertyAttribute: "name"
7822
8065
  }
7823
8066
  },
7824
8067
  {
7825
- name: "folderId",
8068
+ name: "folderPath",
7826
8069
  type: "string",
7827
8070
  required: false,
7828
8071
  hidden: true,
@@ -7831,7 +8074,7 @@ var init_bpmn_spec = __esm(() => {
7831
8074
  defaultValue: null
7832
8075
  },
7833
8076
  {
7834
- name: "folderPath",
8077
+ name: "_label",
7835
8078
  type: "string",
7836
8079
  required: false,
7837
8080
  hidden: true,
@@ -7840,78 +8083,107 @@ var init_bpmn_spec = __esm(() => {
7840
8083
  defaultValue: null
7841
8084
  },
7842
8085
  {
7843
- name: "name",
8086
+ name: "reference",
8087
+ displayName: "Reference",
7844
8088
  type: "string",
7845
8089
  required: false,
7846
8090
  hidden: true,
7847
8091
  isPrimaryKey: false,
7848
8092
  binding: false,
7849
8093
  defaultValue: null
8094
+ },
8095
+ {
8096
+ name: "filterStrategy",
8097
+ displayName: "Reference filter strategy",
8098
+ type: "string",
8099
+ required: false,
8100
+ hidden: true,
8101
+ isPrimaryKey: false,
8102
+ binding: false,
8103
+ defaultValue: "StartsWith",
8104
+ enum: [
8105
+ "StartsWith",
8106
+ "Equals"
8107
+ ]
7850
8108
  }
7851
8109
  ],
7852
- inputPattern: "mergedBody",
7853
- inputName: "JobArguments",
7854
- inputTarget: "bodyField",
7855
- outputSource: null,
7856
- outputType: "Orchestrator.RunJob",
7857
- outputName: "Process response",
7858
- useRelativeSource: true,
7859
- bindingPattern: "process",
8110
+ inputPattern: "none",
8111
+ outputSource: "=result",
8112
+ outputType: "jsonSchema",
8113
+ outputName: "TransactionItem",
8114
+ additionalOutputs: [
8115
+ {
8116
+ name: "hasItem",
8117
+ type: "boolean",
8118
+ source: "=hasItem",
8119
+ required: true
8120
+ },
8121
+ {
8122
+ name: "Error",
8123
+ type: "jsonSchema",
8124
+ source: "=Error",
8125
+ required: true
8126
+ }
8127
+ ],
8128
+ bindingPattern: "queue",
7860
8129
  bindingInfo: {
7861
- resource: "process",
7862
- resourceKeyPattern: "${metadata.key}",
7863
- propertyAttribute: "Key",
7864
- contextField: "releaseKey"
8130
+ resource: "queue",
8131
+ resourceKeyPattern: "${folderPath}.${name}",
8132
+ propertyAttribute: "name",
8133
+ contextField: "queueName"
7865
8134
  },
7866
8135
  requiresDiscovery: true,
7867
- isDynamic: true,
7868
- xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
8136
+ isDynamic: false,
8137
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
7869
8138
  <bpmn:extensionElements>
7870
8139
  <uipath:activity version="v1">
7871
- <uipath:type value="Orchestrator.StartCaseMgmtProcess" version="v1" />
8140
+ <uipath:type value="Orchestrator.GetTransactionItem" version="v2" />
7872
8141
  <uipath:context>
7873
- <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
7874
- <uipath:input name="folderId" type="string" value="{folderId}" />
8142
+ <uipath:input name="queueName" type="string" value="{queueName}" />
7875
8143
  <uipath:input name="folderPath" type="string" value="{folderPath}" />
7876
- <uipath:input name="name" type="string" value="{name}" />
8144
+ <uipath:input name="reference" type="string" value="" />
8145
+ <uipath:input name="filterStrategy" type="string" value="StartsWith" />
7877
8146
  </uipath:context>
7878
- <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
7879
- <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
8147
+ <uipath:output name="hasItem" type="boolean" source="=hasItem" var="{hasItemVarId}" />
8148
+ <uipath:output name="TransactionItem" type="jsonSchema" source="=result" var="{varId}" />
8149
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
7880
8150
  </uipath:activity>
7881
8151
  </bpmn:extensionElements>
7882
8152
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
7883
8153
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
7884
- </bpmn:CallActivity>`,
7885
- discoveryNotes: "Uses getSupportedOrchestratorTasks('caseManagement', search, 0, 100, true) to list available case management processes"
8154
+ </bpmn:ServiceTask>`,
8155
+ discoveryNotes: "Uses getQueueDefinitions(serviceType, search) to list available queues.",
8156
+ outputNotes: "hasItem is the branchable empty-queue signal (the only property guaranteed on an empty queue). The engine flattens the dequeued item onto the result root, so =result binds TransactionItem; it is typed like the trigger's item so it chains into Set transaction status / progress / Postpone (their QueueItem input). The canvas serializes three outputs (hasItem, TransactionItem, Error); outputName/outputSource/outputType name the primary (TransactionItem) and additionalOutputs declares the other two, so all three are gated on name, type, source and presence.",
8157
+ contextFieldNotes: "reference and filterStrategy live in uipath:context next to queueName; the backend reads them there. filterStrategy mirrors Orchestrator's QueueItemsFilterStrategy (default StartsWith)."
7886
8158
  },
7887
- "Orchestrator.StartCaseMgmtProcessAsync": {
7888
- extensionType: "Orchestrator.StartCaseMgmtProcessAsync",
7889
- label: "Start case management",
7890
- bpmnElement: "bpmn:CallActivity",
8159
+ "Orchestrator.GetQueueItems": {
8160
+ extensionType: "Orchestrator.GetQueueItems",
8161
+ label: "Get queue items",
8162
+ bpmnElement: "bpmn:ServiceTask",
7891
8163
  placements: {
7892
8164
  activity: {
7893
- type: "bpmn:CallActivity"
8165
+ type: "bpmn:ServiceTask"
7894
8166
  }
7895
8167
  },
7896
8168
  extensionTag: "uipath:activity",
7897
8169
  contextFields: [
7898
8170
  {
7899
- name: "releaseKey",
7900
- displayName: "Process",
8171
+ name: "queueName",
7901
8172
  type: "string",
7902
8173
  required: false,
7903
8174
  hidden: true,
7904
8175
  isPrimaryKey: false,
7905
8176
  binding: false,
7906
8177
  defaultValue: null,
8178
+ displayName: "Queue name",
7907
8179
  bindingInfo: {
7908
- resource: "process",
7909
- resourceKeyPattern: "${metadata.key}",
7910
- propertyAttribute: "Key"
8180
+ resource: "queue",
8181
+ resourceKeyPattern: "${folderPath}.${name}",
8182
+ propertyAttribute: "name"
7911
8183
  }
7912
8184
  },
7913
8185
  {
7914
- name: "folderId",
8186
+ name: "folderPath",
7915
8187
  type: "string",
7916
8188
  required: false,
7917
8189
  hidden: true,
@@ -7920,7 +8192,7 @@ var init_bpmn_spec = __esm(() => {
7920
8192
  defaultValue: null
7921
8193
  },
7922
8194
  {
7923
- name: "folderPath",
8195
+ name: "_label",
7924
8196
  type: "string",
7925
8197
  required: false,
7926
8198
  hidden: true,
@@ -7929,74 +8201,217 @@ var init_bpmn_spec = __esm(() => {
7929
8201
  defaultValue: null
7930
8202
  },
7931
8203
  {
7932
- name: "name",
8204
+ name: "statuses",
7933
8205
  type: "string",
7934
8206
  required: false,
7935
8207
  hidden: true,
7936
8208
  isPrimaryKey: false,
7937
8209
  binding: false,
7938
- defaultValue: null
8210
+ defaultValue: null,
8211
+ displayName: "Status"
8212
+ },
8213
+ {
8214
+ name: "reference",
8215
+ type: "string",
8216
+ required: false,
8217
+ hidden: true,
8218
+ isPrimaryKey: false,
8219
+ binding: false,
8220
+ defaultValue: null,
8221
+ displayName: "Reference"
7939
8222
  }
7940
8223
  ],
7941
- inputPattern: "mergedBody",
7942
- inputName: "JobArguments",
7943
- inputTarget: "bodyField",
7944
- outputSource: null,
7945
- outputType: null,
7946
- outputName: null,
7947
- outputNotes: "Fire-and-forget: the canvas clears the process outputs for this type (getAgenticProcessInputOutputValues sets outputs to [] for Orchestrator.StartCaseMgmtProcessAsync), so the payload carries none of the entry-point outputs its sync sibling returns. A process picked straight from Orchestrator (no solutionResourceKey) can still contribute task-definition outputs, which is why this type stays on the canvas-owned dynamic path. Use Orchestrator.StartCaseMgmtProcess when you need the job result.",
7948
- bindingPattern: "process",
8224
+ inputPattern: "none",
8225
+ outputSource: "=queueItems",
8226
+ outputType: "jsonSchema",
8227
+ outputName: "QueueItems",
8228
+ additionalOutputs: [
8229
+ {
8230
+ name: "Count",
8231
+ type: "number",
8232
+ source: "=count",
8233
+ required: true
8234
+ },
8235
+ {
8236
+ name: "Error",
8237
+ type: "jsonSchema",
8238
+ source: "=Error",
8239
+ required: true
8240
+ }
8241
+ ],
8242
+ bindingPattern: "queue",
7949
8243
  bindingInfo: {
7950
- resource: "process",
7951
- resourceKeyPattern: "${metadata.key}",
7952
- propertyAttribute: "Key",
7953
- contextField: "releaseKey"
8244
+ resource: "queue",
8245
+ resourceKeyPattern: "${folderPath}.${name}",
8246
+ propertyAttribute: "name",
8247
+ contextField: "queueName"
7954
8248
  },
7955
8249
  requiresDiscovery: true,
7956
- isDynamic: true,
7957
- xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
8250
+ isDynamic: false,
8251
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
7958
8252
  <bpmn:extensionElements>
7959
8253
  <uipath:activity version="v1">
7960
- <uipath:type value="Orchestrator.StartCaseMgmtProcessAsync" version="v1" />
8254
+ <uipath:type value="Orchestrator.GetQueueItems" version="v2" />
7961
8255
  <uipath:context>
7962
- <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
7963
- <uipath:input name="folderId" type="string" value="{folderId}" />
8256
+ <uipath:input name="queueName" type="string" value="{queueName}" />
7964
8257
  <uipath:input name="folderPath" type="string" value="{folderPath}" />
7965
- <uipath:input name="name" type="string" value="{name}" />
8258
+ <uipath:input name="statuses" type="string" value="{statuses}" />
8259
+ <uipath:input name="reference" type="string" value="{reference}" />
7966
8260
  </uipath:context>
7967
- <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
8261
+ <uipath:output name="QueueItems" type="jsonSchema" source="=queueItems" var="{varId}" />
8262
+ <uipath:output name="Count" type="number" source="=count" var="{countVarId}" />
8263
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
7968
8264
  </uipath:activity>
7969
8265
  </bpmn:extensionElements>
7970
8266
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
7971
8267
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
7972
- </bpmn:CallActivity>`,
7973
- discoveryNotes: "Uses getSupportedOrchestratorTasks('caseManagement', search, 0, 100, true) to list available case management processes"
8268
+ </bpmn:ServiceTask>`,
8269
+ discoveryNotes: "Uses getQueueDefinitions(serviceType, search) to list available queues.",
8270
+ outputNotes: "The canvas serializes three outputs (QueueItems, Count, Error); outputName/outputSource/outputType name the primary (QueueItems) and additionalOutputs declares the other two, so all three are gated on name, type, source and presence.",
8271
+ contextFieldNotes: "statuses and reference filter the returned items and live in uipath:context alongside queueName."
7974
8272
  },
7975
- "Orchestrator.StartFlowProcess": {
7976
- extensionType: "Orchestrator.StartFlowProcess",
7977
- label: "Start and wait for Maestro Flow",
7978
- bpmnElement: "bpmn:CallActivity",
8273
+ "Queue.WaitForEvent": {
8274
+ extensionType: "Queue.WaitForEvent",
8275
+ label: "Wait for queue item",
8276
+ bpmnElement: "bpmn:ReceiveTask",
7979
8277
  placements: {
7980
8278
  activity: {
7981
- type: "bpmn:CallActivity"
8279
+ type: "bpmn:ReceiveTask"
8280
+ },
8281
+ event: {
8282
+ type: "bpmn:IntermediateCatchEvent",
8283
+ eventDefinition: {
8284
+ type: "bpmn:MessageEventDefinition"
8285
+ }
7982
8286
  }
7983
8287
  },
7984
- extensionTag: "uipath:activity",
8288
+ extensionTag: "uipath:event",
7985
8289
  contextFields: [
7986
8290
  {
7987
- name: "releaseKey",
7988
- displayName: "Maestro Flow",
8291
+ name: "queueName",
7989
8292
  type: "string",
7990
8293
  required: false,
7991
8294
  hidden: true,
7992
8295
  isPrimaryKey: false,
7993
8296
  binding: false,
7994
8297
  defaultValue: null,
8298
+ displayName: "Queue name",
7995
8299
  bindingInfo: {
7996
- resource: "process",
7997
- resourceKeyPattern: "${metadata.key}",
7998
- propertyAttribute: "Key"
7999
- }
8300
+ resource: "queue",
8301
+ resourceKeyPattern: "${folderPath}.${name}",
8302
+ propertyAttribute: "name"
8303
+ }
8304
+ },
8305
+ {
8306
+ name: "folderPath",
8307
+ type: "string",
8308
+ required: false,
8309
+ hidden: true,
8310
+ isPrimaryKey: false,
8311
+ binding: false,
8312
+ defaultValue: null
8313
+ },
8314
+ {
8315
+ name: "_label",
8316
+ type: "string",
8317
+ required: false,
8318
+ hidden: true,
8319
+ isPrimaryKey: false,
8320
+ binding: false,
8321
+ defaultValue: null
8322
+ },
8323
+ {
8324
+ name: "reference",
8325
+ type: "string",
8326
+ required: false,
8327
+ hidden: true,
8328
+ isPrimaryKey: false,
8329
+ binding: false,
8330
+ defaultValue: null,
8331
+ displayName: "Reference"
8332
+ },
8333
+ {
8334
+ name: "filterStrategy",
8335
+ type: "string",
8336
+ required: false,
8337
+ hidden: true,
8338
+ isPrimaryKey: false,
8339
+ binding: false,
8340
+ defaultValue: "StartsWith",
8341
+ displayName: "Reference filter strategy",
8342
+ enum: [
8343
+ "StartsWith",
8344
+ "Equals"
8345
+ ]
8346
+ }
8347
+ ],
8348
+ inputPattern: "none",
8349
+ outputSource: "=result",
8350
+ outputType: "jsonSchema",
8351
+ outputName: "TransactionItem",
8352
+ additionalOutputs: [
8353
+ {
8354
+ name: "Error",
8355
+ type: "jsonSchema",
8356
+ source: "=Error",
8357
+ required: true
8358
+ }
8359
+ ],
8360
+ bindingPattern: "queue",
8361
+ bindingInfo: {
8362
+ resource: "queue",
8363
+ resourceKeyPattern: "${folderPath}.${name}",
8364
+ propertyAttribute: "name",
8365
+ contextField: "queueName"
8366
+ },
8367
+ requiresDiscovery: true,
8368
+ isDynamic: false,
8369
+ xmlTemplate: `<bpmn:ReceiveTask id="{id}" name="{name}">
8370
+ <bpmn:extensionElements>
8371
+ <uipath:event version="v1">
8372
+ <uipath:type value="Queue.WaitForEvent" version="v2" />
8373
+ <uipath:context>
8374
+ <uipath:input name="queueName" type="string" value="{queueName}" />
8375
+ <uipath:input name="folderPath" type="string" value="{folderPath}" />
8376
+ <uipath:input name="reference" type="string" value="" />
8377
+ <uipath:input name="filterStrategy" type="string" value="StartsWith" />
8378
+ </uipath:context>
8379
+ <uipath:output name="TransactionItem" type="jsonSchema" source="=result" var="{varId}" />
8380
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
8381
+ </uipath:event>
8382
+ </bpmn:extensionElements>
8383
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
8384
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
8385
+ </bpmn:ReceiveTask>`,
8386
+ discoveryNotes: "Uses getQueueDefinitions(serviceType, search) to list available queues.",
8387
+ outputNotes: "The canvas serializes two outputs (TransactionItem, Error); outputName/outputSource/outputType name the primary (TransactionItem) and additionalOutputs declares Error, so both are gated on name, type, source and presence.",
8388
+ extensionTagNotes: "Registered in the PO.Frontend isEvents array, so it serializes as uipath:event and never reaches the merged-body branch."
8389
+ },
8390
+ "Orchestrator.StartAgenticProcess": {
8391
+ extensionType: "Orchestrator.StartAgenticProcess",
8392
+ label: "Start and wait for agentic process",
8393
+ bpmnElement: "bpmn:CallActivity",
8394
+ placements: {
8395
+ activity: {
8396
+ type: "bpmn:CallActivity"
8397
+ }
8398
+ },
8399
+ extensionTag: "uipath:activity",
8400
+ contextFields: [
8401
+ {
8402
+ name: "releaseKey",
8403
+ displayName: "Process",
8404
+ type: "string",
8405
+ required: false,
8406
+ hidden: true,
8407
+ isPrimaryKey: false,
8408
+ binding: false,
8409
+ defaultValue: null,
8410
+ bindingInfo: {
8411
+ resource: "process",
8412
+ resourceKeyPattern: "${metadata.key}",
8413
+ propertyAttribute: "Key"
8414
+ }
8000
8415
  },
8001
8416
  {
8002
8417
  name: "folderId",
@@ -8045,7 +8460,7 @@ var init_bpmn_spec = __esm(() => {
8045
8460
  xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
8046
8461
  <bpmn:extensionElements>
8047
8462
  <uipath:activity version="v1">
8048
- <uipath:type value="Orchestrator.StartFlowProcess" version="v2" />
8463
+ <uipath:type value="Orchestrator.StartAgenticProcess" version="v1" />
8049
8464
  <uipath:context>
8050
8465
  <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
8051
8466
  <uipath:input name="folderId" type="string" value="{folderId}" />
@@ -8059,11 +8474,11 @@ var init_bpmn_spec = __esm(() => {
8059
8474
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
8060
8475
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
8061
8476
  </bpmn:CallActivity>`,
8062
- discoveryNotes: "Uses getSupportedOrchestratorTasks('Flow', search, 0, 100, true) to list available flow processes. Studio Web bindings use the Flow process resource subtype."
8477
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('ProcessOrchestration', search, 0, 100, true) to list available agentic processes"
8063
8478
  },
8064
- "Orchestrator.StartFlowProcessAsync": {
8065
- extensionType: "Orchestrator.StartFlowProcessAsync",
8066
- label: "Start Maestro Flow",
8479
+ "Orchestrator.StartAgenticProcessAsync": {
8480
+ extensionType: "Orchestrator.StartAgenticProcessAsync",
8481
+ label: "Start agentic process",
8067
8482
  bpmnElement: "bpmn:CallActivity",
8068
8483
  placements: {
8069
8484
  activity: {
@@ -8074,7 +8489,7 @@ var init_bpmn_spec = __esm(() => {
8074
8489
  contextFields: [
8075
8490
  {
8076
8491
  name: "releaseKey",
8077
- displayName: "Maestro Flow",
8492
+ displayName: "Process",
8078
8493
  type: "string",
8079
8494
  required: false,
8080
8495
  hidden: true,
@@ -8121,7 +8536,7 @@ var init_bpmn_spec = __esm(() => {
8121
8536
  outputSource: null,
8122
8537
  outputType: null,
8123
8538
  outputName: null,
8124
- outputNotes: "Fire-and-forget: the canvas clears the process outputs for this type (getAgenticProcessInputOutputValues sets outputs to [] for Orchestrator.StartFlowProcessAsync), so the payload carries none of the entry-point outputs its sync sibling returns. A process picked straight from Orchestrator (no solutionResourceKey) can still contribute task-definition outputs, which is why this type stays on the canvas-owned dynamic path. Use Orchestrator.StartFlowProcess when you need the job result.",
8539
+ outputNotes: "Fire-and-forget: the canvas clears the process outputs for this type (getAgenticProcessInputOutputValues sets outputs to [] for Orchestrator.StartAgenticProcessAsync), so the payload carries none of the entry-point outputs its sync sibling returns. A process picked straight from Orchestrator (no solutionResourceKey) can still contribute task-definition outputs, which is why this type stays on the canvas-owned dynamic path. Use Orchestrator.StartAgenticProcess when you need the job result.",
8125
8540
  bindingPattern: "process",
8126
8541
  bindingInfo: {
8127
8542
  resource: "process",
@@ -8134,7 +8549,7 @@ var init_bpmn_spec = __esm(() => {
8134
8549
  xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
8135
8550
  <bpmn:extensionElements>
8136
8551
  <uipath:activity version="v1">
8137
- <uipath:type value="Orchestrator.StartFlowProcessAsync" version="v2" />
8552
+ <uipath:type value="Orchestrator.StartAgenticProcessAsync" version="v1" />
8138
8553
  <uipath:context>
8139
8554
  <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
8140
8555
  <uipath:input name="folderId" type="string" value="{folderId}" />
@@ -8147,191 +8562,990 @@ var init_bpmn_spec = __esm(() => {
8147
8562
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
8148
8563
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
8149
8564
  </bpmn:CallActivity>`,
8150
- discoveryNotes: "Uses getSupportedOrchestratorTasks('Flow', search, 0, 100, true) to list available flow processes."
8565
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('ProcessOrchestration', search, 0, 100, true) to list available agentic processes"
8151
8566
  },
8152
- "A2A.AgentExecution": {
8153
- extensionType: "A2A.AgentExecution",
8154
- label: "Start and wait for A2A agent",
8155
- bpmnElement: "bpmn:ServiceTask",
8567
+ "Orchestrator.StartCaseMgmtProcess": {
8568
+ extensionType: "Orchestrator.StartCaseMgmtProcess",
8569
+ label: "Start and wait for case management",
8570
+ bpmnElement: "bpmn:CallActivity",
8156
8571
  placements: {
8157
8572
  activity: {
8158
- type: "bpmn:ServiceTask"
8573
+ type: "bpmn:CallActivity"
8159
8574
  }
8160
8575
  },
8161
8576
  extensionTag: "uipath:activity",
8162
- contextFields: [],
8577
+ contextFields: [
8578
+ {
8579
+ name: "releaseKey",
8580
+ displayName: "Process",
8581
+ type: "string",
8582
+ required: false,
8583
+ hidden: true,
8584
+ isPrimaryKey: false,
8585
+ binding: false,
8586
+ defaultValue: null,
8587
+ bindingInfo: {
8588
+ resource: "process",
8589
+ resourceKeyPattern: "${metadata.key}",
8590
+ propertyAttribute: "Key"
8591
+ }
8592
+ },
8593
+ {
8594
+ name: "folderId",
8595
+ type: "string",
8596
+ required: false,
8597
+ hidden: true,
8598
+ isPrimaryKey: false,
8599
+ binding: false,
8600
+ defaultValue: null
8601
+ },
8602
+ {
8603
+ name: "folderPath",
8604
+ type: "string",
8605
+ required: false,
8606
+ hidden: true,
8607
+ isPrimaryKey: false,
8608
+ binding: false,
8609
+ defaultValue: null
8610
+ },
8611
+ {
8612
+ name: "name",
8613
+ type: "string",
8614
+ required: false,
8615
+ hidden: true,
8616
+ isPrimaryKey: false,
8617
+ binding: false,
8618
+ defaultValue: null
8619
+ }
8620
+ ],
8163
8621
  inputPattern: "mergedBody",
8164
- inputName: "body",
8165
- inputTarget: "body",
8622
+ inputName: "JobArguments",
8623
+ inputTarget: "bodyField",
8166
8624
  outputSource: null,
8167
- outputType: "A2A.AgentExecution",
8168
- outputName: "a2aResponse",
8625
+ outputType: "Orchestrator.RunJob",
8626
+ outputName: "Process response",
8169
8627
  useRelativeSource: true,
8170
- bindingPattern: "none",
8171
- requiresDiscovery: false,
8628
+ bindingPattern: "process",
8629
+ bindingInfo: {
8630
+ resource: "process",
8631
+ resourceKeyPattern: "${metadata.key}",
8632
+ propertyAttribute: "Key",
8633
+ contextField: "releaseKey"
8634
+ },
8635
+ requiresDiscovery: true,
8172
8636
  isDynamic: true,
8173
- xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
8637
+ xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
8174
8638
  <bpmn:extensionElements>
8175
8639
  <uipath:activity version="v1">
8176
- <uipath:type value="A2A.AgentExecution" version="v1" />
8177
- <uipath:input name="body" type="json" target="body"><![CDATA[{"agentUrl":"{agentUrl}","skillId":"{skillId}","input":"{input}","authToken":"{authToken}","agentName":"{agentName}"}]]></uipath:input>
8178
- <uipath:output name="a2aResponse" type="A2A.AgentExecution" var="{varId}" />
8640
+ <uipath:type value="Orchestrator.StartCaseMgmtProcess" version="v1" />
8641
+ <uipath:context>
8642
+ <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
8643
+ <uipath:input name="folderId" type="string" value="{folderId}" />
8644
+ <uipath:input name="folderPath" type="string" value="{folderPath}" />
8645
+ <uipath:input name="name" type="string" value="{name}" />
8646
+ </uipath:context>
8647
+ <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
8648
+ <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
8179
8649
  </uipath:activity>
8180
8650
  </bpmn:extensionElements>
8181
8651
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
8182
8652
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
8183
- </bpmn:ServiceTask>`,
8184
- inputFieldNotes: "Auto-initialized by A2AFPSFormControl on load. Version is set to v2. Outputs include a2aResponse (jsonSchema with A2A response schema, source=result) and Error (any, source=Error). authToken should be an expression or variable (for example =vars.authToken), never a literal token.",
8185
- outputNotes: "Output schema includes: isSuccess (boolean), response (string), sessionId (string), status (string), taskId (string), artifacts (array of {index, parts, metadata}). Also includes Error output (type=any, source=Error).",
8186
- inputFields: [
8653
+ </bpmn:CallActivity>`,
8654
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('caseManagement', search, 0, 100, true) to list available case management processes"
8655
+ },
8656
+ "Orchestrator.StartCaseMgmtProcessAsync": {
8657
+ extensionType: "Orchestrator.StartCaseMgmtProcessAsync",
8658
+ label: "Start case management",
8659
+ bpmnElement: "bpmn:CallActivity",
8660
+ placements: {
8661
+ activity: {
8662
+ type: "bpmn:CallActivity"
8663
+ }
8664
+ },
8665
+ extensionTag: "uipath:activity",
8666
+ contextFields: [
8187
8667
  {
8188
- name: "agentUrl",
8189
- displayName: "Agent URL",
8668
+ name: "releaseKey",
8669
+ displayName: "Process",
8190
8670
  type: "string",
8191
- required: true,
8192
- description: "URL of the A2A agent endpoint"
8671
+ required: false,
8672
+ hidden: true,
8673
+ isPrimaryKey: false,
8674
+ binding: false,
8675
+ defaultValue: null,
8676
+ bindingInfo: {
8677
+ resource: "process",
8678
+ resourceKeyPattern: "${metadata.key}",
8679
+ propertyAttribute: "Key"
8680
+ }
8193
8681
  },
8194
8682
  {
8195
- name: "skillId",
8196
- displayName: "Skill ID",
8683
+ name: "folderId",
8197
8684
  type: "string",
8198
- required: true,
8199
- description: "Identifier for the specific skill to invoke on the agent"
8685
+ required: false,
8686
+ hidden: true,
8687
+ isPrimaryKey: false,
8688
+ binding: false,
8689
+ defaultValue: null
8200
8690
  },
8201
8691
  {
8202
- name: "input",
8203
- displayName: "Input",
8692
+ name: "folderPath",
8204
8693
  type: "string",
8205
- required: true,
8206
- description: "Input text/message to send to the A2A agent"
8694
+ required: false,
8695
+ hidden: true,
8696
+ isPrimaryKey: false,
8697
+ binding: false,
8698
+ defaultValue: null
8699
+ },
8700
+ {
8701
+ name: "name",
8702
+ type: "string",
8703
+ required: false,
8704
+ hidden: true,
8705
+ isPrimaryKey: false,
8706
+ binding: false,
8707
+ defaultValue: null
8708
+ }
8709
+ ],
8710
+ inputPattern: "mergedBody",
8711
+ inputName: "JobArguments",
8712
+ inputTarget: "bodyField",
8713
+ outputSource: null,
8714
+ outputType: null,
8715
+ outputName: null,
8716
+ outputNotes: "Fire-and-forget: the canvas clears the process outputs for this type (getAgenticProcessInputOutputValues sets outputs to [] for Orchestrator.StartCaseMgmtProcessAsync), so the payload carries none of the entry-point outputs its sync sibling returns. A process picked straight from Orchestrator (no solutionResourceKey) can still contribute task-definition outputs, which is why this type stays on the canvas-owned dynamic path. Use Orchestrator.StartCaseMgmtProcess when you need the job result.",
8717
+ bindingPattern: "process",
8718
+ bindingInfo: {
8719
+ resource: "process",
8720
+ resourceKeyPattern: "${metadata.key}",
8721
+ propertyAttribute: "Key",
8722
+ contextField: "releaseKey"
8723
+ },
8724
+ requiresDiscovery: true,
8725
+ isDynamic: true,
8726
+ xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
8727
+ <bpmn:extensionElements>
8728
+ <uipath:activity version="v1">
8729
+ <uipath:type value="Orchestrator.StartCaseMgmtProcessAsync" version="v1" />
8730
+ <uipath:context>
8731
+ <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
8732
+ <uipath:input name="folderId" type="string" value="{folderId}" />
8733
+ <uipath:input name="folderPath" type="string" value="{folderPath}" />
8734
+ <uipath:input name="name" type="string" value="{name}" />
8735
+ </uipath:context>
8736
+ <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
8737
+ </uipath:activity>
8738
+ </bpmn:extensionElements>
8739
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
8740
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
8741
+ </bpmn:CallActivity>`,
8742
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('caseManagement', search, 0, 100, true) to list available case management processes"
8743
+ },
8744
+ "Orchestrator.StartFlowProcess": {
8745
+ extensionType: "Orchestrator.StartFlowProcess",
8746
+ label: "Start and wait for Maestro Flow",
8747
+ bpmnElement: "bpmn:CallActivity",
8748
+ placements: {
8749
+ activity: {
8750
+ type: "bpmn:CallActivity"
8751
+ }
8752
+ },
8753
+ extensionTag: "uipath:activity",
8754
+ contextFields: [
8755
+ {
8756
+ name: "releaseKey",
8757
+ displayName: "Maestro Flow",
8758
+ type: "string",
8759
+ required: false,
8760
+ hidden: true,
8761
+ isPrimaryKey: false,
8762
+ binding: false,
8763
+ defaultValue: null,
8764
+ bindingInfo: {
8765
+ resource: "process",
8766
+ resourceKeyPattern: "${metadata.key}",
8767
+ propertyAttribute: "Key"
8768
+ }
8769
+ },
8770
+ {
8771
+ name: "folderId",
8772
+ type: "string",
8773
+ required: false,
8774
+ hidden: true,
8775
+ isPrimaryKey: false,
8776
+ binding: false,
8777
+ defaultValue: null
8778
+ },
8779
+ {
8780
+ name: "folderPath",
8781
+ type: "string",
8782
+ required: false,
8783
+ hidden: true,
8784
+ isPrimaryKey: false,
8785
+ binding: false,
8786
+ defaultValue: null
8787
+ },
8788
+ {
8789
+ name: "name",
8790
+ type: "string",
8791
+ required: false,
8792
+ hidden: true,
8793
+ isPrimaryKey: false,
8794
+ binding: false,
8795
+ defaultValue: null
8796
+ }
8797
+ ],
8798
+ inputPattern: "mergedBody",
8799
+ inputName: "JobArguments",
8800
+ inputTarget: "bodyField",
8801
+ outputSource: null,
8802
+ outputType: "Orchestrator.RunJob",
8803
+ outputName: "Process response",
8804
+ useRelativeSource: true,
8805
+ bindingPattern: "process",
8806
+ bindingInfo: {
8807
+ resource: "process",
8808
+ resourceKeyPattern: "${metadata.key}",
8809
+ propertyAttribute: "Key",
8810
+ contextField: "releaseKey"
8811
+ },
8812
+ requiresDiscovery: true,
8813
+ isDynamic: true,
8814
+ xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
8815
+ <bpmn:extensionElements>
8816
+ <uipath:activity version="v1">
8817
+ <uipath:type value="Orchestrator.StartFlowProcess" version="v2" />
8818
+ <uipath:context>
8819
+ <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
8820
+ <uipath:input name="folderId" type="string" value="{folderId}" />
8821
+ <uipath:input name="folderPath" type="string" value="{folderPath}" />
8822
+ <uipath:input name="name" type="string" value="{name}" />
8823
+ </uipath:context>
8824
+ <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
8825
+ <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
8826
+ </uipath:activity>
8827
+ </bpmn:extensionElements>
8828
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
8829
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
8830
+ </bpmn:CallActivity>`,
8831
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('Flow', search, 0, 100, true) to list available flow processes. Studio Web bindings use the Flow process resource subtype."
8832
+ },
8833
+ "Orchestrator.StartFlowProcessAsync": {
8834
+ extensionType: "Orchestrator.StartFlowProcessAsync",
8835
+ label: "Start Maestro Flow",
8836
+ bpmnElement: "bpmn:CallActivity",
8837
+ placements: {
8838
+ activity: {
8839
+ type: "bpmn:CallActivity"
8840
+ }
8841
+ },
8842
+ extensionTag: "uipath:activity",
8843
+ contextFields: [
8844
+ {
8845
+ name: "releaseKey",
8846
+ displayName: "Maestro Flow",
8847
+ type: "string",
8848
+ required: false,
8849
+ hidden: true,
8850
+ isPrimaryKey: false,
8851
+ binding: false,
8852
+ defaultValue: null,
8853
+ bindingInfo: {
8854
+ resource: "process",
8855
+ resourceKeyPattern: "${metadata.key}",
8856
+ propertyAttribute: "Key"
8857
+ }
8858
+ },
8859
+ {
8860
+ name: "folderId",
8861
+ type: "string",
8862
+ required: false,
8863
+ hidden: true,
8864
+ isPrimaryKey: false,
8865
+ binding: false,
8866
+ defaultValue: null
8867
+ },
8868
+ {
8869
+ name: "folderPath",
8870
+ type: "string",
8871
+ required: false,
8872
+ hidden: true,
8873
+ isPrimaryKey: false,
8874
+ binding: false,
8875
+ defaultValue: null
8876
+ },
8877
+ {
8878
+ name: "name",
8879
+ type: "string",
8880
+ required: false,
8881
+ hidden: true,
8882
+ isPrimaryKey: false,
8883
+ binding: false,
8884
+ defaultValue: null
8885
+ }
8886
+ ],
8887
+ inputPattern: "mergedBody",
8888
+ inputName: "JobArguments",
8889
+ inputTarget: "bodyField",
8890
+ outputSource: null,
8891
+ outputType: null,
8892
+ outputName: null,
8893
+ outputNotes: "Fire-and-forget: the canvas clears the process outputs for this type (getAgenticProcessInputOutputValues sets outputs to [] for Orchestrator.StartFlowProcessAsync), so the payload carries none of the entry-point outputs its sync sibling returns. A process picked straight from Orchestrator (no solutionResourceKey) can still contribute task-definition outputs, which is why this type stays on the canvas-owned dynamic path. Use Orchestrator.StartFlowProcess when you need the job result.",
8894
+ bindingPattern: "process",
8895
+ bindingInfo: {
8896
+ resource: "process",
8897
+ resourceKeyPattern: "${metadata.key}",
8898
+ propertyAttribute: "Key",
8899
+ contextField: "releaseKey"
8900
+ },
8901
+ requiresDiscovery: true,
8902
+ isDynamic: true,
8903
+ xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
8904
+ <bpmn:extensionElements>
8905
+ <uipath:activity version="v1">
8906
+ <uipath:type value="Orchestrator.StartFlowProcessAsync" version="v2" />
8907
+ <uipath:context>
8908
+ <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
8909
+ <uipath:input name="folderId" type="string" value="{folderId}" />
8910
+ <uipath:input name="folderPath" type="string" value="{folderPath}" />
8911
+ <uipath:input name="name" type="string" value="{name}" />
8912
+ </uipath:context>
8913
+ <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
8914
+ </uipath:activity>
8915
+ </bpmn:extensionElements>
8916
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
8917
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
8918
+ </bpmn:CallActivity>`,
8919
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('Flow', search, 0, 100, true) to list available flow processes."
8920
+ },
8921
+ "A2A.AgentExecution": {
8922
+ extensionType: "A2A.AgentExecution",
8923
+ label: "Start and wait for A2A agent",
8924
+ bpmnElement: "bpmn:ServiceTask",
8925
+ placements: {
8926
+ activity: {
8927
+ type: "bpmn:ServiceTask"
8928
+ }
8929
+ },
8930
+ extensionTag: "uipath:activity",
8931
+ contextFields: [],
8932
+ inputPattern: "mergedBody",
8933
+ inputName: "body",
8934
+ inputTarget: "body",
8935
+ outputSource: null,
8936
+ outputType: "A2A.AgentExecution",
8937
+ outputName: "a2aResponse",
8938
+ useRelativeSource: true,
8939
+ bindingPattern: "none",
8940
+ requiresDiscovery: false,
8941
+ isDynamic: true,
8942
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
8943
+ <bpmn:extensionElements>
8944
+ <uipath:activity version="v1">
8945
+ <uipath:type value="A2A.AgentExecution" version="v1" />
8946
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"agentUrl":"{agentUrl}","skillId":"{skillId}","input":"{input}","authToken":"{authToken}","agentName":"{agentName}"}]]></uipath:input>
8947
+ <uipath:output name="a2aResponse" type="A2A.AgentExecution" var="{varId}" />
8948
+ </uipath:activity>
8949
+ </bpmn:extensionElements>
8950
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
8951
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
8952
+ </bpmn:ServiceTask>`,
8953
+ inputFieldNotes: "Auto-initialized by A2AFPSFormControl on load. Version is set to v2. Outputs include a2aResponse (jsonSchema with A2A response schema, source=result) and Error (any, source=Error). authToken should be an expression or variable (for example =vars.authToken), never a literal token.",
8954
+ outputNotes: "Output schema includes: isSuccess (boolean), response (string), sessionId (string), status (string), taskId (string), artifacts (array of {index, parts, metadata}). Also includes Error output (type=any, source=Error).",
8955
+ inputFields: [
8956
+ {
8957
+ name: "agentUrl",
8958
+ displayName: "Agent URL",
8959
+ type: "string",
8960
+ required: true,
8961
+ description: "URL of the A2A agent endpoint"
8962
+ },
8963
+ {
8964
+ name: "skillId",
8965
+ displayName: "Skill ID",
8966
+ type: "string",
8967
+ required: true,
8968
+ description: "Identifier for the specific skill to invoke on the agent"
8969
+ },
8970
+ {
8971
+ name: "input",
8972
+ displayName: "Input",
8973
+ type: "string",
8974
+ required: true,
8975
+ description: "Input text/message to send to the A2A agent"
8207
8976
  },
8208
8977
  {
8209
8978
  name: "authToken",
8210
8979
  displayName: "Auth Token",
8211
8980
  type: "string",
8212
8981
  required: true,
8213
- description: "Authentication token for the A2A agent"
8982
+ description: "Authentication token for the A2A agent"
8983
+ },
8984
+ {
8985
+ name: "agentName",
8986
+ displayName: "Agent Name",
8987
+ type: "string",
8988
+ required: true,
8989
+ description: "Display name of the A2A agent"
8990
+ }
8991
+ ]
8992
+ },
8993
+ "BPMN.Variables": {
8994
+ extensionType: "BPMN.Variables",
8995
+ label: "BPMN Variables",
8996
+ bpmnElement: "bpmn:Task",
8997
+ placements: {},
8998
+ extensionTag: "uipath:mapping",
8999
+ contextFields: [],
9000
+ inputPattern: "none",
9001
+ outputSource: null,
9002
+ outputType: null,
9003
+ bindingPattern: "none",
9004
+ requiresDiscovery: false,
9005
+ isDynamic: false,
9006
+ xmlTemplate: `<bpmn:Task id="{id}" name="{name}">
9007
+ <bpmn:extensionElements>
9008
+ <uipath:mapping version="v1">
9009
+ <uipath:type value="BPMN.Variables" version="v1" />
9010
+ </uipath:mapping>
9011
+ </bpmn:extensionElements>
9012
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
9013
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
9014
+ </bpmn:Task>`,
9015
+ inputNotes: "Variable mappings use uipath:mapping with direct input/output elements, not a jsonBody pattern",
9016
+ 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.",
9017
+ extensionTagNotes: "Uses uipath:mapping (not uipath:activity). BPMN.Variables mappings are supported on StartEvent, EndEvent, Task, ScriptTask, and SubProcess owners."
9018
+ },
9019
+ "BPMN.ScriptTask": {
9020
+ extensionType: "BPMN.ScriptTask",
9021
+ label: "Execute script",
9022
+ bpmnElement: "bpmn:ScriptTask",
9023
+ placements: {},
9024
+ extensionTag: "uipath:mapping",
9025
+ contextFields: [],
9026
+ inputPattern: "scriptArgs",
9027
+ inputName: "args",
9028
+ inputTarget: "bodyField",
9029
+ outputSource: null,
9030
+ outputType: null,
9031
+ bindingPattern: "none",
9032
+ requiresDiscovery: false,
9033
+ isDynamic: false,
9034
+ xmlTemplate: `<bpmn:ScriptTask id="{id}" name="{name}">
9035
+ <bpmn:extensionElements>
9036
+ <uipath:mapping version="v1">
9037
+ <uipath:type value="BPMN.ScriptTask" version="v1" />
9038
+ <uipath:input name="args" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
9039
+ </uipath:mapping>
9040
+ </bpmn:extensionElements>
9041
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
9042
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
9043
+ </bpmn:ScriptTask>`,
9044
+ inputNotes: "Inputs are merged into a single json input named 'args' with target 'bodyField'. An inputSchema is created from the input variables.",
9045
+ extensionTagNotes: "bpmn:ScriptTask is routed through createModdleExtensionVariableMapping (same as BPMN.Variables). Inputs are merged into a single 'args' JSON body with inputSchema."
9046
+ },
9047
+ "ConversationalService.QueueServiceMessage": {
9048
+ extensionType: "ConversationalService.QueueServiceMessage",
9049
+ label: "Queue service message",
9050
+ bpmnElement: "bpmn:ServiceTask",
9051
+ placements: {
9052
+ activity: {
9053
+ type: "bpmn:ServiceTask"
9054
+ }
9055
+ },
9056
+ extensionTag: "uipath:activity",
9057
+ contextFields: [
9058
+ {
9059
+ name: "_label",
9060
+ type: "string",
9061
+ required: false,
9062
+ hidden: true,
9063
+ isPrimaryKey: false,
9064
+ binding: false,
9065
+ defaultValue: null
9066
+ }
9067
+ ],
9068
+ inputPattern: "mergedBody",
9069
+ inputName: "body",
9070
+ inputTarget: "body",
9071
+ outputSource: "=response",
9072
+ outputType: "jsonSchema",
9073
+ outputName: "response",
9074
+ additionalOutputs: [
9075
+ {
9076
+ name: "Error",
9077
+ type: "jsonSchema",
9078
+ source: "=Error",
9079
+ required: false
9080
+ }
9081
+ ],
9082
+ bindingPattern: "none",
9083
+ requiresDiscovery: false,
9084
+ isDynamic: false,
9085
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
9086
+ <bpmn:extensionElements>
9087
+ <uipath:activity version="v1">
9088
+ <uipath:type value="ConversationalService.QueueServiceMessage" version="v1" />
9089
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"conversationId":"{conversationId}","userContent":"{userContent}","assistantContent":"{assistantContent}"}]]></uipath:input>
9090
+ <uipath:output name="response" type="jsonSchema" source="=response" var="{varId}" />
9091
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
9092
+ </uipath:activity>
9093
+ </bpmn:extensionElements>
9094
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
9095
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
9096
+ </bpmn:ServiceTask>`,
9097
+ inputNotes: "The custom Studio Web form seeds conversationId, userContent, and assistantContent as required fields. The generic FPS serializer merges them into the body JSON payload. It also writes a uipath:inputSchema built from those fields inside uipath:context; the template leaves it out because it is derived, not authored.",
9098
+ contextFieldNotes: 'The design schema declares the three fields as context; the shipped custom form (ConversationalServiceFPSFormControl.tsx) declares them as inputs with target: "body", and the generic serializer merges them into the body.',
9099
+ outputNotes: 'The response schema contains the queued message id, conversation and content fields, MIME types, pending state, and timestamps. Studio Web always writes the standard Error output. Validation also accepts files without it. Extra outputs that narrow the response carry custom="true".',
9100
+ inputFields: [
9101
+ {
9102
+ name: "conversationId",
9103
+ displayName: "Conversation ID",
9104
+ type: "string",
9105
+ required: true,
9106
+ hidden: false,
9107
+ isPrimaryKey: false,
9108
+ binding: false,
9109
+ defaultValue: null,
9110
+ target: "body"
9111
+ },
9112
+ {
9113
+ name: "userContent",
9114
+ displayName: "User content",
9115
+ type: "string",
9116
+ required: true,
9117
+ hidden: false,
9118
+ isPrimaryKey: false,
9119
+ binding: false,
9120
+ defaultValue: null,
9121
+ target: "body"
9122
+ },
9123
+ {
9124
+ name: "assistantContent",
9125
+ displayName: "Assistant content",
9126
+ type: "string",
9127
+ required: true,
9128
+ hidden: false,
9129
+ isPrimaryKey: false,
9130
+ binding: false,
9131
+ defaultValue: null,
9132
+ target: "body"
9133
+ }
9134
+ ]
9135
+ },
9136
+ "Intsvc.TimerTrigger": {
9137
+ extensionType: "Intsvc.TimerTrigger",
9138
+ label: "Timer trigger",
9139
+ bpmnElement: "bpmn:StartEvent",
9140
+ placements: {},
9141
+ extensionTag: "uipath:activity",
9142
+ contextFields: [],
9143
+ inputPattern: "none",
9144
+ outputSource: ".",
9145
+ outputType: "custom",
9146
+ outputName: "result",
9147
+ useRelativeSource: false,
9148
+ bindingPattern: "none",
9149
+ requiresDiscovery: false,
9150
+ isDynamic: false,
9151
+ xmlTemplate: `<bpmn:StartEvent id="{id}" name="{name}">
9152
+ <bpmn:extensionElements>
9153
+ <uipath:activity version="v1">
9154
+ <uipath:type value="Intsvc.TimerTrigger" version="v1" />
9155
+ <uipath:output name="result" type="custom" source="." var="{varId}" />
9156
+ </uipath:activity>
9157
+ </bpmn:extensionElements>
9158
+ <bpmn:timerEventDefinition><bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1H</bpmn:timeDuration></bpmn:timerEventDefinition>
9159
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
9160
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
9161
+ </bpmn:StartEvent>`,
9162
+ inputNotes: "No jsonBody, no input fields, no isSplitInputs in design schema",
9163
+ bpmnElementNotes: "Used via timer event definition on start events; not directly in FPS_TO_NODE_MAPPING",
9164
+ extensionTagNotes: "NOT in isEvents array, uses uipath:activity. However, isIntsvcTriggerDesignSchemaType returns true.",
9165
+ inputFields: []
9166
+ },
9167
+ "Maestro.ReceiveMessageEvent": {
9168
+ extensionType: "Maestro.ReceiveMessageEvent",
9169
+ label: "Receive internal message",
9170
+ bpmnElement: "bpmn:IntermediateCatchEvent",
9171
+ placements: {
9172
+ startEvent: {
9173
+ type: "bpmn:StartEvent",
9174
+ eventDefinition: {
9175
+ type: "bpmn:MessageEventDefinition"
9176
+ }
9177
+ },
9178
+ intermediateEvent: {
9179
+ type: "bpmn:IntermediateCatchEvent",
9180
+ eventDefinition: {
9181
+ type: "bpmn:MessageEventDefinition"
9182
+ }
9183
+ },
9184
+ boundaryEvent: {
9185
+ type: "bpmn:BoundaryEvent",
9186
+ eventDefinition: {
9187
+ type: "bpmn:MessageEventDefinition"
9188
+ }
9189
+ }
9190
+ },
9191
+ extensionTag: "uipath:event",
9192
+ contextFields: [
9193
+ {
9194
+ name: "name",
9195
+ displayName: "Message name",
9196
+ type: "string",
9197
+ required: true,
9198
+ hidden: false,
9199
+ isPrimaryKey: false,
9200
+ binding: false,
9201
+ defaultValue: null
9202
+ },
9203
+ {
9204
+ name: "_label",
9205
+ type: "string",
9206
+ required: false,
9207
+ hidden: true,
9208
+ isPrimaryKey: false,
9209
+ binding: false,
9210
+ defaultValue: null
9211
+ }
9212
+ ],
9213
+ inputPattern: "separateInputs",
9214
+ inputName: "ItemData",
9215
+ inputTarget: "body",
9216
+ outputSource: null,
9217
+ outputType: "Maestro.ReceiveMessageEvent",
9218
+ outputName: "response",
9219
+ useRelativeSource: true,
9220
+ bindingPattern: "none",
9221
+ requiresDiscovery: false,
9222
+ isDynamic: false,
9223
+ xmlTemplate: `<bpmn:IntermediateCatchEvent id="{id}" name="{name}">
9224
+ <bpmn:extensionElements>
9225
+ <uipath:event version="v1">
9226
+ <uipath:type value="Maestro.ReceiveMessageEvent" version="v1" />
9227
+ <uipath:context>
9228
+ <uipath:input name="name" type="string" value="{name}" />
9229
+ <uipath:input name="_label" type="string" value="{_label}" />
9230
+ </uipath:context>
9231
+ <uipath:input name="ItemData" type="json" target="body"><![CDATA[{}]]></uipath:input>
9232
+ <uipath:output name="response" type="Maestro.ReceiveMessageEvent" var="{varId}" />
9233
+ </uipath:event>
9234
+ </bpmn:extensionElements>
9235
+ <bpmn:messageEventDefinition />
9236
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
9237
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
9238
+ </bpmn:IntermediateCatchEvent>`,
9239
+ inputNotes: "isSplitInputs=true in design schema but NOT in isSplitInputsEvents code array, so inputs are NOT merged into ItemData for this type. They remain separate.",
9240
+ extensionTagNotes: "In isEvents array, uses uipath:event",
9241
+ inputFields: [
9242
+ {
9243
+ name: "Reference",
9244
+ displayName: "Reference",
9245
+ type: "string",
9246
+ required: true,
9247
+ hidden: false,
9248
+ isPrimaryKey: false,
9249
+ binding: false,
9250
+ defaultValue: null,
9251
+ target: "bodyField",
9252
+ description: "Correlation reference to match this receive event to its sender"
9253
+ }
9254
+ ]
9255
+ },
9256
+ "Maestro.SendMessageEvent": {
9257
+ extensionType: "Maestro.SendMessageEvent",
9258
+ label: "Send internal message",
9259
+ bpmnElement: "bpmn:IntermediateThrowEvent",
9260
+ placements: {
9261
+ intermediateEvent: {
9262
+ type: "bpmn:IntermediateThrowEvent",
9263
+ eventDefinition: {
9264
+ type: "bpmn:MessageEventDefinition"
9265
+ }
9266
+ },
9267
+ endEvent: {
9268
+ type: "bpmn:EndEvent",
9269
+ eventDefinition: {
9270
+ type: "bpmn:MessageEventDefinition"
9271
+ }
9272
+ }
9273
+ },
9274
+ extensionTag: "uipath:event",
9275
+ contextFields: [
9276
+ {
9277
+ name: "name",
9278
+ displayName: "Message name",
9279
+ type: "string",
9280
+ required: true,
9281
+ hidden: false,
9282
+ isPrimaryKey: false,
9283
+ binding: false,
9284
+ defaultValue: null
9285
+ },
9286
+ {
9287
+ name: "_label",
9288
+ type: "string",
9289
+ required: false,
9290
+ hidden: true,
9291
+ isPrimaryKey: false,
9292
+ binding: false,
9293
+ defaultValue: null
9294
+ },
9295
+ {
9296
+ name: "inputSchema",
9297
+ displayName: "Input schema",
9298
+ type: "jsonSchema",
9299
+ required: true,
9300
+ hidden: true,
9301
+ isPrimaryKey: false,
9302
+ binding: false,
9303
+ defaultValue: null
9304
+ }
9305
+ ],
9306
+ inputPattern: "splitInputsItemData",
9307
+ inputName: "ItemData",
9308
+ inputTarget: "body",
9309
+ outputSource: null,
9310
+ outputType: "Maestro.SendMessageEvent",
9311
+ outputName: "response",
9312
+ useRelativeSource: true,
9313
+ bindingPattern: "none",
9314
+ requiresDiscovery: false,
9315
+ isDynamic: false,
9316
+ xmlTemplate: `<bpmn:IntermediateThrowEvent id="{id}" name="{name}">
9317
+ <bpmn:extensionElements>
9318
+ <uipath:event version="v1">
9319
+ <uipath:type value="Maestro.SendMessageEvent" version="v1" />
9320
+ <uipath:context>
9321
+ <uipath:input name="name" type="string" value="{name}" />
9322
+ <uipath:input name="_label" type="string" value="{_label}" />
9323
+ <uipath:input name="inputSchema" type="jsonSchema" value="{inputSchema}" />
9324
+ </uipath:context>
9325
+ <uipath:input name="ItemData" type="json" target="body"><![CDATA[{"Reference":"{Reference}","SpecificContent":{},"TimeToLive":""}]]></uipath:input>
9326
+ <uipath:output name="response" type="Maestro.SendMessageEvent" var="{varId}" />
9327
+ </uipath:event>
9328
+ </bpmn:extensionElements>
9329
+ <bpmn:messageEventDefinition />
9330
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
9331
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
9332
+ </bpmn:IntermediateThrowEvent>`,
9333
+ inputNotes: "In isSplitInputsEvents array. Inputs are merged into a single ItemData JSON body at serialization time. Uses SEND_MESSAGE_EVENT_INPUT_SCHEMA as the inputSchema.",
9334
+ extensionTagNotes: "In isEvents array, uses uipath:event",
9335
+ inputFields: [
9336
+ {
9337
+ name: "Reference",
9338
+ displayName: "Reference",
9339
+ type: "string",
9340
+ required: true,
9341
+ hidden: false,
9342
+ isPrimaryKey: false,
9343
+ binding: false,
9344
+ defaultValue: null,
9345
+ target: "body",
9346
+ description: "Correlation reference to match this send event to its receiver"
9347
+ },
9348
+ {
9349
+ name: "SpecificContent",
9350
+ displayName: "Item information",
9351
+ type: "json",
9352
+ required: false,
9353
+ hidden: false,
9354
+ isPrimaryKey: false,
9355
+ binding: false,
9356
+ defaultValue: null,
9357
+ target: "body",
9358
+ description: "JSON payload with the message content"
8214
9359
  },
8215
9360
  {
8216
- name: "agentName",
8217
- displayName: "Agent Name",
8218
- type: "string",
8219
- required: true,
8220
- description: "Display name of the A2A agent"
9361
+ name: "TimeToLive",
9362
+ displayName: "Time to live",
9363
+ type: "duration",
9364
+ required: false,
9365
+ hidden: false,
9366
+ isPrimaryKey: false,
9367
+ binding: false,
9368
+ defaultValue: null,
9369
+ target: "body",
9370
+ description: "Duration after which the message expires if not consumed"
8221
9371
  }
8222
9372
  ]
8223
9373
  },
8224
- "BPMN.Variables": {
8225
- extensionType: "BPMN.Variables",
8226
- label: "BPMN Variables",
9374
+ "Maestro.CaseManagerPlaceholder": {
9375
+ extensionType: "Maestro.CaseManagerPlaceholder",
9376
+ label: "Case manager placeholder",
8227
9377
  bpmnElement: "bpmn:Task",
8228
9378
  placements: {},
8229
- extensionTag: "uipath:mapping",
9379
+ extensionTag: "uipath:activity",
8230
9380
  contextFields: [],
8231
- inputPattern: "none",
8232
- outputSource: null,
8233
- outputType: null,
9381
+ inputPattern: "mergedBody",
9382
+ inputName: "caseManagerInput",
9383
+ inputTarget: "body",
9384
+ outputSource: "=js:(vars.caseRulesDecisions)",
9385
+ outputType: "json",
9386
+ outputName: "caseManagerDecisions",
8234
9387
  bindingPattern: "none",
8235
9388
  requiresDiscovery: false,
8236
9389
  isDynamic: false,
9390
+ contractOutputMayBeCustom: true,
8237
9391
  xmlTemplate: `<bpmn:Task id="{id}" name="{name}">
8238
9392
  <bpmn:extensionElements>
8239
- <uipath:mapping version="v1">
8240
- <uipath:type value="BPMN.Variables" version="v1" />
8241
- </uipath:mapping>
9393
+ <uipath:activity version="v1">
9394
+ <uipath:type value="Maestro.CaseManagerPlaceholder" version="v1" />
9395
+ <uipath:input name="caseManagerInput" type="json" target="body"><![CDATA[{"caseRulesDecisions":{caseRulesDecisions},"caseCurrentExecutionState":{caseCurrentExecutionState}}]]></uipath:input>
9396
+ <uipath:output name="caseManagerDecisions" type="json" source="=js:(vars.caseRulesDecisions)" var="{varId}" custom="true" />
9397
+ </uipath:activity>
8242
9398
  </bpmn:extensionElements>
8243
9399
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
8244
9400
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
8245
9401
  </bpmn:Task>`,
8246
- inputNotes: "Variable mappings use uipath:mapping with direct input/output elements, not a jsonBody pattern",
8247
- 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.",
8248
- extensionTagNotes: "Uses uipath:mapping (not uipath:activity). BPMN.Variables mappings are supported on StartEvent, EndEvent, Task, ScriptTask, and SubProcess owners."
9402
+ inputNotes: "The case converter creates this internal fallback task when no case-manager task runs. Its two inputs are merged into caseManagerInput during BPMN serialization.",
9403
+ outputNotes: 'The generated output copies the case-rules decisions into caseManagerDecisions. generateCaseManagerPlaceholderNode (PO.Frontend CaseManagementCaseManagerNodes.ts) spreads caseManagerDecisionsOutputVariable(), which stamps custom="true" on this output - a converter detail, not a panel narrowing, so contractOutputMayBeCustom tells the validator to still shape-check it (name/type/source/var) instead of dropping it as an unrelated custom addition.',
9404
+ inputFields: [
9405
+ {
9406
+ name: "caseRulesDecisions",
9407
+ displayName: "Case rules decisions",
9408
+ type: "json",
9409
+ required: true,
9410
+ hidden: false,
9411
+ isPrimaryKey: false,
9412
+ binding: false,
9413
+ defaultValue: null,
9414
+ target: "body"
9415
+ },
9416
+ {
9417
+ name: "caseCurrentExecutionState",
9418
+ displayName: "Case current execution state",
9419
+ type: "json",
9420
+ required: true,
9421
+ hidden: false,
9422
+ isPrimaryKey: false,
9423
+ binding: false,
9424
+ defaultValue: null,
9425
+ target: "body"
9426
+ }
9427
+ ]
8249
9428
  },
8250
- "BPMN.ScriptTask": {
8251
- extensionType: "BPMN.ScriptTask",
8252
- label: "Execute script",
8253
- bpmnElement: "bpmn:ScriptTask",
9429
+ "Maestro.UpdateCaseState": {
9430
+ extensionType: "Maestro.UpdateCaseState",
9431
+ label: "Update case state",
9432
+ bpmnElement: "bpmn:ServiceTask",
8254
9433
  placements: {},
8255
- extensionTag: "uipath:mapping",
9434
+ extensionTag: "uipath:activity",
8256
9435
  contextFields: [],
8257
- inputPattern: "scriptArgs",
8258
- inputName: "args",
8259
- inputTarget: "bodyField",
9436
+ inputPattern: "mergedBody",
9437
+ inputName: "ItemData",
9438
+ inputTarget: "body",
8260
9439
  outputSource: null,
8261
9440
  outputType: null,
8262
9441
  bindingPattern: "none",
8263
9442
  requiresDiscovery: false,
8264
9443
  isDynamic: false,
8265
- xmlTemplate: `<bpmn:ScriptTask id="{id}" name="{name}">
9444
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
8266
9445
  <bpmn:extensionElements>
8267
- <uipath:mapping version="v1">
8268
- <uipath:type value="BPMN.ScriptTask" version="v1" />
8269
- <uipath:input name="args" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
8270
- </uipath:mapping>
9446
+ <uipath:activity version="v1">
9447
+ <uipath:type value="Maestro.UpdateCaseState" version="v2" />
9448
+ <uipath:input name="ItemData" type="json" target="body"><![CDATA[{"upsertKeys":{upsertKeys},"deleteKeys":{deleteKeys},"tasksCompletedDeleteNames":{tasksCompletedDeleteNames}}]]></uipath:input>
9449
+ </uipath:activity>
8271
9450
  </bpmn:extensionElements>
8272
9451
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
8273
9452
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
8274
- </bpmn:ScriptTask>`,
8275
- inputNotes: "Inputs are merged into a single json input named 'args' with target 'bodyField'. An inputSchema is created from the input variables.",
8276
- extensionTagNotes: "bpmn:ScriptTask is routed through createModdleExtensionVariableMapping (same as BPMN.Variables). Inputs are merged into a single 'args' JSON body with inputSchema."
8277
- },
8278
- "ConversationalService.QueueServiceMessage": {
8279
- extensionType: "ConversationalService.QueueServiceMessage",
8280
- label: "Queue service message",
8281
- bpmnElement: "bpmn:ServiceTask",
8282
- placements: {
8283
- activity: {
8284
- type: "bpmn:ServiceTask"
8285
- }
8286
- },
8287
- extensionTag: "uipath:activity",
8288
- contextFields: [
9453
+ </bpmn:ServiceTask>`,
9454
+ inputNotes: "The case converter always supplies all three fields and the generic serializer merges them into ItemData. upsertKeys is a JSON-typed token: fill with a JSON literal, or a quoted string for an =js:... expression - an unquoted expression breaks the JSON. The generated helper does not bind the design-schema output.",
9455
+ inputFields: [
8289
9456
  {
8290
- name: "_label",
8291
- type: "string",
8292
- required: false,
8293
- hidden: true,
9457
+ name: "upsertKeys",
9458
+ displayName: "Event keys to upsert",
9459
+ type: "json",
9460
+ required: true,
9461
+ hidden: false,
8294
9462
  isPrimaryKey: false,
8295
9463
  binding: false,
8296
- defaultValue: null
9464
+ defaultValue: null,
9465
+ target: "body"
9466
+ },
9467
+ {
9468
+ name: "deleteKeys",
9469
+ displayName: "Event keys to delete",
9470
+ type: "array",
9471
+ required: true,
9472
+ hidden: false,
9473
+ isPrimaryKey: false,
9474
+ binding: false,
9475
+ defaultValue: null,
9476
+ target: "body"
9477
+ },
9478
+ {
9479
+ name: "tasksCompletedDeleteNames",
9480
+ displayName: "Completed task names to delete",
9481
+ type: "array",
9482
+ required: true,
9483
+ hidden: false,
9484
+ isPrimaryKey: false,
9485
+ binding: false,
9486
+ defaultValue: null,
9487
+ target: "body"
8297
9488
  }
8298
- ],
9489
+ ]
9490
+ },
9491
+ "Maestro.RetrieveCaseState": {
9492
+ extensionType: "Maestro.RetrieveCaseState",
9493
+ label: "Retrieve case state",
9494
+ bpmnElement: "bpmn:ServiceTask",
9495
+ placements: {},
9496
+ extensionTag: "uipath:activity",
9497
+ contextFields: [],
9498
+ inputPattern: "none",
9499
+ outputSource: "=caseState",
9500
+ outputType: "jsonSchema",
9501
+ outputName: "latestCaseState",
9502
+ bindingPattern: "none",
9503
+ requiresDiscovery: false,
9504
+ isDynamic: false,
9505
+ contractOutputMayBeCustom: true,
9506
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
9507
+ <bpmn:extensionElements>
9508
+ <uipath:activity version="v1">
9509
+ <uipath:type value="Maestro.RetrieveCaseState" version="v2" />
9510
+ <uipath:output name="latestCaseState" type="jsonSchema" source="=caseState" var="{varId}" custom="true" />
9511
+ </uipath:activity>
9512
+ </bpmn:extensionElements>
9513
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
9514
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
9515
+ </bpmn:ServiceTask>`,
9516
+ inputNotes: "The design schema declares an empty body slot, but nothing fills it: generateRetrieveCaseStateNode passes outputs only, and the type is never offered in the canvas palette, so no properties panel can configure an input either. inputPattern none is deliberately stricter than the design schema - a uipath:input on this element did not come out of Studio Web.",
9517
+ outputNotes: `outputName is a fixed literal here, not a variable name. PO.Frontend's generateRetrieveCaseStateNode (BpmnCaseTaskNodeConverterUtils.ts) spreads the caller's variable info and overwrites source with =caseState, and both callers - the pre-scheduler and post-scheduler lifecycle utils - pass baseEventSubprocessLatestCaseStateVariableInfo(), which hardcodes name latestCaseState and var caseState. The diagram's own variable id lands in var, never in name. The post-scheduler caller (CaseManagementAdhocEventSubProcessPostSchedulerUtilsNewGlobals.ts, node EventSubProcessRetrieveCaseStateNodePostCaseManager) additionally spreads custom: true onto this output - a converter detail, not a panel narrowing - so contractOutputMayBeCustom tells the validator to still shape-check a custom="true" output here instead of dropping it as an unrelated custom addition. The pre-scheduler caller omits custom, so a file may show this output either way.`
9518
+ },
9519
+ "Maestro.NotificationService": {
9520
+ extensionType: "Maestro.NotificationService",
9521
+ label: "Notification service",
9522
+ bpmnElement: "bpmn:ServiceTask",
9523
+ placements: {},
9524
+ extensionTag: "uipath:activity",
9525
+ contextFields: [],
8299
9526
  inputPattern: "mergedBody",
8300
9527
  inputName: "body",
8301
9528
  inputTarget: "body",
8302
- outputSource: "=response",
8303
- outputType: "jsonSchema",
8304
- outputName: "response",
8305
- additionalOutputs: [
8306
- {
8307
- name: "Error",
8308
- type: "jsonSchema",
8309
- source: "=Error",
8310
- required: false
8311
- }
8312
- ],
9529
+ outputSource: null,
9530
+ outputType: null,
8313
9531
  bindingPattern: "none",
8314
9532
  requiresDiscovery: false,
8315
9533
  isDynamic: false,
8316
9534
  xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
8317
9535
  <bpmn:extensionElements>
8318
9536
  <uipath:activity version="v1">
8319
- <uipath:type value="ConversationalService.QueueServiceMessage" version="v1" />
8320
- <uipath:input name="body" type="json" target="body"><![CDATA[{"conversationId":"{conversationId}","userContent":"{userContent}","assistantContent":"{assistantContent}"}]]></uipath:input>
8321
- <uipath:output name="response" type="jsonSchema" source="=response" var="{varId}" />
8322
- <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
9537
+ <uipath:type value="Maestro.NotificationService" version="v2" />
9538
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"publisherName":"{publisherName}","topicName":"{topicName}","priority":"{priority}","messageParam":{messageParam},"recipients":{recipients}}]]></uipath:input>
8323
9539
  </uipath:activity>
8324
9540
  </bpmn:extensionElements>
8325
9541
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
8326
9542
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
8327
9543
  </bpmn:ServiceTask>`,
8328
- inputNotes: "The custom Studio Web form seeds conversationId, userContent, and assistantContent as required fields. The generic FPS serializer merges them into the body JSON payload. It also writes a uipath:inputSchema built from those fields inside uipath:context; the template leaves it out because it is derived, not authored.",
8329
- contextFieldNotes: 'The design schema declares the three fields as context; the shipped custom form (ConversationalServiceFPSFormControl.tsx) declares them as inputs with target: "body", and the generic serializer merges them into the body.',
8330
- outputNotes: 'The response schema contains the queued message id, conversation and content fields, MIME types, pending state, and timestamps. Studio Web always writes the standard Error output. Validation also accepts files without it. Extra outputs that narrow the response carry custom="true".',
9544
+ inputNotes: `Generated case SLA notifications merge publisher, topic, priority, message parameters, and recipients into the body. The case SLA converter sends publisherName 'agenticorchestration', topicName 'CaseManagementAlert.Triggered', and priority 'High'; other callers pick their own. messageParam and recipients are JSON-typed tokens: fill with a JSON literal, or a quoted string for an =js:... expression. recipients is optional - drop its whole "recipients":{recipients} entry to omit it, not just its value. The generated helper does not bind the design-schema response.`,
8331
9545
  inputFields: [
8332
9546
  {
8333
- name: "conversationId",
8334
- displayName: "Conversation ID",
9547
+ name: "publisherName",
9548
+ displayName: "Publisher name",
8335
9549
  type: "string",
8336
9550
  required: true,
8337
9551
  hidden: false,
@@ -8341,8 +9555,8 @@ var init_bpmn_spec = __esm(() => {
8341
9555
  target: "body"
8342
9556
  },
8343
9557
  {
8344
- name: "userContent",
8345
- displayName: "User content",
9558
+ name: "topicName",
9559
+ displayName: "Topic name",
8346
9560
  type: "string",
8347
9561
  required: true,
8348
9562
  hidden: false,
@@ -8352,8 +9566,8 @@ var init_bpmn_spec = __esm(() => {
8352
9566
  target: "body"
8353
9567
  },
8354
9568
  {
8355
- name: "assistantContent",
8356
- displayName: "Assistant content",
9569
+ name: "priority",
9570
+ displayName: "Priority",
8357
9571
  type: "string",
8358
9572
  required: true,
8359
9573
  hidden: false,
@@ -8361,224 +9575,211 @@ var init_bpmn_spec = __esm(() => {
8361
9575
  binding: false,
8362
9576
  defaultValue: null,
8363
9577
  target: "body"
9578
+ },
9579
+ {
9580
+ name: "messageParam",
9581
+ displayName: "Message parameters",
9582
+ type: "json",
9583
+ required: true,
9584
+ hidden: false,
9585
+ isPrimaryKey: false,
9586
+ binding: false,
9587
+ defaultValue: null,
9588
+ target: "body"
9589
+ },
9590
+ {
9591
+ name: "recipients",
9592
+ displayName: "Recipients",
9593
+ type: "json",
9594
+ required: false,
9595
+ hidden: false,
9596
+ isPrimaryKey: false,
9597
+ binding: false,
9598
+ defaultValue: null,
9599
+ target: "body"
8364
9600
  }
8365
9601
  ]
8366
9602
  },
8367
- "Intsvc.TimerTrigger": {
8368
- extensionType: "Intsvc.TimerTrigger",
8369
- label: "Timer trigger",
8370
- bpmnElement: "bpmn:StartEvent",
9603
+ "Maestro.AcquireLock": {
9604
+ extensionType: "Maestro.AcquireLock",
9605
+ label: "Acquire lock",
9606
+ bpmnElement: "bpmn:ServiceTask",
8371
9607
  placements: {},
8372
9608
  extensionTag: "uipath:activity",
8373
9609
  contextFields: [],
8374
- inputPattern: "none",
8375
- outputSource: ".",
8376
- outputType: "custom",
8377
- outputName: "result",
8378
- useRelativeSource: false,
9610
+ inputPattern: "mergedBody",
9611
+ inputName: "body",
9612
+ inputTarget: "body",
9613
+ outputSource: null,
9614
+ outputType: null,
8379
9615
  bindingPattern: "none",
8380
9616
  requiresDiscovery: false,
8381
9617
  isDynamic: false,
8382
- xmlTemplate: `<bpmn:StartEvent id="{id}" name="{name}">
9618
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
8383
9619
  <bpmn:extensionElements>
8384
9620
  <uipath:activity version="v1">
8385
- <uipath:type value="Intsvc.TimerTrigger" version="v1" />
8386
- <uipath:output name="result" type="custom" source="." var="{varId}" />
9621
+ <uipath:type value="Maestro.AcquireLock" version="v2" />
9622
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"lockKey":"{lockKey}","leaseSeconds":{leaseSeconds},"acquireTimeoutSeconds":{acquireTimeoutSeconds}}]]></uipath:input>
8387
9623
  </uipath:activity>
8388
9624
  </bpmn:extensionElements>
8389
- <bpmn:timerEventDefinition><bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1H</bpmn:timeDuration></bpmn:timerEventDefinition>
8390
9625
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
8391
9626
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
8392
- </bpmn:StartEvent>`,
8393
- inputNotes: "No jsonBody, no input fields, no isSplitInputs in design schema",
8394
- bpmnElementNotes: "Used via timer event definition on start events; not directly in FPS_TO_NODE_MAPPING",
8395
- extensionTagNotes: "NOT in isEvents array, uses uipath:activity. However, isIntsvcTriggerDesignSchemaType returns true.",
8396
- inputFields: []
8397
- },
8398
- "Maestro.ReceiveMessageEvent": {
8399
- extensionType: "Maestro.ReceiveMessageEvent",
8400
- label: "Receive internal message",
8401
- bpmnElement: "bpmn:IntermediateCatchEvent",
8402
- placements: {
8403
- startEvent: {
8404
- type: "bpmn:StartEvent",
8405
- eventDefinition: {
8406
- type: "bpmn:MessageEventDefinition"
8407
- }
8408
- },
8409
- intermediateEvent: {
8410
- type: "bpmn:IntermediateCatchEvent",
8411
- eventDefinition: {
8412
- type: "bpmn:MessageEventDefinition"
8413
- }
8414
- },
8415
- boundaryEvent: {
8416
- type: "bpmn:BoundaryEvent",
8417
- eventDefinition: {
8418
- type: "bpmn:MessageEventDefinition"
8419
- }
8420
- }
8421
- },
8422
- extensionTag: "uipath:event",
8423
- contextFields: [
9627
+ </bpmn:ServiceTask>`,
9628
+ inputNotes: "Generated SLA flows merge the lock key and timeout settings into the body. leaseSeconds and acquireTimeoutSeconds are tokens carrying their declared defaults (600 and 0); a caller can fill either with a different number. The generated helper does not bind the design-schema response.",
9629
+ inputFields: [
8424
9630
  {
8425
- name: "name",
8426
- displayName: "Message name",
9631
+ name: "lockKey",
9632
+ displayName: "Lock key",
8427
9633
  type: "string",
8428
9634
  required: true,
8429
9635
  hidden: false,
8430
9636
  isPrimaryKey: false,
8431
9637
  binding: false,
8432
- defaultValue: null
9638
+ defaultValue: null,
9639
+ target: "body"
9640
+ },
9641
+ {
9642
+ name: "leaseSeconds",
9643
+ displayName: "Lease seconds",
9644
+ type: "number",
9645
+ required: true,
9646
+ hidden: false,
9647
+ isPrimaryKey: false,
9648
+ binding: false,
9649
+ defaultValue: 600,
9650
+ target: "body"
8433
9651
  },
8434
9652
  {
8435
- name: "_label",
8436
- type: "string",
8437
- required: false,
8438
- hidden: true,
9653
+ name: "acquireTimeoutSeconds",
9654
+ displayName: "Acquire timeout seconds",
9655
+ type: "number",
9656
+ required: true,
9657
+ hidden: false,
8439
9658
  isPrimaryKey: false,
8440
9659
  binding: false,
8441
- defaultValue: null
9660
+ defaultValue: 0,
9661
+ target: "body"
8442
9662
  }
8443
- ],
8444
- inputPattern: "separateInputs",
8445
- inputName: "ItemData",
9663
+ ]
9664
+ },
9665
+ "Maestro.ReleaseLock": {
9666
+ extensionType: "Maestro.ReleaseLock",
9667
+ label: "Release lock",
9668
+ bpmnElement: "bpmn:ServiceTask",
9669
+ placements: {},
9670
+ extensionTag: "uipath:activity",
9671
+ contextFields: [],
9672
+ inputPattern: "mergedBody",
9673
+ inputName: "body",
8446
9674
  inputTarget: "body",
8447
9675
  outputSource: null,
8448
- outputType: "Maestro.ReceiveMessageEvent",
8449
- outputName: "response",
8450
- useRelativeSource: true,
9676
+ outputType: null,
8451
9677
  bindingPattern: "none",
8452
9678
  requiresDiscovery: false,
8453
9679
  isDynamic: false,
8454
- xmlTemplate: `<bpmn:IntermediateCatchEvent id="{id}" name="{name}">
9680
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
8455
9681
  <bpmn:extensionElements>
8456
- <uipath:event version="v1">
8457
- <uipath:type value="Maestro.ReceiveMessageEvent" version="v1" />
8458
- <uipath:context>
8459
- <uipath:input name="name" type="string" value="{name}" />
8460
- <uipath:input name="_label" type="string" value="{_label}" />
8461
- </uipath:context>
8462
- <uipath:input name="ItemData" type="json" target="body"><![CDATA[{}]]></uipath:input>
8463
- <uipath:output name="response" type="Maestro.ReceiveMessageEvent" var="{varId}" />
8464
- </uipath:event>
9682
+ <uipath:activity version="v1">
9683
+ <uipath:type value="Maestro.ReleaseLock" version="v2" />
9684
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"lockKey":"{lockKey}"}]]></uipath:input>
9685
+ </uipath:activity>
8465
9686
  </bpmn:extensionElements>
8466
- <bpmn:messageEventDefinition />
8467
9687
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
8468
9688
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
8469
- </bpmn:IntermediateCatchEvent>`,
8470
- inputNotes: "isSplitInputs=true in design schema but NOT in isSplitInputsEvents code array, so inputs are NOT merged into ItemData for this type. They remain separate.",
8471
- extensionTagNotes: "In isEvents array, uses uipath:event",
9689
+ </bpmn:ServiceTask>`,
9690
+ inputNotes: "Generated SLA flows merge the lock key into the body. The generated helper does not bind the design-schema response.",
8472
9691
  inputFields: [
8473
9692
  {
8474
- name: "Reference",
8475
- displayName: "Reference",
9693
+ name: "lockKey",
9694
+ displayName: "Lock key",
8476
9695
  type: "string",
8477
9696
  required: true,
8478
9697
  hidden: false,
8479
9698
  isPrimaryKey: false,
8480
9699
  binding: false,
8481
9700
  defaultValue: null,
8482
- target: "bodyField",
8483
- description: "Correlation reference to match this receive event to its sender"
9701
+ target: "body"
8484
9702
  }
8485
9703
  ]
8486
9704
  },
8487
- "Maestro.SendMessageEvent": {
8488
- extensionType: "Maestro.SendMessageEvent",
8489
- label: "Send internal message",
8490
- bpmnElement: "bpmn:IntermediateThrowEvent",
8491
- placements: {
8492
- intermediateEvent: {
8493
- type: "bpmn:IntermediateThrowEvent",
8494
- eventDefinition: {
8495
- type: "bpmn:MessageEventDefinition"
8496
- }
8497
- },
8498
- endEvent: {
8499
- type: "bpmn:EndEvent",
8500
- eventDefinition: {
8501
- type: "bpmn:MessageEventDefinition"
8502
- }
8503
- }
8504
- },
8505
- extensionTag: "uipath:event",
8506
- contextFields: [
8507
- {
8508
- name: "name",
8509
- displayName: "Message name",
8510
- type: "string",
8511
- required: true,
8512
- hidden: false,
8513
- isPrimaryKey: false,
8514
- binding: false,
8515
- defaultValue: null
8516
- },
9705
+ "Maestro.CaseCyclePrepare": {
9706
+ extensionType: "Maestro.CaseCyclePrepare",
9707
+ label: "Prepare case decision cycle",
9708
+ bpmnElement: "bpmn:ServiceTask",
9709
+ placements: {},
9710
+ extensionTag: "uipath:activity",
9711
+ contextFields: [],
9712
+ inputPattern: "mergedBody",
9713
+ bindingPattern: "none",
9714
+ requiresDiscovery: false,
9715
+ isDynamic: false,
9716
+ generatedOutputs: true,
9717
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
9718
+ <bpmn:extensionElements>
9719
+ <uipath:activity version="v1">
9720
+ <uipath:type value="Maestro.CaseCyclePrepare" version="v2" />
9721
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"CaseGlobalsLastPrimaryStageExited":"{CaseGlobalsLastPrimaryStageExited}"}]]></uipath:input>
9722
+ <uipath:output name="latestCaseState" type="jsonSchema" source="=caseState" var="{varId}" />
9723
+ </uipath:activity>
9724
+ </bpmn:extensionElements>
9725
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
9726
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
9727
+ </bpmn:ServiceTask>`,
9728
+ inputFields: [
8517
9729
  {
8518
- name: "_label",
9730
+ name: "CaseGlobalsLastPrimaryStageExited",
8519
9731
  type: "string",
8520
9732
  required: false,
8521
- hidden: true,
8522
- isPrimaryKey: false,
8523
- binding: false,
8524
- defaultValue: null
8525
- },
8526
- {
8527
- name: "inputSchema",
8528
- displayName: "Input schema",
8529
- type: "jsonSchema",
8530
- required: true,
8531
- hidden: true,
9733
+ hidden: false,
8532
9734
  isPrimaryKey: false,
8533
9735
  binding: false,
8534
- defaultValue: null
9736
+ defaultValue: "=instanceglobals.CaseGlobalsLastPrimaryStageExited",
9737
+ target: "body",
9738
+ displayName: "Last primary stage exited global"
8535
9739
  }
8536
9740
  ],
8537
- inputPattern: "splitInputsItemData",
8538
- inputName: "ItemData",
8539
- inputTarget: "body",
8540
- outputSource: null,
8541
- outputType: "Maestro.SendMessageEvent",
8542
- outputName: "response",
8543
- useRelativeSource: true,
9741
+ inputNotes: "Generated by the case converter behind the canvas-caseBpmnConsolidatedCycle flag. The input reads the last-primary-stage-exited instance global, and its value is the read expression =instanceglobals.CaseGlobalsLastPrimaryStageExited (see defaultValue) - not the bare key, which is what the similarly named CaseCycleCommit input takes.",
9742
+ outputNotes: "The converter builds a diagram-specific output list (event vars off the message response, latestCaseState from =caseState, the globals copies, eventMetadata, overlays), so no specific output name, type or source can be pinned here. It always emits at least the latestCaseState, globals-copy and eventMetadata entries and every entry carries a nonblank name and binds a variable, so generatedOutputs tells the validator to require at least one uipath:output and to check each one for a nonblank name and a var attribute, and nothing else about it.",
9743
+ inputName: "body",
9744
+ inputTarget: "body"
9745
+ },
9746
+ "Maestro.CaseCycleCommit": {
9747
+ extensionType: "Maestro.CaseCycleCommit",
9748
+ label: "Commit case decision cycle",
9749
+ bpmnElement: "bpmn:ServiceTask",
9750
+ placements: {},
9751
+ extensionTag: "uipath:activity",
9752
+ contextFields: [],
9753
+ inputPattern: "mergedBody",
8544
9754
  bindingPattern: "none",
8545
9755
  requiresDiscovery: false,
8546
9756
  isDynamic: false,
8547
- xmlTemplate: `<bpmn:IntermediateThrowEvent id="{id}" name="{name}">
9757
+ generatedOutputs: true,
9758
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
8548
9759
  <bpmn:extensionElements>
8549
- <uipath:event version="v1">
8550
- <uipath:type value="Maestro.SendMessageEvent" version="v1" />
8551
- <uipath:context>
8552
- <uipath:input name="name" type="string" value="{name}" />
8553
- <uipath:input name="_label" type="string" value="{_label}" />
8554
- <uipath:input name="inputSchema" type="jsonSchema" value="{inputSchema}" />
8555
- </uipath:context>
8556
- <uipath:input name="ItemData" type="json" target="body"><![CDATA[{"Reference":"{Reference}","SpecificContent":{},"TimeToLive":""}]]></uipath:input>
8557
- <uipath:output name="response" type="Maestro.SendMessageEvent" var="{varId}" />
8558
- </uipath:event>
9760
+ <uipath:activity version="v1">
9761
+ <uipath:type value="Maestro.CaseCycleCommit" version="v2" />
9762
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"decisions":{decisions},"sequentialTasksToResetByStageName":{sequentialTasksToResetByStageName},"lastPrimaryStageExitedGlobalKey":"{lastPrimaryStageExitedGlobalKey}"}]]></uipath:input>
9763
+ <uipath:output name="latestCaseState" type="jsonSchema" source="=caseState" var="{varId}" />
9764
+ </uipath:activity>
8559
9765
  </bpmn:extensionElements>
8560
- <bpmn:messageEventDefinition />
8561
9766
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
8562
9767
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
8563
- </bpmn:IntermediateThrowEvent>`,
8564
- inputNotes: "In isSplitInputsEvents array. Inputs are merged into a single ItemData JSON body at serialization time. Uses SEND_MESSAGE_EVENT_INPUT_SCHEMA as the inputSchema.",
8565
- extensionTagNotes: "In isEvents array, uses uipath:event",
9768
+ </bpmn:ServiceTask>`,
8566
9769
  inputFields: [
8567
9770
  {
8568
- name: "Reference",
8569
- displayName: "Reference",
8570
- type: "string",
8571
- required: true,
9771
+ name: "decisions",
9772
+ type: "json",
9773
+ required: false,
8572
9774
  hidden: false,
8573
9775
  isPrimaryKey: false,
8574
9776
  binding: false,
8575
9777
  defaultValue: null,
8576
9778
  target: "body",
8577
- description: "Correlation reference to match this send event to its receiver"
9779
+ displayName: "Case manager decisions"
8578
9780
  },
8579
9781
  {
8580
- name: "SpecificContent",
8581
- displayName: "Item information",
9782
+ name: "sequentialTasksToResetByStageName",
8582
9783
  type: "json",
8583
9784
  required: false,
8584
9785
  hidden: false,
@@ -8586,21 +9787,24 @@ var init_bpmn_spec = __esm(() => {
8586
9787
  binding: false,
8587
9788
  defaultValue: null,
8588
9789
  target: "body",
8589
- description: "JSON payload with the message content"
9790
+ displayName: "Sequential task names to reset, keyed by stage name"
8590
9791
  },
8591
9792
  {
8592
- name: "TimeToLive",
8593
- displayName: "Time to live",
8594
- type: "duration",
9793
+ name: "lastPrimaryStageExitedGlobalKey",
9794
+ type: "string",
8595
9795
  required: false,
8596
9796
  hidden: false,
8597
9797
  isPrimaryKey: false,
8598
9798
  binding: false,
8599
- defaultValue: null,
9799
+ defaultValue: "CaseGlobalsLastPrimaryStageExited",
8600
9800
  target: "body",
8601
- description: "Duration after which the message expires if not consumed"
9801
+ displayName: "Instance-globals key for the last primary stage exited"
8602
9802
  }
8603
- ]
9803
+ ],
9804
+ inputNotes: 'Generated by the case converter. decisions is emitted only when a case-manager decisions variable exists; omitting it makes the engine derive an empty plan - decisions is a JSON-typed token, so omit it by dropping its whole "decisions":{decisions} entry, not by leaving the token empty, and fill it with a JSON literal or a quoted string for an =js:... expression. lastPrimaryStageExitedGlobalKey takes the bare globals key, not an expression - the similarly named CaseCyclePrepare input takes the =instanceglobals read expression instead.',
9805
+ outputNotes: "The converter's epilogue re-reads case state after the commit: it always emits latestCaseState from =caseState, plus one cleared-selected-stage entry per waiting stage. The names and the count are diagram-specific, so no specific output name, type or source can be pinned here, but every entry still carries a nonblank name. generatedOutputs is what tells the validator to require at least one uipath:output and to check each one for a nonblank name and a var attribute, and nothing else about it.",
9806
+ inputName: "body",
9807
+ inputTarget: "body"
8604
9808
  },
8605
9809
  "Maestro.CaseRulesEvaluator": {
8606
9810
  extensionType: "Maestro.CaseRulesEvaluator",
@@ -9165,7 +10369,7 @@ var init_bpmn_spec = __esm(() => {
9165
10369
  extensionTagResolution: {
9166
10370
  description: "How the frontend determines which XML extension tag to use",
9167
10371
  rules: [
9168
- "If serviceType is in isEvents array [Intsvc.WaitForEvent, Intsvc.EventTrigger, Maestro.ReceiveMessageEvent, Maestro.SendMessageEvent] => uipath:event",
10372
+ "If serviceType is in isEvents array [Intsvc.WaitForEvent, Intsvc.EventTrigger, Maestro.ReceiveMessageEvent, Maestro.SendMessageEvent, Queue.WaitForEvent] => uipath:event",
9169
10373
  "If serviceType is BPMN.Variables on bpmn:StartEvent, bpmn:EndEvent, or bpmn:Task => uipath:mapping",
9170
10374
  "If nodeType is bpmn:ScriptTask or bpmn:SubProcess => uipath:mapping",
9171
10375
  "Otherwise => uipath:activity"
@@ -9175,7 +10379,8 @@ var init_bpmn_spec = __esm(() => {
9175
10379
  "Intsvc.WaitForEvent",
9176
10380
  "Intsvc.EventTrigger",
9177
10381
  "Maestro.ReceiveMessageEvent",
9178
- "Maestro.SendMessageEvent"
10382
+ "Maestro.SendMessageEvent",
10383
+ "Queue.WaitForEvent"
9179
10384
  ],
9180
10385
  isExecutionArray: [
9181
10386
  "Intsvc.ActivityExecution",
@@ -9194,11 +10399,28 @@ var init_bpmn_spec = __esm(() => {
9194
10399
  });
9195
10400
 
9196
10401
  // ../../maestro-sdk/src/manifest/bpmn-spec.ts
9197
- var BPMN_SPEC, MERGED_INPUT_PATTERNS, STATIC_UIPATH_EXTENSION_TAG_NAMES, SUPPORTED_UIPATH_EXTENSION_TAG_NAMES, SUPPORTED_UIPATH_EXTENSION_TAGS;
10402
+ var BPMN_SPEC, MERGED_INPUT_PATTERNS, STRUCTURAL_TEMPLATE_TOKENS, STATIC_UIPATH_EXTENSION_TAG_NAMES, SUPPORTED_UIPATH_EXTENSION_TAG_NAMES, SUPPORTED_UIPATH_EXTENSION_TAGS;
9198
10403
  var init_bpmn_spec2 = __esm(() => {
9199
10404
  init_bpmn_spec();
9200
10405
  BPMN_SPEC = bpmn_spec_default;
9201
10406
  MERGED_INPUT_PATTERNS = new Set(["mergedBody", "splitInputsItemData", "scriptArgs"]);
10407
+ STRUCTURAL_TEMPLATE_TOKENS = Object.freeze([
10408
+ "id",
10409
+ "name",
10410
+ "incomingEdge",
10411
+ "outgoingEdge",
10412
+ "varId",
10413
+ "errorVarId",
10414
+ "outputVarId",
10415
+ "hasItemVarId",
10416
+ "countVarId",
10417
+ "bindingId",
10418
+ "nameBindingId",
10419
+ "folderPathBindingId",
10420
+ "connectionBindingId",
10421
+ "folderBindingId",
10422
+ "fileRef"
10423
+ ]);
9202
10424
  STATIC_UIPATH_EXTENSION_TAG_NAMES = [
9203
10425
  "binding",
9204
10426
  "bindings",
@@ -9840,6 +11062,7 @@ class BpmnValidateService {
9840
11062
  }
9841
11063
  validatePayload(file, payload, bindings, workflowActivityConfigurationVersion, diagnostics) {
9842
11064
  const owner = findBpmnOwner(payload);
11065
+ const typeAttribute = payload.attributes.type;
9843
11066
  if (!owner) {
9844
11067
  diagnostics.push({
9845
11068
  file,
@@ -9847,44 +11070,45 @@ class BpmnValidateService {
9847
11070
  message: `${payload.name} must be inside bpmn:extensionElements on a BPMN element.`,
9848
11071
  instruction: "Move the UiPath extension payload under the owning BPMN element's extensionElements."
9849
11072
  });
9850
- return;
9851
11073
  }
9852
- const typeNodes = childElements(payload, "uipath:type");
9853
- if (payload.attributes.type && typeNodes.length > 0) {
11074
+ if (typeAttribute) {
9854
11075
  diagnostics.push({
9855
11076
  file,
9856
- element: describeElement(owner),
9857
- message: `${payload.name} must not mix a type attribute with legacy uipath:type child elements.`,
9858
- instruction: "Use either the payload type attribute or one uipath:type child, not both."
11077
+ element: describeElement(owner ?? payload),
11078
+ message: `${payload.name} must not use a type attribute. Studio Web and the runtime only read the uipath:type child.`,
11079
+ instruction: `Remove type="${typeAttribute}". Declare the type with exactly one <uipath:type value="${typeAttribute}" version="..." /> child inside ${payload.name}, taking the version from \`uip maestro bpmn registry get ${typeAttribute}\`.`
9859
11080
  });
11081
+ }
11082
+ if (!owner || typeAttribute) {
9860
11083
  return;
9861
11084
  }
9862
- if (!payload.attributes.type && typeNodes.length === 0 && !isImplicitVariablesMapping(payload, owner)) {
11085
+ const typeNodes = childElements(payload, "uipath:type");
11086
+ if (typeNodes.length === 0 && !isImplicitVariablesMapping(payload, owner)) {
9863
11087
  diagnostics.push({
9864
11088
  file,
9865
11089
  element: describeElement(owner),
9866
- message: `${payload.name} must contain exactly one uipath:type child or a type attribute.`,
9867
- instruction: "Add one uipath:type element with a supported value attribute, or set the payload type attribute."
11090
+ message: `${payload.name} must contain exactly one uipath:type child.`,
11091
+ instruction: "Add one uipath:type element with a supported value attribute."
9868
11092
  });
9869
11093
  return;
9870
11094
  }
9871
- if (!payload.attributes.type && typeNodes.length > 1) {
11095
+ if (typeNodes.length > 1) {
9872
11096
  diagnostics.push({
9873
11097
  file,
9874
11098
  element: describeElement(owner),
9875
- message: `${payload.name} must contain exactly one uipath:type child or a type attribute.`,
9876
- instruction: "Add one uipath:type element with a supported value attribute, or set the payload type attribute."
11099
+ message: `${payload.name} must contain exactly one uipath:type child.`,
11100
+ instruction: "Add one uipath:type element with a supported value attribute."
9877
11101
  });
9878
11102
  return;
9879
11103
  }
9880
11104
  const typeNode = typeNodes[0];
9881
- const extensionType = payload.attributes.type ?? typeNode?.attributes.value ?? inferImplicitExtensionType(payload, owner);
11105
+ const extensionType = typeNode?.attributes.value ?? inferImplicitExtensionType(payload, owner);
9882
11106
  if (!extensionType) {
9883
11107
  diagnostics.push({
9884
11108
  file,
9885
11109
  element: describeElement(typeNode ?? payload),
9886
11110
  message: "UiPath extension type is missing.",
9887
- instruction: "Set uipath:activity type or uipath:type value to a supported UiPath BPMN extension type."
11111
+ instruction: "Set uipath:type value to a supported UiPath BPMN extension type."
9888
11112
  });
9889
11113
  return;
9890
11114
  }
@@ -9907,7 +11131,7 @@ class BpmnValidateService {
9907
11131
  this.validateActivityExecutionV1Bindings(file, payload, owner, bindings, diagnostics);
9908
11132
  }
9909
11133
  if (contract.extensionType === "Orchestrator.StartAgentJob") {
9910
- this.validateStartAgentJobBindings(file, payload, owner, bindings, diagnostics);
11134
+ this.validateStartAgentJobBindings(file, payload, owner, typeNode?.attributes.version, bindings, diagnostics);
9911
11135
  }
9912
11136
  if (contract.extensionType === "Intsvc.EventTrigger" || contract.extensionType === "Intsvc.WaitForEvent") {
9913
11137
  this.validateTriggerConnectionBinding(file, payload, owner, bindings, contract.extensionType === "Intsvc.WaitForEvent" ? "wait" : "trigger", diagnostics);
@@ -9931,7 +11155,28 @@ class BpmnValidateService {
9931
11155
  file,
9932
11156
  element: describeElement(owner),
9933
11157
  message: `${contract.extensionType} cannot be attached to ${owner.name}.`,
9934
- instruction: `Attach it to one of: ${allowedOwners.join(", ")}.`
11158
+ instruction: `Attach it to one of: ${allowedOwners.map(toElementInstanceName).join(", ")}.`
11159
+ });
11160
+ return;
11161
+ }
11162
+ this.validatePlacementEventDefinition(file, owner, contract, diagnostics);
11163
+ }
11164
+ validatePlacementEventDefinition(file, owner, contract, diagnostics) {
11165
+ if (contract.extensionType !== "Queue.WaitForEvent") {
11166
+ return;
11167
+ }
11168
+ const matchedPlacement = Object.values(contract.placements).find((placement) => getLocalName(placement.type) === getLocalName(owner.name));
11169
+ const expectedEventDefinition = matchedPlacement?.eventDefinition?.type;
11170
+ if (!expectedEventDefinition) {
11171
+ return;
11172
+ }
11173
+ const hasEventDefinition = owner.children.some((child) => getLocalName(child.name) === getLocalName(expectedEventDefinition) && resolveNamespace(child) === BPMN_MODEL_NAMESPACE);
11174
+ if (!hasEventDefinition) {
11175
+ diagnostics.push({
11176
+ file,
11177
+ element: describeElement(owner),
11178
+ message: `${contract.extensionType} on ${describeElement(owner)} requires a ${toElementInstanceName(expectedEventDefinition)} child.`,
11179
+ instruction: `Add a <${toElementInstanceName(expectedEventDefinition)} /> element inside ${owner.name}.`
9935
11180
  });
9936
11181
  }
9937
11182
  }
@@ -10256,20 +11501,31 @@ class BpmnValidateService {
10256
11501
  }
10257
11502
  }
10258
11503
  validateOutput(file, payload, owner, contract, diagnostics) {
10259
- if (usesCanvasOwnedDynamicPayload(contract)) {
10260
- for (const output of childElements(payload, "uipath:output")) {
10261
- if (!hasAttributeValue(output, "var")) {
10262
- diagnostics.push({
10263
- file,
10264
- element: describeElement(output),
10265
- message: `${contract.extensionType} output is missing its var attribute.`,
10266
- instruction: "Set var to the variable that receives the output."
10267
- });
11504
+ const generatedOutputs = contract.generatedOutputs === true;
11505
+ if (usesCanvasOwnedDynamicPayload(contract) || generatedOutputs) {
11506
+ const outputs2 = childElements(payload, "uipath:output");
11507
+ if (generatedOutputs && outputs2.length === 0) {
11508
+ diagnostics.push({
11509
+ file,
11510
+ element: describeElement(owner),
11511
+ message: `${contract.extensionType} is missing an output payload.`,
11512
+ instruction: 'Add <uipath:output name="latestCaseState" type="jsonSchema" source="=caseState" var="<variable id>" />.'
11513
+ });
11514
+ return;
11515
+ }
11516
+ for (const output of outputs2) {
11517
+ validateOutputHasVar(file, output, contract, diagnostics);
11518
+ if (generatedOutputs) {
11519
+ validateOutputHasName(file, output, contract, diagnostics);
10268
11520
  }
10269
11521
  }
10270
11522
  return;
10271
11523
  }
10272
11524
  const allOutputs = childElements(payload, "uipath:output");
11525
+ if (savesCollapsedMultiInstanceOutputs(owner, contract)) {
11526
+ this.validateFixedOutputs(file, allOutputs, owner, contract, diagnostics, collapsedMultiInstanceOutputs(contract));
11527
+ return;
11528
+ }
10273
11529
  if (contract.additionalOutputs?.length) {
10274
11530
  this.validateFixedOutputs(file, allOutputs, owner, contract, diagnostics);
10275
11531
  return;
@@ -10277,8 +11533,10 @@ class BpmnValidateService {
10277
11533
  if (!contract.outputName && !contract.outputType) {
10278
11534
  return;
10279
11535
  }
10280
- validateCustomOutputAttributes(file, allOutputs, contract, diagnostics);
10281
- const outputs = allOutputs.filter((output) => output.attributes.custom !== "true");
11536
+ const hasNamedContractOutput = contract.contractOutputMayBeCustom === true && allOutputs.some((output) => output.attributes.name === contract.outputName);
11537
+ const isDroppableCustomOutput = (output) => output.attributes.custom === "true" && (contract.contractOutputMayBeCustom !== true || hasNamedContractOutput && output.attributes.name !== contract.outputName);
11538
+ validateCustomOutputAttributes(file, allOutputs.filter(isDroppableCustomOutput), contract, diagnostics);
11539
+ const outputs = allOutputs.filter((output) => !isDroppableCustomOutput(output));
10282
11540
  if (outputs.length === 0) {
10283
11541
  diagnostics.push({
10284
11542
  file,
@@ -10313,42 +11571,19 @@ class BpmnValidateService {
10313
11571
  instruction: `Set the uipath:output source attribute to "${contract.outputSource}".`
10314
11572
  });
10315
11573
  }
10316
- if (!hasAttributeValue(output, "var")) {
10317
- diagnostics.push({
10318
- file,
10319
- element: describeElement(output),
10320
- message: `${contract.extensionType} output is missing its var attribute.`,
10321
- instruction: "Set var to the variable that receives the output."
10322
- });
10323
- }
11574
+ validateOutputHasVar(file, output, contract, diagnostics);
10324
11575
  }
10325
11576
  }
10326
- validateFixedOutputs(file, allOutputs, owner, contract, diagnostics) {
11577
+ validateFixedOutputs(file, allOutputs, owner, contract, diagnostics, expected = declaredOutputs(contract)) {
10327
11578
  validateCustomOutputAttributes(file, allOutputs, contract, diagnostics);
10328
11579
  const outputs = allOutputs.filter((output) => output.attributes.custom !== "true");
10329
- const expected = [
10330
- ...contract.outputName ? [
10331
- {
10332
- name: contract.outputName,
10333
- type: contract.outputType ?? "",
10334
- source: contract.outputSource,
10335
- required: true
10336
- }
10337
- ] : [],
10338
- ...contract.additionalOutputs ?? []
10339
- ];
10340
11580
  const expectedByName = new Map(expected.map((output) => [output.name, output]));
10341
11581
  const actualByName = new Map;
10342
11582
  const reportedDuplicates = new Set;
10343
11583
  for (const output of outputs) {
10344
11584
  const name = output.attributes.name;
10345
- if (!name) {
10346
- diagnostics.push({
10347
- file,
10348
- element: describeElement(output),
10349
- message: "uipath:output is missing a name attribute.",
10350
- instruction: `Set name to one of: ${[...expectedByName.keys()].join(", ")}.`
10351
- });
11585
+ if (!hasAttributeValue(output, "name")) {
11586
+ validateOutputHasName(file, output, contract, diagnostics, `Set name to one of: ${[...expectedByName.keys()].join(", ")}.`);
10352
11587
  continue;
10353
11588
  }
10354
11589
  if (!actualByName.has(name)) {
@@ -10444,10 +11679,24 @@ class BpmnValidateService {
10444
11679
  }
10445
11680
  }
10446
11681
  }
10447
- validateStartAgentJobBindings(file, payload, owner, bindings, diagnostics) {
11682
+ validateStartAgentJobBindings(file, payload, owner, typeVersion, bindings, diagnostics) {
10448
11683
  const contexts = childElements(payload, "uipath:context");
10449
11684
  const contextInputs = contexts.flatMap((context) => childElements(context, "uipath:input"));
10450
11685
  const inputs = new Map(contextInputs.map((input) => [input.attributes.name, input]));
11686
+ if (typeVersion !== START_AGENT_JOB_BINDING_VERSION) {
11687
+ for (const expected of ["releaseKey", "folderId"]) {
11688
+ if (hasAttributeValue(inputs.get(expected), "value")) {
11689
+ continue;
11690
+ }
11691
+ diagnostics.push({
11692
+ file,
11693
+ element: describeElement(owner),
11694
+ message: `Orchestrator.StartAgentJob is missing context input "${expected}". Only uipath:type version="${START_AGENT_JOB_BINDING_VERSION}" binds name and folderPath.`,
11695
+ instruction: `Set releaseKey and folderId, or use <uipath:type value="Orchestrator.StartAgentJob" version="${START_AGENT_JOB_BINDING_VERSION}" /> with binding-backed name and folderPath.`
11696
+ });
11697
+ }
11698
+ return;
11699
+ }
10451
11700
  if (inputs.has("releaseKey") || inputs.has("folderId")) {
10452
11701
  diagnostics.push({
10453
11702
  file,
@@ -10756,6 +12005,40 @@ function hasLocalName(node, localName) {
10756
12005
  function getLocalName(name) {
10757
12006
  return name.slice(name.lastIndexOf(":") + 1).toLowerCase();
10758
12007
  }
12008
+ function declaredOutputs(contract) {
12009
+ return [
12010
+ ...contract.outputName ? [
12011
+ {
12012
+ name: contract.outputName,
12013
+ type: contract.outputType ?? "",
12014
+ source: contract.outputSource,
12015
+ required: true
12016
+ }
12017
+ ] : [],
12018
+ ...contract.additionalOutputs ?? []
12019
+ ];
12020
+ }
12021
+ function savesCollapsedMultiInstanceOutputs(owner, contract) {
12022
+ return COLLAPSED_MULTI_INSTANCE_OUTPUT_CONTRACTS.has(contract.extensionType) && !hasLocalName(owner, "subProcess") && owner.children.some((child) => hasLocalName(child, "multiInstanceLoopCharacteristics") && resolveNamespace(child) === BPMN_MODEL_NAMESPACE);
12023
+ }
12024
+ function collapsedMultiInstanceOutputs(contract) {
12025
+ const error = declaredOutputs(contract).find((output) => output.name === "Error" && output.source === "=Error");
12026
+ return [
12027
+ {
12028
+ name: "response",
12029
+ type: "jsonSchema",
12030
+ source: "=response",
12031
+ required: true
12032
+ },
12033
+ ...error ? [error] : []
12034
+ ];
12035
+ }
12036
+ function toElementInstanceName(name) {
12037
+ const separator = name.indexOf(":");
12038
+ const prefix = separator === -1 ? "" : name.slice(0, separator + 1);
12039
+ const local = separator === -1 ? name : name.slice(separator + 1);
12040
+ return `${prefix}${local.charAt(0).toLowerCase()}${local.slice(1)}`;
12041
+ }
10759
12042
  function resolveNamespace(node) {
10760
12043
  const separator = node.name.indexOf(":");
10761
12044
  const prefix = separator === -1 ? "" : node.name.slice(0, separator);
@@ -10774,9 +12057,6 @@ function findBpmnOwner(payload) {
10774
12057
  if (extensionElements && hasLocalName(extensionElements, "extensionElements")) {
10775
12058
  return extensionElements.parent;
10776
12059
  }
10777
- if (payload.parent?.name.startsWith("bpmn:")) {
10778
- return payload.parent;
10779
- }
10780
12060
  return;
10781
12061
  }
10782
12062
  function getContextInputs(payload) {
@@ -10811,27 +12091,33 @@ function describeElement(node) {
10811
12091
  function hasAttributeValue(node, attribute) {
10812
12092
  return Boolean(node?.attributes[attribute]?.trim());
10813
12093
  }
10814
- function validateCustomOutputAttributes(file, allOutputs, contract, diagnostics) {
10815
- for (const output of allOutputs) {
12094
+ function validateCustomOutputAttributes(file, candidateOutputs, contract, diagnostics) {
12095
+ for (const output of candidateOutputs) {
10816
12096
  if (output.attributes.custom !== "true") {
10817
12097
  continue;
10818
12098
  }
10819
- if (!hasAttributeValue(output, "name")) {
10820
- diagnostics.push({
10821
- file,
10822
- element: describeElement(output),
10823
- message: "uipath:output is missing a name attribute.",
10824
- instruction: "Set name to the output's variable name."
10825
- });
10826
- }
10827
- if (!hasAttributeValue(output, "var")) {
10828
- diagnostics.push({
10829
- file,
10830
- element: describeElement(output),
10831
- message: `${contract.extensionType} output is missing its var attribute.`,
10832
- instruction: "Set var to the variable that receives the output."
10833
- });
10834
- }
12099
+ validateOutputHasName(file, output, contract, diagnostics);
12100
+ validateOutputHasVar(file, output, contract, diagnostics);
12101
+ }
12102
+ }
12103
+ function validateOutputHasName(file, output, contract, diagnostics, instruction = "Set name to the output's variable name.") {
12104
+ if (!hasAttributeValue(output, "name")) {
12105
+ diagnostics.push({
12106
+ file,
12107
+ element: describeElement(output),
12108
+ message: `${contract.extensionType} output is missing a name attribute.`,
12109
+ instruction
12110
+ });
12111
+ }
12112
+ }
12113
+ function validateOutputHasVar(file, output, contract, diagnostics) {
12114
+ if (!hasAttributeValue(output, "var")) {
12115
+ diagnostics.push({
12116
+ file,
12117
+ element: describeElement(output),
12118
+ message: `${contract.extensionType} output is missing its var attribute.`,
12119
+ instruction: "Set var to the variable that receives the output."
12120
+ });
10835
12121
  }
10836
12122
  }
10837
12123
  function usesCanvasOwnedDynamicPayload(contract) {
@@ -10854,7 +12140,7 @@ function inferImplicitExtensionType(payload, owner) {
10854
12140
  return isImplicitVariablesMapping(payload, owner) ? "BPMN.Variables" : undefined;
10855
12141
  }
10856
12142
  function isImplicitVariablesMapping(payload, owner) {
10857
- return payload.name === "uipath:mapping" && !payload.attributes.type && childElements(payload, "uipath:type").length === 0 && hasLocalName(owner, "task");
12143
+ return payload.name === "uipath:mapping" && childElements(payload, "uipath:type").length === 0 && hasLocalName(owner, "task");
10858
12144
  }
10859
12145
  function getExpectedInputName(contract) {
10860
12146
  if (contract.inputPattern === "splitInputsItemData") {
@@ -10901,8 +12187,7 @@ function validateMergedBodyFields(file, input, expectedName, contract, diagnosti
10901
12187
  return;
10902
12188
  }
10903
12189
  for (const field of required) {
10904
- const value = body[field.name];
10905
- if (value === undefined || value === null || value === "") {
12190
+ if (isUnsetFieldValue(body[field.name])) {
10906
12191
  diagnostics.push({
10907
12192
  file,
10908
12193
  element: describeElement(input),
@@ -10912,6 +12197,12 @@ function validateMergedBodyFields(file, input, expectedName, contract, diagnosti
10912
12197
  }
10913
12198
  }
10914
12199
  }
12200
+ function isUnsetFieldValue(value) {
12201
+ if (value === undefined || value === null) {
12202
+ return true;
12203
+ }
12204
+ return typeof value === "string" && value.trim() === "";
12205
+ }
10915
12206
  function parseJsonObject(text) {
10916
12207
  if (text.startsWith("=")) {
10917
12208
  return;
@@ -11047,7 +12338,7 @@ function isWarningDiagnostic(diagnostic) {
11047
12338
  function decodeXmlEntities(value) {
11048
12339
  return value.replace(/&quot;/g, '"').replace(/&apos;/g, "'").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&");
11049
12340
  }
11050
- var SCRIPT_RUNTIME_GLOBALS, KNOWN_UIPATH_TAGS, CALL_ACTIVITY_TYPES, CALL_ACTIVITY_PAYLOAD_TAGS, SEMANTIC_VALIDATION_ERROR = "BPMN_VALIDATION_ERROR", BPMN_MODEL_NAMESPACE = "http://www.omg.org/spec/BPMN/20100524/MODEL", ACTIVITY_CONFIGURATION_VERSION = "activityConfigurationVersion", ACTIVITY_CONFIGURATION_V1 = "v1", VARIABLE_READ, FREE_TEXT_ELEMENTS, VARIABLE_DECLARATION_NAMES;
12341
+ var SCRIPT_RUNTIME_GLOBALS, KNOWN_UIPATH_TAGS, CALL_ACTIVITY_TYPES, CALL_ACTIVITY_PAYLOAD_TAGS, SEMANTIC_VALIDATION_ERROR = "BPMN_VALIDATION_ERROR", BPMN_MODEL_NAMESPACE = "http://www.omg.org/spec/BPMN/20100524/MODEL", ACTIVITY_CONFIGURATION_VERSION = "activityConfigurationVersion", ACTIVITY_CONFIGURATION_V1 = "v1", START_AGENT_JOB_BINDING_VERSION = "v2", VARIABLE_READ, FREE_TEXT_ELEMENTS, VARIABLE_DECLARATION_NAMES, COLLAPSED_MULTI_INSTANCE_OUTPUT_CONTRACTS;
11051
12342
  var init_project_validator = __esm(() => {
11052
12343
  init_catch_error();
11053
12344
  init_guid();
@@ -11069,6 +12360,12 @@ var init_project_validator = __esm(() => {
11069
12360
  VARIABLE_READ = /vars(?:\.([A-Za-z_$][\w$]*)|\[\s*["']([^"']+)["']\s*\])/g;
11070
12361
  FREE_TEXT_ELEMENTS = new Set(["documentation", "text"]);
11071
12362
  VARIABLE_DECLARATION_NAMES = new Set(["input", "inputoutput", "output"]);
12363
+ COLLAPSED_MULTI_INSTANCE_OUTPUT_CONTRACTS = new Set([
12364
+ "Orchestrator.GetTransactionItem",
12365
+ "Orchestrator.GetQueueItems",
12366
+ "Orchestrator.DeleteQueueItems",
12367
+ "Queue.WaitForEvent"
12368
+ ]);
11072
12369
  });
11073
12370
 
11074
12371
  // ../../maestro-sdk/src/bpmn-packaging/node-utils.ts
@@ -17192,7 +18489,8 @@ function buildBpmnPackageMetadata(options) {
17192
18489
  type: "ProcessOrchestration",
17193
18490
  input: mergeSchemaAnnotations(oldEntry?.input, entryPoint.input),
17194
18491
  output: mergeSchemaAnnotations(oldEntry?.output, entryPoint.output),
17195
- displayName: entryPoint.displayName
18492
+ displayName: entryPoint.displayName,
18493
+ ...entryPoint.isTransactionRoot ? { isTransactionRoot: true } : {}
17196
18494
  };
17197
18495
  });
17198
18496
  const existingOperate = existing["operate.json"] ?? {};
@@ -17296,6 +18594,7 @@ function deriveEntryPointsForProcess(process) {
17296
18594
  const manualStartEvents = flowElements.filter((element) => element.$type === "bpmn:StartEvent" && (element.eventDefinitions?.length ?? 0) === 0 && !extensionValues(element).some((node) => node.$type === "uipath:event"));
17297
18595
  if (manualStartEvents.length === 0)
17298
18596
  return [];
18597
+ const isTransactionRoot = extensionValues(process).find((node) => node.$type === "uipath:isTransactionRoot")?.value === "true";
17299
18598
  const variables = childNodes(extensionValues(process).find((node) => node.$type === "uipath:variables"));
17300
18599
  const inputs = variables.filter((node) => node.$type === "uipath:input");
17301
18600
  const rootEndIds = new Set(flowElements.filter((element) => element.$type === "bpmn:EndEvent").map((element) => element.id).filter((id) => id !== undefined));
@@ -17318,7 +18617,8 @@ function deriveEntryPointsForProcess(process) {
17318
18617
  entryPointId,
17319
18618
  displayName: entryPointDisplayName(startEvent.name),
17320
18619
  input: variableSchema(inputs.filter((input) => input.elementId === startEventId), "input"),
17321
- output: outputSchema
18620
+ output: outputSchema,
18621
+ isTransactionRoot
17322
18622
  };
17323
18623
  });
17324
18624
  }
@@ -17728,4 +19028,4 @@ export {
17728
19028
  BpmnToolFactory
17729
19029
  };
17730
19030
 
17731
- //# debugId=9618053788D006B964756E2164756E21
19031
+ //# debugId=A3A98487CDAF621F64756E2164756E21