@uipath/maestro-sdk 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.
@@ -939,14 +939,17 @@ var bpmn_spec_default = {
939
939
  requiresDiscovery: true,
940
940
  isDynamic: true,
941
941
  xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
942
- <uipath:activity type="Orchestrator.StartAgentJob" version="v1">
943
- <uipath:context>
944
- <uipath:input name="name" type="string" value="=bindings.{nameBindingId}" />
945
- <uipath:input name="folderPath" type="string" value="=bindings.{folderPathBindingId}" />
946
- </uipath:context>
947
- <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
948
- <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
949
- </uipath:activity>
942
+ <bpmn:extensionElements>
943
+ <uipath:activity version="v1">
944
+ <uipath:type value="Orchestrator.StartAgentJob" version="v2" />
945
+ <uipath:context>
946
+ <uipath:input name="name" type="string" value="=bindings.{nameBindingId}" />
947
+ <uipath:input name="folderPath" type="string" value="=bindings.{folderPathBindingId}" />
948
+ </uipath:context>
949
+ <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
950
+ <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
951
+ </uipath:activity>
952
+ </bpmn:extensionElements>
950
953
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
951
954
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
952
955
  </bpmn:ServiceTask>`,
@@ -974,7 +977,7 @@ var bpmn_spec_default = {
974
977
  defaultValue: null,
975
978
  bindingInfo: {
976
979
  resource: "BusinessRule",
977
- resourceKeyPattern: "${metadata.key}",
980
+ resourceKeyPattern: "${metadata.folderPath}.${metadata.name}",
978
981
  propertyAttribute: "name"
979
982
  }
980
983
  },
@@ -988,7 +991,7 @@ var bpmn_spec_default = {
988
991
  defaultValue: null,
989
992
  bindingInfo: {
990
993
  resource: "BusinessRule",
991
- resourceKeyPattern: "${metadata.key}",
994
+ resourceKeyPattern: "${metadata.folderPath}.${metadata.name}",
992
995
  propertyAttribute: "folderPath"
993
996
  }
994
997
  },
@@ -1005,13 +1008,22 @@ var bpmn_spec_default = {
1005
1008
  inputPattern: "mergedBody",
1006
1009
  inputName: "JobArguments",
1007
1010
  inputTarget: "bodyField",
1008
- outputSource: null,
1009
- outputType: null,
1011
+ outputName: "output",
1012
+ outputSource: "=result",
1013
+ outputType: "jsonSchema",
1014
+ additionalOutputs: [
1015
+ {
1016
+ name: "Error",
1017
+ type: "jsonSchema",
1018
+ source: "=Error",
1019
+ required: true
1020
+ }
1021
+ ],
1010
1022
  useRelativeSource: true,
1011
1023
  bindingPattern: "businessRule",
1012
1024
  bindingInfo: {
1013
1025
  resource: "BusinessRule",
1014
- resourceKeyPattern: "${metadata.key}",
1026
+ resourceKeyPattern: "${metadata.folderPath}.${metadata.name}",
1015
1027
  propertyAttribute: "name",
1016
1028
  contextField: "name"
1017
1029
  },
@@ -1020,7 +1032,7 @@ var bpmn_spec_default = {
1020
1032
  xmlTemplate: `<bpmn:BusinessRuleTask id="{id}" name="{name}">
1021
1033
  <bpmn:extensionElements>
1022
1034
  <uipath:activity version="v1">
1023
- <uipath:type value="Orchestrator.BusinessRules" version="v2" />
1035
+ <uipath:type value="Orchestrator.BusinessRules" version="v3" />
1024
1036
  <uipath:context>
1025
1037
  <uipath:input name="name" type="string" value="=bindings.{nameBindingId}" />
1026
1038
  <uipath:input name="folderPath" type="string" value="=bindings.{folderPathBindingId}" />
@@ -1028,17 +1040,17 @@ var bpmn_spec_default = {
1028
1040
  <uipath:inputSchema type="jsonSchema"><![CDATA[{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"required":[]}]]></uipath:inputSchema>
1029
1041
  </uipath:context>
1030
1042
  <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
1043
+ <uipath:output name="output" type="jsonSchema" source="=result" var="{outputVarId}" />
1031
1044
  <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
1032
- <uipath:output name="{outputName}" type="{outputType}" source="={outputName}" var="{outputVarId}" />
1033
1045
  </uipath:activity>
1034
1046
  </bpmn:extensionElements>
1035
1047
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
1036
1048
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
1037
1049
  </bpmn:BusinessRuleTask>`,
1038
- discoveryNotes: "Uses getOrchestratorBusinessRules() to list available business rules",
1050
+ 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",
1039
1051
  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.",
1040
- 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.`,
1041
- 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."
1052
+ 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.",
1053
+ 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.'
1042
1054
  },
1043
1055
  "Intsvc.ActivityExecution": {
1044
1056
  extensionType: "Intsvc.ActivityExecution",
@@ -2589,52 +2601,123 @@ var bpmn_spec_default = {
2589
2601
  </bpmn:ServiceTask>`,
2590
2602
  discoveryNotes: "Uses getQueueDefinitions(serviceType, search) to list available queues"
2591
2603
  },
2592
- "Orchestrator.StartAgenticProcess": {
2593
- extensionType: "Orchestrator.StartAgenticProcess",
2594
- label: "Start and wait for agentic process",
2595
- bpmnElement: "bpmn:CallActivity",
2604
+ "Orchestrator.SetTransactionStatus": {
2605
+ extensionType: "Orchestrator.SetTransactionStatus",
2606
+ label: "Set transaction status",
2607
+ bpmnElement: "bpmn:ServiceTask",
2596
2608
  placements: {
2597
2609
  activity: {
2598
- type: "bpmn:CallActivity"
2610
+ type: "bpmn:ServiceTask"
2599
2611
  }
2600
2612
  },
2601
2613
  extensionTag: "uipath:activity",
2602
2614
  contextFields: [
2603
2615
  {
2604
- name: "releaseKey",
2605
- displayName: "Process",
2616
+ name: "_label",
2606
2617
  type: "string",
2607
2618
  required: false,
2608
2619
  hidden: true,
2609
2620
  isPrimaryKey: false,
2610
2621
  binding: false,
2622
+ defaultValue: null
2623
+ }
2624
+ ],
2625
+ inputPattern: "mergedBody",
2626
+ outputSource: "=Error",
2627
+ outputType: "jsonSchema",
2628
+ outputName: "Error",
2629
+ bindingPattern: "none",
2630
+ requiresDiscovery: false,
2631
+ isDynamic: false,
2632
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2633
+ <bpmn:extensionElements>
2634
+ <uipath:activity version="v1">
2635
+ <uipath:type value="Orchestrator.SetTransactionStatus" version="v1" />
2636
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"QueueItem":{QueueItem},"Status":"{Status}","ErrorType":null,"Reason":null,"Details":null}]]></uipath:input>
2637
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{varId}" />
2638
+ </uipath:activity>
2639
+ </bpmn:extensionElements>
2640
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2641
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2642
+ </bpmn:ServiceTask>`,
2643
+ 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.',
2644
+ inputFields: [
2645
+ {
2646
+ name: "QueueItem",
2647
+ displayName: "Transaction item",
2648
+ type: "object",
2649
+ required: true,
2650
+ hidden: false,
2651
+ isPrimaryKey: false,
2652
+ binding: false,
2611
2653
  defaultValue: null,
2612
- bindingInfo: {
2613
- resource: "process",
2614
- resourceKeyPattern: "${metadata.key}",
2615
- propertyAttribute: "Key"
2616
- }
2654
+ target: "body"
2617
2655
  },
2618
2656
  {
2619
- name: "folderId",
2620
- type: "string",
2657
+ name: "Status",
2658
+ type: "dropdown",
2659
+ required: true,
2660
+ hidden: false,
2661
+ isPrimaryKey: false,
2662
+ binding: false,
2663
+ defaultValue: null,
2664
+ enum: [
2665
+ "Successful",
2666
+ "Failed"
2667
+ ],
2668
+ target: "body"
2669
+ },
2670
+ {
2671
+ name: "ErrorType",
2672
+ type: "dropdown",
2621
2673
  required: false,
2622
- hidden: true,
2674
+ hidden: false,
2623
2675
  isPrimaryKey: false,
2624
2676
  binding: false,
2625
- defaultValue: null
2677
+ defaultValue: null,
2678
+ enum: [
2679
+ "BusinessException",
2680
+ "ApplicationException"
2681
+ ],
2682
+ target: "body"
2626
2683
  },
2627
2684
  {
2628
- name: "folderPath",
2685
+ name: "Reason",
2629
2686
  type: "string",
2630
2687
  required: false,
2631
- hidden: true,
2688
+ hidden: false,
2632
2689
  isPrimaryKey: false,
2633
2690
  binding: false,
2634
- defaultValue: null
2691
+ defaultValue: null,
2692
+ target: "body"
2635
2693
  },
2636
2694
  {
2637
- name: "name",
2695
+ name: "Details",
2696
+ type: "string",
2697
+ required: false,
2698
+ hidden: false,
2699
+ isPrimaryKey: false,
2700
+ binding: false,
2701
+ defaultValue: null,
2702
+ target: "body"
2703
+ }
2704
+ ],
2705
+ inputName: "body",
2706
+ inputTarget: "body"
2707
+ },
2708
+ "Orchestrator.SetTransactionProgress": {
2709
+ extensionType: "Orchestrator.SetTransactionProgress",
2710
+ label: "Set transaction progress",
2711
+ bpmnElement: "bpmn:ServiceTask",
2712
+ placements: {
2713
+ activity: {
2714
+ type: "bpmn:ServiceTask"
2715
+ }
2716
+ },
2717
+ extensionTag: "uipath:activity",
2718
+ contextFields: [
2719
+ {
2720
+ name: "_label",
2638
2721
  type: "string",
2639
2722
  required: false,
2640
2723
  hidden: true,
@@ -2644,74 +2727,151 @@ var bpmn_spec_default = {
2644
2727
  }
2645
2728
  ],
2646
2729
  inputPattern: "mergedBody",
2647
- inputName: "JobArguments",
2648
- inputTarget: "bodyField",
2649
- outputSource: null,
2650
- outputType: "Orchestrator.RunJob",
2651
- outputName: "Process response",
2652
- useRelativeSource: true,
2653
- bindingPattern: "process",
2654
- bindingInfo: {
2655
- resource: "process",
2656
- resourceKeyPattern: "${metadata.key}",
2657
- propertyAttribute: "Key",
2658
- contextField: "releaseKey"
2659
- },
2660
- requiresDiscovery: true,
2661
- isDynamic: true,
2662
- xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
2730
+ outputSource: "=Error",
2731
+ outputType: "jsonSchema",
2732
+ outputName: "Error",
2733
+ bindingPattern: "none",
2734
+ requiresDiscovery: false,
2735
+ isDynamic: false,
2736
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2663
2737
  <bpmn:extensionElements>
2664
2738
  <uipath:activity version="v1">
2665
- <uipath:type value="Orchestrator.StartAgenticProcess" version="v1" />
2666
- <uipath:context>
2667
- <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
2668
- <uipath:input name="folderId" type="string" value="{folderId}" />
2669
- <uipath:input name="folderPath" type="string" value="{folderPath}" />
2670
- <uipath:input name="name" type="string" value="{name}" />
2671
- </uipath:context>
2672
- <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
2673
- <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
2739
+ <uipath:type value="Orchestrator.SetTransactionProgress" version="v1" />
2740
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"QueueItem":{QueueItem},"Progress":"{Progress}"}]]></uipath:input>
2741
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{varId}" />
2674
2742
  </uipath:activity>
2675
2743
  </bpmn:extensionElements>
2676
2744
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2677
2745
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2678
- </bpmn:CallActivity>`,
2679
- discoveryNotes: "Uses getSupportedOrchestratorTasks('ProcessOrchestration', search, 0, 100, true) to list available agentic processes"
2746
+ </bpmn:ServiceTask>`,
2747
+ inputFields: [
2748
+ {
2749
+ name: "QueueItem",
2750
+ displayName: "Transaction item",
2751
+ type: "object",
2752
+ required: true,
2753
+ hidden: false,
2754
+ isPrimaryKey: false,
2755
+ binding: false,
2756
+ defaultValue: null,
2757
+ target: "body"
2758
+ },
2759
+ {
2760
+ name: "Progress",
2761
+ type: "string",
2762
+ required: true,
2763
+ hidden: false,
2764
+ isPrimaryKey: false,
2765
+ binding: false,
2766
+ defaultValue: null,
2767
+ target: "body"
2768
+ }
2769
+ ],
2770
+ inputName: "body",
2771
+ inputTarget: "body",
2772
+ 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.'
2680
2773
  },
2681
- "Orchestrator.StartAgenticProcessAsync": {
2682
- extensionType: "Orchestrator.StartAgenticProcessAsync",
2683
- label: "Start agentic process",
2684
- bpmnElement: "bpmn:CallActivity",
2774
+ "Orchestrator.PostponeTransactionItem": {
2775
+ extensionType: "Orchestrator.PostponeTransactionItem",
2776
+ label: "Postpone transaction item",
2777
+ bpmnElement: "bpmn:ServiceTask",
2685
2778
  placements: {
2686
2779
  activity: {
2687
- type: "bpmn:CallActivity"
2780
+ type: "bpmn:ServiceTask"
2688
2781
  }
2689
2782
  },
2690
2783
  extensionTag: "uipath:activity",
2691
2784
  contextFields: [
2692
2785
  {
2693
- name: "releaseKey",
2694
- displayName: "Process",
2786
+ name: "_label",
2695
2787
  type: "string",
2696
2788
  required: false,
2697
2789
  hidden: true,
2698
2790
  isPrimaryKey: false,
2699
2791
  binding: false,
2792
+ defaultValue: null
2793
+ }
2794
+ ],
2795
+ inputPattern: "mergedBody",
2796
+ outputSource: "=Error",
2797
+ outputType: "jsonSchema",
2798
+ outputName: "Error",
2799
+ bindingPattern: "none",
2800
+ requiresDiscovery: false,
2801
+ isDynamic: false,
2802
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2803
+ <bpmn:extensionElements>
2804
+ <uipath:activity version="v1">
2805
+ <uipath:type value="Orchestrator.PostponeTransactionItem" version="v1" />
2806
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"QueueItem":{QueueItem},"PostponeDate":"{PostponeDate}","DueDate":null}]]></uipath:input>
2807
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{varId}" />
2808
+ </uipath:activity>
2809
+ </bpmn:extensionElements>
2810
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2811
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2812
+ </bpmn:ServiceTask>`,
2813
+ inputFields: [
2814
+ {
2815
+ name: "QueueItem",
2816
+ displayName: "Transaction item",
2817
+ type: "object",
2818
+ required: true,
2819
+ hidden: false,
2820
+ isPrimaryKey: false,
2821
+ binding: false,
2700
2822
  defaultValue: null,
2701
- bindingInfo: {
2702
- resource: "process",
2703
- resourceKeyPattern: "${metadata.key}",
2704
- propertyAttribute: "Key"
2705
- }
2823
+ target: "body"
2706
2824
  },
2707
2825
  {
2708
- name: "folderId",
2826
+ name: "PostponeDate",
2827
+ type: "datetime",
2828
+ required: true,
2829
+ hidden: false,
2830
+ isPrimaryKey: false,
2831
+ binding: false,
2832
+ defaultValue: null,
2833
+ target: "body"
2834
+ },
2835
+ {
2836
+ name: "DueDate",
2837
+ type: "datetime",
2838
+ required: false,
2839
+ hidden: false,
2840
+ isPrimaryKey: false,
2841
+ binding: false,
2842
+ defaultValue: null,
2843
+ target: "body"
2844
+ }
2845
+ ],
2846
+ inputName: "body",
2847
+ inputTarget: "body",
2848
+ 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.'
2849
+ },
2850
+ "Orchestrator.BulkAddQueueItems": {
2851
+ extensionType: "Orchestrator.BulkAddQueueItems",
2852
+ label: "Bulk add queue items",
2853
+ bpmnElement: "bpmn:ServiceTask",
2854
+ placements: {
2855
+ activity: {
2856
+ type: "bpmn:ServiceTask"
2857
+ }
2858
+ },
2859
+ extensionTag: "uipath:activity",
2860
+ contextFields: [
2861
+ {
2862
+ name: "queueName",
2863
+ displayName: "Queue name",
2709
2864
  type: "string",
2710
2865
  required: false,
2711
2866
  hidden: true,
2712
2867
  isPrimaryKey: false,
2713
2868
  binding: false,
2714
- defaultValue: null
2869
+ defaultValue: null,
2870
+ bindingInfo: {
2871
+ resource: "queue",
2872
+ resourceKeyPattern: "${folderPath}.${name}",
2873
+ propertyAttribute: "name"
2874
+ }
2715
2875
  },
2716
2876
  {
2717
2877
  name: "folderPath",
@@ -2723,7 +2883,7 @@ var bpmn_spec_default = {
2723
2883
  defaultValue: null
2724
2884
  },
2725
2885
  {
2726
- name: "name",
2886
+ name: "_label",
2727
2887
  type: "string",
2728
2888
  required: false,
2729
2889
  hidden: true,
@@ -2733,53 +2893,136 @@ var bpmn_spec_default = {
2733
2893
  }
2734
2894
  ],
2735
2895
  inputPattern: "mergedBody",
2736
- inputName: "JobArguments",
2737
- inputTarget: "bodyField",
2738
- outputSource: null,
2739
- outputType: null,
2740
- outputName: null,
2741
- 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.",
2742
- bindingPattern: "process",
2896
+ outputSource: "=response",
2897
+ outputType: "jsonSchema",
2898
+ outputName: "response",
2899
+ bindingPattern: "queue",
2743
2900
  bindingInfo: {
2744
- resource: "process",
2745
- resourceKeyPattern: "${metadata.key}",
2746
- propertyAttribute: "Key",
2747
- contextField: "releaseKey"
2901
+ resource: "queue",
2902
+ resourceKeyPattern: "${folderPath}.${name}",
2903
+ propertyAttribute: "name",
2904
+ contextField: "queueName"
2748
2905
  },
2749
2906
  requiresDiscovery: true,
2750
- isDynamic: true,
2751
- xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
2907
+ isDynamic: false,
2908
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2752
2909
  <bpmn:extensionElements>
2753
2910
  <uipath:activity version="v1">
2754
- <uipath:type value="Orchestrator.StartAgenticProcessAsync" version="v1" />
2911
+ <uipath:type value="Orchestrator.BulkAddQueueItems" version="v2" />
2755
2912
  <uipath:context>
2756
- <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
2757
- <uipath:input name="folderId" type="string" value="{folderId}" />
2913
+ <uipath:input name="queueName" type="string" value="{queueName}" />
2758
2914
  <uipath:input name="folderPath" type="string" value="{folderPath}" />
2759
- <uipath:input name="name" type="string" value="{name}" />
2760
2915
  </uipath:context>
2761
- <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
2916
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"QueueItems":{QueueItems},"CommitStrategy":"{CommitStrategy}"}]]></uipath:input>
2917
+ <uipath:output name="response" type="jsonSchema" source="=response" var="{varId}" />
2762
2918
  </uipath:activity>
2763
2919
  </bpmn:extensionElements>
2764
2920
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2765
2921
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2766
- </bpmn:CallActivity>`,
2767
- discoveryNotes: "Uses getSupportedOrchestratorTasks('ProcessOrchestration', search, 0, 100, true) to list available agentic processes"
2922
+ </bpmn:ServiceTask>`,
2923
+ discoveryNotes: "Uses getQueueDefinitions(serviceType, search) to list available queues.",
2924
+ 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.',
2925
+ 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.",
2926
+ inputFields: [
2927
+ {
2928
+ name: "QueueItems",
2929
+ displayName: "Transaction items",
2930
+ type: "json",
2931
+ required: true,
2932
+ hidden: false,
2933
+ isPrimaryKey: false,
2934
+ binding: false,
2935
+ target: "body"
2936
+ },
2937
+ {
2938
+ name: "CommitStrategy",
2939
+ displayName: "Commit strategy",
2940
+ type: "dropdown",
2941
+ required: true,
2942
+ hidden: false,
2943
+ isPrimaryKey: false,
2944
+ binding: false,
2945
+ defaultValue: "AllOrNothing",
2946
+ enum: [
2947
+ "AllOrNothing",
2948
+ "StopOnFirstFailure",
2949
+ "ProcessAllIndependently"
2950
+ ],
2951
+ target: "body"
2952
+ }
2953
+ ],
2954
+ inputName: "body",
2955
+ inputTarget: "body"
2768
2956
  },
2769
- "Orchestrator.StartCaseMgmtProcess": {
2770
- extensionType: "Orchestrator.StartCaseMgmtProcess",
2771
- label: "Start and wait for case management",
2772
- bpmnElement: "bpmn:CallActivity",
2957
+ "Orchestrator.DeleteQueueItems": {
2958
+ extensionType: "Orchestrator.DeleteQueueItems",
2959
+ label: "Delete queue items",
2960
+ bpmnElement: "bpmn:ServiceTask",
2773
2961
  placements: {
2774
2962
  activity: {
2775
- type: "bpmn:CallActivity"
2963
+ type: "bpmn:ServiceTask"
2776
2964
  }
2777
2965
  },
2778
2966
  extensionTag: "uipath:activity",
2779
2967
  contextFields: [
2780
2968
  {
2781
- name: "releaseKey",
2782
- displayName: "Process",
2969
+ name: "_label",
2970
+ type: "string",
2971
+ required: false,
2972
+ hidden: true,
2973
+ isPrimaryKey: false,
2974
+ binding: false,
2975
+ defaultValue: null
2976
+ }
2977
+ ],
2978
+ inputPattern: "mergedBody",
2979
+ outputSource: "=deletedCount",
2980
+ outputType: "jsonSchema",
2981
+ outputName: "deletedCount",
2982
+ bindingPattern: "none",
2983
+ requiresDiscovery: false,
2984
+ isDynamic: false,
2985
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2986
+ <bpmn:extensionElements>
2987
+ <uipath:activity version="v1">
2988
+ <uipath:type value="Orchestrator.DeleteQueueItems" version="v1" />
2989
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"Items":{Items}}]]></uipath:input>
2990
+ <uipath:output name="deletedCount" type="jsonSchema" source="=deletedCount" var="{varId}" />
2991
+ </uipath:activity>
2992
+ </bpmn:extensionElements>
2993
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2994
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2995
+ </bpmn:ServiceTask>`,
2996
+ 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.',
2997
+ inputFields: [
2998
+ {
2999
+ name: "Items",
3000
+ displayName: "Transaction items",
3001
+ type: "json",
3002
+ required: true,
3003
+ hidden: false,
3004
+ isPrimaryKey: false,
3005
+ binding: false,
3006
+ target: "body"
3007
+ }
3008
+ ],
3009
+ inputName: "body",
3010
+ inputTarget: "body"
3011
+ },
3012
+ "Orchestrator.GetTransactionItem": {
3013
+ extensionType: "Orchestrator.GetTransactionItem",
3014
+ label: "Get transaction item",
3015
+ bpmnElement: "bpmn:ServiceTask",
3016
+ placements: {
3017
+ activity: {
3018
+ type: "bpmn:ServiceTask"
3019
+ }
3020
+ },
3021
+ extensionTag: "uipath:activity",
3022
+ contextFields: [
3023
+ {
3024
+ name: "queueName",
3025
+ displayName: "Queue name",
2783
3026
  type: "string",
2784
3027
  required: false,
2785
3028
  hidden: true,
@@ -2787,13 +3030,13 @@ var bpmn_spec_default = {
2787
3030
  binding: false,
2788
3031
  defaultValue: null,
2789
3032
  bindingInfo: {
2790
- resource: "process",
2791
- resourceKeyPattern: "${metadata.key}",
2792
- propertyAttribute: "Key"
3033
+ resource: "queue",
3034
+ resourceKeyPattern: "${folderPath}.${name}",
3035
+ propertyAttribute: "name"
2793
3036
  }
2794
3037
  },
2795
3038
  {
2796
- name: "folderId",
3039
+ name: "folderPath",
2797
3040
  type: "string",
2798
3041
  required: false,
2799
3042
  hidden: true,
@@ -2802,7 +3045,7 @@ var bpmn_spec_default = {
2802
3045
  defaultValue: null
2803
3046
  },
2804
3047
  {
2805
- name: "folderPath",
3048
+ name: "_label",
2806
3049
  type: "string",
2807
3050
  required: false,
2808
3051
  hidden: true,
@@ -2811,78 +3054,107 @@ var bpmn_spec_default = {
2811
3054
  defaultValue: null
2812
3055
  },
2813
3056
  {
2814
- name: "name",
3057
+ name: "reference",
3058
+ displayName: "Reference",
2815
3059
  type: "string",
2816
3060
  required: false,
2817
3061
  hidden: true,
2818
3062
  isPrimaryKey: false,
2819
3063
  binding: false,
2820
3064
  defaultValue: null
3065
+ },
3066
+ {
3067
+ name: "filterStrategy",
3068
+ displayName: "Reference filter strategy",
3069
+ type: "string",
3070
+ required: false,
3071
+ hidden: true,
3072
+ isPrimaryKey: false,
3073
+ binding: false,
3074
+ defaultValue: "StartsWith",
3075
+ enum: [
3076
+ "StartsWith",
3077
+ "Equals"
3078
+ ]
2821
3079
  }
2822
3080
  ],
2823
- inputPattern: "mergedBody",
2824
- inputName: "JobArguments",
2825
- inputTarget: "bodyField",
2826
- outputSource: null,
2827
- outputType: "Orchestrator.RunJob",
2828
- outputName: "Process response",
2829
- useRelativeSource: true,
2830
- bindingPattern: "process",
3081
+ inputPattern: "none",
3082
+ outputSource: "=result",
3083
+ outputType: "jsonSchema",
3084
+ outputName: "TransactionItem",
3085
+ additionalOutputs: [
3086
+ {
3087
+ name: "hasItem",
3088
+ type: "boolean",
3089
+ source: "=hasItem",
3090
+ required: true
3091
+ },
3092
+ {
3093
+ name: "Error",
3094
+ type: "jsonSchema",
3095
+ source: "=Error",
3096
+ required: true
3097
+ }
3098
+ ],
3099
+ bindingPattern: "queue",
2831
3100
  bindingInfo: {
2832
- resource: "process",
2833
- resourceKeyPattern: "${metadata.key}",
2834
- propertyAttribute: "Key",
2835
- contextField: "releaseKey"
3101
+ resource: "queue",
3102
+ resourceKeyPattern: "${folderPath}.${name}",
3103
+ propertyAttribute: "name",
3104
+ contextField: "queueName"
2836
3105
  },
2837
3106
  requiresDiscovery: true,
2838
- isDynamic: true,
2839
- xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
3107
+ isDynamic: false,
3108
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2840
3109
  <bpmn:extensionElements>
2841
3110
  <uipath:activity version="v1">
2842
- <uipath:type value="Orchestrator.StartCaseMgmtProcess" version="v1" />
3111
+ <uipath:type value="Orchestrator.GetTransactionItem" version="v2" />
2843
3112
  <uipath:context>
2844
- <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
2845
- <uipath:input name="folderId" type="string" value="{folderId}" />
3113
+ <uipath:input name="queueName" type="string" value="{queueName}" />
2846
3114
  <uipath:input name="folderPath" type="string" value="{folderPath}" />
2847
- <uipath:input name="name" type="string" value="{name}" />
3115
+ <uipath:input name="reference" type="string" value="" />
3116
+ <uipath:input name="filterStrategy" type="string" value="StartsWith" />
2848
3117
  </uipath:context>
2849
- <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
2850
- <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
3118
+ <uipath:output name="hasItem" type="boolean" source="=hasItem" var="{hasItemVarId}" />
3119
+ <uipath:output name="TransactionItem" type="jsonSchema" source="=result" var="{varId}" />
3120
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
2851
3121
  </uipath:activity>
2852
3122
  </bpmn:extensionElements>
2853
3123
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2854
3124
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2855
- </bpmn:CallActivity>`,
2856
- discoveryNotes: "Uses getSupportedOrchestratorTasks('caseManagement', search, 0, 100, true) to list available case management processes"
3125
+ </bpmn:ServiceTask>`,
3126
+ discoveryNotes: "Uses getQueueDefinitions(serviceType, search) to list available queues.",
3127
+ 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.",
3128
+ contextFieldNotes: "reference and filterStrategy live in uipath:context next to queueName; the backend reads them there. filterStrategy mirrors Orchestrator's QueueItemsFilterStrategy (default StartsWith)."
2857
3129
  },
2858
- "Orchestrator.StartCaseMgmtProcessAsync": {
2859
- extensionType: "Orchestrator.StartCaseMgmtProcessAsync",
2860
- label: "Start case management",
2861
- bpmnElement: "bpmn:CallActivity",
3130
+ "Orchestrator.GetQueueItems": {
3131
+ extensionType: "Orchestrator.GetQueueItems",
3132
+ label: "Get queue items",
3133
+ bpmnElement: "bpmn:ServiceTask",
2862
3134
  placements: {
2863
3135
  activity: {
2864
- type: "bpmn:CallActivity"
3136
+ type: "bpmn:ServiceTask"
2865
3137
  }
2866
3138
  },
2867
3139
  extensionTag: "uipath:activity",
2868
3140
  contextFields: [
2869
3141
  {
2870
- name: "releaseKey",
2871
- displayName: "Process",
3142
+ name: "queueName",
2872
3143
  type: "string",
2873
3144
  required: false,
2874
3145
  hidden: true,
2875
3146
  isPrimaryKey: false,
2876
3147
  binding: false,
2877
3148
  defaultValue: null,
3149
+ displayName: "Queue name",
2878
3150
  bindingInfo: {
2879
- resource: "process",
2880
- resourceKeyPattern: "${metadata.key}",
2881
- propertyAttribute: "Key"
3151
+ resource: "queue",
3152
+ resourceKeyPattern: "${folderPath}.${name}",
3153
+ propertyAttribute: "name"
2882
3154
  }
2883
3155
  },
2884
3156
  {
2885
- name: "folderId",
3157
+ name: "folderPath",
2886
3158
  type: "string",
2887
3159
  required: false,
2888
3160
  hidden: true,
@@ -2891,7 +3163,7 @@ var bpmn_spec_default = {
2891
3163
  defaultValue: null
2892
3164
  },
2893
3165
  {
2894
- name: "folderPath",
3166
+ name: "_label",
2895
3167
  type: "string",
2896
3168
  required: false,
2897
3169
  hidden: true,
@@ -2900,74 +3172,217 @@ var bpmn_spec_default = {
2900
3172
  defaultValue: null
2901
3173
  },
2902
3174
  {
2903
- name: "name",
3175
+ name: "statuses",
2904
3176
  type: "string",
2905
3177
  required: false,
2906
3178
  hidden: true,
2907
3179
  isPrimaryKey: false,
2908
3180
  binding: false,
2909
- defaultValue: null
3181
+ defaultValue: null,
3182
+ displayName: "Status"
3183
+ },
3184
+ {
3185
+ name: "reference",
3186
+ type: "string",
3187
+ required: false,
3188
+ hidden: true,
3189
+ isPrimaryKey: false,
3190
+ binding: false,
3191
+ defaultValue: null,
3192
+ displayName: "Reference"
2910
3193
  }
2911
3194
  ],
2912
- inputPattern: "mergedBody",
2913
- inputName: "JobArguments",
2914
- inputTarget: "bodyField",
2915
- outputSource: null,
2916
- outputType: null,
2917
- outputName: null,
2918
- 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.",
2919
- bindingPattern: "process",
3195
+ inputPattern: "none",
3196
+ outputSource: "=queueItems",
3197
+ outputType: "jsonSchema",
3198
+ outputName: "QueueItems",
3199
+ additionalOutputs: [
3200
+ {
3201
+ name: "Count",
3202
+ type: "number",
3203
+ source: "=count",
3204
+ required: true
3205
+ },
3206
+ {
3207
+ name: "Error",
3208
+ type: "jsonSchema",
3209
+ source: "=Error",
3210
+ required: true
3211
+ }
3212
+ ],
3213
+ bindingPattern: "queue",
2920
3214
  bindingInfo: {
2921
- resource: "process",
2922
- resourceKeyPattern: "${metadata.key}",
2923
- propertyAttribute: "Key",
2924
- contextField: "releaseKey"
3215
+ resource: "queue",
3216
+ resourceKeyPattern: "${folderPath}.${name}",
3217
+ propertyAttribute: "name",
3218
+ contextField: "queueName"
2925
3219
  },
2926
3220
  requiresDiscovery: true,
2927
- isDynamic: true,
2928
- xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
3221
+ isDynamic: false,
3222
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2929
3223
  <bpmn:extensionElements>
2930
3224
  <uipath:activity version="v1">
2931
- <uipath:type value="Orchestrator.StartCaseMgmtProcessAsync" version="v1" />
3225
+ <uipath:type value="Orchestrator.GetQueueItems" version="v2" />
2932
3226
  <uipath:context>
2933
- <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
2934
- <uipath:input name="folderId" type="string" value="{folderId}" />
3227
+ <uipath:input name="queueName" type="string" value="{queueName}" />
2935
3228
  <uipath:input name="folderPath" type="string" value="{folderPath}" />
2936
- <uipath:input name="name" type="string" value="{name}" />
3229
+ <uipath:input name="statuses" type="string" value="{statuses}" />
3230
+ <uipath:input name="reference" type="string" value="{reference}" />
2937
3231
  </uipath:context>
2938
- <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
3232
+ <uipath:output name="QueueItems" type="jsonSchema" source="=queueItems" var="{varId}" />
3233
+ <uipath:output name="Count" type="number" source="=count" var="{countVarId}" />
3234
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
2939
3235
  </uipath:activity>
2940
3236
  </bpmn:extensionElements>
2941
3237
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2942
3238
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2943
- </bpmn:CallActivity>`,
2944
- discoveryNotes: "Uses getSupportedOrchestratorTasks('caseManagement', search, 0, 100, true) to list available case management processes"
3239
+ </bpmn:ServiceTask>`,
3240
+ discoveryNotes: "Uses getQueueDefinitions(serviceType, search) to list available queues.",
3241
+ 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.",
3242
+ contextFieldNotes: "statuses and reference filter the returned items and live in uipath:context alongside queueName."
2945
3243
  },
2946
- "Orchestrator.StartFlowProcess": {
2947
- extensionType: "Orchestrator.StartFlowProcess",
2948
- label: "Start and wait for Maestro Flow",
2949
- bpmnElement: "bpmn:CallActivity",
3244
+ "Queue.WaitForEvent": {
3245
+ extensionType: "Queue.WaitForEvent",
3246
+ label: "Wait for queue item",
3247
+ bpmnElement: "bpmn:ReceiveTask",
2950
3248
  placements: {
2951
3249
  activity: {
2952
- type: "bpmn:CallActivity"
3250
+ type: "bpmn:ReceiveTask"
3251
+ },
3252
+ event: {
3253
+ type: "bpmn:IntermediateCatchEvent",
3254
+ eventDefinition: {
3255
+ type: "bpmn:MessageEventDefinition"
3256
+ }
2953
3257
  }
2954
3258
  },
2955
- extensionTag: "uipath:activity",
3259
+ extensionTag: "uipath:event",
2956
3260
  contextFields: [
2957
3261
  {
2958
- name: "releaseKey",
2959
- displayName: "Maestro Flow",
3262
+ name: "queueName",
2960
3263
  type: "string",
2961
3264
  required: false,
2962
3265
  hidden: true,
2963
3266
  isPrimaryKey: false,
2964
3267
  binding: false,
2965
3268
  defaultValue: null,
3269
+ displayName: "Queue name",
2966
3270
  bindingInfo: {
2967
- resource: "process",
2968
- resourceKeyPattern: "${metadata.key}",
2969
- propertyAttribute: "Key"
2970
- }
3271
+ resource: "queue",
3272
+ resourceKeyPattern: "${folderPath}.${name}",
3273
+ propertyAttribute: "name"
3274
+ }
3275
+ },
3276
+ {
3277
+ name: "folderPath",
3278
+ type: "string",
3279
+ required: false,
3280
+ hidden: true,
3281
+ isPrimaryKey: false,
3282
+ binding: false,
3283
+ defaultValue: null
3284
+ },
3285
+ {
3286
+ name: "_label",
3287
+ type: "string",
3288
+ required: false,
3289
+ hidden: true,
3290
+ isPrimaryKey: false,
3291
+ binding: false,
3292
+ defaultValue: null
3293
+ },
3294
+ {
3295
+ name: "reference",
3296
+ type: "string",
3297
+ required: false,
3298
+ hidden: true,
3299
+ isPrimaryKey: false,
3300
+ binding: false,
3301
+ defaultValue: null,
3302
+ displayName: "Reference"
3303
+ },
3304
+ {
3305
+ name: "filterStrategy",
3306
+ type: "string",
3307
+ required: false,
3308
+ hidden: true,
3309
+ isPrimaryKey: false,
3310
+ binding: false,
3311
+ defaultValue: "StartsWith",
3312
+ displayName: "Reference filter strategy",
3313
+ enum: [
3314
+ "StartsWith",
3315
+ "Equals"
3316
+ ]
3317
+ }
3318
+ ],
3319
+ inputPattern: "none",
3320
+ outputSource: "=result",
3321
+ outputType: "jsonSchema",
3322
+ outputName: "TransactionItem",
3323
+ additionalOutputs: [
3324
+ {
3325
+ name: "Error",
3326
+ type: "jsonSchema",
3327
+ source: "=Error",
3328
+ required: true
3329
+ }
3330
+ ],
3331
+ bindingPattern: "queue",
3332
+ bindingInfo: {
3333
+ resource: "queue",
3334
+ resourceKeyPattern: "${folderPath}.${name}",
3335
+ propertyAttribute: "name",
3336
+ contextField: "queueName"
3337
+ },
3338
+ requiresDiscovery: true,
3339
+ isDynamic: false,
3340
+ xmlTemplate: `<bpmn:ReceiveTask id="{id}" name="{name}">
3341
+ <bpmn:extensionElements>
3342
+ <uipath:event version="v1">
3343
+ <uipath:type value="Queue.WaitForEvent" version="v2" />
3344
+ <uipath:context>
3345
+ <uipath:input name="queueName" type="string" value="{queueName}" />
3346
+ <uipath:input name="folderPath" type="string" value="{folderPath}" />
3347
+ <uipath:input name="reference" type="string" value="" />
3348
+ <uipath:input name="filterStrategy" type="string" value="StartsWith" />
3349
+ </uipath:context>
3350
+ <uipath:output name="TransactionItem" type="jsonSchema" source="=result" var="{varId}" />
3351
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
3352
+ </uipath:event>
3353
+ </bpmn:extensionElements>
3354
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3355
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3356
+ </bpmn:ReceiveTask>`,
3357
+ discoveryNotes: "Uses getQueueDefinitions(serviceType, search) to list available queues.",
3358
+ 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.",
3359
+ extensionTagNotes: "Registered in the PO.Frontend isEvents array, so it serializes as uipath:event and never reaches the merged-body branch."
3360
+ },
3361
+ "Orchestrator.StartAgenticProcess": {
3362
+ extensionType: "Orchestrator.StartAgenticProcess",
3363
+ label: "Start and wait for agentic process",
3364
+ bpmnElement: "bpmn:CallActivity",
3365
+ placements: {
3366
+ activity: {
3367
+ type: "bpmn:CallActivity"
3368
+ }
3369
+ },
3370
+ extensionTag: "uipath:activity",
3371
+ contextFields: [
3372
+ {
3373
+ name: "releaseKey",
3374
+ displayName: "Process",
3375
+ type: "string",
3376
+ required: false,
3377
+ hidden: true,
3378
+ isPrimaryKey: false,
3379
+ binding: false,
3380
+ defaultValue: null,
3381
+ bindingInfo: {
3382
+ resource: "process",
3383
+ resourceKeyPattern: "${metadata.key}",
3384
+ propertyAttribute: "Key"
3385
+ }
2971
3386
  },
2972
3387
  {
2973
3388
  name: "folderId",
@@ -3016,7 +3431,7 @@ var bpmn_spec_default = {
3016
3431
  xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
3017
3432
  <bpmn:extensionElements>
3018
3433
  <uipath:activity version="v1">
3019
- <uipath:type value="Orchestrator.StartFlowProcess" version="v2" />
3434
+ <uipath:type value="Orchestrator.StartAgenticProcess" version="v1" />
3020
3435
  <uipath:context>
3021
3436
  <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
3022
3437
  <uipath:input name="folderId" type="string" value="{folderId}" />
@@ -3030,11 +3445,11 @@ var bpmn_spec_default = {
3030
3445
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3031
3446
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3032
3447
  </bpmn:CallActivity>`,
3033
- discoveryNotes: "Uses getSupportedOrchestratorTasks('Flow', search, 0, 100, true) to list available flow processes. Studio Web bindings use the Flow process resource subtype."
3448
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('ProcessOrchestration', search, 0, 100, true) to list available agentic processes"
3034
3449
  },
3035
- "Orchestrator.StartFlowProcessAsync": {
3036
- extensionType: "Orchestrator.StartFlowProcessAsync",
3037
- label: "Start Maestro Flow",
3450
+ "Orchestrator.StartAgenticProcessAsync": {
3451
+ extensionType: "Orchestrator.StartAgenticProcessAsync",
3452
+ label: "Start agentic process",
3038
3453
  bpmnElement: "bpmn:CallActivity",
3039
3454
  placements: {
3040
3455
  activity: {
@@ -3045,7 +3460,7 @@ var bpmn_spec_default = {
3045
3460
  contextFields: [
3046
3461
  {
3047
3462
  name: "releaseKey",
3048
- displayName: "Maestro Flow",
3463
+ displayName: "Process",
3049
3464
  type: "string",
3050
3465
  required: false,
3051
3466
  hidden: true,
@@ -3092,7 +3507,7 @@ var bpmn_spec_default = {
3092
3507
  outputSource: null,
3093
3508
  outputType: null,
3094
3509
  outputName: null,
3095
- 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.",
3510
+ 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.",
3096
3511
  bindingPattern: "process",
3097
3512
  bindingInfo: {
3098
3513
  resource: "process",
@@ -3105,7 +3520,7 @@ var bpmn_spec_default = {
3105
3520
  xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
3106
3521
  <bpmn:extensionElements>
3107
3522
  <uipath:activity version="v1">
3108
- <uipath:type value="Orchestrator.StartFlowProcessAsync" version="v2" />
3523
+ <uipath:type value="Orchestrator.StartAgenticProcessAsync" version="v1" />
3109
3524
  <uipath:context>
3110
3525
  <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
3111
3526
  <uipath:input name="folderId" type="string" value="{folderId}" />
@@ -3118,191 +3533,990 @@ var bpmn_spec_default = {
3118
3533
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3119
3534
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3120
3535
  </bpmn:CallActivity>`,
3121
- discoveryNotes: "Uses getSupportedOrchestratorTasks('Flow', search, 0, 100, true) to list available flow processes."
3536
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('ProcessOrchestration', search, 0, 100, true) to list available agentic processes"
3122
3537
  },
3123
- "A2A.AgentExecution": {
3124
- extensionType: "A2A.AgentExecution",
3125
- label: "Start and wait for A2A agent",
3126
- bpmnElement: "bpmn:ServiceTask",
3538
+ "Orchestrator.StartCaseMgmtProcess": {
3539
+ extensionType: "Orchestrator.StartCaseMgmtProcess",
3540
+ label: "Start and wait for case management",
3541
+ bpmnElement: "bpmn:CallActivity",
3127
3542
  placements: {
3128
3543
  activity: {
3129
- type: "bpmn:ServiceTask"
3544
+ type: "bpmn:CallActivity"
3130
3545
  }
3131
3546
  },
3132
3547
  extensionTag: "uipath:activity",
3133
- contextFields: [],
3548
+ contextFields: [
3549
+ {
3550
+ name: "releaseKey",
3551
+ displayName: "Process",
3552
+ type: "string",
3553
+ required: false,
3554
+ hidden: true,
3555
+ isPrimaryKey: false,
3556
+ binding: false,
3557
+ defaultValue: null,
3558
+ bindingInfo: {
3559
+ resource: "process",
3560
+ resourceKeyPattern: "${metadata.key}",
3561
+ propertyAttribute: "Key"
3562
+ }
3563
+ },
3564
+ {
3565
+ name: "folderId",
3566
+ type: "string",
3567
+ required: false,
3568
+ hidden: true,
3569
+ isPrimaryKey: false,
3570
+ binding: false,
3571
+ defaultValue: null
3572
+ },
3573
+ {
3574
+ name: "folderPath",
3575
+ type: "string",
3576
+ required: false,
3577
+ hidden: true,
3578
+ isPrimaryKey: false,
3579
+ binding: false,
3580
+ defaultValue: null
3581
+ },
3582
+ {
3583
+ name: "name",
3584
+ type: "string",
3585
+ required: false,
3586
+ hidden: true,
3587
+ isPrimaryKey: false,
3588
+ binding: false,
3589
+ defaultValue: null
3590
+ }
3591
+ ],
3134
3592
  inputPattern: "mergedBody",
3135
- inputName: "body",
3136
- inputTarget: "body",
3593
+ inputName: "JobArguments",
3594
+ inputTarget: "bodyField",
3137
3595
  outputSource: null,
3138
- outputType: "A2A.AgentExecution",
3139
- outputName: "a2aResponse",
3596
+ outputType: "Orchestrator.RunJob",
3597
+ outputName: "Process response",
3140
3598
  useRelativeSource: true,
3141
- bindingPattern: "none",
3142
- requiresDiscovery: false,
3599
+ bindingPattern: "process",
3600
+ bindingInfo: {
3601
+ resource: "process",
3602
+ resourceKeyPattern: "${metadata.key}",
3603
+ propertyAttribute: "Key",
3604
+ contextField: "releaseKey"
3605
+ },
3606
+ requiresDiscovery: true,
3143
3607
  isDynamic: true,
3144
- xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
3608
+ xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
3145
3609
  <bpmn:extensionElements>
3146
3610
  <uipath:activity version="v1">
3147
- <uipath:type value="A2A.AgentExecution" version="v1" />
3148
- <uipath:input name="body" type="json" target="body"><![CDATA[{"agentUrl":"{agentUrl}","skillId":"{skillId}","input":"{input}","authToken":"{authToken}","agentName":"{agentName}"}]]></uipath:input>
3149
- <uipath:output name="a2aResponse" type="A2A.AgentExecution" var="{varId}" />
3611
+ <uipath:type value="Orchestrator.StartCaseMgmtProcess" version="v1" />
3612
+ <uipath:context>
3613
+ <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
3614
+ <uipath:input name="folderId" type="string" value="{folderId}" />
3615
+ <uipath:input name="folderPath" type="string" value="{folderPath}" />
3616
+ <uipath:input name="name" type="string" value="{name}" />
3617
+ </uipath:context>
3618
+ <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
3619
+ <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
3150
3620
  </uipath:activity>
3151
3621
  </bpmn:extensionElements>
3152
3622
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3153
3623
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3154
- </bpmn:ServiceTask>`,
3155
- 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.",
3156
- 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).",
3157
- inputFields: [
3624
+ </bpmn:CallActivity>`,
3625
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('caseManagement', search, 0, 100, true) to list available case management processes"
3626
+ },
3627
+ "Orchestrator.StartCaseMgmtProcessAsync": {
3628
+ extensionType: "Orchestrator.StartCaseMgmtProcessAsync",
3629
+ label: "Start case management",
3630
+ bpmnElement: "bpmn:CallActivity",
3631
+ placements: {
3632
+ activity: {
3633
+ type: "bpmn:CallActivity"
3634
+ }
3635
+ },
3636
+ extensionTag: "uipath:activity",
3637
+ contextFields: [
3158
3638
  {
3159
- name: "agentUrl",
3160
- displayName: "Agent URL",
3639
+ name: "releaseKey",
3640
+ displayName: "Process",
3161
3641
  type: "string",
3162
- required: true,
3163
- description: "URL of the A2A agent endpoint"
3642
+ required: false,
3643
+ hidden: true,
3644
+ isPrimaryKey: false,
3645
+ binding: false,
3646
+ defaultValue: null,
3647
+ bindingInfo: {
3648
+ resource: "process",
3649
+ resourceKeyPattern: "${metadata.key}",
3650
+ propertyAttribute: "Key"
3651
+ }
3164
3652
  },
3165
3653
  {
3166
- name: "skillId",
3167
- displayName: "Skill ID",
3654
+ name: "folderId",
3168
3655
  type: "string",
3169
- required: true,
3170
- description: "Identifier for the specific skill to invoke on the agent"
3656
+ required: false,
3657
+ hidden: true,
3658
+ isPrimaryKey: false,
3659
+ binding: false,
3660
+ defaultValue: null
3171
3661
  },
3172
3662
  {
3173
- name: "input",
3174
- displayName: "Input",
3663
+ name: "folderPath",
3175
3664
  type: "string",
3176
- required: true,
3177
- description: "Input text/message to send to the A2A agent"
3665
+ required: false,
3666
+ hidden: true,
3667
+ isPrimaryKey: false,
3668
+ binding: false,
3669
+ defaultValue: null
3670
+ },
3671
+ {
3672
+ name: "name",
3673
+ type: "string",
3674
+ required: false,
3675
+ hidden: true,
3676
+ isPrimaryKey: false,
3677
+ binding: false,
3678
+ defaultValue: null
3679
+ }
3680
+ ],
3681
+ inputPattern: "mergedBody",
3682
+ inputName: "JobArguments",
3683
+ inputTarget: "bodyField",
3684
+ outputSource: null,
3685
+ outputType: null,
3686
+ outputName: null,
3687
+ 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.",
3688
+ bindingPattern: "process",
3689
+ bindingInfo: {
3690
+ resource: "process",
3691
+ resourceKeyPattern: "${metadata.key}",
3692
+ propertyAttribute: "Key",
3693
+ contextField: "releaseKey"
3694
+ },
3695
+ requiresDiscovery: true,
3696
+ isDynamic: true,
3697
+ xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
3698
+ <bpmn:extensionElements>
3699
+ <uipath:activity version="v1">
3700
+ <uipath:type value="Orchestrator.StartCaseMgmtProcessAsync" version="v1" />
3701
+ <uipath:context>
3702
+ <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
3703
+ <uipath:input name="folderId" type="string" value="{folderId}" />
3704
+ <uipath:input name="folderPath" type="string" value="{folderPath}" />
3705
+ <uipath:input name="name" type="string" value="{name}" />
3706
+ </uipath:context>
3707
+ <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
3708
+ </uipath:activity>
3709
+ </bpmn:extensionElements>
3710
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3711
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3712
+ </bpmn:CallActivity>`,
3713
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('caseManagement', search, 0, 100, true) to list available case management processes"
3714
+ },
3715
+ "Orchestrator.StartFlowProcess": {
3716
+ extensionType: "Orchestrator.StartFlowProcess",
3717
+ label: "Start and wait for Maestro Flow",
3718
+ bpmnElement: "bpmn:CallActivity",
3719
+ placements: {
3720
+ activity: {
3721
+ type: "bpmn:CallActivity"
3722
+ }
3723
+ },
3724
+ extensionTag: "uipath:activity",
3725
+ contextFields: [
3726
+ {
3727
+ name: "releaseKey",
3728
+ displayName: "Maestro Flow",
3729
+ type: "string",
3730
+ required: false,
3731
+ hidden: true,
3732
+ isPrimaryKey: false,
3733
+ binding: false,
3734
+ defaultValue: null,
3735
+ bindingInfo: {
3736
+ resource: "process",
3737
+ resourceKeyPattern: "${metadata.key}",
3738
+ propertyAttribute: "Key"
3739
+ }
3740
+ },
3741
+ {
3742
+ name: "folderId",
3743
+ type: "string",
3744
+ required: false,
3745
+ hidden: true,
3746
+ isPrimaryKey: false,
3747
+ binding: false,
3748
+ defaultValue: null
3749
+ },
3750
+ {
3751
+ name: "folderPath",
3752
+ type: "string",
3753
+ required: false,
3754
+ hidden: true,
3755
+ isPrimaryKey: false,
3756
+ binding: false,
3757
+ defaultValue: null
3758
+ },
3759
+ {
3760
+ name: "name",
3761
+ type: "string",
3762
+ required: false,
3763
+ hidden: true,
3764
+ isPrimaryKey: false,
3765
+ binding: false,
3766
+ defaultValue: null
3767
+ }
3768
+ ],
3769
+ inputPattern: "mergedBody",
3770
+ inputName: "JobArguments",
3771
+ inputTarget: "bodyField",
3772
+ outputSource: null,
3773
+ outputType: "Orchestrator.RunJob",
3774
+ outputName: "Process response",
3775
+ useRelativeSource: true,
3776
+ bindingPattern: "process",
3777
+ bindingInfo: {
3778
+ resource: "process",
3779
+ resourceKeyPattern: "${metadata.key}",
3780
+ propertyAttribute: "Key",
3781
+ contextField: "releaseKey"
3782
+ },
3783
+ requiresDiscovery: true,
3784
+ isDynamic: true,
3785
+ xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
3786
+ <bpmn:extensionElements>
3787
+ <uipath:activity version="v1">
3788
+ <uipath:type value="Orchestrator.StartFlowProcess" version="v2" />
3789
+ <uipath:context>
3790
+ <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
3791
+ <uipath:input name="folderId" type="string" value="{folderId}" />
3792
+ <uipath:input name="folderPath" type="string" value="{folderPath}" />
3793
+ <uipath:input name="name" type="string" value="{name}" />
3794
+ </uipath:context>
3795
+ <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
3796
+ <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
3797
+ </uipath:activity>
3798
+ </bpmn:extensionElements>
3799
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3800
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3801
+ </bpmn:CallActivity>`,
3802
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('Flow', search, 0, 100, true) to list available flow processes. Studio Web bindings use the Flow process resource subtype."
3803
+ },
3804
+ "Orchestrator.StartFlowProcessAsync": {
3805
+ extensionType: "Orchestrator.StartFlowProcessAsync",
3806
+ label: "Start Maestro Flow",
3807
+ bpmnElement: "bpmn:CallActivity",
3808
+ placements: {
3809
+ activity: {
3810
+ type: "bpmn:CallActivity"
3811
+ }
3812
+ },
3813
+ extensionTag: "uipath:activity",
3814
+ contextFields: [
3815
+ {
3816
+ name: "releaseKey",
3817
+ displayName: "Maestro Flow",
3818
+ type: "string",
3819
+ required: false,
3820
+ hidden: true,
3821
+ isPrimaryKey: false,
3822
+ binding: false,
3823
+ defaultValue: null,
3824
+ bindingInfo: {
3825
+ resource: "process",
3826
+ resourceKeyPattern: "${metadata.key}",
3827
+ propertyAttribute: "Key"
3828
+ }
3829
+ },
3830
+ {
3831
+ name: "folderId",
3832
+ type: "string",
3833
+ required: false,
3834
+ hidden: true,
3835
+ isPrimaryKey: false,
3836
+ binding: false,
3837
+ defaultValue: null
3838
+ },
3839
+ {
3840
+ name: "folderPath",
3841
+ type: "string",
3842
+ required: false,
3843
+ hidden: true,
3844
+ isPrimaryKey: false,
3845
+ binding: false,
3846
+ defaultValue: null
3847
+ },
3848
+ {
3849
+ name: "name",
3850
+ type: "string",
3851
+ required: false,
3852
+ hidden: true,
3853
+ isPrimaryKey: false,
3854
+ binding: false,
3855
+ defaultValue: null
3856
+ }
3857
+ ],
3858
+ inputPattern: "mergedBody",
3859
+ inputName: "JobArguments",
3860
+ inputTarget: "bodyField",
3861
+ outputSource: null,
3862
+ outputType: null,
3863
+ outputName: null,
3864
+ 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.",
3865
+ bindingPattern: "process",
3866
+ bindingInfo: {
3867
+ resource: "process",
3868
+ resourceKeyPattern: "${metadata.key}",
3869
+ propertyAttribute: "Key",
3870
+ contextField: "releaseKey"
3871
+ },
3872
+ requiresDiscovery: true,
3873
+ isDynamic: true,
3874
+ xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
3875
+ <bpmn:extensionElements>
3876
+ <uipath:activity version="v1">
3877
+ <uipath:type value="Orchestrator.StartFlowProcessAsync" version="v2" />
3878
+ <uipath:context>
3879
+ <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
3880
+ <uipath:input name="folderId" type="string" value="{folderId}" />
3881
+ <uipath:input name="folderPath" type="string" value="{folderPath}" />
3882
+ <uipath:input name="name" type="string" value="{name}" />
3883
+ </uipath:context>
3884
+ <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
3885
+ </uipath:activity>
3886
+ </bpmn:extensionElements>
3887
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3888
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3889
+ </bpmn:CallActivity>`,
3890
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('Flow', search, 0, 100, true) to list available flow processes."
3891
+ },
3892
+ "A2A.AgentExecution": {
3893
+ extensionType: "A2A.AgentExecution",
3894
+ label: "Start and wait for A2A agent",
3895
+ bpmnElement: "bpmn:ServiceTask",
3896
+ placements: {
3897
+ activity: {
3898
+ type: "bpmn:ServiceTask"
3899
+ }
3900
+ },
3901
+ extensionTag: "uipath:activity",
3902
+ contextFields: [],
3903
+ inputPattern: "mergedBody",
3904
+ inputName: "body",
3905
+ inputTarget: "body",
3906
+ outputSource: null,
3907
+ outputType: "A2A.AgentExecution",
3908
+ outputName: "a2aResponse",
3909
+ useRelativeSource: true,
3910
+ bindingPattern: "none",
3911
+ requiresDiscovery: false,
3912
+ isDynamic: true,
3913
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
3914
+ <bpmn:extensionElements>
3915
+ <uipath:activity version="v1">
3916
+ <uipath:type value="A2A.AgentExecution" version="v1" />
3917
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"agentUrl":"{agentUrl}","skillId":"{skillId}","input":"{input}","authToken":"{authToken}","agentName":"{agentName}"}]]></uipath:input>
3918
+ <uipath:output name="a2aResponse" type="A2A.AgentExecution" var="{varId}" />
3919
+ </uipath:activity>
3920
+ </bpmn:extensionElements>
3921
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3922
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3923
+ </bpmn:ServiceTask>`,
3924
+ 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.",
3925
+ 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).",
3926
+ inputFields: [
3927
+ {
3928
+ name: "agentUrl",
3929
+ displayName: "Agent URL",
3930
+ type: "string",
3931
+ required: true,
3932
+ description: "URL of the A2A agent endpoint"
3933
+ },
3934
+ {
3935
+ name: "skillId",
3936
+ displayName: "Skill ID",
3937
+ type: "string",
3938
+ required: true,
3939
+ description: "Identifier for the specific skill to invoke on the agent"
3940
+ },
3941
+ {
3942
+ name: "input",
3943
+ displayName: "Input",
3944
+ type: "string",
3945
+ required: true,
3946
+ description: "Input text/message to send to the A2A agent"
3178
3947
  },
3179
3948
  {
3180
3949
  name: "authToken",
3181
3950
  displayName: "Auth Token",
3182
3951
  type: "string",
3183
3952
  required: true,
3184
- description: "Authentication token for the A2A agent"
3953
+ description: "Authentication token for the A2A agent"
3954
+ },
3955
+ {
3956
+ name: "agentName",
3957
+ displayName: "Agent Name",
3958
+ type: "string",
3959
+ required: true,
3960
+ description: "Display name of the A2A agent"
3961
+ }
3962
+ ]
3963
+ },
3964
+ "BPMN.Variables": {
3965
+ extensionType: "BPMN.Variables",
3966
+ label: "BPMN Variables",
3967
+ bpmnElement: "bpmn:Task",
3968
+ placements: {},
3969
+ extensionTag: "uipath:mapping",
3970
+ contextFields: [],
3971
+ inputPattern: "none",
3972
+ outputSource: null,
3973
+ outputType: null,
3974
+ bindingPattern: "none",
3975
+ requiresDiscovery: false,
3976
+ isDynamic: false,
3977
+ xmlTemplate: `<bpmn:Task id="{id}" name="{name}">
3978
+ <bpmn:extensionElements>
3979
+ <uipath:mapping version="v1">
3980
+ <uipath:type value="BPMN.Variables" version="v1" />
3981
+ </uipath:mapping>
3982
+ </bpmn:extensionElements>
3983
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3984
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3985
+ </bpmn:Task>`,
3986
+ inputNotes: "Variable mappings use uipath:mapping with direct input/output elements, not a jsonBody pattern",
3987
+ 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.",
3988
+ extensionTagNotes: "Uses uipath:mapping (not uipath:activity). BPMN.Variables mappings are supported on StartEvent, EndEvent, Task, ScriptTask, and SubProcess owners."
3989
+ },
3990
+ "BPMN.ScriptTask": {
3991
+ extensionType: "BPMN.ScriptTask",
3992
+ label: "Execute script",
3993
+ bpmnElement: "bpmn:ScriptTask",
3994
+ placements: {},
3995
+ extensionTag: "uipath:mapping",
3996
+ contextFields: [],
3997
+ inputPattern: "scriptArgs",
3998
+ inputName: "args",
3999
+ inputTarget: "bodyField",
4000
+ outputSource: null,
4001
+ outputType: null,
4002
+ bindingPattern: "none",
4003
+ requiresDiscovery: false,
4004
+ isDynamic: false,
4005
+ xmlTemplate: `<bpmn:ScriptTask id="{id}" name="{name}">
4006
+ <bpmn:extensionElements>
4007
+ <uipath:mapping version="v1">
4008
+ <uipath:type value="BPMN.ScriptTask" version="v1" />
4009
+ <uipath:input name="args" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
4010
+ </uipath:mapping>
4011
+ </bpmn:extensionElements>
4012
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
4013
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
4014
+ </bpmn:ScriptTask>`,
4015
+ inputNotes: "Inputs are merged into a single json input named 'args' with target 'bodyField'. An inputSchema is created from the input variables.",
4016
+ extensionTagNotes: "bpmn:ScriptTask is routed through createModdleExtensionVariableMapping (same as BPMN.Variables). Inputs are merged into a single 'args' JSON body with inputSchema."
4017
+ },
4018
+ "ConversationalService.QueueServiceMessage": {
4019
+ extensionType: "ConversationalService.QueueServiceMessage",
4020
+ label: "Queue service message",
4021
+ bpmnElement: "bpmn:ServiceTask",
4022
+ placements: {
4023
+ activity: {
4024
+ type: "bpmn:ServiceTask"
4025
+ }
4026
+ },
4027
+ extensionTag: "uipath:activity",
4028
+ contextFields: [
4029
+ {
4030
+ name: "_label",
4031
+ type: "string",
4032
+ required: false,
4033
+ hidden: true,
4034
+ isPrimaryKey: false,
4035
+ binding: false,
4036
+ defaultValue: null
4037
+ }
4038
+ ],
4039
+ inputPattern: "mergedBody",
4040
+ inputName: "body",
4041
+ inputTarget: "body",
4042
+ outputSource: "=response",
4043
+ outputType: "jsonSchema",
4044
+ outputName: "response",
4045
+ additionalOutputs: [
4046
+ {
4047
+ name: "Error",
4048
+ type: "jsonSchema",
4049
+ source: "=Error",
4050
+ required: false
4051
+ }
4052
+ ],
4053
+ bindingPattern: "none",
4054
+ requiresDiscovery: false,
4055
+ isDynamic: false,
4056
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
4057
+ <bpmn:extensionElements>
4058
+ <uipath:activity version="v1">
4059
+ <uipath:type value="ConversationalService.QueueServiceMessage" version="v1" />
4060
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"conversationId":"{conversationId}","userContent":"{userContent}","assistantContent":"{assistantContent}"}]]></uipath:input>
4061
+ <uipath:output name="response" type="jsonSchema" source="=response" var="{varId}" />
4062
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
4063
+ </uipath:activity>
4064
+ </bpmn:extensionElements>
4065
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
4066
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
4067
+ </bpmn:ServiceTask>`,
4068
+ 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.",
4069
+ 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.',
4070
+ 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".',
4071
+ inputFields: [
4072
+ {
4073
+ name: "conversationId",
4074
+ displayName: "Conversation ID",
4075
+ type: "string",
4076
+ required: true,
4077
+ hidden: false,
4078
+ isPrimaryKey: false,
4079
+ binding: false,
4080
+ defaultValue: null,
4081
+ target: "body"
4082
+ },
4083
+ {
4084
+ name: "userContent",
4085
+ displayName: "User content",
4086
+ type: "string",
4087
+ required: true,
4088
+ hidden: false,
4089
+ isPrimaryKey: false,
4090
+ binding: false,
4091
+ defaultValue: null,
4092
+ target: "body"
4093
+ },
4094
+ {
4095
+ name: "assistantContent",
4096
+ displayName: "Assistant content",
4097
+ type: "string",
4098
+ required: true,
4099
+ hidden: false,
4100
+ isPrimaryKey: false,
4101
+ binding: false,
4102
+ defaultValue: null,
4103
+ target: "body"
4104
+ }
4105
+ ]
4106
+ },
4107
+ "Intsvc.TimerTrigger": {
4108
+ extensionType: "Intsvc.TimerTrigger",
4109
+ label: "Timer trigger",
4110
+ bpmnElement: "bpmn:StartEvent",
4111
+ placements: {},
4112
+ extensionTag: "uipath:activity",
4113
+ contextFields: [],
4114
+ inputPattern: "none",
4115
+ outputSource: ".",
4116
+ outputType: "custom",
4117
+ outputName: "result",
4118
+ useRelativeSource: false,
4119
+ bindingPattern: "none",
4120
+ requiresDiscovery: false,
4121
+ isDynamic: false,
4122
+ xmlTemplate: `<bpmn:StartEvent id="{id}" name="{name}">
4123
+ <bpmn:extensionElements>
4124
+ <uipath:activity version="v1">
4125
+ <uipath:type value="Intsvc.TimerTrigger" version="v1" />
4126
+ <uipath:output name="result" type="custom" source="." var="{varId}" />
4127
+ </uipath:activity>
4128
+ </bpmn:extensionElements>
4129
+ <bpmn:timerEventDefinition><bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1H</bpmn:timeDuration></bpmn:timerEventDefinition>
4130
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
4131
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
4132
+ </bpmn:StartEvent>`,
4133
+ inputNotes: "No jsonBody, no input fields, no isSplitInputs in design schema",
4134
+ bpmnElementNotes: "Used via timer event definition on start events; not directly in FPS_TO_NODE_MAPPING",
4135
+ extensionTagNotes: "NOT in isEvents array, uses uipath:activity. However, isIntsvcTriggerDesignSchemaType returns true.",
4136
+ inputFields: []
4137
+ },
4138
+ "Maestro.ReceiveMessageEvent": {
4139
+ extensionType: "Maestro.ReceiveMessageEvent",
4140
+ label: "Receive internal message",
4141
+ bpmnElement: "bpmn:IntermediateCatchEvent",
4142
+ placements: {
4143
+ startEvent: {
4144
+ type: "bpmn:StartEvent",
4145
+ eventDefinition: {
4146
+ type: "bpmn:MessageEventDefinition"
4147
+ }
4148
+ },
4149
+ intermediateEvent: {
4150
+ type: "bpmn:IntermediateCatchEvent",
4151
+ eventDefinition: {
4152
+ type: "bpmn:MessageEventDefinition"
4153
+ }
4154
+ },
4155
+ boundaryEvent: {
4156
+ type: "bpmn:BoundaryEvent",
4157
+ eventDefinition: {
4158
+ type: "bpmn:MessageEventDefinition"
4159
+ }
4160
+ }
4161
+ },
4162
+ extensionTag: "uipath:event",
4163
+ contextFields: [
4164
+ {
4165
+ name: "name",
4166
+ displayName: "Message name",
4167
+ type: "string",
4168
+ required: true,
4169
+ hidden: false,
4170
+ isPrimaryKey: false,
4171
+ binding: false,
4172
+ defaultValue: null
4173
+ },
4174
+ {
4175
+ name: "_label",
4176
+ type: "string",
4177
+ required: false,
4178
+ hidden: true,
4179
+ isPrimaryKey: false,
4180
+ binding: false,
4181
+ defaultValue: null
4182
+ }
4183
+ ],
4184
+ inputPattern: "separateInputs",
4185
+ inputName: "ItemData",
4186
+ inputTarget: "body",
4187
+ outputSource: null,
4188
+ outputType: "Maestro.ReceiveMessageEvent",
4189
+ outputName: "response",
4190
+ useRelativeSource: true,
4191
+ bindingPattern: "none",
4192
+ requiresDiscovery: false,
4193
+ isDynamic: false,
4194
+ xmlTemplate: `<bpmn:IntermediateCatchEvent id="{id}" name="{name}">
4195
+ <bpmn:extensionElements>
4196
+ <uipath:event version="v1">
4197
+ <uipath:type value="Maestro.ReceiveMessageEvent" version="v1" />
4198
+ <uipath:context>
4199
+ <uipath:input name="name" type="string" value="{name}" />
4200
+ <uipath:input name="_label" type="string" value="{_label}" />
4201
+ </uipath:context>
4202
+ <uipath:input name="ItemData" type="json" target="body"><![CDATA[{}]]></uipath:input>
4203
+ <uipath:output name="response" type="Maestro.ReceiveMessageEvent" var="{varId}" />
4204
+ </uipath:event>
4205
+ </bpmn:extensionElements>
4206
+ <bpmn:messageEventDefinition />
4207
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
4208
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
4209
+ </bpmn:IntermediateCatchEvent>`,
4210
+ 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.",
4211
+ extensionTagNotes: "In isEvents array, uses uipath:event",
4212
+ inputFields: [
4213
+ {
4214
+ name: "Reference",
4215
+ displayName: "Reference",
4216
+ type: "string",
4217
+ required: true,
4218
+ hidden: false,
4219
+ isPrimaryKey: false,
4220
+ binding: false,
4221
+ defaultValue: null,
4222
+ target: "bodyField",
4223
+ description: "Correlation reference to match this receive event to its sender"
4224
+ }
4225
+ ]
4226
+ },
4227
+ "Maestro.SendMessageEvent": {
4228
+ extensionType: "Maestro.SendMessageEvent",
4229
+ label: "Send internal message",
4230
+ bpmnElement: "bpmn:IntermediateThrowEvent",
4231
+ placements: {
4232
+ intermediateEvent: {
4233
+ type: "bpmn:IntermediateThrowEvent",
4234
+ eventDefinition: {
4235
+ type: "bpmn:MessageEventDefinition"
4236
+ }
4237
+ },
4238
+ endEvent: {
4239
+ type: "bpmn:EndEvent",
4240
+ eventDefinition: {
4241
+ type: "bpmn:MessageEventDefinition"
4242
+ }
4243
+ }
4244
+ },
4245
+ extensionTag: "uipath:event",
4246
+ contextFields: [
4247
+ {
4248
+ name: "name",
4249
+ displayName: "Message name",
4250
+ type: "string",
4251
+ required: true,
4252
+ hidden: false,
4253
+ isPrimaryKey: false,
4254
+ binding: false,
4255
+ defaultValue: null
4256
+ },
4257
+ {
4258
+ name: "_label",
4259
+ type: "string",
4260
+ required: false,
4261
+ hidden: true,
4262
+ isPrimaryKey: false,
4263
+ binding: false,
4264
+ defaultValue: null
4265
+ },
4266
+ {
4267
+ name: "inputSchema",
4268
+ displayName: "Input schema",
4269
+ type: "jsonSchema",
4270
+ required: true,
4271
+ hidden: true,
4272
+ isPrimaryKey: false,
4273
+ binding: false,
4274
+ defaultValue: null
4275
+ }
4276
+ ],
4277
+ inputPattern: "splitInputsItemData",
4278
+ inputName: "ItemData",
4279
+ inputTarget: "body",
4280
+ outputSource: null,
4281
+ outputType: "Maestro.SendMessageEvent",
4282
+ outputName: "response",
4283
+ useRelativeSource: true,
4284
+ bindingPattern: "none",
4285
+ requiresDiscovery: false,
4286
+ isDynamic: false,
4287
+ xmlTemplate: `<bpmn:IntermediateThrowEvent id="{id}" name="{name}">
4288
+ <bpmn:extensionElements>
4289
+ <uipath:event version="v1">
4290
+ <uipath:type value="Maestro.SendMessageEvent" version="v1" />
4291
+ <uipath:context>
4292
+ <uipath:input name="name" type="string" value="{name}" />
4293
+ <uipath:input name="_label" type="string" value="{_label}" />
4294
+ <uipath:input name="inputSchema" type="jsonSchema" value="{inputSchema}" />
4295
+ </uipath:context>
4296
+ <uipath:input name="ItemData" type="json" target="body"><![CDATA[{"Reference":"{Reference}","SpecificContent":{},"TimeToLive":""}]]></uipath:input>
4297
+ <uipath:output name="response" type="Maestro.SendMessageEvent" var="{varId}" />
4298
+ </uipath:event>
4299
+ </bpmn:extensionElements>
4300
+ <bpmn:messageEventDefinition />
4301
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
4302
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
4303
+ </bpmn:IntermediateThrowEvent>`,
4304
+ 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.",
4305
+ extensionTagNotes: "In isEvents array, uses uipath:event",
4306
+ inputFields: [
4307
+ {
4308
+ name: "Reference",
4309
+ displayName: "Reference",
4310
+ type: "string",
4311
+ required: true,
4312
+ hidden: false,
4313
+ isPrimaryKey: false,
4314
+ binding: false,
4315
+ defaultValue: null,
4316
+ target: "body",
4317
+ description: "Correlation reference to match this send event to its receiver"
4318
+ },
4319
+ {
4320
+ name: "SpecificContent",
4321
+ displayName: "Item information",
4322
+ type: "json",
4323
+ required: false,
4324
+ hidden: false,
4325
+ isPrimaryKey: false,
4326
+ binding: false,
4327
+ defaultValue: null,
4328
+ target: "body",
4329
+ description: "JSON payload with the message content"
3185
4330
  },
3186
4331
  {
3187
- name: "agentName",
3188
- displayName: "Agent Name",
3189
- type: "string",
3190
- required: true,
3191
- description: "Display name of the A2A agent"
4332
+ name: "TimeToLive",
4333
+ displayName: "Time to live",
4334
+ type: "duration",
4335
+ required: false,
4336
+ hidden: false,
4337
+ isPrimaryKey: false,
4338
+ binding: false,
4339
+ defaultValue: null,
4340
+ target: "body",
4341
+ description: "Duration after which the message expires if not consumed"
3192
4342
  }
3193
4343
  ]
3194
4344
  },
3195
- "BPMN.Variables": {
3196
- extensionType: "BPMN.Variables",
3197
- label: "BPMN Variables",
4345
+ "Maestro.CaseManagerPlaceholder": {
4346
+ extensionType: "Maestro.CaseManagerPlaceholder",
4347
+ label: "Case manager placeholder",
3198
4348
  bpmnElement: "bpmn:Task",
3199
4349
  placements: {},
3200
- extensionTag: "uipath:mapping",
4350
+ extensionTag: "uipath:activity",
3201
4351
  contextFields: [],
3202
- inputPattern: "none",
3203
- outputSource: null,
3204
- outputType: null,
4352
+ inputPattern: "mergedBody",
4353
+ inputName: "caseManagerInput",
4354
+ inputTarget: "body",
4355
+ outputSource: "=js:(vars.caseRulesDecisions)",
4356
+ outputType: "json",
4357
+ outputName: "caseManagerDecisions",
3205
4358
  bindingPattern: "none",
3206
4359
  requiresDiscovery: false,
3207
4360
  isDynamic: false,
4361
+ contractOutputMayBeCustom: true,
3208
4362
  xmlTemplate: `<bpmn:Task id="{id}" name="{name}">
3209
4363
  <bpmn:extensionElements>
3210
- <uipath:mapping version="v1">
3211
- <uipath:type value="BPMN.Variables" version="v1" />
3212
- </uipath:mapping>
4364
+ <uipath:activity version="v1">
4365
+ <uipath:type value="Maestro.CaseManagerPlaceholder" version="v1" />
4366
+ <uipath:input name="caseManagerInput" type="json" target="body"><![CDATA[{"caseRulesDecisions":{caseRulesDecisions},"caseCurrentExecutionState":{caseCurrentExecutionState}}]]></uipath:input>
4367
+ <uipath:output name="caseManagerDecisions" type="json" source="=js:(vars.caseRulesDecisions)" var="{varId}" custom="true" />
4368
+ </uipath:activity>
3213
4369
  </bpmn:extensionElements>
3214
4370
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3215
4371
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3216
4372
  </bpmn:Task>`,
3217
- inputNotes: "Variable mappings use uipath:mapping with direct input/output elements, not a jsonBody pattern",
3218
- 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.",
3219
- extensionTagNotes: "Uses uipath:mapping (not uipath:activity). BPMN.Variables mappings are supported on StartEvent, EndEvent, Task, ScriptTask, and SubProcess owners."
4373
+ 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.",
4374
+ 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.',
4375
+ inputFields: [
4376
+ {
4377
+ name: "caseRulesDecisions",
4378
+ displayName: "Case rules decisions",
4379
+ type: "json",
4380
+ required: true,
4381
+ hidden: false,
4382
+ isPrimaryKey: false,
4383
+ binding: false,
4384
+ defaultValue: null,
4385
+ target: "body"
4386
+ },
4387
+ {
4388
+ name: "caseCurrentExecutionState",
4389
+ displayName: "Case current execution state",
4390
+ type: "json",
4391
+ required: true,
4392
+ hidden: false,
4393
+ isPrimaryKey: false,
4394
+ binding: false,
4395
+ defaultValue: null,
4396
+ target: "body"
4397
+ }
4398
+ ]
3220
4399
  },
3221
- "BPMN.ScriptTask": {
3222
- extensionType: "BPMN.ScriptTask",
3223
- label: "Execute script",
3224
- bpmnElement: "bpmn:ScriptTask",
4400
+ "Maestro.UpdateCaseState": {
4401
+ extensionType: "Maestro.UpdateCaseState",
4402
+ label: "Update case state",
4403
+ bpmnElement: "bpmn:ServiceTask",
3225
4404
  placements: {},
3226
- extensionTag: "uipath:mapping",
4405
+ extensionTag: "uipath:activity",
3227
4406
  contextFields: [],
3228
- inputPattern: "scriptArgs",
3229
- inputName: "args",
3230
- inputTarget: "bodyField",
4407
+ inputPattern: "mergedBody",
4408
+ inputName: "ItemData",
4409
+ inputTarget: "body",
3231
4410
  outputSource: null,
3232
4411
  outputType: null,
3233
4412
  bindingPattern: "none",
3234
4413
  requiresDiscovery: false,
3235
4414
  isDynamic: false,
3236
- xmlTemplate: `<bpmn:ScriptTask id="{id}" name="{name}">
4415
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
3237
4416
  <bpmn:extensionElements>
3238
- <uipath:mapping version="v1">
3239
- <uipath:type value="BPMN.ScriptTask" version="v1" />
3240
- <uipath:input name="args" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
3241
- </uipath:mapping>
4417
+ <uipath:activity version="v1">
4418
+ <uipath:type value="Maestro.UpdateCaseState" version="v2" />
4419
+ <uipath:input name="ItemData" type="json" target="body"><![CDATA[{"upsertKeys":{upsertKeys},"deleteKeys":{deleteKeys},"tasksCompletedDeleteNames":{tasksCompletedDeleteNames}}]]></uipath:input>
4420
+ </uipath:activity>
3242
4421
  </bpmn:extensionElements>
3243
4422
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3244
4423
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3245
- </bpmn:ScriptTask>`,
3246
- inputNotes: "Inputs are merged into a single json input named 'args' with target 'bodyField'. An inputSchema is created from the input variables.",
3247
- extensionTagNotes: "bpmn:ScriptTask is routed through createModdleExtensionVariableMapping (same as BPMN.Variables). Inputs are merged into a single 'args' JSON body with inputSchema."
3248
- },
3249
- "ConversationalService.QueueServiceMessage": {
3250
- extensionType: "ConversationalService.QueueServiceMessage",
3251
- label: "Queue service message",
3252
- bpmnElement: "bpmn:ServiceTask",
3253
- placements: {
3254
- activity: {
3255
- type: "bpmn:ServiceTask"
3256
- }
3257
- },
3258
- extensionTag: "uipath:activity",
3259
- contextFields: [
4424
+ </bpmn:ServiceTask>`,
4425
+ 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.",
4426
+ inputFields: [
3260
4427
  {
3261
- name: "_label",
3262
- type: "string",
3263
- required: false,
3264
- hidden: true,
4428
+ name: "upsertKeys",
4429
+ displayName: "Event keys to upsert",
4430
+ type: "json",
4431
+ required: true,
4432
+ hidden: false,
3265
4433
  isPrimaryKey: false,
3266
4434
  binding: false,
3267
- defaultValue: null
4435
+ defaultValue: null,
4436
+ target: "body"
4437
+ },
4438
+ {
4439
+ name: "deleteKeys",
4440
+ displayName: "Event keys to delete",
4441
+ type: "array",
4442
+ required: true,
4443
+ hidden: false,
4444
+ isPrimaryKey: false,
4445
+ binding: false,
4446
+ defaultValue: null,
4447
+ target: "body"
4448
+ },
4449
+ {
4450
+ name: "tasksCompletedDeleteNames",
4451
+ displayName: "Completed task names to delete",
4452
+ type: "array",
4453
+ required: true,
4454
+ hidden: false,
4455
+ isPrimaryKey: false,
4456
+ binding: false,
4457
+ defaultValue: null,
4458
+ target: "body"
3268
4459
  }
3269
- ],
4460
+ ]
4461
+ },
4462
+ "Maestro.RetrieveCaseState": {
4463
+ extensionType: "Maestro.RetrieveCaseState",
4464
+ label: "Retrieve case state",
4465
+ bpmnElement: "bpmn:ServiceTask",
4466
+ placements: {},
4467
+ extensionTag: "uipath:activity",
4468
+ contextFields: [],
4469
+ inputPattern: "none",
4470
+ outputSource: "=caseState",
4471
+ outputType: "jsonSchema",
4472
+ outputName: "latestCaseState",
4473
+ bindingPattern: "none",
4474
+ requiresDiscovery: false,
4475
+ isDynamic: false,
4476
+ contractOutputMayBeCustom: true,
4477
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
4478
+ <bpmn:extensionElements>
4479
+ <uipath:activity version="v1">
4480
+ <uipath:type value="Maestro.RetrieveCaseState" version="v2" />
4481
+ <uipath:output name="latestCaseState" type="jsonSchema" source="=caseState" var="{varId}" custom="true" />
4482
+ </uipath:activity>
4483
+ </bpmn:extensionElements>
4484
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
4485
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
4486
+ </bpmn:ServiceTask>`,
4487
+ 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.",
4488
+ 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.`
4489
+ },
4490
+ "Maestro.NotificationService": {
4491
+ extensionType: "Maestro.NotificationService",
4492
+ label: "Notification service",
4493
+ bpmnElement: "bpmn:ServiceTask",
4494
+ placements: {},
4495
+ extensionTag: "uipath:activity",
4496
+ contextFields: [],
3270
4497
  inputPattern: "mergedBody",
3271
4498
  inputName: "body",
3272
4499
  inputTarget: "body",
3273
- outputSource: "=response",
3274
- outputType: "jsonSchema",
3275
- outputName: "response",
3276
- additionalOutputs: [
3277
- {
3278
- name: "Error",
3279
- type: "jsonSchema",
3280
- source: "=Error",
3281
- required: false
3282
- }
3283
- ],
4500
+ outputSource: null,
4501
+ outputType: null,
3284
4502
  bindingPattern: "none",
3285
4503
  requiresDiscovery: false,
3286
4504
  isDynamic: false,
3287
4505
  xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
3288
4506
  <bpmn:extensionElements>
3289
4507
  <uipath:activity version="v1">
3290
- <uipath:type value="ConversationalService.QueueServiceMessage" version="v1" />
3291
- <uipath:input name="body" type="json" target="body"><![CDATA[{"conversationId":"{conversationId}","userContent":"{userContent}","assistantContent":"{assistantContent}"}]]></uipath:input>
3292
- <uipath:output name="response" type="jsonSchema" source="=response" var="{varId}" />
3293
- <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
4508
+ <uipath:type value="Maestro.NotificationService" version="v2" />
4509
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"publisherName":"{publisherName}","topicName":"{topicName}","priority":"{priority}","messageParam":{messageParam},"recipients":{recipients}}]]></uipath:input>
3294
4510
  </uipath:activity>
3295
4511
  </bpmn:extensionElements>
3296
4512
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3297
4513
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3298
4514
  </bpmn:ServiceTask>`,
3299
- 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.",
3300
- 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.',
3301
- 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".',
4515
+ 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.`,
3302
4516
  inputFields: [
3303
4517
  {
3304
- name: "conversationId",
3305
- displayName: "Conversation ID",
4518
+ name: "publisherName",
4519
+ displayName: "Publisher name",
3306
4520
  type: "string",
3307
4521
  required: true,
3308
4522
  hidden: false,
@@ -3312,8 +4526,8 @@ var bpmn_spec_default = {
3312
4526
  target: "body"
3313
4527
  },
3314
4528
  {
3315
- name: "userContent",
3316
- displayName: "User content",
4529
+ name: "topicName",
4530
+ displayName: "Topic name",
3317
4531
  type: "string",
3318
4532
  required: true,
3319
4533
  hidden: false,
@@ -3323,8 +4537,8 @@ var bpmn_spec_default = {
3323
4537
  target: "body"
3324
4538
  },
3325
4539
  {
3326
- name: "assistantContent",
3327
- displayName: "Assistant content",
4540
+ name: "priority",
4541
+ displayName: "Priority",
3328
4542
  type: "string",
3329
4543
  required: true,
3330
4544
  hidden: false,
@@ -3332,224 +4546,211 @@ var bpmn_spec_default = {
3332
4546
  binding: false,
3333
4547
  defaultValue: null,
3334
4548
  target: "body"
4549
+ },
4550
+ {
4551
+ name: "messageParam",
4552
+ displayName: "Message parameters",
4553
+ type: "json",
4554
+ required: true,
4555
+ hidden: false,
4556
+ isPrimaryKey: false,
4557
+ binding: false,
4558
+ defaultValue: null,
4559
+ target: "body"
4560
+ },
4561
+ {
4562
+ name: "recipients",
4563
+ displayName: "Recipients",
4564
+ type: "json",
4565
+ required: false,
4566
+ hidden: false,
4567
+ isPrimaryKey: false,
4568
+ binding: false,
4569
+ defaultValue: null,
4570
+ target: "body"
3335
4571
  }
3336
4572
  ]
3337
4573
  },
3338
- "Intsvc.TimerTrigger": {
3339
- extensionType: "Intsvc.TimerTrigger",
3340
- label: "Timer trigger",
3341
- bpmnElement: "bpmn:StartEvent",
4574
+ "Maestro.AcquireLock": {
4575
+ extensionType: "Maestro.AcquireLock",
4576
+ label: "Acquire lock",
4577
+ bpmnElement: "bpmn:ServiceTask",
3342
4578
  placements: {},
3343
4579
  extensionTag: "uipath:activity",
3344
4580
  contextFields: [],
3345
- inputPattern: "none",
3346
- outputSource: ".",
3347
- outputType: "custom",
3348
- outputName: "result",
3349
- useRelativeSource: false,
4581
+ inputPattern: "mergedBody",
4582
+ inputName: "body",
4583
+ inputTarget: "body",
4584
+ outputSource: null,
4585
+ outputType: null,
3350
4586
  bindingPattern: "none",
3351
4587
  requiresDiscovery: false,
3352
4588
  isDynamic: false,
3353
- xmlTemplate: `<bpmn:StartEvent id="{id}" name="{name}">
4589
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
3354
4590
  <bpmn:extensionElements>
3355
4591
  <uipath:activity version="v1">
3356
- <uipath:type value="Intsvc.TimerTrigger" version="v1" />
3357
- <uipath:output name="result" type="custom" source="." var="{varId}" />
4592
+ <uipath:type value="Maestro.AcquireLock" version="v2" />
4593
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"lockKey":"{lockKey}","leaseSeconds":{leaseSeconds},"acquireTimeoutSeconds":{acquireTimeoutSeconds}}]]></uipath:input>
3358
4594
  </uipath:activity>
3359
4595
  </bpmn:extensionElements>
3360
- <bpmn:timerEventDefinition><bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1H</bpmn:timeDuration></bpmn:timerEventDefinition>
3361
4596
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3362
4597
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3363
- </bpmn:StartEvent>`,
3364
- inputNotes: "No jsonBody, no input fields, no isSplitInputs in design schema",
3365
- bpmnElementNotes: "Used via timer event definition on start events; not directly in FPS_TO_NODE_MAPPING",
3366
- extensionTagNotes: "NOT in isEvents array, uses uipath:activity. However, isIntsvcTriggerDesignSchemaType returns true.",
3367
- inputFields: []
3368
- },
3369
- "Maestro.ReceiveMessageEvent": {
3370
- extensionType: "Maestro.ReceiveMessageEvent",
3371
- label: "Receive internal message",
3372
- bpmnElement: "bpmn:IntermediateCatchEvent",
3373
- placements: {
3374
- startEvent: {
3375
- type: "bpmn:StartEvent",
3376
- eventDefinition: {
3377
- type: "bpmn:MessageEventDefinition"
3378
- }
3379
- },
3380
- intermediateEvent: {
3381
- type: "bpmn:IntermediateCatchEvent",
3382
- eventDefinition: {
3383
- type: "bpmn:MessageEventDefinition"
3384
- }
3385
- },
3386
- boundaryEvent: {
3387
- type: "bpmn:BoundaryEvent",
3388
- eventDefinition: {
3389
- type: "bpmn:MessageEventDefinition"
3390
- }
3391
- }
3392
- },
3393
- extensionTag: "uipath:event",
3394
- contextFields: [
4598
+ </bpmn:ServiceTask>`,
4599
+ 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.",
4600
+ inputFields: [
3395
4601
  {
3396
- name: "name",
3397
- displayName: "Message name",
4602
+ name: "lockKey",
4603
+ displayName: "Lock key",
3398
4604
  type: "string",
3399
4605
  required: true,
3400
4606
  hidden: false,
3401
4607
  isPrimaryKey: false,
3402
4608
  binding: false,
3403
- defaultValue: null
4609
+ defaultValue: null,
4610
+ target: "body"
4611
+ },
4612
+ {
4613
+ name: "leaseSeconds",
4614
+ displayName: "Lease seconds",
4615
+ type: "number",
4616
+ required: true,
4617
+ hidden: false,
4618
+ isPrimaryKey: false,
4619
+ binding: false,
4620
+ defaultValue: 600,
4621
+ target: "body"
3404
4622
  },
3405
4623
  {
3406
- name: "_label",
3407
- type: "string",
3408
- required: false,
3409
- hidden: true,
4624
+ name: "acquireTimeoutSeconds",
4625
+ displayName: "Acquire timeout seconds",
4626
+ type: "number",
4627
+ required: true,
4628
+ hidden: false,
3410
4629
  isPrimaryKey: false,
3411
4630
  binding: false,
3412
- defaultValue: null
4631
+ defaultValue: 0,
4632
+ target: "body"
3413
4633
  }
3414
- ],
3415
- inputPattern: "separateInputs",
3416
- inputName: "ItemData",
4634
+ ]
4635
+ },
4636
+ "Maestro.ReleaseLock": {
4637
+ extensionType: "Maestro.ReleaseLock",
4638
+ label: "Release lock",
4639
+ bpmnElement: "bpmn:ServiceTask",
4640
+ placements: {},
4641
+ extensionTag: "uipath:activity",
4642
+ contextFields: [],
4643
+ inputPattern: "mergedBody",
4644
+ inputName: "body",
3417
4645
  inputTarget: "body",
3418
4646
  outputSource: null,
3419
- outputType: "Maestro.ReceiveMessageEvent",
3420
- outputName: "response",
3421
- useRelativeSource: true,
4647
+ outputType: null,
3422
4648
  bindingPattern: "none",
3423
4649
  requiresDiscovery: false,
3424
4650
  isDynamic: false,
3425
- xmlTemplate: `<bpmn:IntermediateCatchEvent id="{id}" name="{name}">
4651
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
3426
4652
  <bpmn:extensionElements>
3427
- <uipath:event version="v1">
3428
- <uipath:type value="Maestro.ReceiveMessageEvent" version="v1" />
3429
- <uipath:context>
3430
- <uipath:input name="name" type="string" value="{name}" />
3431
- <uipath:input name="_label" type="string" value="{_label}" />
3432
- </uipath:context>
3433
- <uipath:input name="ItemData" type="json" target="body"><![CDATA[{}]]></uipath:input>
3434
- <uipath:output name="response" type="Maestro.ReceiveMessageEvent" var="{varId}" />
3435
- </uipath:event>
4653
+ <uipath:activity version="v1">
4654
+ <uipath:type value="Maestro.ReleaseLock" version="v2" />
4655
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"lockKey":"{lockKey}"}]]></uipath:input>
4656
+ </uipath:activity>
3436
4657
  </bpmn:extensionElements>
3437
- <bpmn:messageEventDefinition />
3438
4658
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3439
4659
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3440
- </bpmn:IntermediateCatchEvent>`,
3441
- 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.",
3442
- extensionTagNotes: "In isEvents array, uses uipath:event",
4660
+ </bpmn:ServiceTask>`,
4661
+ inputNotes: "Generated SLA flows merge the lock key into the body. The generated helper does not bind the design-schema response.",
3443
4662
  inputFields: [
3444
4663
  {
3445
- name: "Reference",
3446
- displayName: "Reference",
4664
+ name: "lockKey",
4665
+ displayName: "Lock key",
3447
4666
  type: "string",
3448
4667
  required: true,
3449
4668
  hidden: false,
3450
4669
  isPrimaryKey: false,
3451
4670
  binding: false,
3452
4671
  defaultValue: null,
3453
- target: "bodyField",
3454
- description: "Correlation reference to match this receive event to its sender"
4672
+ target: "body"
3455
4673
  }
3456
4674
  ]
3457
4675
  },
3458
- "Maestro.SendMessageEvent": {
3459
- extensionType: "Maestro.SendMessageEvent",
3460
- label: "Send internal message",
3461
- bpmnElement: "bpmn:IntermediateThrowEvent",
3462
- placements: {
3463
- intermediateEvent: {
3464
- type: "bpmn:IntermediateThrowEvent",
3465
- eventDefinition: {
3466
- type: "bpmn:MessageEventDefinition"
3467
- }
3468
- },
3469
- endEvent: {
3470
- type: "bpmn:EndEvent",
3471
- eventDefinition: {
3472
- type: "bpmn:MessageEventDefinition"
3473
- }
3474
- }
3475
- },
3476
- extensionTag: "uipath:event",
3477
- contextFields: [
3478
- {
3479
- name: "name",
3480
- displayName: "Message name",
3481
- type: "string",
3482
- required: true,
3483
- hidden: false,
3484
- isPrimaryKey: false,
3485
- binding: false,
3486
- defaultValue: null
3487
- },
4676
+ "Maestro.CaseCyclePrepare": {
4677
+ extensionType: "Maestro.CaseCyclePrepare",
4678
+ label: "Prepare case decision cycle",
4679
+ bpmnElement: "bpmn:ServiceTask",
4680
+ placements: {},
4681
+ extensionTag: "uipath:activity",
4682
+ contextFields: [],
4683
+ inputPattern: "mergedBody",
4684
+ bindingPattern: "none",
4685
+ requiresDiscovery: false,
4686
+ isDynamic: false,
4687
+ generatedOutputs: true,
4688
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
4689
+ <bpmn:extensionElements>
4690
+ <uipath:activity version="v1">
4691
+ <uipath:type value="Maestro.CaseCyclePrepare" version="v2" />
4692
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"CaseGlobalsLastPrimaryStageExited":"{CaseGlobalsLastPrimaryStageExited}"}]]></uipath:input>
4693
+ <uipath:output name="latestCaseState" type="jsonSchema" source="=caseState" var="{varId}" />
4694
+ </uipath:activity>
4695
+ </bpmn:extensionElements>
4696
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
4697
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
4698
+ </bpmn:ServiceTask>`,
4699
+ inputFields: [
3488
4700
  {
3489
- name: "_label",
4701
+ name: "CaseGlobalsLastPrimaryStageExited",
3490
4702
  type: "string",
3491
4703
  required: false,
3492
- hidden: true,
3493
- isPrimaryKey: false,
3494
- binding: false,
3495
- defaultValue: null
3496
- },
3497
- {
3498
- name: "inputSchema",
3499
- displayName: "Input schema",
3500
- type: "jsonSchema",
3501
- required: true,
3502
- hidden: true,
4704
+ hidden: false,
3503
4705
  isPrimaryKey: false,
3504
4706
  binding: false,
3505
- defaultValue: null
4707
+ defaultValue: "=instanceglobals.CaseGlobalsLastPrimaryStageExited",
4708
+ target: "body",
4709
+ displayName: "Last primary stage exited global"
3506
4710
  }
3507
4711
  ],
3508
- inputPattern: "splitInputsItemData",
3509
- inputName: "ItemData",
3510
- inputTarget: "body",
3511
- outputSource: null,
3512
- outputType: "Maestro.SendMessageEvent",
3513
- outputName: "response",
3514
- useRelativeSource: true,
4712
+ 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.",
4713
+ 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.",
4714
+ inputName: "body",
4715
+ inputTarget: "body"
4716
+ },
4717
+ "Maestro.CaseCycleCommit": {
4718
+ extensionType: "Maestro.CaseCycleCommit",
4719
+ label: "Commit case decision cycle",
4720
+ bpmnElement: "bpmn:ServiceTask",
4721
+ placements: {},
4722
+ extensionTag: "uipath:activity",
4723
+ contextFields: [],
4724
+ inputPattern: "mergedBody",
3515
4725
  bindingPattern: "none",
3516
4726
  requiresDiscovery: false,
3517
4727
  isDynamic: false,
3518
- xmlTemplate: `<bpmn:IntermediateThrowEvent id="{id}" name="{name}">
4728
+ generatedOutputs: true,
4729
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
3519
4730
  <bpmn:extensionElements>
3520
- <uipath:event version="v1">
3521
- <uipath:type value="Maestro.SendMessageEvent" version="v1" />
3522
- <uipath:context>
3523
- <uipath:input name="name" type="string" value="{name}" />
3524
- <uipath:input name="_label" type="string" value="{_label}" />
3525
- <uipath:input name="inputSchema" type="jsonSchema" value="{inputSchema}" />
3526
- </uipath:context>
3527
- <uipath:input name="ItemData" type="json" target="body"><![CDATA[{"Reference":"{Reference}","SpecificContent":{},"TimeToLive":""}]]></uipath:input>
3528
- <uipath:output name="response" type="Maestro.SendMessageEvent" var="{varId}" />
3529
- </uipath:event>
4731
+ <uipath:activity version="v1">
4732
+ <uipath:type value="Maestro.CaseCycleCommit" version="v2" />
4733
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"decisions":{decisions},"sequentialTasksToResetByStageName":{sequentialTasksToResetByStageName},"lastPrimaryStageExitedGlobalKey":"{lastPrimaryStageExitedGlobalKey}"}]]></uipath:input>
4734
+ <uipath:output name="latestCaseState" type="jsonSchema" source="=caseState" var="{varId}" />
4735
+ </uipath:activity>
3530
4736
  </bpmn:extensionElements>
3531
- <bpmn:messageEventDefinition />
3532
4737
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3533
4738
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3534
- </bpmn:IntermediateThrowEvent>`,
3535
- 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.",
3536
- extensionTagNotes: "In isEvents array, uses uipath:event",
4739
+ </bpmn:ServiceTask>`,
3537
4740
  inputFields: [
3538
4741
  {
3539
- name: "Reference",
3540
- displayName: "Reference",
3541
- type: "string",
3542
- required: true,
4742
+ name: "decisions",
4743
+ type: "json",
4744
+ required: false,
3543
4745
  hidden: false,
3544
4746
  isPrimaryKey: false,
3545
4747
  binding: false,
3546
4748
  defaultValue: null,
3547
4749
  target: "body",
3548
- description: "Correlation reference to match this send event to its receiver"
4750
+ displayName: "Case manager decisions"
3549
4751
  },
3550
4752
  {
3551
- name: "SpecificContent",
3552
- displayName: "Item information",
4753
+ name: "sequentialTasksToResetByStageName",
3553
4754
  type: "json",
3554
4755
  required: false,
3555
4756
  hidden: false,
@@ -3557,21 +4758,24 @@ var bpmn_spec_default = {
3557
4758
  binding: false,
3558
4759
  defaultValue: null,
3559
4760
  target: "body",
3560
- description: "JSON payload with the message content"
4761
+ displayName: "Sequential task names to reset, keyed by stage name"
3561
4762
  },
3562
4763
  {
3563
- name: "TimeToLive",
3564
- displayName: "Time to live",
3565
- type: "duration",
4764
+ name: "lastPrimaryStageExitedGlobalKey",
4765
+ type: "string",
3566
4766
  required: false,
3567
4767
  hidden: false,
3568
4768
  isPrimaryKey: false,
3569
4769
  binding: false,
3570
- defaultValue: null,
4770
+ defaultValue: "CaseGlobalsLastPrimaryStageExited",
3571
4771
  target: "body",
3572
- description: "Duration after which the message expires if not consumed"
4772
+ displayName: "Instance-globals key for the last primary stage exited"
3573
4773
  }
3574
- ]
4774
+ ],
4775
+ 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.',
4776
+ 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.",
4777
+ inputName: "body",
4778
+ inputTarget: "body"
3575
4779
  },
3576
4780
  "Maestro.CaseRulesEvaluator": {
3577
4781
  extensionType: "Maestro.CaseRulesEvaluator",
@@ -4136,7 +5340,7 @@ var bpmn_spec_default = {
4136
5340
  extensionTagResolution: {
4137
5341
  description: "How the frontend determines which XML extension tag to use",
4138
5342
  rules: [
4139
- "If serviceType is in isEvents array [Intsvc.WaitForEvent, Intsvc.EventTrigger, Maestro.ReceiveMessageEvent, Maestro.SendMessageEvent] => uipath:event",
5343
+ "If serviceType is in isEvents array [Intsvc.WaitForEvent, Intsvc.EventTrigger, Maestro.ReceiveMessageEvent, Maestro.SendMessageEvent, Queue.WaitForEvent] => uipath:event",
4140
5344
  "If serviceType is BPMN.Variables on bpmn:StartEvent, bpmn:EndEvent, or bpmn:Task => uipath:mapping",
4141
5345
  "If nodeType is bpmn:ScriptTask or bpmn:SubProcess => uipath:mapping",
4142
5346
  "Otherwise => uipath:activity"
@@ -4146,7 +5350,8 @@ var bpmn_spec_default = {
4146
5350
  "Intsvc.WaitForEvent",
4147
5351
  "Intsvc.EventTrigger",
4148
5352
  "Maestro.ReceiveMessageEvent",
4149
- "Maestro.SendMessageEvent"
5353
+ "Maestro.SendMessageEvent",
5354
+ "Queue.WaitForEvent"
4150
5355
  ],
4151
5356
  isExecutionArray: [
4152
5357
  "Intsvc.ActivityExecution",
@@ -4166,6 +5371,23 @@ var bpmn_spec_default = {
4166
5371
  // src/manifest/bpmn-spec.ts
4167
5372
  var BPMN_SPEC = bpmn_spec_default;
4168
5373
  var MERGED_INPUT_PATTERNS = new Set(["mergedBody", "splitInputsItemData", "scriptArgs"]);
5374
+ var STRUCTURAL_TEMPLATE_TOKENS = Object.freeze([
5375
+ "id",
5376
+ "name",
5377
+ "incomingEdge",
5378
+ "outgoingEdge",
5379
+ "varId",
5380
+ "errorVarId",
5381
+ "outputVarId",
5382
+ "hasItemVarId",
5383
+ "countVarId",
5384
+ "bindingId",
5385
+ "nameBindingId",
5386
+ "folderPathBindingId",
5387
+ "connectionBindingId",
5388
+ "folderBindingId",
5389
+ "fileRef"
5390
+ ]);
4169
5391
  var STATIC_UIPATH_EXTENSION_TAG_NAMES = [
4170
5392
  "binding",
4171
5393
  "bindings",
@@ -9749,6 +10971,7 @@ var SEMANTIC_VALIDATION_ERROR = "BPMN_VALIDATION_ERROR";
9749
10971
  var BPMN_MODEL_NAMESPACE = "http://www.omg.org/spec/BPMN/20100524/MODEL";
9750
10972
  var ACTIVITY_CONFIGURATION_VERSION = "activityConfigurationVersion";
9751
10973
  var ACTIVITY_CONFIGURATION_V1 = "v1";
10974
+ var START_AGENT_JOB_BINDING_VERSION = "v2";
9752
10975
 
9753
10976
  class BpmnValidateService {
9754
10977
  fileSystem;
@@ -10177,6 +11400,7 @@ class BpmnValidateService {
10177
11400
  }
10178
11401
  validatePayload(file, payload, bindings, workflowActivityConfigurationVersion, diagnostics) {
10179
11402
  const owner = findBpmnOwner(payload);
11403
+ const typeAttribute = payload.attributes.type;
10180
11404
  if (!owner) {
10181
11405
  diagnostics.push({
10182
11406
  file,
@@ -10184,44 +11408,45 @@ class BpmnValidateService {
10184
11408
  message: `${payload.name} must be inside bpmn:extensionElements on a BPMN element.`,
10185
11409
  instruction: "Move the UiPath extension payload under the owning BPMN element's extensionElements."
10186
11410
  });
10187
- return;
10188
11411
  }
10189
- const typeNodes = childElements(payload, "uipath:type");
10190
- if (payload.attributes.type && typeNodes.length > 0) {
11412
+ if (typeAttribute) {
10191
11413
  diagnostics.push({
10192
11414
  file,
10193
- element: describeElement(owner),
10194
- message: `${payload.name} must not mix a type attribute with legacy uipath:type child elements.`,
10195
- instruction: "Use either the payload type attribute or one uipath:type child, not both."
11415
+ element: describeElement(owner ?? payload),
11416
+ message: `${payload.name} must not use a type attribute. Studio Web and the runtime only read the uipath:type child.`,
11417
+ 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}\`.`
10196
11418
  });
11419
+ }
11420
+ if (!owner || typeAttribute) {
10197
11421
  return;
10198
11422
  }
10199
- if (!payload.attributes.type && typeNodes.length === 0 && !isImplicitVariablesMapping(payload, owner)) {
11423
+ const typeNodes = childElements(payload, "uipath:type");
11424
+ if (typeNodes.length === 0 && !isImplicitVariablesMapping(payload, owner)) {
10200
11425
  diagnostics.push({
10201
11426
  file,
10202
11427
  element: describeElement(owner),
10203
- message: `${payload.name} must contain exactly one uipath:type child or a type attribute.`,
10204
- instruction: "Add one uipath:type element with a supported value attribute, or set the payload type attribute."
11428
+ message: `${payload.name} must contain exactly one uipath:type child.`,
11429
+ instruction: "Add one uipath:type element with a supported value attribute."
10205
11430
  });
10206
11431
  return;
10207
11432
  }
10208
- if (!payload.attributes.type && typeNodes.length > 1) {
11433
+ if (typeNodes.length > 1) {
10209
11434
  diagnostics.push({
10210
11435
  file,
10211
11436
  element: describeElement(owner),
10212
- message: `${payload.name} must contain exactly one uipath:type child or a type attribute.`,
10213
- instruction: "Add one uipath:type element with a supported value attribute, or set the payload type attribute."
11437
+ message: `${payload.name} must contain exactly one uipath:type child.`,
11438
+ instruction: "Add one uipath:type element with a supported value attribute."
10214
11439
  });
10215
11440
  return;
10216
11441
  }
10217
11442
  const typeNode = typeNodes[0];
10218
- const extensionType = payload.attributes.type ?? typeNode?.attributes.value ?? inferImplicitExtensionType(payload, owner);
11443
+ const extensionType = typeNode?.attributes.value ?? inferImplicitExtensionType(payload, owner);
10219
11444
  if (!extensionType) {
10220
11445
  diagnostics.push({
10221
11446
  file,
10222
11447
  element: describeElement(typeNode ?? payload),
10223
11448
  message: "UiPath extension type is missing.",
10224
- instruction: "Set uipath:activity type or uipath:type value to a supported UiPath BPMN extension type."
11449
+ instruction: "Set uipath:type value to a supported UiPath BPMN extension type."
10225
11450
  });
10226
11451
  return;
10227
11452
  }
@@ -10244,7 +11469,7 @@ class BpmnValidateService {
10244
11469
  this.validateActivityExecutionV1Bindings(file, payload, owner, bindings, diagnostics);
10245
11470
  }
10246
11471
  if (contract.extensionType === "Orchestrator.StartAgentJob") {
10247
- this.validateStartAgentJobBindings(file, payload, owner, bindings, diagnostics);
11472
+ this.validateStartAgentJobBindings(file, payload, owner, typeNode?.attributes.version, bindings, diagnostics);
10248
11473
  }
10249
11474
  if (contract.extensionType === "Intsvc.EventTrigger" || contract.extensionType === "Intsvc.WaitForEvent") {
10250
11475
  this.validateTriggerConnectionBinding(file, payload, owner, bindings, contract.extensionType === "Intsvc.WaitForEvent" ? "wait" : "trigger", diagnostics);
@@ -10268,7 +11493,28 @@ class BpmnValidateService {
10268
11493
  file,
10269
11494
  element: describeElement(owner),
10270
11495
  message: `${contract.extensionType} cannot be attached to ${owner.name}.`,
10271
- instruction: `Attach it to one of: ${allowedOwners.join(", ")}.`
11496
+ instruction: `Attach it to one of: ${allowedOwners.map(toElementInstanceName).join(", ")}.`
11497
+ });
11498
+ return;
11499
+ }
11500
+ this.validatePlacementEventDefinition(file, owner, contract, diagnostics);
11501
+ }
11502
+ validatePlacementEventDefinition(file, owner, contract, diagnostics) {
11503
+ if (contract.extensionType !== "Queue.WaitForEvent") {
11504
+ return;
11505
+ }
11506
+ const matchedPlacement = Object.values(contract.placements).find((placement) => getLocalName(placement.type) === getLocalName(owner.name));
11507
+ const expectedEventDefinition = matchedPlacement?.eventDefinition?.type;
11508
+ if (!expectedEventDefinition) {
11509
+ return;
11510
+ }
11511
+ const hasEventDefinition = owner.children.some((child) => getLocalName(child.name) === getLocalName(expectedEventDefinition) && resolveNamespace(child) === BPMN_MODEL_NAMESPACE);
11512
+ if (!hasEventDefinition) {
11513
+ diagnostics.push({
11514
+ file,
11515
+ element: describeElement(owner),
11516
+ message: `${contract.extensionType} on ${describeElement(owner)} requires a ${toElementInstanceName(expectedEventDefinition)} child.`,
11517
+ instruction: `Add a <${toElementInstanceName(expectedEventDefinition)} /> element inside ${owner.name}.`
10272
11518
  });
10273
11519
  }
10274
11520
  }
@@ -10593,20 +11839,31 @@ class BpmnValidateService {
10593
11839
  }
10594
11840
  }
10595
11841
  validateOutput(file, payload, owner, contract, diagnostics) {
10596
- if (usesCanvasOwnedDynamicPayload(contract)) {
10597
- for (const output of childElements(payload, "uipath:output")) {
10598
- if (!hasAttributeValue(output, "var")) {
10599
- diagnostics.push({
10600
- file,
10601
- element: describeElement(output),
10602
- message: `${contract.extensionType} output is missing its var attribute.`,
10603
- instruction: "Set var to the variable that receives the output."
10604
- });
11842
+ const generatedOutputs = contract.generatedOutputs === true;
11843
+ if (usesCanvasOwnedDynamicPayload(contract) || generatedOutputs) {
11844
+ const outputs2 = childElements(payload, "uipath:output");
11845
+ if (generatedOutputs && outputs2.length === 0) {
11846
+ diagnostics.push({
11847
+ file,
11848
+ element: describeElement(owner),
11849
+ message: `${contract.extensionType} is missing an output payload.`,
11850
+ instruction: 'Add <uipath:output name="latestCaseState" type="jsonSchema" source="=caseState" var="<variable id>" />.'
11851
+ });
11852
+ return;
11853
+ }
11854
+ for (const output of outputs2) {
11855
+ validateOutputHasVar(file, output, contract, diagnostics);
11856
+ if (generatedOutputs) {
11857
+ validateOutputHasName(file, output, contract, diagnostics);
10605
11858
  }
10606
11859
  }
10607
11860
  return;
10608
11861
  }
10609
11862
  const allOutputs = childElements(payload, "uipath:output");
11863
+ if (savesCollapsedMultiInstanceOutputs(owner, contract)) {
11864
+ this.validateFixedOutputs(file, allOutputs, owner, contract, diagnostics, collapsedMultiInstanceOutputs(contract));
11865
+ return;
11866
+ }
10610
11867
  if (contract.additionalOutputs?.length) {
10611
11868
  this.validateFixedOutputs(file, allOutputs, owner, contract, diagnostics);
10612
11869
  return;
@@ -10614,8 +11871,10 @@ class BpmnValidateService {
10614
11871
  if (!contract.outputName && !contract.outputType) {
10615
11872
  return;
10616
11873
  }
10617
- validateCustomOutputAttributes(file, allOutputs, contract, diagnostics);
10618
- const outputs = allOutputs.filter((output) => output.attributes.custom !== "true");
11874
+ const hasNamedContractOutput = contract.contractOutputMayBeCustom === true && allOutputs.some((output) => output.attributes.name === contract.outputName);
11875
+ const isDroppableCustomOutput = (output) => output.attributes.custom === "true" && (contract.contractOutputMayBeCustom !== true || hasNamedContractOutput && output.attributes.name !== contract.outputName);
11876
+ validateCustomOutputAttributes(file, allOutputs.filter(isDroppableCustomOutput), contract, diagnostics);
11877
+ const outputs = allOutputs.filter((output) => !isDroppableCustomOutput(output));
10619
11878
  if (outputs.length === 0) {
10620
11879
  diagnostics.push({
10621
11880
  file,
@@ -10650,42 +11909,19 @@ class BpmnValidateService {
10650
11909
  instruction: `Set the uipath:output source attribute to "${contract.outputSource}".`
10651
11910
  });
10652
11911
  }
10653
- if (!hasAttributeValue(output, "var")) {
10654
- diagnostics.push({
10655
- file,
10656
- element: describeElement(output),
10657
- message: `${contract.extensionType} output is missing its var attribute.`,
10658
- instruction: "Set var to the variable that receives the output."
10659
- });
10660
- }
11912
+ validateOutputHasVar(file, output, contract, diagnostics);
10661
11913
  }
10662
11914
  }
10663
- validateFixedOutputs(file, allOutputs, owner, contract, diagnostics) {
11915
+ validateFixedOutputs(file, allOutputs, owner, contract, diagnostics, expected = declaredOutputs(contract)) {
10664
11916
  validateCustomOutputAttributes(file, allOutputs, contract, diagnostics);
10665
11917
  const outputs = allOutputs.filter((output) => output.attributes.custom !== "true");
10666
- const expected = [
10667
- ...contract.outputName ? [
10668
- {
10669
- name: contract.outputName,
10670
- type: contract.outputType ?? "",
10671
- source: contract.outputSource,
10672
- required: true
10673
- }
10674
- ] : [],
10675
- ...contract.additionalOutputs ?? []
10676
- ];
10677
11918
  const expectedByName = new Map(expected.map((output) => [output.name, output]));
10678
11919
  const actualByName = new Map;
10679
11920
  const reportedDuplicates = new Set;
10680
11921
  for (const output of outputs) {
10681
11922
  const name = output.attributes.name;
10682
- if (!name) {
10683
- diagnostics.push({
10684
- file,
10685
- element: describeElement(output),
10686
- message: "uipath:output is missing a name attribute.",
10687
- instruction: `Set name to one of: ${[...expectedByName.keys()].join(", ")}.`
10688
- });
11923
+ if (!hasAttributeValue(output, "name")) {
11924
+ validateOutputHasName(file, output, contract, diagnostics, `Set name to one of: ${[...expectedByName.keys()].join(", ")}.`);
10689
11925
  continue;
10690
11926
  }
10691
11927
  if (!actualByName.has(name)) {
@@ -10781,10 +12017,24 @@ class BpmnValidateService {
10781
12017
  }
10782
12018
  }
10783
12019
  }
10784
- validateStartAgentJobBindings(file, payload, owner, bindings, diagnostics) {
12020
+ validateStartAgentJobBindings(file, payload, owner, typeVersion, bindings, diagnostics) {
10785
12021
  const contexts = childElements(payload, "uipath:context");
10786
12022
  const contextInputs = contexts.flatMap((context) => childElements(context, "uipath:input"));
10787
12023
  const inputs = new Map(contextInputs.map((input) => [input.attributes.name, input]));
12024
+ if (typeVersion !== START_AGENT_JOB_BINDING_VERSION) {
12025
+ for (const expected of ["releaseKey", "folderId"]) {
12026
+ if (hasAttributeValue(inputs.get(expected), "value")) {
12027
+ continue;
12028
+ }
12029
+ diagnostics.push({
12030
+ file,
12031
+ element: describeElement(owner),
12032
+ message: `Orchestrator.StartAgentJob is missing context input "${expected}". Only uipath:type version="${START_AGENT_JOB_BINDING_VERSION}" binds name and folderPath.`,
12033
+ instruction: `Set releaseKey and folderId, or use <uipath:type value="Orchestrator.StartAgentJob" version="${START_AGENT_JOB_BINDING_VERSION}" /> with binding-backed name and folderPath.`
12034
+ });
12035
+ }
12036
+ return;
12037
+ }
10788
12038
  if (inputs.has("releaseKey") || inputs.has("folderId")) {
10789
12039
  diagnostics.push({
10790
12040
  file,
@@ -11096,6 +12346,46 @@ function hasLocalName(node, localName) {
11096
12346
  function getLocalName(name) {
11097
12347
  return name.slice(name.lastIndexOf(":") + 1).toLowerCase();
11098
12348
  }
12349
+ function declaredOutputs(contract) {
12350
+ return [
12351
+ ...contract.outputName ? [
12352
+ {
12353
+ name: contract.outputName,
12354
+ type: contract.outputType ?? "",
12355
+ source: contract.outputSource,
12356
+ required: true
12357
+ }
12358
+ ] : [],
12359
+ ...contract.additionalOutputs ?? []
12360
+ ];
12361
+ }
12362
+ var COLLAPSED_MULTI_INSTANCE_OUTPUT_CONTRACTS = new Set([
12363
+ "Orchestrator.GetTransactionItem",
12364
+ "Orchestrator.GetQueueItems",
12365
+ "Orchestrator.DeleteQueueItems",
12366
+ "Queue.WaitForEvent"
12367
+ ]);
12368
+ function savesCollapsedMultiInstanceOutputs(owner, contract) {
12369
+ return COLLAPSED_MULTI_INSTANCE_OUTPUT_CONTRACTS.has(contract.extensionType) && !hasLocalName(owner, "subProcess") && owner.children.some((child) => hasLocalName(child, "multiInstanceLoopCharacteristics") && resolveNamespace(child) === BPMN_MODEL_NAMESPACE);
12370
+ }
12371
+ function collapsedMultiInstanceOutputs(contract) {
12372
+ const error = declaredOutputs(contract).find((output) => output.name === "Error" && output.source === "=Error");
12373
+ return [
12374
+ {
12375
+ name: "response",
12376
+ type: "jsonSchema",
12377
+ source: "=response",
12378
+ required: true
12379
+ },
12380
+ ...error ? [error] : []
12381
+ ];
12382
+ }
12383
+ function toElementInstanceName(name) {
12384
+ const separator = name.indexOf(":");
12385
+ const prefix = separator === -1 ? "" : name.slice(0, separator + 1);
12386
+ const local = separator === -1 ? name : name.slice(separator + 1);
12387
+ return `${prefix}${local.charAt(0).toLowerCase()}${local.slice(1)}`;
12388
+ }
11099
12389
  function resolveNamespace(node) {
11100
12390
  const separator = node.name.indexOf(":");
11101
12391
  const prefix = separator === -1 ? "" : node.name.slice(0, separator);
@@ -11114,9 +12404,6 @@ function findBpmnOwner(payload) {
11114
12404
  if (extensionElements && hasLocalName(extensionElements, "extensionElements")) {
11115
12405
  return extensionElements.parent;
11116
12406
  }
11117
- if (payload.parent?.name.startsWith("bpmn:")) {
11118
- return payload.parent;
11119
- }
11120
12407
  return;
11121
12408
  }
11122
12409
  function getContextInputs(payload) {
@@ -11151,27 +12438,33 @@ function describeElement(node) {
11151
12438
  function hasAttributeValue(node, attribute) {
11152
12439
  return Boolean(node?.attributes[attribute]?.trim());
11153
12440
  }
11154
- function validateCustomOutputAttributes(file, allOutputs, contract, diagnostics) {
11155
- for (const output of allOutputs) {
12441
+ function validateCustomOutputAttributes(file, candidateOutputs, contract, diagnostics) {
12442
+ for (const output of candidateOutputs) {
11156
12443
  if (output.attributes.custom !== "true") {
11157
12444
  continue;
11158
12445
  }
11159
- if (!hasAttributeValue(output, "name")) {
11160
- diagnostics.push({
11161
- file,
11162
- element: describeElement(output),
11163
- message: "uipath:output is missing a name attribute.",
11164
- instruction: "Set name to the output's variable name."
11165
- });
11166
- }
11167
- if (!hasAttributeValue(output, "var")) {
11168
- diagnostics.push({
11169
- file,
11170
- element: describeElement(output),
11171
- message: `${contract.extensionType} output is missing its var attribute.`,
11172
- instruction: "Set var to the variable that receives the output."
11173
- });
11174
- }
12446
+ validateOutputHasName(file, output, contract, diagnostics);
12447
+ validateOutputHasVar(file, output, contract, diagnostics);
12448
+ }
12449
+ }
12450
+ function validateOutputHasName(file, output, contract, diagnostics, instruction = "Set name to the output's variable name.") {
12451
+ if (!hasAttributeValue(output, "name")) {
12452
+ diagnostics.push({
12453
+ file,
12454
+ element: describeElement(output),
12455
+ message: `${contract.extensionType} output is missing a name attribute.`,
12456
+ instruction
12457
+ });
12458
+ }
12459
+ }
12460
+ function validateOutputHasVar(file, output, contract, diagnostics) {
12461
+ if (!hasAttributeValue(output, "var")) {
12462
+ diagnostics.push({
12463
+ file,
12464
+ element: describeElement(output),
12465
+ message: `${contract.extensionType} output is missing its var attribute.`,
12466
+ instruction: "Set var to the variable that receives the output."
12467
+ });
11175
12468
  }
11176
12469
  }
11177
12470
  function usesCanvasOwnedDynamicPayload(contract) {
@@ -11194,7 +12487,7 @@ function inferImplicitExtensionType(payload, owner) {
11194
12487
  return isImplicitVariablesMapping(payload, owner) ? "BPMN.Variables" : undefined;
11195
12488
  }
11196
12489
  function isImplicitVariablesMapping(payload, owner) {
11197
- return payload.name === "uipath:mapping" && !payload.attributes.type && childElements(payload, "uipath:type").length === 0 && hasLocalName(owner, "task");
12490
+ return payload.name === "uipath:mapping" && childElements(payload, "uipath:type").length === 0 && hasLocalName(owner, "task");
11198
12491
  }
11199
12492
  function getExpectedInputName(contract) {
11200
12493
  if (contract.inputPattern === "splitInputsItemData") {
@@ -11241,8 +12534,7 @@ function validateMergedBodyFields(file, input, expectedName, contract, diagnosti
11241
12534
  return;
11242
12535
  }
11243
12536
  for (const field of required) {
11244
- const value = body[field.name];
11245
- if (value === undefined || value === null || value === "") {
12537
+ if (isUnsetFieldValue(body[field.name])) {
11246
12538
  diagnostics.push({
11247
12539
  file,
11248
12540
  element: describeElement(input),
@@ -11252,6 +12544,12 @@ function validateMergedBodyFields(file, input, expectedName, contract, diagnosti
11252
12544
  }
11253
12545
  }
11254
12546
  }
12547
+ function isUnsetFieldValue(value) {
12548
+ if (value === undefined || value === null) {
12549
+ return true;
12550
+ }
12551
+ return typeof value === "string" && value.trim() === "";
12552
+ }
11255
12553
  function parseJsonObject(text) {
11256
12554
  if (text.startsWith("=")) {
11257
12555
  return;
@@ -11392,4 +12690,4 @@ export {
11392
12690
  isIntsvcActivityExecutionV1
11393
12691
  };
11394
12692
 
11395
- //# debugId=5B4EFA29CDF8092D64756E2164756E21
12693
+ //# debugId=1D75818B9930E2BA64756E2164756E21