@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.
@@ -320,14 +320,17 @@ var bpmn_spec_default = {
320
320
  requiresDiscovery: true,
321
321
  isDynamic: true,
322
322
  xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
323
- <uipath:activity type="Orchestrator.StartAgentJob" version="v1">
324
- <uipath:context>
325
- <uipath:input name="name" type="string" value="=bindings.{nameBindingId}" />
326
- <uipath:input name="folderPath" type="string" value="=bindings.{folderPathBindingId}" />
327
- </uipath:context>
328
- <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
329
- <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
330
- </uipath:activity>
323
+ <bpmn:extensionElements>
324
+ <uipath:activity version="v1">
325
+ <uipath:type value="Orchestrator.StartAgentJob" version="v2" />
326
+ <uipath:context>
327
+ <uipath:input name="name" type="string" value="=bindings.{nameBindingId}" />
328
+ <uipath:input name="folderPath" type="string" value="=bindings.{folderPathBindingId}" />
329
+ </uipath:context>
330
+ <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
331
+ <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
332
+ </uipath:activity>
333
+ </bpmn:extensionElements>
331
334
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
332
335
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
333
336
  </bpmn:ServiceTask>`,
@@ -355,7 +358,7 @@ var bpmn_spec_default = {
355
358
  defaultValue: null,
356
359
  bindingInfo: {
357
360
  resource: "BusinessRule",
358
- resourceKeyPattern: "${metadata.key}",
361
+ resourceKeyPattern: "${metadata.folderPath}.${metadata.name}",
359
362
  propertyAttribute: "name"
360
363
  }
361
364
  },
@@ -369,7 +372,7 @@ var bpmn_spec_default = {
369
372
  defaultValue: null,
370
373
  bindingInfo: {
371
374
  resource: "BusinessRule",
372
- resourceKeyPattern: "${metadata.key}",
375
+ resourceKeyPattern: "${metadata.folderPath}.${metadata.name}",
373
376
  propertyAttribute: "folderPath"
374
377
  }
375
378
  },
@@ -386,13 +389,22 @@ var bpmn_spec_default = {
386
389
  inputPattern: "mergedBody",
387
390
  inputName: "JobArguments",
388
391
  inputTarget: "bodyField",
389
- outputSource: null,
390
- outputType: null,
392
+ outputName: "output",
393
+ outputSource: "=result",
394
+ outputType: "jsonSchema",
395
+ additionalOutputs: [
396
+ {
397
+ name: "Error",
398
+ type: "jsonSchema",
399
+ source: "=Error",
400
+ required: true
401
+ }
402
+ ],
391
403
  useRelativeSource: true,
392
404
  bindingPattern: "businessRule",
393
405
  bindingInfo: {
394
406
  resource: "BusinessRule",
395
- resourceKeyPattern: "${metadata.key}",
407
+ resourceKeyPattern: "${metadata.folderPath}.${metadata.name}",
396
408
  propertyAttribute: "name",
397
409
  contextField: "name"
398
410
  },
@@ -401,7 +413,7 @@ var bpmn_spec_default = {
401
413
  xmlTemplate: `<bpmn:BusinessRuleTask id="{id}" name="{name}">
402
414
  <bpmn:extensionElements>
403
415
  <uipath:activity version="v1">
404
- <uipath:type value="Orchestrator.BusinessRules" version="v2" />
416
+ <uipath:type value="Orchestrator.BusinessRules" version="v3" />
405
417
  <uipath:context>
406
418
  <uipath:input name="name" type="string" value="=bindings.{nameBindingId}" />
407
419
  <uipath:input name="folderPath" type="string" value="=bindings.{folderPathBindingId}" />
@@ -409,17 +421,17 @@ var bpmn_spec_default = {
409
421
  <uipath:inputSchema type="jsonSchema"><![CDATA[{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"required":[]}]]></uipath:inputSchema>
410
422
  </uipath:context>
411
423
  <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
424
+ <uipath:output name="output" type="jsonSchema" source="=result" var="{outputVarId}" />
412
425
  <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
413
- <uipath:output name="{outputName}" type="{outputType}" source="={outputName}" var="{outputVarId}" />
414
426
  </uipath:activity>
415
427
  </bpmn:extensionElements>
416
428
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
417
429
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
418
430
  </bpmn:BusinessRuleTask>`,
419
- discoveryNotes: "Uses getOrchestratorBusinessRules() to list available business rules",
431
+ 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",
420
432
  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.",
421
- 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.`,
422
- 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."
433
+ 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.",
434
+ 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.'
423
435
  },
424
436
  "Intsvc.ActivityExecution": {
425
437
  extensionType: "Intsvc.ActivityExecution",
@@ -1970,52 +1982,123 @@ var bpmn_spec_default = {
1970
1982
  </bpmn:ServiceTask>`,
1971
1983
  discoveryNotes: "Uses getQueueDefinitions(serviceType, search) to list available queues"
1972
1984
  },
1973
- "Orchestrator.StartAgenticProcess": {
1974
- extensionType: "Orchestrator.StartAgenticProcess",
1975
- label: "Start and wait for agentic process",
1976
- bpmnElement: "bpmn:CallActivity",
1985
+ "Orchestrator.SetTransactionStatus": {
1986
+ extensionType: "Orchestrator.SetTransactionStatus",
1987
+ label: "Set transaction status",
1988
+ bpmnElement: "bpmn:ServiceTask",
1977
1989
  placements: {
1978
1990
  activity: {
1979
- type: "bpmn:CallActivity"
1991
+ type: "bpmn:ServiceTask"
1980
1992
  }
1981
1993
  },
1982
1994
  extensionTag: "uipath:activity",
1983
1995
  contextFields: [
1984
1996
  {
1985
- name: "releaseKey",
1986
- displayName: "Process",
1997
+ name: "_label",
1987
1998
  type: "string",
1988
1999
  required: false,
1989
2000
  hidden: true,
1990
2001
  isPrimaryKey: false,
1991
2002
  binding: false,
2003
+ defaultValue: null
2004
+ }
2005
+ ],
2006
+ inputPattern: "mergedBody",
2007
+ outputSource: "=Error",
2008
+ outputType: "jsonSchema",
2009
+ outputName: "Error",
2010
+ bindingPattern: "none",
2011
+ requiresDiscovery: false,
2012
+ isDynamic: false,
2013
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2014
+ <bpmn:extensionElements>
2015
+ <uipath:activity version="v1">
2016
+ <uipath:type value="Orchestrator.SetTransactionStatus" version="v1" />
2017
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"QueueItem":{QueueItem},"Status":"{Status}","ErrorType":null,"Reason":null,"Details":null}]]></uipath:input>
2018
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{varId}" />
2019
+ </uipath:activity>
2020
+ </bpmn:extensionElements>
2021
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2022
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2023
+ </bpmn:ServiceTask>`,
2024
+ 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.',
2025
+ inputFields: [
2026
+ {
2027
+ name: "QueueItem",
2028
+ displayName: "Transaction item",
2029
+ type: "object",
2030
+ required: true,
2031
+ hidden: false,
2032
+ isPrimaryKey: false,
2033
+ binding: false,
1992
2034
  defaultValue: null,
1993
- bindingInfo: {
1994
- resource: "process",
1995
- resourceKeyPattern: "${metadata.key}",
1996
- propertyAttribute: "Key"
1997
- }
2035
+ target: "body"
1998
2036
  },
1999
2037
  {
2000
- name: "folderId",
2001
- type: "string",
2038
+ name: "Status",
2039
+ type: "dropdown",
2040
+ required: true,
2041
+ hidden: false,
2042
+ isPrimaryKey: false,
2043
+ binding: false,
2044
+ defaultValue: null,
2045
+ enum: [
2046
+ "Successful",
2047
+ "Failed"
2048
+ ],
2049
+ target: "body"
2050
+ },
2051
+ {
2052
+ name: "ErrorType",
2053
+ type: "dropdown",
2002
2054
  required: false,
2003
- hidden: true,
2055
+ hidden: false,
2004
2056
  isPrimaryKey: false,
2005
2057
  binding: false,
2006
- defaultValue: null
2058
+ defaultValue: null,
2059
+ enum: [
2060
+ "BusinessException",
2061
+ "ApplicationException"
2062
+ ],
2063
+ target: "body"
2007
2064
  },
2008
2065
  {
2009
- name: "folderPath",
2066
+ name: "Reason",
2010
2067
  type: "string",
2011
2068
  required: false,
2012
- hidden: true,
2069
+ hidden: false,
2013
2070
  isPrimaryKey: false,
2014
2071
  binding: false,
2015
- defaultValue: null
2072
+ defaultValue: null,
2073
+ target: "body"
2016
2074
  },
2017
2075
  {
2018
- name: "name",
2076
+ name: "Details",
2077
+ type: "string",
2078
+ required: false,
2079
+ hidden: false,
2080
+ isPrimaryKey: false,
2081
+ binding: false,
2082
+ defaultValue: null,
2083
+ target: "body"
2084
+ }
2085
+ ],
2086
+ inputName: "body",
2087
+ inputTarget: "body"
2088
+ },
2089
+ "Orchestrator.SetTransactionProgress": {
2090
+ extensionType: "Orchestrator.SetTransactionProgress",
2091
+ label: "Set transaction progress",
2092
+ bpmnElement: "bpmn:ServiceTask",
2093
+ placements: {
2094
+ activity: {
2095
+ type: "bpmn:ServiceTask"
2096
+ }
2097
+ },
2098
+ extensionTag: "uipath:activity",
2099
+ contextFields: [
2100
+ {
2101
+ name: "_label",
2019
2102
  type: "string",
2020
2103
  required: false,
2021
2104
  hidden: true,
@@ -2025,74 +2108,151 @@ var bpmn_spec_default = {
2025
2108
  }
2026
2109
  ],
2027
2110
  inputPattern: "mergedBody",
2028
- inputName: "JobArguments",
2029
- inputTarget: "bodyField",
2030
- outputSource: null,
2031
- outputType: "Orchestrator.RunJob",
2032
- outputName: "Process response",
2033
- useRelativeSource: true,
2034
- bindingPattern: "process",
2035
- bindingInfo: {
2036
- resource: "process",
2037
- resourceKeyPattern: "${metadata.key}",
2038
- propertyAttribute: "Key",
2039
- contextField: "releaseKey"
2040
- },
2041
- requiresDiscovery: true,
2042
- isDynamic: true,
2043
- xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
2111
+ outputSource: "=Error",
2112
+ outputType: "jsonSchema",
2113
+ outputName: "Error",
2114
+ bindingPattern: "none",
2115
+ requiresDiscovery: false,
2116
+ isDynamic: false,
2117
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2044
2118
  <bpmn:extensionElements>
2045
2119
  <uipath:activity version="v1">
2046
- <uipath:type value="Orchestrator.StartAgenticProcess" version="v1" />
2047
- <uipath:context>
2048
- <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
2049
- <uipath:input name="folderId" type="string" value="{folderId}" />
2050
- <uipath:input name="folderPath" type="string" value="{folderPath}" />
2051
- <uipath:input name="name" type="string" value="{name}" />
2052
- </uipath:context>
2053
- <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
2054
- <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
2120
+ <uipath:type value="Orchestrator.SetTransactionProgress" version="v1" />
2121
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"QueueItem":{QueueItem},"Progress":"{Progress}"}]]></uipath:input>
2122
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{varId}" />
2055
2123
  </uipath:activity>
2056
2124
  </bpmn:extensionElements>
2057
2125
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2058
2126
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2059
- </bpmn:CallActivity>`,
2060
- discoveryNotes: "Uses getSupportedOrchestratorTasks('ProcessOrchestration', search, 0, 100, true) to list available agentic processes"
2127
+ </bpmn:ServiceTask>`,
2128
+ inputFields: [
2129
+ {
2130
+ name: "QueueItem",
2131
+ displayName: "Transaction item",
2132
+ type: "object",
2133
+ required: true,
2134
+ hidden: false,
2135
+ isPrimaryKey: false,
2136
+ binding: false,
2137
+ defaultValue: null,
2138
+ target: "body"
2139
+ },
2140
+ {
2141
+ name: "Progress",
2142
+ type: "string",
2143
+ required: true,
2144
+ hidden: false,
2145
+ isPrimaryKey: false,
2146
+ binding: false,
2147
+ defaultValue: null,
2148
+ target: "body"
2149
+ }
2150
+ ],
2151
+ inputName: "body",
2152
+ inputTarget: "body",
2153
+ 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.'
2061
2154
  },
2062
- "Orchestrator.StartAgenticProcessAsync": {
2063
- extensionType: "Orchestrator.StartAgenticProcessAsync",
2064
- label: "Start agentic process",
2065
- bpmnElement: "bpmn:CallActivity",
2155
+ "Orchestrator.PostponeTransactionItem": {
2156
+ extensionType: "Orchestrator.PostponeTransactionItem",
2157
+ label: "Postpone transaction item",
2158
+ bpmnElement: "bpmn:ServiceTask",
2066
2159
  placements: {
2067
2160
  activity: {
2068
- type: "bpmn:CallActivity"
2161
+ type: "bpmn:ServiceTask"
2069
2162
  }
2070
2163
  },
2071
2164
  extensionTag: "uipath:activity",
2072
2165
  contextFields: [
2073
2166
  {
2074
- name: "releaseKey",
2075
- displayName: "Process",
2167
+ name: "_label",
2076
2168
  type: "string",
2077
2169
  required: false,
2078
2170
  hidden: true,
2079
2171
  isPrimaryKey: false,
2080
2172
  binding: false,
2173
+ defaultValue: null
2174
+ }
2175
+ ],
2176
+ inputPattern: "mergedBody",
2177
+ outputSource: "=Error",
2178
+ outputType: "jsonSchema",
2179
+ outputName: "Error",
2180
+ bindingPattern: "none",
2181
+ requiresDiscovery: false,
2182
+ isDynamic: false,
2183
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2184
+ <bpmn:extensionElements>
2185
+ <uipath:activity version="v1">
2186
+ <uipath:type value="Orchestrator.PostponeTransactionItem" version="v1" />
2187
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"QueueItem":{QueueItem},"PostponeDate":"{PostponeDate}","DueDate":null}]]></uipath:input>
2188
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{varId}" />
2189
+ </uipath:activity>
2190
+ </bpmn:extensionElements>
2191
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2192
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2193
+ </bpmn:ServiceTask>`,
2194
+ inputFields: [
2195
+ {
2196
+ name: "QueueItem",
2197
+ displayName: "Transaction item",
2198
+ type: "object",
2199
+ required: true,
2200
+ hidden: false,
2201
+ isPrimaryKey: false,
2202
+ binding: false,
2081
2203
  defaultValue: null,
2082
- bindingInfo: {
2083
- resource: "process",
2084
- resourceKeyPattern: "${metadata.key}",
2085
- propertyAttribute: "Key"
2086
- }
2204
+ target: "body"
2087
2205
  },
2088
2206
  {
2089
- name: "folderId",
2207
+ name: "PostponeDate",
2208
+ type: "datetime",
2209
+ required: true,
2210
+ hidden: false,
2211
+ isPrimaryKey: false,
2212
+ binding: false,
2213
+ defaultValue: null,
2214
+ target: "body"
2215
+ },
2216
+ {
2217
+ name: "DueDate",
2218
+ type: "datetime",
2219
+ required: false,
2220
+ hidden: false,
2221
+ isPrimaryKey: false,
2222
+ binding: false,
2223
+ defaultValue: null,
2224
+ target: "body"
2225
+ }
2226
+ ],
2227
+ inputName: "body",
2228
+ inputTarget: "body",
2229
+ 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.'
2230
+ },
2231
+ "Orchestrator.BulkAddQueueItems": {
2232
+ extensionType: "Orchestrator.BulkAddQueueItems",
2233
+ label: "Bulk add queue items",
2234
+ bpmnElement: "bpmn:ServiceTask",
2235
+ placements: {
2236
+ activity: {
2237
+ type: "bpmn:ServiceTask"
2238
+ }
2239
+ },
2240
+ extensionTag: "uipath:activity",
2241
+ contextFields: [
2242
+ {
2243
+ name: "queueName",
2244
+ displayName: "Queue name",
2090
2245
  type: "string",
2091
2246
  required: false,
2092
2247
  hidden: true,
2093
2248
  isPrimaryKey: false,
2094
2249
  binding: false,
2095
- defaultValue: null
2250
+ defaultValue: null,
2251
+ bindingInfo: {
2252
+ resource: "queue",
2253
+ resourceKeyPattern: "${folderPath}.${name}",
2254
+ propertyAttribute: "name"
2255
+ }
2096
2256
  },
2097
2257
  {
2098
2258
  name: "folderPath",
@@ -2104,7 +2264,7 @@ var bpmn_spec_default = {
2104
2264
  defaultValue: null
2105
2265
  },
2106
2266
  {
2107
- name: "name",
2267
+ name: "_label",
2108
2268
  type: "string",
2109
2269
  required: false,
2110
2270
  hidden: true,
@@ -2114,53 +2274,136 @@ var bpmn_spec_default = {
2114
2274
  }
2115
2275
  ],
2116
2276
  inputPattern: "mergedBody",
2117
- inputName: "JobArguments",
2118
- inputTarget: "bodyField",
2119
- outputSource: null,
2120
- outputType: null,
2121
- outputName: null,
2122
- 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.",
2123
- bindingPattern: "process",
2277
+ outputSource: "=response",
2278
+ outputType: "jsonSchema",
2279
+ outputName: "response",
2280
+ bindingPattern: "queue",
2124
2281
  bindingInfo: {
2125
- resource: "process",
2126
- resourceKeyPattern: "${metadata.key}",
2127
- propertyAttribute: "Key",
2128
- contextField: "releaseKey"
2282
+ resource: "queue",
2283
+ resourceKeyPattern: "${folderPath}.${name}",
2284
+ propertyAttribute: "name",
2285
+ contextField: "queueName"
2129
2286
  },
2130
2287
  requiresDiscovery: true,
2131
- isDynamic: true,
2132
- xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
2288
+ isDynamic: false,
2289
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2133
2290
  <bpmn:extensionElements>
2134
2291
  <uipath:activity version="v1">
2135
- <uipath:type value="Orchestrator.StartAgenticProcessAsync" version="v1" />
2292
+ <uipath:type value="Orchestrator.BulkAddQueueItems" version="v2" />
2136
2293
  <uipath:context>
2137
- <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
2138
- <uipath:input name="folderId" type="string" value="{folderId}" />
2294
+ <uipath:input name="queueName" type="string" value="{queueName}" />
2139
2295
  <uipath:input name="folderPath" type="string" value="{folderPath}" />
2140
- <uipath:input name="name" type="string" value="{name}" />
2141
2296
  </uipath:context>
2142
- <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
2297
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"QueueItems":{QueueItems},"CommitStrategy":"{CommitStrategy}"}]]></uipath:input>
2298
+ <uipath:output name="response" type="jsonSchema" source="=response" var="{varId}" />
2143
2299
  </uipath:activity>
2144
2300
  </bpmn:extensionElements>
2145
2301
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2146
2302
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2147
- </bpmn:CallActivity>`,
2148
- discoveryNotes: "Uses getSupportedOrchestratorTasks('ProcessOrchestration', search, 0, 100, true) to list available agentic processes"
2303
+ </bpmn:ServiceTask>`,
2304
+ discoveryNotes: "Uses getQueueDefinitions(serviceType, search) to list available queues.",
2305
+ 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.',
2306
+ 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.",
2307
+ inputFields: [
2308
+ {
2309
+ name: "QueueItems",
2310
+ displayName: "Transaction items",
2311
+ type: "json",
2312
+ required: true,
2313
+ hidden: false,
2314
+ isPrimaryKey: false,
2315
+ binding: false,
2316
+ target: "body"
2317
+ },
2318
+ {
2319
+ name: "CommitStrategy",
2320
+ displayName: "Commit strategy",
2321
+ type: "dropdown",
2322
+ required: true,
2323
+ hidden: false,
2324
+ isPrimaryKey: false,
2325
+ binding: false,
2326
+ defaultValue: "AllOrNothing",
2327
+ enum: [
2328
+ "AllOrNothing",
2329
+ "StopOnFirstFailure",
2330
+ "ProcessAllIndependently"
2331
+ ],
2332
+ target: "body"
2333
+ }
2334
+ ],
2335
+ inputName: "body",
2336
+ inputTarget: "body"
2149
2337
  },
2150
- "Orchestrator.StartCaseMgmtProcess": {
2151
- extensionType: "Orchestrator.StartCaseMgmtProcess",
2152
- label: "Start and wait for case management",
2153
- bpmnElement: "bpmn:CallActivity",
2338
+ "Orchestrator.DeleteQueueItems": {
2339
+ extensionType: "Orchestrator.DeleteQueueItems",
2340
+ label: "Delete queue items",
2341
+ bpmnElement: "bpmn:ServiceTask",
2154
2342
  placements: {
2155
2343
  activity: {
2156
- type: "bpmn:CallActivity"
2344
+ type: "bpmn:ServiceTask"
2157
2345
  }
2158
2346
  },
2159
2347
  extensionTag: "uipath:activity",
2160
2348
  contextFields: [
2161
2349
  {
2162
- name: "releaseKey",
2163
- displayName: "Process",
2350
+ name: "_label",
2351
+ type: "string",
2352
+ required: false,
2353
+ hidden: true,
2354
+ isPrimaryKey: false,
2355
+ binding: false,
2356
+ defaultValue: null
2357
+ }
2358
+ ],
2359
+ inputPattern: "mergedBody",
2360
+ outputSource: "=deletedCount",
2361
+ outputType: "jsonSchema",
2362
+ outputName: "deletedCount",
2363
+ bindingPattern: "none",
2364
+ requiresDiscovery: false,
2365
+ isDynamic: false,
2366
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2367
+ <bpmn:extensionElements>
2368
+ <uipath:activity version="v1">
2369
+ <uipath:type value="Orchestrator.DeleteQueueItems" version="v1" />
2370
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"Items":{Items}}]]></uipath:input>
2371
+ <uipath:output name="deletedCount" type="jsonSchema" source="=deletedCount" var="{varId}" />
2372
+ </uipath:activity>
2373
+ </bpmn:extensionElements>
2374
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2375
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2376
+ </bpmn:ServiceTask>`,
2377
+ 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.',
2378
+ inputFields: [
2379
+ {
2380
+ name: "Items",
2381
+ displayName: "Transaction items",
2382
+ type: "json",
2383
+ required: true,
2384
+ hidden: false,
2385
+ isPrimaryKey: false,
2386
+ binding: false,
2387
+ target: "body"
2388
+ }
2389
+ ],
2390
+ inputName: "body",
2391
+ inputTarget: "body"
2392
+ },
2393
+ "Orchestrator.GetTransactionItem": {
2394
+ extensionType: "Orchestrator.GetTransactionItem",
2395
+ label: "Get transaction item",
2396
+ bpmnElement: "bpmn:ServiceTask",
2397
+ placements: {
2398
+ activity: {
2399
+ type: "bpmn:ServiceTask"
2400
+ }
2401
+ },
2402
+ extensionTag: "uipath:activity",
2403
+ contextFields: [
2404
+ {
2405
+ name: "queueName",
2406
+ displayName: "Queue name",
2164
2407
  type: "string",
2165
2408
  required: false,
2166
2409
  hidden: true,
@@ -2168,13 +2411,13 @@ var bpmn_spec_default = {
2168
2411
  binding: false,
2169
2412
  defaultValue: null,
2170
2413
  bindingInfo: {
2171
- resource: "process",
2172
- resourceKeyPattern: "${metadata.key}",
2173
- propertyAttribute: "Key"
2414
+ resource: "queue",
2415
+ resourceKeyPattern: "${folderPath}.${name}",
2416
+ propertyAttribute: "name"
2174
2417
  }
2175
2418
  },
2176
2419
  {
2177
- name: "folderId",
2420
+ name: "folderPath",
2178
2421
  type: "string",
2179
2422
  required: false,
2180
2423
  hidden: true,
@@ -2183,7 +2426,7 @@ var bpmn_spec_default = {
2183
2426
  defaultValue: null
2184
2427
  },
2185
2428
  {
2186
- name: "folderPath",
2429
+ name: "_label",
2187
2430
  type: "string",
2188
2431
  required: false,
2189
2432
  hidden: true,
@@ -2192,78 +2435,107 @@ var bpmn_spec_default = {
2192
2435
  defaultValue: null
2193
2436
  },
2194
2437
  {
2195
- name: "name",
2438
+ name: "reference",
2439
+ displayName: "Reference",
2196
2440
  type: "string",
2197
2441
  required: false,
2198
2442
  hidden: true,
2199
2443
  isPrimaryKey: false,
2200
2444
  binding: false,
2201
2445
  defaultValue: null
2446
+ },
2447
+ {
2448
+ name: "filterStrategy",
2449
+ displayName: "Reference filter strategy",
2450
+ type: "string",
2451
+ required: false,
2452
+ hidden: true,
2453
+ isPrimaryKey: false,
2454
+ binding: false,
2455
+ defaultValue: "StartsWith",
2456
+ enum: [
2457
+ "StartsWith",
2458
+ "Equals"
2459
+ ]
2202
2460
  }
2203
2461
  ],
2204
- inputPattern: "mergedBody",
2205
- inputName: "JobArguments",
2206
- inputTarget: "bodyField",
2207
- outputSource: null,
2208
- outputType: "Orchestrator.RunJob",
2209
- outputName: "Process response",
2210
- useRelativeSource: true,
2211
- bindingPattern: "process",
2462
+ inputPattern: "none",
2463
+ outputSource: "=result",
2464
+ outputType: "jsonSchema",
2465
+ outputName: "TransactionItem",
2466
+ additionalOutputs: [
2467
+ {
2468
+ name: "hasItem",
2469
+ type: "boolean",
2470
+ source: "=hasItem",
2471
+ required: true
2472
+ },
2473
+ {
2474
+ name: "Error",
2475
+ type: "jsonSchema",
2476
+ source: "=Error",
2477
+ required: true
2478
+ }
2479
+ ],
2480
+ bindingPattern: "queue",
2212
2481
  bindingInfo: {
2213
- resource: "process",
2214
- resourceKeyPattern: "${metadata.key}",
2215
- propertyAttribute: "Key",
2216
- contextField: "releaseKey"
2482
+ resource: "queue",
2483
+ resourceKeyPattern: "${folderPath}.${name}",
2484
+ propertyAttribute: "name",
2485
+ contextField: "queueName"
2217
2486
  },
2218
2487
  requiresDiscovery: true,
2219
- isDynamic: true,
2220
- xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
2488
+ isDynamic: false,
2489
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2221
2490
  <bpmn:extensionElements>
2222
2491
  <uipath:activity version="v1">
2223
- <uipath:type value="Orchestrator.StartCaseMgmtProcess" version="v1" />
2492
+ <uipath:type value="Orchestrator.GetTransactionItem" version="v2" />
2224
2493
  <uipath:context>
2225
- <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
2226
- <uipath:input name="folderId" type="string" value="{folderId}" />
2494
+ <uipath:input name="queueName" type="string" value="{queueName}" />
2227
2495
  <uipath:input name="folderPath" type="string" value="{folderPath}" />
2228
- <uipath:input name="name" type="string" value="{name}" />
2496
+ <uipath:input name="reference" type="string" value="" />
2497
+ <uipath:input name="filterStrategy" type="string" value="StartsWith" />
2229
2498
  </uipath:context>
2230
- <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
2231
- <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
2499
+ <uipath:output name="hasItem" type="boolean" source="=hasItem" var="{hasItemVarId}" />
2500
+ <uipath:output name="TransactionItem" type="jsonSchema" source="=result" var="{varId}" />
2501
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
2232
2502
  </uipath:activity>
2233
2503
  </bpmn:extensionElements>
2234
2504
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2235
2505
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2236
- </bpmn:CallActivity>`,
2237
- discoveryNotes: "Uses getSupportedOrchestratorTasks('caseManagement', search, 0, 100, true) to list available case management processes"
2506
+ </bpmn:ServiceTask>`,
2507
+ discoveryNotes: "Uses getQueueDefinitions(serviceType, search) to list available queues.",
2508
+ 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.",
2509
+ contextFieldNotes: "reference and filterStrategy live in uipath:context next to queueName; the backend reads them there. filterStrategy mirrors Orchestrator's QueueItemsFilterStrategy (default StartsWith)."
2238
2510
  },
2239
- "Orchestrator.StartCaseMgmtProcessAsync": {
2240
- extensionType: "Orchestrator.StartCaseMgmtProcessAsync",
2241
- label: "Start case management",
2242
- bpmnElement: "bpmn:CallActivity",
2511
+ "Orchestrator.GetQueueItems": {
2512
+ extensionType: "Orchestrator.GetQueueItems",
2513
+ label: "Get queue items",
2514
+ bpmnElement: "bpmn:ServiceTask",
2243
2515
  placements: {
2244
2516
  activity: {
2245
- type: "bpmn:CallActivity"
2517
+ type: "bpmn:ServiceTask"
2246
2518
  }
2247
2519
  },
2248
2520
  extensionTag: "uipath:activity",
2249
2521
  contextFields: [
2250
2522
  {
2251
- name: "releaseKey",
2252
- displayName: "Process",
2523
+ name: "queueName",
2253
2524
  type: "string",
2254
2525
  required: false,
2255
2526
  hidden: true,
2256
2527
  isPrimaryKey: false,
2257
2528
  binding: false,
2258
2529
  defaultValue: null,
2530
+ displayName: "Queue name",
2259
2531
  bindingInfo: {
2260
- resource: "process",
2261
- resourceKeyPattern: "${metadata.key}",
2262
- propertyAttribute: "Key"
2532
+ resource: "queue",
2533
+ resourceKeyPattern: "${folderPath}.${name}",
2534
+ propertyAttribute: "name"
2263
2535
  }
2264
2536
  },
2265
2537
  {
2266
- name: "folderId",
2538
+ name: "folderPath",
2267
2539
  type: "string",
2268
2540
  required: false,
2269
2541
  hidden: true,
@@ -2272,7 +2544,7 @@ var bpmn_spec_default = {
2272
2544
  defaultValue: null
2273
2545
  },
2274
2546
  {
2275
- name: "folderPath",
2547
+ name: "_label",
2276
2548
  type: "string",
2277
2549
  required: false,
2278
2550
  hidden: true,
@@ -2281,74 +2553,217 @@ var bpmn_spec_default = {
2281
2553
  defaultValue: null
2282
2554
  },
2283
2555
  {
2284
- name: "name",
2556
+ name: "statuses",
2285
2557
  type: "string",
2286
2558
  required: false,
2287
2559
  hidden: true,
2288
2560
  isPrimaryKey: false,
2289
2561
  binding: false,
2290
- defaultValue: null
2562
+ defaultValue: null,
2563
+ displayName: "Status"
2564
+ },
2565
+ {
2566
+ name: "reference",
2567
+ type: "string",
2568
+ required: false,
2569
+ hidden: true,
2570
+ isPrimaryKey: false,
2571
+ binding: false,
2572
+ defaultValue: null,
2573
+ displayName: "Reference"
2291
2574
  }
2292
2575
  ],
2293
- inputPattern: "mergedBody",
2294
- inputName: "JobArguments",
2295
- inputTarget: "bodyField",
2296
- outputSource: null,
2297
- outputType: null,
2298
- outputName: null,
2299
- 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.",
2300
- bindingPattern: "process",
2576
+ inputPattern: "none",
2577
+ outputSource: "=queueItems",
2578
+ outputType: "jsonSchema",
2579
+ outputName: "QueueItems",
2580
+ additionalOutputs: [
2581
+ {
2582
+ name: "Count",
2583
+ type: "number",
2584
+ source: "=count",
2585
+ required: true
2586
+ },
2587
+ {
2588
+ name: "Error",
2589
+ type: "jsonSchema",
2590
+ source: "=Error",
2591
+ required: true
2592
+ }
2593
+ ],
2594
+ bindingPattern: "queue",
2301
2595
  bindingInfo: {
2302
- resource: "process",
2303
- resourceKeyPattern: "${metadata.key}",
2304
- propertyAttribute: "Key",
2305
- contextField: "releaseKey"
2596
+ resource: "queue",
2597
+ resourceKeyPattern: "${folderPath}.${name}",
2598
+ propertyAttribute: "name",
2599
+ contextField: "queueName"
2306
2600
  },
2307
2601
  requiresDiscovery: true,
2308
- isDynamic: true,
2309
- xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
2602
+ isDynamic: false,
2603
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2310
2604
  <bpmn:extensionElements>
2311
2605
  <uipath:activity version="v1">
2312
- <uipath:type value="Orchestrator.StartCaseMgmtProcessAsync" version="v1" />
2606
+ <uipath:type value="Orchestrator.GetQueueItems" version="v2" />
2313
2607
  <uipath:context>
2314
- <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
2315
- <uipath:input name="folderId" type="string" value="{folderId}" />
2608
+ <uipath:input name="queueName" type="string" value="{queueName}" />
2316
2609
  <uipath:input name="folderPath" type="string" value="{folderPath}" />
2317
- <uipath:input name="name" type="string" value="{name}" />
2610
+ <uipath:input name="statuses" type="string" value="{statuses}" />
2611
+ <uipath:input name="reference" type="string" value="{reference}" />
2318
2612
  </uipath:context>
2319
- <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
2613
+ <uipath:output name="QueueItems" type="jsonSchema" source="=queueItems" var="{varId}" />
2614
+ <uipath:output name="Count" type="number" source="=count" var="{countVarId}" />
2615
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
2320
2616
  </uipath:activity>
2321
2617
  </bpmn:extensionElements>
2322
2618
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2323
2619
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2324
- </bpmn:CallActivity>`,
2325
- discoveryNotes: "Uses getSupportedOrchestratorTasks('caseManagement', search, 0, 100, true) to list available case management processes"
2620
+ </bpmn:ServiceTask>`,
2621
+ discoveryNotes: "Uses getQueueDefinitions(serviceType, search) to list available queues.",
2622
+ 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.",
2623
+ contextFieldNotes: "statuses and reference filter the returned items and live in uipath:context alongside queueName."
2326
2624
  },
2327
- "Orchestrator.StartFlowProcess": {
2328
- extensionType: "Orchestrator.StartFlowProcess",
2329
- label: "Start and wait for Maestro Flow",
2330
- bpmnElement: "bpmn:CallActivity",
2625
+ "Queue.WaitForEvent": {
2626
+ extensionType: "Queue.WaitForEvent",
2627
+ label: "Wait for queue item",
2628
+ bpmnElement: "bpmn:ReceiveTask",
2331
2629
  placements: {
2332
2630
  activity: {
2333
- type: "bpmn:CallActivity"
2631
+ type: "bpmn:ReceiveTask"
2632
+ },
2633
+ event: {
2634
+ type: "bpmn:IntermediateCatchEvent",
2635
+ eventDefinition: {
2636
+ type: "bpmn:MessageEventDefinition"
2637
+ }
2334
2638
  }
2335
2639
  },
2336
- extensionTag: "uipath:activity",
2640
+ extensionTag: "uipath:event",
2337
2641
  contextFields: [
2338
2642
  {
2339
- name: "releaseKey",
2340
- displayName: "Maestro Flow",
2643
+ name: "queueName",
2341
2644
  type: "string",
2342
2645
  required: false,
2343
2646
  hidden: true,
2344
2647
  isPrimaryKey: false,
2345
2648
  binding: false,
2346
2649
  defaultValue: null,
2650
+ displayName: "Queue name",
2347
2651
  bindingInfo: {
2348
- resource: "process",
2349
- resourceKeyPattern: "${metadata.key}",
2350
- propertyAttribute: "Key"
2351
- }
2652
+ resource: "queue",
2653
+ resourceKeyPattern: "${folderPath}.${name}",
2654
+ propertyAttribute: "name"
2655
+ }
2656
+ },
2657
+ {
2658
+ name: "folderPath",
2659
+ type: "string",
2660
+ required: false,
2661
+ hidden: true,
2662
+ isPrimaryKey: false,
2663
+ binding: false,
2664
+ defaultValue: null
2665
+ },
2666
+ {
2667
+ name: "_label",
2668
+ type: "string",
2669
+ required: false,
2670
+ hidden: true,
2671
+ isPrimaryKey: false,
2672
+ binding: false,
2673
+ defaultValue: null
2674
+ },
2675
+ {
2676
+ name: "reference",
2677
+ type: "string",
2678
+ required: false,
2679
+ hidden: true,
2680
+ isPrimaryKey: false,
2681
+ binding: false,
2682
+ defaultValue: null,
2683
+ displayName: "Reference"
2684
+ },
2685
+ {
2686
+ name: "filterStrategy",
2687
+ type: "string",
2688
+ required: false,
2689
+ hidden: true,
2690
+ isPrimaryKey: false,
2691
+ binding: false,
2692
+ defaultValue: "StartsWith",
2693
+ displayName: "Reference filter strategy",
2694
+ enum: [
2695
+ "StartsWith",
2696
+ "Equals"
2697
+ ]
2698
+ }
2699
+ ],
2700
+ inputPattern: "none",
2701
+ outputSource: "=result",
2702
+ outputType: "jsonSchema",
2703
+ outputName: "TransactionItem",
2704
+ additionalOutputs: [
2705
+ {
2706
+ name: "Error",
2707
+ type: "jsonSchema",
2708
+ source: "=Error",
2709
+ required: true
2710
+ }
2711
+ ],
2712
+ bindingPattern: "queue",
2713
+ bindingInfo: {
2714
+ resource: "queue",
2715
+ resourceKeyPattern: "${folderPath}.${name}",
2716
+ propertyAttribute: "name",
2717
+ contextField: "queueName"
2718
+ },
2719
+ requiresDiscovery: true,
2720
+ isDynamic: false,
2721
+ xmlTemplate: `<bpmn:ReceiveTask id="{id}" name="{name}">
2722
+ <bpmn:extensionElements>
2723
+ <uipath:event version="v1">
2724
+ <uipath:type value="Queue.WaitForEvent" version="v2" />
2725
+ <uipath:context>
2726
+ <uipath:input name="queueName" type="string" value="{queueName}" />
2727
+ <uipath:input name="folderPath" type="string" value="{folderPath}" />
2728
+ <uipath:input name="reference" type="string" value="" />
2729
+ <uipath:input name="filterStrategy" type="string" value="StartsWith" />
2730
+ </uipath:context>
2731
+ <uipath:output name="TransactionItem" type="jsonSchema" source="=result" var="{varId}" />
2732
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
2733
+ </uipath:event>
2734
+ </bpmn:extensionElements>
2735
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2736
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2737
+ </bpmn:ReceiveTask>`,
2738
+ discoveryNotes: "Uses getQueueDefinitions(serviceType, search) to list available queues.",
2739
+ 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.",
2740
+ extensionTagNotes: "Registered in the PO.Frontend isEvents array, so it serializes as uipath:event and never reaches the merged-body branch."
2741
+ },
2742
+ "Orchestrator.StartAgenticProcess": {
2743
+ extensionType: "Orchestrator.StartAgenticProcess",
2744
+ label: "Start and wait for agentic process",
2745
+ bpmnElement: "bpmn:CallActivity",
2746
+ placements: {
2747
+ activity: {
2748
+ type: "bpmn:CallActivity"
2749
+ }
2750
+ },
2751
+ extensionTag: "uipath:activity",
2752
+ contextFields: [
2753
+ {
2754
+ name: "releaseKey",
2755
+ displayName: "Process",
2756
+ type: "string",
2757
+ required: false,
2758
+ hidden: true,
2759
+ isPrimaryKey: false,
2760
+ binding: false,
2761
+ defaultValue: null,
2762
+ bindingInfo: {
2763
+ resource: "process",
2764
+ resourceKeyPattern: "${metadata.key}",
2765
+ propertyAttribute: "Key"
2766
+ }
2352
2767
  },
2353
2768
  {
2354
2769
  name: "folderId",
@@ -2397,7 +2812,7 @@ var bpmn_spec_default = {
2397
2812
  xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
2398
2813
  <bpmn:extensionElements>
2399
2814
  <uipath:activity version="v1">
2400
- <uipath:type value="Orchestrator.StartFlowProcess" version="v2" />
2815
+ <uipath:type value="Orchestrator.StartAgenticProcess" version="v1" />
2401
2816
  <uipath:context>
2402
2817
  <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
2403
2818
  <uipath:input name="folderId" type="string" value="{folderId}" />
@@ -2411,11 +2826,11 @@ var bpmn_spec_default = {
2411
2826
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2412
2827
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2413
2828
  </bpmn:CallActivity>`,
2414
- discoveryNotes: "Uses getSupportedOrchestratorTasks('Flow', search, 0, 100, true) to list available flow processes. Studio Web bindings use the Flow process resource subtype."
2829
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('ProcessOrchestration', search, 0, 100, true) to list available agentic processes"
2415
2830
  },
2416
- "Orchestrator.StartFlowProcessAsync": {
2417
- extensionType: "Orchestrator.StartFlowProcessAsync",
2418
- label: "Start Maestro Flow",
2831
+ "Orchestrator.StartAgenticProcessAsync": {
2832
+ extensionType: "Orchestrator.StartAgenticProcessAsync",
2833
+ label: "Start agentic process",
2419
2834
  bpmnElement: "bpmn:CallActivity",
2420
2835
  placements: {
2421
2836
  activity: {
@@ -2426,7 +2841,7 @@ var bpmn_spec_default = {
2426
2841
  contextFields: [
2427
2842
  {
2428
2843
  name: "releaseKey",
2429
- displayName: "Maestro Flow",
2844
+ displayName: "Process",
2430
2845
  type: "string",
2431
2846
  required: false,
2432
2847
  hidden: true,
@@ -2473,7 +2888,7 @@ var bpmn_spec_default = {
2473
2888
  outputSource: null,
2474
2889
  outputType: null,
2475
2890
  outputName: null,
2476
- 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.",
2891
+ 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.",
2477
2892
  bindingPattern: "process",
2478
2893
  bindingInfo: {
2479
2894
  resource: "process",
@@ -2486,7 +2901,7 @@ var bpmn_spec_default = {
2486
2901
  xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
2487
2902
  <bpmn:extensionElements>
2488
2903
  <uipath:activity version="v1">
2489
- <uipath:type value="Orchestrator.StartFlowProcessAsync" version="v2" />
2904
+ <uipath:type value="Orchestrator.StartAgenticProcessAsync" version="v1" />
2490
2905
  <uipath:context>
2491
2906
  <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
2492
2907
  <uipath:input name="folderId" type="string" value="{folderId}" />
@@ -2499,191 +2914,990 @@ var bpmn_spec_default = {
2499
2914
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2500
2915
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2501
2916
  </bpmn:CallActivity>`,
2502
- discoveryNotes: "Uses getSupportedOrchestratorTasks('Flow', search, 0, 100, true) to list available flow processes."
2917
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('ProcessOrchestration', search, 0, 100, true) to list available agentic processes"
2503
2918
  },
2504
- "A2A.AgentExecution": {
2505
- extensionType: "A2A.AgentExecution",
2506
- label: "Start and wait for A2A agent",
2507
- bpmnElement: "bpmn:ServiceTask",
2919
+ "Orchestrator.StartCaseMgmtProcess": {
2920
+ extensionType: "Orchestrator.StartCaseMgmtProcess",
2921
+ label: "Start and wait for case management",
2922
+ bpmnElement: "bpmn:CallActivity",
2508
2923
  placements: {
2509
2924
  activity: {
2510
- type: "bpmn:ServiceTask"
2925
+ type: "bpmn:CallActivity"
2511
2926
  }
2512
2927
  },
2513
2928
  extensionTag: "uipath:activity",
2514
- contextFields: [],
2929
+ contextFields: [
2930
+ {
2931
+ name: "releaseKey",
2932
+ displayName: "Process",
2933
+ type: "string",
2934
+ required: false,
2935
+ hidden: true,
2936
+ isPrimaryKey: false,
2937
+ binding: false,
2938
+ defaultValue: null,
2939
+ bindingInfo: {
2940
+ resource: "process",
2941
+ resourceKeyPattern: "${metadata.key}",
2942
+ propertyAttribute: "Key"
2943
+ }
2944
+ },
2945
+ {
2946
+ name: "folderId",
2947
+ type: "string",
2948
+ required: false,
2949
+ hidden: true,
2950
+ isPrimaryKey: false,
2951
+ binding: false,
2952
+ defaultValue: null
2953
+ },
2954
+ {
2955
+ name: "folderPath",
2956
+ type: "string",
2957
+ required: false,
2958
+ hidden: true,
2959
+ isPrimaryKey: false,
2960
+ binding: false,
2961
+ defaultValue: null
2962
+ },
2963
+ {
2964
+ name: "name",
2965
+ type: "string",
2966
+ required: false,
2967
+ hidden: true,
2968
+ isPrimaryKey: false,
2969
+ binding: false,
2970
+ defaultValue: null
2971
+ }
2972
+ ],
2515
2973
  inputPattern: "mergedBody",
2516
- inputName: "body",
2517
- inputTarget: "body",
2974
+ inputName: "JobArguments",
2975
+ inputTarget: "bodyField",
2518
2976
  outputSource: null,
2519
- outputType: "A2A.AgentExecution",
2520
- outputName: "a2aResponse",
2977
+ outputType: "Orchestrator.RunJob",
2978
+ outputName: "Process response",
2521
2979
  useRelativeSource: true,
2522
- bindingPattern: "none",
2523
- requiresDiscovery: false,
2980
+ bindingPattern: "process",
2981
+ bindingInfo: {
2982
+ resource: "process",
2983
+ resourceKeyPattern: "${metadata.key}",
2984
+ propertyAttribute: "Key",
2985
+ contextField: "releaseKey"
2986
+ },
2987
+ requiresDiscovery: true,
2524
2988
  isDynamic: true,
2525
- xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2989
+ xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
2526
2990
  <bpmn:extensionElements>
2527
2991
  <uipath:activity version="v1">
2528
- <uipath:type value="A2A.AgentExecution" version="v1" />
2529
- <uipath:input name="body" type="json" target="body"><![CDATA[{"agentUrl":"{agentUrl}","skillId":"{skillId}","input":"{input}","authToken":"{authToken}","agentName":"{agentName}"}]]></uipath:input>
2530
- <uipath:output name="a2aResponse" type="A2A.AgentExecution" var="{varId}" />
2992
+ <uipath:type value="Orchestrator.StartCaseMgmtProcess" version="v1" />
2993
+ <uipath:context>
2994
+ <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
2995
+ <uipath:input name="folderId" type="string" value="{folderId}" />
2996
+ <uipath:input name="folderPath" type="string" value="{folderPath}" />
2997
+ <uipath:input name="name" type="string" value="{name}" />
2998
+ </uipath:context>
2999
+ <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
3000
+ <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
2531
3001
  </uipath:activity>
2532
3002
  </bpmn:extensionElements>
2533
3003
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2534
3004
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2535
- </bpmn:ServiceTask>`,
2536
- 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.",
2537
- 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).",
2538
- inputFields: [
3005
+ </bpmn:CallActivity>`,
3006
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('caseManagement', search, 0, 100, true) to list available case management processes"
3007
+ },
3008
+ "Orchestrator.StartCaseMgmtProcessAsync": {
3009
+ extensionType: "Orchestrator.StartCaseMgmtProcessAsync",
3010
+ label: "Start case management",
3011
+ bpmnElement: "bpmn:CallActivity",
3012
+ placements: {
3013
+ activity: {
3014
+ type: "bpmn:CallActivity"
3015
+ }
3016
+ },
3017
+ extensionTag: "uipath:activity",
3018
+ contextFields: [
2539
3019
  {
2540
- name: "agentUrl",
2541
- displayName: "Agent URL",
3020
+ name: "releaseKey",
3021
+ displayName: "Process",
2542
3022
  type: "string",
2543
- required: true,
2544
- description: "URL of the A2A agent endpoint"
3023
+ required: false,
3024
+ hidden: true,
3025
+ isPrimaryKey: false,
3026
+ binding: false,
3027
+ defaultValue: null,
3028
+ bindingInfo: {
3029
+ resource: "process",
3030
+ resourceKeyPattern: "${metadata.key}",
3031
+ propertyAttribute: "Key"
3032
+ }
2545
3033
  },
2546
3034
  {
2547
- name: "skillId",
2548
- displayName: "Skill ID",
3035
+ name: "folderId",
2549
3036
  type: "string",
2550
- required: true,
2551
- description: "Identifier for the specific skill to invoke on the agent"
3037
+ required: false,
3038
+ hidden: true,
3039
+ isPrimaryKey: false,
3040
+ binding: false,
3041
+ defaultValue: null
2552
3042
  },
2553
3043
  {
2554
- name: "input",
2555
- displayName: "Input",
3044
+ name: "folderPath",
2556
3045
  type: "string",
2557
- required: true,
2558
- description: "Input text/message to send to the A2A agent"
3046
+ required: false,
3047
+ hidden: true,
3048
+ isPrimaryKey: false,
3049
+ binding: false,
3050
+ defaultValue: null
3051
+ },
3052
+ {
3053
+ name: "name",
3054
+ type: "string",
3055
+ required: false,
3056
+ hidden: true,
3057
+ isPrimaryKey: false,
3058
+ binding: false,
3059
+ defaultValue: null
3060
+ }
3061
+ ],
3062
+ inputPattern: "mergedBody",
3063
+ inputName: "JobArguments",
3064
+ inputTarget: "bodyField",
3065
+ outputSource: null,
3066
+ outputType: null,
3067
+ outputName: null,
3068
+ 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.",
3069
+ bindingPattern: "process",
3070
+ bindingInfo: {
3071
+ resource: "process",
3072
+ resourceKeyPattern: "${metadata.key}",
3073
+ propertyAttribute: "Key",
3074
+ contextField: "releaseKey"
3075
+ },
3076
+ requiresDiscovery: true,
3077
+ isDynamic: true,
3078
+ xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
3079
+ <bpmn:extensionElements>
3080
+ <uipath:activity version="v1">
3081
+ <uipath:type value="Orchestrator.StartCaseMgmtProcessAsync" version="v1" />
3082
+ <uipath:context>
3083
+ <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
3084
+ <uipath:input name="folderId" type="string" value="{folderId}" />
3085
+ <uipath:input name="folderPath" type="string" value="{folderPath}" />
3086
+ <uipath:input name="name" type="string" value="{name}" />
3087
+ </uipath:context>
3088
+ <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
3089
+ </uipath:activity>
3090
+ </bpmn:extensionElements>
3091
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3092
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3093
+ </bpmn:CallActivity>`,
3094
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('caseManagement', search, 0, 100, true) to list available case management processes"
3095
+ },
3096
+ "Orchestrator.StartFlowProcess": {
3097
+ extensionType: "Orchestrator.StartFlowProcess",
3098
+ label: "Start and wait for Maestro Flow",
3099
+ bpmnElement: "bpmn:CallActivity",
3100
+ placements: {
3101
+ activity: {
3102
+ type: "bpmn:CallActivity"
3103
+ }
3104
+ },
3105
+ extensionTag: "uipath:activity",
3106
+ contextFields: [
3107
+ {
3108
+ name: "releaseKey",
3109
+ displayName: "Maestro Flow",
3110
+ type: "string",
3111
+ required: false,
3112
+ hidden: true,
3113
+ isPrimaryKey: false,
3114
+ binding: false,
3115
+ defaultValue: null,
3116
+ bindingInfo: {
3117
+ resource: "process",
3118
+ resourceKeyPattern: "${metadata.key}",
3119
+ propertyAttribute: "Key"
3120
+ }
3121
+ },
3122
+ {
3123
+ name: "folderId",
3124
+ type: "string",
3125
+ required: false,
3126
+ hidden: true,
3127
+ isPrimaryKey: false,
3128
+ binding: false,
3129
+ defaultValue: null
3130
+ },
3131
+ {
3132
+ name: "folderPath",
3133
+ type: "string",
3134
+ required: false,
3135
+ hidden: true,
3136
+ isPrimaryKey: false,
3137
+ binding: false,
3138
+ defaultValue: null
3139
+ },
3140
+ {
3141
+ name: "name",
3142
+ type: "string",
3143
+ required: false,
3144
+ hidden: true,
3145
+ isPrimaryKey: false,
3146
+ binding: false,
3147
+ defaultValue: null
3148
+ }
3149
+ ],
3150
+ inputPattern: "mergedBody",
3151
+ inputName: "JobArguments",
3152
+ inputTarget: "bodyField",
3153
+ outputSource: null,
3154
+ outputType: "Orchestrator.RunJob",
3155
+ outputName: "Process response",
3156
+ useRelativeSource: true,
3157
+ bindingPattern: "process",
3158
+ bindingInfo: {
3159
+ resource: "process",
3160
+ resourceKeyPattern: "${metadata.key}",
3161
+ propertyAttribute: "Key",
3162
+ contextField: "releaseKey"
3163
+ },
3164
+ requiresDiscovery: true,
3165
+ isDynamic: true,
3166
+ xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
3167
+ <bpmn:extensionElements>
3168
+ <uipath:activity version="v1">
3169
+ <uipath:type value="Orchestrator.StartFlowProcess" version="v2" />
3170
+ <uipath:context>
3171
+ <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
3172
+ <uipath:input name="folderId" type="string" value="{folderId}" />
3173
+ <uipath:input name="folderPath" type="string" value="{folderPath}" />
3174
+ <uipath:input name="name" type="string" value="{name}" />
3175
+ </uipath:context>
3176
+ <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
3177
+ <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
3178
+ </uipath:activity>
3179
+ </bpmn:extensionElements>
3180
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3181
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3182
+ </bpmn:CallActivity>`,
3183
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('Flow', search, 0, 100, true) to list available flow processes. Studio Web bindings use the Flow process resource subtype."
3184
+ },
3185
+ "Orchestrator.StartFlowProcessAsync": {
3186
+ extensionType: "Orchestrator.StartFlowProcessAsync",
3187
+ label: "Start Maestro Flow",
3188
+ bpmnElement: "bpmn:CallActivity",
3189
+ placements: {
3190
+ activity: {
3191
+ type: "bpmn:CallActivity"
3192
+ }
3193
+ },
3194
+ extensionTag: "uipath:activity",
3195
+ contextFields: [
3196
+ {
3197
+ name: "releaseKey",
3198
+ displayName: "Maestro Flow",
3199
+ type: "string",
3200
+ required: false,
3201
+ hidden: true,
3202
+ isPrimaryKey: false,
3203
+ binding: false,
3204
+ defaultValue: null,
3205
+ bindingInfo: {
3206
+ resource: "process",
3207
+ resourceKeyPattern: "${metadata.key}",
3208
+ propertyAttribute: "Key"
3209
+ }
3210
+ },
3211
+ {
3212
+ name: "folderId",
3213
+ type: "string",
3214
+ required: false,
3215
+ hidden: true,
3216
+ isPrimaryKey: false,
3217
+ binding: false,
3218
+ defaultValue: null
3219
+ },
3220
+ {
3221
+ name: "folderPath",
3222
+ type: "string",
3223
+ required: false,
3224
+ hidden: true,
3225
+ isPrimaryKey: false,
3226
+ binding: false,
3227
+ defaultValue: null
3228
+ },
3229
+ {
3230
+ name: "name",
3231
+ type: "string",
3232
+ required: false,
3233
+ hidden: true,
3234
+ isPrimaryKey: false,
3235
+ binding: false,
3236
+ defaultValue: null
3237
+ }
3238
+ ],
3239
+ inputPattern: "mergedBody",
3240
+ inputName: "JobArguments",
3241
+ inputTarget: "bodyField",
3242
+ outputSource: null,
3243
+ outputType: null,
3244
+ outputName: null,
3245
+ 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.",
3246
+ bindingPattern: "process",
3247
+ bindingInfo: {
3248
+ resource: "process",
3249
+ resourceKeyPattern: "${metadata.key}",
3250
+ propertyAttribute: "Key",
3251
+ contextField: "releaseKey"
3252
+ },
3253
+ requiresDiscovery: true,
3254
+ isDynamic: true,
3255
+ xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
3256
+ <bpmn:extensionElements>
3257
+ <uipath:activity version="v1">
3258
+ <uipath:type value="Orchestrator.StartFlowProcessAsync" version="v2" />
3259
+ <uipath:context>
3260
+ <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
3261
+ <uipath:input name="folderId" type="string" value="{folderId}" />
3262
+ <uipath:input name="folderPath" type="string" value="{folderPath}" />
3263
+ <uipath:input name="name" type="string" value="{name}" />
3264
+ </uipath:context>
3265
+ <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
3266
+ </uipath:activity>
3267
+ </bpmn:extensionElements>
3268
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3269
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3270
+ </bpmn:CallActivity>`,
3271
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('Flow', search, 0, 100, true) to list available flow processes."
3272
+ },
3273
+ "A2A.AgentExecution": {
3274
+ extensionType: "A2A.AgentExecution",
3275
+ label: "Start and wait for A2A agent",
3276
+ bpmnElement: "bpmn:ServiceTask",
3277
+ placements: {
3278
+ activity: {
3279
+ type: "bpmn:ServiceTask"
3280
+ }
3281
+ },
3282
+ extensionTag: "uipath:activity",
3283
+ contextFields: [],
3284
+ inputPattern: "mergedBody",
3285
+ inputName: "body",
3286
+ inputTarget: "body",
3287
+ outputSource: null,
3288
+ outputType: "A2A.AgentExecution",
3289
+ outputName: "a2aResponse",
3290
+ useRelativeSource: true,
3291
+ bindingPattern: "none",
3292
+ requiresDiscovery: false,
3293
+ isDynamic: true,
3294
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
3295
+ <bpmn:extensionElements>
3296
+ <uipath:activity version="v1">
3297
+ <uipath:type value="A2A.AgentExecution" version="v1" />
3298
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"agentUrl":"{agentUrl}","skillId":"{skillId}","input":"{input}","authToken":"{authToken}","agentName":"{agentName}"}]]></uipath:input>
3299
+ <uipath:output name="a2aResponse" type="A2A.AgentExecution" var="{varId}" />
3300
+ </uipath:activity>
3301
+ </bpmn:extensionElements>
3302
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3303
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3304
+ </bpmn:ServiceTask>`,
3305
+ 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.",
3306
+ 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).",
3307
+ inputFields: [
3308
+ {
3309
+ name: "agentUrl",
3310
+ displayName: "Agent URL",
3311
+ type: "string",
3312
+ required: true,
3313
+ description: "URL of the A2A agent endpoint"
3314
+ },
3315
+ {
3316
+ name: "skillId",
3317
+ displayName: "Skill ID",
3318
+ type: "string",
3319
+ required: true,
3320
+ description: "Identifier for the specific skill to invoke on the agent"
3321
+ },
3322
+ {
3323
+ name: "input",
3324
+ displayName: "Input",
3325
+ type: "string",
3326
+ required: true,
3327
+ description: "Input text/message to send to the A2A agent"
2559
3328
  },
2560
3329
  {
2561
3330
  name: "authToken",
2562
3331
  displayName: "Auth Token",
2563
3332
  type: "string",
2564
3333
  required: true,
2565
- description: "Authentication token for the A2A agent"
3334
+ description: "Authentication token for the A2A agent"
3335
+ },
3336
+ {
3337
+ name: "agentName",
3338
+ displayName: "Agent Name",
3339
+ type: "string",
3340
+ required: true,
3341
+ description: "Display name of the A2A agent"
3342
+ }
3343
+ ]
3344
+ },
3345
+ "BPMN.Variables": {
3346
+ extensionType: "BPMN.Variables",
3347
+ label: "BPMN Variables",
3348
+ bpmnElement: "bpmn:Task",
3349
+ placements: {},
3350
+ extensionTag: "uipath:mapping",
3351
+ contextFields: [],
3352
+ inputPattern: "none",
3353
+ outputSource: null,
3354
+ outputType: null,
3355
+ bindingPattern: "none",
3356
+ requiresDiscovery: false,
3357
+ isDynamic: false,
3358
+ xmlTemplate: `<bpmn:Task id="{id}" name="{name}">
3359
+ <bpmn:extensionElements>
3360
+ <uipath:mapping version="v1">
3361
+ <uipath:type value="BPMN.Variables" version="v1" />
3362
+ </uipath:mapping>
3363
+ </bpmn:extensionElements>
3364
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3365
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3366
+ </bpmn:Task>`,
3367
+ inputNotes: "Variable mappings use uipath:mapping with direct input/output elements, not a jsonBody pattern",
3368
+ 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.",
3369
+ extensionTagNotes: "Uses uipath:mapping (not uipath:activity). BPMN.Variables mappings are supported on StartEvent, EndEvent, Task, ScriptTask, and SubProcess owners."
3370
+ },
3371
+ "BPMN.ScriptTask": {
3372
+ extensionType: "BPMN.ScriptTask",
3373
+ label: "Execute script",
3374
+ bpmnElement: "bpmn:ScriptTask",
3375
+ placements: {},
3376
+ extensionTag: "uipath:mapping",
3377
+ contextFields: [],
3378
+ inputPattern: "scriptArgs",
3379
+ inputName: "args",
3380
+ inputTarget: "bodyField",
3381
+ outputSource: null,
3382
+ outputType: null,
3383
+ bindingPattern: "none",
3384
+ requiresDiscovery: false,
3385
+ isDynamic: false,
3386
+ xmlTemplate: `<bpmn:ScriptTask id="{id}" name="{name}">
3387
+ <bpmn:extensionElements>
3388
+ <uipath:mapping version="v1">
3389
+ <uipath:type value="BPMN.ScriptTask" version="v1" />
3390
+ <uipath:input name="args" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
3391
+ </uipath:mapping>
3392
+ </bpmn:extensionElements>
3393
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3394
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3395
+ </bpmn:ScriptTask>`,
3396
+ inputNotes: "Inputs are merged into a single json input named 'args' with target 'bodyField'. An inputSchema is created from the input variables.",
3397
+ extensionTagNotes: "bpmn:ScriptTask is routed through createModdleExtensionVariableMapping (same as BPMN.Variables). Inputs are merged into a single 'args' JSON body with inputSchema."
3398
+ },
3399
+ "ConversationalService.QueueServiceMessage": {
3400
+ extensionType: "ConversationalService.QueueServiceMessage",
3401
+ label: "Queue service message",
3402
+ bpmnElement: "bpmn:ServiceTask",
3403
+ placements: {
3404
+ activity: {
3405
+ type: "bpmn:ServiceTask"
3406
+ }
3407
+ },
3408
+ extensionTag: "uipath:activity",
3409
+ contextFields: [
3410
+ {
3411
+ name: "_label",
3412
+ type: "string",
3413
+ required: false,
3414
+ hidden: true,
3415
+ isPrimaryKey: false,
3416
+ binding: false,
3417
+ defaultValue: null
3418
+ }
3419
+ ],
3420
+ inputPattern: "mergedBody",
3421
+ inputName: "body",
3422
+ inputTarget: "body",
3423
+ outputSource: "=response",
3424
+ outputType: "jsonSchema",
3425
+ outputName: "response",
3426
+ additionalOutputs: [
3427
+ {
3428
+ name: "Error",
3429
+ type: "jsonSchema",
3430
+ source: "=Error",
3431
+ required: false
3432
+ }
3433
+ ],
3434
+ bindingPattern: "none",
3435
+ requiresDiscovery: false,
3436
+ isDynamic: false,
3437
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
3438
+ <bpmn:extensionElements>
3439
+ <uipath:activity version="v1">
3440
+ <uipath:type value="ConversationalService.QueueServiceMessage" version="v1" />
3441
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"conversationId":"{conversationId}","userContent":"{userContent}","assistantContent":"{assistantContent}"}]]></uipath:input>
3442
+ <uipath:output name="response" type="jsonSchema" source="=response" var="{varId}" />
3443
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
3444
+ </uipath:activity>
3445
+ </bpmn:extensionElements>
3446
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3447
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3448
+ </bpmn:ServiceTask>`,
3449
+ 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.",
3450
+ 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.',
3451
+ 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".',
3452
+ inputFields: [
3453
+ {
3454
+ name: "conversationId",
3455
+ displayName: "Conversation ID",
3456
+ type: "string",
3457
+ required: true,
3458
+ hidden: false,
3459
+ isPrimaryKey: false,
3460
+ binding: false,
3461
+ defaultValue: null,
3462
+ target: "body"
3463
+ },
3464
+ {
3465
+ name: "userContent",
3466
+ displayName: "User content",
3467
+ type: "string",
3468
+ required: true,
3469
+ hidden: false,
3470
+ isPrimaryKey: false,
3471
+ binding: false,
3472
+ defaultValue: null,
3473
+ target: "body"
3474
+ },
3475
+ {
3476
+ name: "assistantContent",
3477
+ displayName: "Assistant content",
3478
+ type: "string",
3479
+ required: true,
3480
+ hidden: false,
3481
+ isPrimaryKey: false,
3482
+ binding: false,
3483
+ defaultValue: null,
3484
+ target: "body"
3485
+ }
3486
+ ]
3487
+ },
3488
+ "Intsvc.TimerTrigger": {
3489
+ extensionType: "Intsvc.TimerTrigger",
3490
+ label: "Timer trigger",
3491
+ bpmnElement: "bpmn:StartEvent",
3492
+ placements: {},
3493
+ extensionTag: "uipath:activity",
3494
+ contextFields: [],
3495
+ inputPattern: "none",
3496
+ outputSource: ".",
3497
+ outputType: "custom",
3498
+ outputName: "result",
3499
+ useRelativeSource: false,
3500
+ bindingPattern: "none",
3501
+ requiresDiscovery: false,
3502
+ isDynamic: false,
3503
+ xmlTemplate: `<bpmn:StartEvent id="{id}" name="{name}">
3504
+ <bpmn:extensionElements>
3505
+ <uipath:activity version="v1">
3506
+ <uipath:type value="Intsvc.TimerTrigger" version="v1" />
3507
+ <uipath:output name="result" type="custom" source="." var="{varId}" />
3508
+ </uipath:activity>
3509
+ </bpmn:extensionElements>
3510
+ <bpmn:timerEventDefinition><bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1H</bpmn:timeDuration></bpmn:timerEventDefinition>
3511
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3512
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3513
+ </bpmn:StartEvent>`,
3514
+ inputNotes: "No jsonBody, no input fields, no isSplitInputs in design schema",
3515
+ bpmnElementNotes: "Used via timer event definition on start events; not directly in FPS_TO_NODE_MAPPING",
3516
+ extensionTagNotes: "NOT in isEvents array, uses uipath:activity. However, isIntsvcTriggerDesignSchemaType returns true.",
3517
+ inputFields: []
3518
+ },
3519
+ "Maestro.ReceiveMessageEvent": {
3520
+ extensionType: "Maestro.ReceiveMessageEvent",
3521
+ label: "Receive internal message",
3522
+ bpmnElement: "bpmn:IntermediateCatchEvent",
3523
+ placements: {
3524
+ startEvent: {
3525
+ type: "bpmn:StartEvent",
3526
+ eventDefinition: {
3527
+ type: "bpmn:MessageEventDefinition"
3528
+ }
3529
+ },
3530
+ intermediateEvent: {
3531
+ type: "bpmn:IntermediateCatchEvent",
3532
+ eventDefinition: {
3533
+ type: "bpmn:MessageEventDefinition"
3534
+ }
3535
+ },
3536
+ boundaryEvent: {
3537
+ type: "bpmn:BoundaryEvent",
3538
+ eventDefinition: {
3539
+ type: "bpmn:MessageEventDefinition"
3540
+ }
3541
+ }
3542
+ },
3543
+ extensionTag: "uipath:event",
3544
+ contextFields: [
3545
+ {
3546
+ name: "name",
3547
+ displayName: "Message name",
3548
+ type: "string",
3549
+ required: true,
3550
+ hidden: false,
3551
+ isPrimaryKey: false,
3552
+ binding: false,
3553
+ defaultValue: null
3554
+ },
3555
+ {
3556
+ name: "_label",
3557
+ type: "string",
3558
+ required: false,
3559
+ hidden: true,
3560
+ isPrimaryKey: false,
3561
+ binding: false,
3562
+ defaultValue: null
3563
+ }
3564
+ ],
3565
+ inputPattern: "separateInputs",
3566
+ inputName: "ItemData",
3567
+ inputTarget: "body",
3568
+ outputSource: null,
3569
+ outputType: "Maestro.ReceiveMessageEvent",
3570
+ outputName: "response",
3571
+ useRelativeSource: true,
3572
+ bindingPattern: "none",
3573
+ requiresDiscovery: false,
3574
+ isDynamic: false,
3575
+ xmlTemplate: `<bpmn:IntermediateCatchEvent id="{id}" name="{name}">
3576
+ <bpmn:extensionElements>
3577
+ <uipath:event version="v1">
3578
+ <uipath:type value="Maestro.ReceiveMessageEvent" version="v1" />
3579
+ <uipath:context>
3580
+ <uipath:input name="name" type="string" value="{name}" />
3581
+ <uipath:input name="_label" type="string" value="{_label}" />
3582
+ </uipath:context>
3583
+ <uipath:input name="ItemData" type="json" target="body"><![CDATA[{}]]></uipath:input>
3584
+ <uipath:output name="response" type="Maestro.ReceiveMessageEvent" var="{varId}" />
3585
+ </uipath:event>
3586
+ </bpmn:extensionElements>
3587
+ <bpmn:messageEventDefinition />
3588
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3589
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3590
+ </bpmn:IntermediateCatchEvent>`,
3591
+ 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.",
3592
+ extensionTagNotes: "In isEvents array, uses uipath:event",
3593
+ inputFields: [
3594
+ {
3595
+ name: "Reference",
3596
+ displayName: "Reference",
3597
+ type: "string",
3598
+ required: true,
3599
+ hidden: false,
3600
+ isPrimaryKey: false,
3601
+ binding: false,
3602
+ defaultValue: null,
3603
+ target: "bodyField",
3604
+ description: "Correlation reference to match this receive event to its sender"
3605
+ }
3606
+ ]
3607
+ },
3608
+ "Maestro.SendMessageEvent": {
3609
+ extensionType: "Maestro.SendMessageEvent",
3610
+ label: "Send internal message",
3611
+ bpmnElement: "bpmn:IntermediateThrowEvent",
3612
+ placements: {
3613
+ intermediateEvent: {
3614
+ type: "bpmn:IntermediateThrowEvent",
3615
+ eventDefinition: {
3616
+ type: "bpmn:MessageEventDefinition"
3617
+ }
3618
+ },
3619
+ endEvent: {
3620
+ type: "bpmn:EndEvent",
3621
+ eventDefinition: {
3622
+ type: "bpmn:MessageEventDefinition"
3623
+ }
3624
+ }
3625
+ },
3626
+ extensionTag: "uipath:event",
3627
+ contextFields: [
3628
+ {
3629
+ name: "name",
3630
+ displayName: "Message name",
3631
+ type: "string",
3632
+ required: true,
3633
+ hidden: false,
3634
+ isPrimaryKey: false,
3635
+ binding: false,
3636
+ defaultValue: null
2566
3637
  },
2567
3638
  {
2568
- name: "agentName",
2569
- displayName: "Agent Name",
3639
+ name: "_label",
2570
3640
  type: "string",
3641
+ required: false,
3642
+ hidden: true,
3643
+ isPrimaryKey: false,
3644
+ binding: false,
3645
+ defaultValue: null
3646
+ },
3647
+ {
3648
+ name: "inputSchema",
3649
+ displayName: "Input schema",
3650
+ type: "jsonSchema",
2571
3651
  required: true,
2572
- description: "Display name of the A2A agent"
3652
+ hidden: true,
3653
+ isPrimaryKey: false,
3654
+ binding: false,
3655
+ defaultValue: null
3656
+ }
3657
+ ],
3658
+ inputPattern: "splitInputsItemData",
3659
+ inputName: "ItemData",
3660
+ inputTarget: "body",
3661
+ outputSource: null,
3662
+ outputType: "Maestro.SendMessageEvent",
3663
+ outputName: "response",
3664
+ useRelativeSource: true,
3665
+ bindingPattern: "none",
3666
+ requiresDiscovery: false,
3667
+ isDynamic: false,
3668
+ xmlTemplate: `<bpmn:IntermediateThrowEvent id="{id}" name="{name}">
3669
+ <bpmn:extensionElements>
3670
+ <uipath:event version="v1">
3671
+ <uipath:type value="Maestro.SendMessageEvent" version="v1" />
3672
+ <uipath:context>
3673
+ <uipath:input name="name" type="string" value="{name}" />
3674
+ <uipath:input name="_label" type="string" value="{_label}" />
3675
+ <uipath:input name="inputSchema" type="jsonSchema" value="{inputSchema}" />
3676
+ </uipath:context>
3677
+ <uipath:input name="ItemData" type="json" target="body"><![CDATA[{"Reference":"{Reference}","SpecificContent":{},"TimeToLive":""}]]></uipath:input>
3678
+ <uipath:output name="response" type="Maestro.SendMessageEvent" var="{varId}" />
3679
+ </uipath:event>
3680
+ </bpmn:extensionElements>
3681
+ <bpmn:messageEventDefinition />
3682
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3683
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3684
+ </bpmn:IntermediateThrowEvent>`,
3685
+ 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.",
3686
+ extensionTagNotes: "In isEvents array, uses uipath:event",
3687
+ inputFields: [
3688
+ {
3689
+ name: "Reference",
3690
+ displayName: "Reference",
3691
+ type: "string",
3692
+ required: true,
3693
+ hidden: false,
3694
+ isPrimaryKey: false,
3695
+ binding: false,
3696
+ defaultValue: null,
3697
+ target: "body",
3698
+ description: "Correlation reference to match this send event to its receiver"
3699
+ },
3700
+ {
3701
+ name: "SpecificContent",
3702
+ displayName: "Item information",
3703
+ type: "json",
3704
+ required: false,
3705
+ hidden: false,
3706
+ isPrimaryKey: false,
3707
+ binding: false,
3708
+ defaultValue: null,
3709
+ target: "body",
3710
+ description: "JSON payload with the message content"
3711
+ },
3712
+ {
3713
+ name: "TimeToLive",
3714
+ displayName: "Time to live",
3715
+ type: "duration",
3716
+ required: false,
3717
+ hidden: false,
3718
+ isPrimaryKey: false,
3719
+ binding: false,
3720
+ defaultValue: null,
3721
+ target: "body",
3722
+ description: "Duration after which the message expires if not consumed"
2573
3723
  }
2574
3724
  ]
2575
3725
  },
2576
- "BPMN.Variables": {
2577
- extensionType: "BPMN.Variables",
2578
- label: "BPMN Variables",
3726
+ "Maestro.CaseManagerPlaceholder": {
3727
+ extensionType: "Maestro.CaseManagerPlaceholder",
3728
+ label: "Case manager placeholder",
2579
3729
  bpmnElement: "bpmn:Task",
2580
3730
  placements: {},
2581
- extensionTag: "uipath:mapping",
3731
+ extensionTag: "uipath:activity",
2582
3732
  contextFields: [],
2583
- inputPattern: "none",
2584
- outputSource: null,
2585
- outputType: null,
3733
+ inputPattern: "mergedBody",
3734
+ inputName: "caseManagerInput",
3735
+ inputTarget: "body",
3736
+ outputSource: "=js:(vars.caseRulesDecisions)",
3737
+ outputType: "json",
3738
+ outputName: "caseManagerDecisions",
2586
3739
  bindingPattern: "none",
2587
3740
  requiresDiscovery: false,
2588
3741
  isDynamic: false,
3742
+ contractOutputMayBeCustom: true,
2589
3743
  xmlTemplate: `<bpmn:Task id="{id}" name="{name}">
2590
3744
  <bpmn:extensionElements>
2591
- <uipath:mapping version="v1">
2592
- <uipath:type value="BPMN.Variables" version="v1" />
2593
- </uipath:mapping>
3745
+ <uipath:activity version="v1">
3746
+ <uipath:type value="Maestro.CaseManagerPlaceholder" version="v1" />
3747
+ <uipath:input name="caseManagerInput" type="json" target="body"><![CDATA[{"caseRulesDecisions":{caseRulesDecisions},"caseCurrentExecutionState":{caseCurrentExecutionState}}]]></uipath:input>
3748
+ <uipath:output name="caseManagerDecisions" type="json" source="=js:(vars.caseRulesDecisions)" var="{varId}" custom="true" />
3749
+ </uipath:activity>
2594
3750
  </bpmn:extensionElements>
2595
3751
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2596
3752
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2597
3753
  </bpmn:Task>`,
2598
- inputNotes: "Variable mappings use uipath:mapping with direct input/output elements, not a jsonBody pattern",
2599
- 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.",
2600
- extensionTagNotes: "Uses uipath:mapping (not uipath:activity). BPMN.Variables mappings are supported on StartEvent, EndEvent, Task, ScriptTask, and SubProcess owners."
3754
+ 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.",
3755
+ 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.',
3756
+ inputFields: [
3757
+ {
3758
+ name: "caseRulesDecisions",
3759
+ displayName: "Case rules decisions",
3760
+ type: "json",
3761
+ required: true,
3762
+ hidden: false,
3763
+ isPrimaryKey: false,
3764
+ binding: false,
3765
+ defaultValue: null,
3766
+ target: "body"
3767
+ },
3768
+ {
3769
+ name: "caseCurrentExecutionState",
3770
+ displayName: "Case current execution state",
3771
+ type: "json",
3772
+ required: true,
3773
+ hidden: false,
3774
+ isPrimaryKey: false,
3775
+ binding: false,
3776
+ defaultValue: null,
3777
+ target: "body"
3778
+ }
3779
+ ]
2601
3780
  },
2602
- "BPMN.ScriptTask": {
2603
- extensionType: "BPMN.ScriptTask",
2604
- label: "Execute script",
2605
- bpmnElement: "bpmn:ScriptTask",
3781
+ "Maestro.UpdateCaseState": {
3782
+ extensionType: "Maestro.UpdateCaseState",
3783
+ label: "Update case state",
3784
+ bpmnElement: "bpmn:ServiceTask",
2606
3785
  placements: {},
2607
- extensionTag: "uipath:mapping",
3786
+ extensionTag: "uipath:activity",
2608
3787
  contextFields: [],
2609
- inputPattern: "scriptArgs",
2610
- inputName: "args",
2611
- inputTarget: "bodyField",
3788
+ inputPattern: "mergedBody",
3789
+ inputName: "ItemData",
3790
+ inputTarget: "body",
2612
3791
  outputSource: null,
2613
3792
  outputType: null,
2614
3793
  bindingPattern: "none",
2615
3794
  requiresDiscovery: false,
2616
3795
  isDynamic: false,
2617
- xmlTemplate: `<bpmn:ScriptTask id="{id}" name="{name}">
3796
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2618
3797
  <bpmn:extensionElements>
2619
- <uipath:mapping version="v1">
2620
- <uipath:type value="BPMN.ScriptTask" version="v1" />
2621
- <uipath:input name="args" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
2622
- </uipath:mapping>
3798
+ <uipath:activity version="v1">
3799
+ <uipath:type value="Maestro.UpdateCaseState" version="v2" />
3800
+ <uipath:input name="ItemData" type="json" target="body"><![CDATA[{"upsertKeys":{upsertKeys},"deleteKeys":{deleteKeys},"tasksCompletedDeleteNames":{tasksCompletedDeleteNames}}]]></uipath:input>
3801
+ </uipath:activity>
2623
3802
  </bpmn:extensionElements>
2624
3803
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2625
3804
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2626
- </bpmn:ScriptTask>`,
2627
- inputNotes: "Inputs are merged into a single json input named 'args' with target 'bodyField'. An inputSchema is created from the input variables.",
2628
- extensionTagNotes: "bpmn:ScriptTask is routed through createModdleExtensionVariableMapping (same as BPMN.Variables). Inputs are merged into a single 'args' JSON body with inputSchema."
2629
- },
2630
- "ConversationalService.QueueServiceMessage": {
2631
- extensionType: "ConversationalService.QueueServiceMessage",
2632
- label: "Queue service message",
2633
- bpmnElement: "bpmn:ServiceTask",
2634
- placements: {
2635
- activity: {
2636
- type: "bpmn:ServiceTask"
2637
- }
2638
- },
2639
- extensionTag: "uipath:activity",
2640
- contextFields: [
3805
+ </bpmn:ServiceTask>`,
3806
+ 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.",
3807
+ inputFields: [
2641
3808
  {
2642
- name: "_label",
2643
- type: "string",
2644
- required: false,
2645
- hidden: true,
3809
+ name: "upsertKeys",
3810
+ displayName: "Event keys to upsert",
3811
+ type: "json",
3812
+ required: true,
3813
+ hidden: false,
2646
3814
  isPrimaryKey: false,
2647
3815
  binding: false,
2648
- defaultValue: null
2649
- }
2650
- ],
2651
- inputPattern: "mergedBody",
2652
- inputName: "body",
2653
- inputTarget: "body",
2654
- outputSource: "=response",
2655
- outputType: "jsonSchema",
2656
- outputName: "response",
2657
- additionalOutputs: [
3816
+ defaultValue: null,
3817
+ target: "body"
3818
+ },
2658
3819
  {
2659
- name: "Error",
2660
- type: "jsonSchema",
2661
- source: "=Error",
2662
- required: false
3820
+ name: "deleteKeys",
3821
+ displayName: "Event keys to delete",
3822
+ type: "array",
3823
+ required: true,
3824
+ hidden: false,
3825
+ isPrimaryKey: false,
3826
+ binding: false,
3827
+ defaultValue: null,
3828
+ target: "body"
3829
+ },
3830
+ {
3831
+ name: "tasksCompletedDeleteNames",
3832
+ displayName: "Completed task names to delete",
3833
+ type: "array",
3834
+ required: true,
3835
+ hidden: false,
3836
+ isPrimaryKey: false,
3837
+ binding: false,
3838
+ defaultValue: null,
3839
+ target: "body"
2663
3840
  }
2664
- ],
3841
+ ]
3842
+ },
3843
+ "Maestro.RetrieveCaseState": {
3844
+ extensionType: "Maestro.RetrieveCaseState",
3845
+ label: "Retrieve case state",
3846
+ bpmnElement: "bpmn:ServiceTask",
3847
+ placements: {},
3848
+ extensionTag: "uipath:activity",
3849
+ contextFields: [],
3850
+ inputPattern: "none",
3851
+ outputSource: "=caseState",
3852
+ outputType: "jsonSchema",
3853
+ outputName: "latestCaseState",
2665
3854
  bindingPattern: "none",
2666
3855
  requiresDiscovery: false,
2667
3856
  isDynamic: false,
3857
+ contractOutputMayBeCustom: true,
2668
3858
  xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2669
3859
  <bpmn:extensionElements>
2670
3860
  <uipath:activity version="v1">
2671
- <uipath:type value="ConversationalService.QueueServiceMessage" version="v1" />
2672
- <uipath:input name="body" type="json" target="body"><![CDATA[{"conversationId":"{conversationId}","userContent":"{userContent}","assistantContent":"{assistantContent}"}]]></uipath:input>
2673
- <uipath:output name="response" type="jsonSchema" source="=response" var="{varId}" />
2674
- <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
3861
+ <uipath:type value="Maestro.RetrieveCaseState" version="v2" />
3862
+ <uipath:output name="latestCaseState" type="jsonSchema" source="=caseState" var="{varId}" custom="true" />
2675
3863
  </uipath:activity>
2676
3864
  </bpmn:extensionElements>
2677
3865
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2678
3866
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2679
3867
  </bpmn:ServiceTask>`,
2680
- 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.",
2681
- 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.',
2682
- 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".',
3868
+ 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.",
3869
+ 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.`
3870
+ },
3871
+ "Maestro.NotificationService": {
3872
+ extensionType: "Maestro.NotificationService",
3873
+ label: "Notification service",
3874
+ bpmnElement: "bpmn:ServiceTask",
3875
+ placements: {},
3876
+ extensionTag: "uipath:activity",
3877
+ contextFields: [],
3878
+ inputPattern: "mergedBody",
3879
+ inputName: "body",
3880
+ inputTarget: "body",
3881
+ outputSource: null,
3882
+ outputType: null,
3883
+ bindingPattern: "none",
3884
+ requiresDiscovery: false,
3885
+ isDynamic: false,
3886
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
3887
+ <bpmn:extensionElements>
3888
+ <uipath:activity version="v1">
3889
+ <uipath:type value="Maestro.NotificationService" version="v2" />
3890
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"publisherName":"{publisherName}","topicName":"{topicName}","priority":"{priority}","messageParam":{messageParam},"recipients":{recipients}}]]></uipath:input>
3891
+ </uipath:activity>
3892
+ </bpmn:extensionElements>
3893
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
3894
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
3895
+ </bpmn:ServiceTask>`,
3896
+ 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.`,
2683
3897
  inputFields: [
2684
3898
  {
2685
- name: "conversationId",
2686
- displayName: "Conversation ID",
3899
+ name: "publisherName",
3900
+ displayName: "Publisher name",
2687
3901
  type: "string",
2688
3902
  required: true,
2689
3903
  hidden: false,
@@ -2693,8 +3907,8 @@ var bpmn_spec_default = {
2693
3907
  target: "body"
2694
3908
  },
2695
3909
  {
2696
- name: "userContent",
2697
- displayName: "User content",
3910
+ name: "topicName",
3911
+ displayName: "Topic name",
2698
3912
  type: "string",
2699
3913
  required: true,
2700
3914
  hidden: false,
@@ -2704,8 +3918,8 @@ var bpmn_spec_default = {
2704
3918
  target: "body"
2705
3919
  },
2706
3920
  {
2707
- name: "assistantContent",
2708
- displayName: "Assistant content",
3921
+ name: "priority",
3922
+ displayName: "Priority",
2709
3923
  type: "string",
2710
3924
  required: true,
2711
3925
  hidden: false,
@@ -2713,224 +3927,211 @@ var bpmn_spec_default = {
2713
3927
  binding: false,
2714
3928
  defaultValue: null,
2715
3929
  target: "body"
3930
+ },
3931
+ {
3932
+ name: "messageParam",
3933
+ displayName: "Message parameters",
3934
+ type: "json",
3935
+ required: true,
3936
+ hidden: false,
3937
+ isPrimaryKey: false,
3938
+ binding: false,
3939
+ defaultValue: null,
3940
+ target: "body"
3941
+ },
3942
+ {
3943
+ name: "recipients",
3944
+ displayName: "Recipients",
3945
+ type: "json",
3946
+ required: false,
3947
+ hidden: false,
3948
+ isPrimaryKey: false,
3949
+ binding: false,
3950
+ defaultValue: null,
3951
+ target: "body"
2716
3952
  }
2717
3953
  ]
2718
3954
  },
2719
- "Intsvc.TimerTrigger": {
2720
- extensionType: "Intsvc.TimerTrigger",
2721
- label: "Timer trigger",
2722
- bpmnElement: "bpmn:StartEvent",
3955
+ "Maestro.AcquireLock": {
3956
+ extensionType: "Maestro.AcquireLock",
3957
+ label: "Acquire lock",
3958
+ bpmnElement: "bpmn:ServiceTask",
2723
3959
  placements: {},
2724
3960
  extensionTag: "uipath:activity",
2725
3961
  contextFields: [],
2726
- inputPattern: "none",
2727
- outputSource: ".",
2728
- outputType: "custom",
2729
- outputName: "result",
2730
- useRelativeSource: false,
3962
+ inputPattern: "mergedBody",
3963
+ inputName: "body",
3964
+ inputTarget: "body",
3965
+ outputSource: null,
3966
+ outputType: null,
2731
3967
  bindingPattern: "none",
2732
3968
  requiresDiscovery: false,
2733
3969
  isDynamic: false,
2734
- xmlTemplate: `<bpmn:StartEvent id="{id}" name="{name}">
3970
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2735
3971
  <bpmn:extensionElements>
2736
3972
  <uipath:activity version="v1">
2737
- <uipath:type value="Intsvc.TimerTrigger" version="v1" />
2738
- <uipath:output name="result" type="custom" source="." var="{varId}" />
3973
+ <uipath:type value="Maestro.AcquireLock" version="v2" />
3974
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"lockKey":"{lockKey}","leaseSeconds":{leaseSeconds},"acquireTimeoutSeconds":{acquireTimeoutSeconds}}]]></uipath:input>
2739
3975
  </uipath:activity>
2740
3976
  </bpmn:extensionElements>
2741
- <bpmn:timerEventDefinition><bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1H</bpmn:timeDuration></bpmn:timerEventDefinition>
2742
3977
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2743
3978
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2744
- </bpmn:StartEvent>`,
2745
- inputNotes: "No jsonBody, no input fields, no isSplitInputs in design schema",
2746
- bpmnElementNotes: "Used via timer event definition on start events; not directly in FPS_TO_NODE_MAPPING",
2747
- extensionTagNotes: "NOT in isEvents array, uses uipath:activity. However, isIntsvcTriggerDesignSchemaType returns true.",
2748
- inputFields: []
2749
- },
2750
- "Maestro.ReceiveMessageEvent": {
2751
- extensionType: "Maestro.ReceiveMessageEvent",
2752
- label: "Receive internal message",
2753
- bpmnElement: "bpmn:IntermediateCatchEvent",
2754
- placements: {
2755
- startEvent: {
2756
- type: "bpmn:StartEvent",
2757
- eventDefinition: {
2758
- type: "bpmn:MessageEventDefinition"
2759
- }
2760
- },
2761
- intermediateEvent: {
2762
- type: "bpmn:IntermediateCatchEvent",
2763
- eventDefinition: {
2764
- type: "bpmn:MessageEventDefinition"
2765
- }
2766
- },
2767
- boundaryEvent: {
2768
- type: "bpmn:BoundaryEvent",
2769
- eventDefinition: {
2770
- type: "bpmn:MessageEventDefinition"
2771
- }
2772
- }
2773
- },
2774
- extensionTag: "uipath:event",
2775
- contextFields: [
3979
+ </bpmn:ServiceTask>`,
3980
+ 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.",
3981
+ inputFields: [
2776
3982
  {
2777
- name: "name",
2778
- displayName: "Message name",
3983
+ name: "lockKey",
3984
+ displayName: "Lock key",
2779
3985
  type: "string",
2780
3986
  required: true,
2781
3987
  hidden: false,
2782
3988
  isPrimaryKey: false,
2783
3989
  binding: false,
2784
- defaultValue: null
3990
+ defaultValue: null,
3991
+ target: "body"
2785
3992
  },
2786
3993
  {
2787
- name: "_label",
2788
- type: "string",
2789
- required: false,
2790
- hidden: true,
3994
+ name: "leaseSeconds",
3995
+ displayName: "Lease seconds",
3996
+ type: "number",
3997
+ required: true,
3998
+ hidden: false,
2791
3999
  isPrimaryKey: false,
2792
4000
  binding: false,
2793
- defaultValue: null
4001
+ defaultValue: 600,
4002
+ target: "body"
4003
+ },
4004
+ {
4005
+ name: "acquireTimeoutSeconds",
4006
+ displayName: "Acquire timeout seconds",
4007
+ type: "number",
4008
+ required: true,
4009
+ hidden: false,
4010
+ isPrimaryKey: false,
4011
+ binding: false,
4012
+ defaultValue: 0,
4013
+ target: "body"
2794
4014
  }
2795
- ],
2796
- inputPattern: "separateInputs",
2797
- inputName: "ItemData",
4015
+ ]
4016
+ },
4017
+ "Maestro.ReleaseLock": {
4018
+ extensionType: "Maestro.ReleaseLock",
4019
+ label: "Release lock",
4020
+ bpmnElement: "bpmn:ServiceTask",
4021
+ placements: {},
4022
+ extensionTag: "uipath:activity",
4023
+ contextFields: [],
4024
+ inputPattern: "mergedBody",
4025
+ inputName: "body",
2798
4026
  inputTarget: "body",
2799
4027
  outputSource: null,
2800
- outputType: "Maestro.ReceiveMessageEvent",
2801
- outputName: "response",
2802
- useRelativeSource: true,
4028
+ outputType: null,
2803
4029
  bindingPattern: "none",
2804
4030
  requiresDiscovery: false,
2805
4031
  isDynamic: false,
2806
- xmlTemplate: `<bpmn:IntermediateCatchEvent id="{id}" name="{name}">
4032
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2807
4033
  <bpmn:extensionElements>
2808
- <uipath:event version="v1">
2809
- <uipath:type value="Maestro.ReceiveMessageEvent" version="v1" />
2810
- <uipath:context>
2811
- <uipath:input name="name" type="string" value="{name}" />
2812
- <uipath:input name="_label" type="string" value="{_label}" />
2813
- </uipath:context>
2814
- <uipath:input name="ItemData" type="json" target="body"><![CDATA[{}]]></uipath:input>
2815
- <uipath:output name="response" type="Maestro.ReceiveMessageEvent" var="{varId}" />
2816
- </uipath:event>
4034
+ <uipath:activity version="v1">
4035
+ <uipath:type value="Maestro.ReleaseLock" version="v2" />
4036
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"lockKey":"{lockKey}"}]]></uipath:input>
4037
+ </uipath:activity>
2817
4038
  </bpmn:extensionElements>
2818
- <bpmn:messageEventDefinition />
2819
4039
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2820
4040
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2821
- </bpmn:IntermediateCatchEvent>`,
2822
- 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.",
2823
- extensionTagNotes: "In isEvents array, uses uipath:event",
4041
+ </bpmn:ServiceTask>`,
4042
+ inputNotes: "Generated SLA flows merge the lock key into the body. The generated helper does not bind the design-schema response.",
2824
4043
  inputFields: [
2825
4044
  {
2826
- name: "Reference",
2827
- displayName: "Reference",
4045
+ name: "lockKey",
4046
+ displayName: "Lock key",
2828
4047
  type: "string",
2829
4048
  required: true,
2830
4049
  hidden: false,
2831
4050
  isPrimaryKey: false,
2832
4051
  binding: false,
2833
4052
  defaultValue: null,
2834
- target: "bodyField",
2835
- description: "Correlation reference to match this receive event to its sender"
4053
+ target: "body"
2836
4054
  }
2837
4055
  ]
2838
4056
  },
2839
- "Maestro.SendMessageEvent": {
2840
- extensionType: "Maestro.SendMessageEvent",
2841
- label: "Send internal message",
2842
- bpmnElement: "bpmn:IntermediateThrowEvent",
2843
- placements: {
2844
- intermediateEvent: {
2845
- type: "bpmn:IntermediateThrowEvent",
2846
- eventDefinition: {
2847
- type: "bpmn:MessageEventDefinition"
2848
- }
2849
- },
2850
- endEvent: {
2851
- type: "bpmn:EndEvent",
2852
- eventDefinition: {
2853
- type: "bpmn:MessageEventDefinition"
2854
- }
2855
- }
2856
- },
2857
- extensionTag: "uipath:event",
2858
- contextFields: [
2859
- {
2860
- name: "name",
2861
- displayName: "Message name",
2862
- type: "string",
2863
- required: true,
2864
- hidden: false,
2865
- isPrimaryKey: false,
2866
- binding: false,
2867
- defaultValue: null
2868
- },
4057
+ "Maestro.CaseCyclePrepare": {
4058
+ extensionType: "Maestro.CaseCyclePrepare",
4059
+ label: "Prepare case decision cycle",
4060
+ bpmnElement: "bpmn:ServiceTask",
4061
+ placements: {},
4062
+ extensionTag: "uipath:activity",
4063
+ contextFields: [],
4064
+ inputPattern: "mergedBody",
4065
+ bindingPattern: "none",
4066
+ requiresDiscovery: false,
4067
+ isDynamic: false,
4068
+ generatedOutputs: true,
4069
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
4070
+ <bpmn:extensionElements>
4071
+ <uipath:activity version="v1">
4072
+ <uipath:type value="Maestro.CaseCyclePrepare" version="v2" />
4073
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"CaseGlobalsLastPrimaryStageExited":"{CaseGlobalsLastPrimaryStageExited}"}]]></uipath:input>
4074
+ <uipath:output name="latestCaseState" type="jsonSchema" source="=caseState" var="{varId}" />
4075
+ </uipath:activity>
4076
+ </bpmn:extensionElements>
4077
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
4078
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
4079
+ </bpmn:ServiceTask>`,
4080
+ inputFields: [
2869
4081
  {
2870
- name: "_label",
4082
+ name: "CaseGlobalsLastPrimaryStageExited",
2871
4083
  type: "string",
2872
4084
  required: false,
2873
- hidden: true,
2874
- isPrimaryKey: false,
2875
- binding: false,
2876
- defaultValue: null
2877
- },
2878
- {
2879
- name: "inputSchema",
2880
- displayName: "Input schema",
2881
- type: "jsonSchema",
2882
- required: true,
2883
- hidden: true,
4085
+ hidden: false,
2884
4086
  isPrimaryKey: false,
2885
4087
  binding: false,
2886
- defaultValue: null
4088
+ defaultValue: "=instanceglobals.CaseGlobalsLastPrimaryStageExited",
4089
+ target: "body",
4090
+ displayName: "Last primary stage exited global"
2887
4091
  }
2888
4092
  ],
2889
- inputPattern: "splitInputsItemData",
2890
- inputName: "ItemData",
2891
- inputTarget: "body",
2892
- outputSource: null,
2893
- outputType: "Maestro.SendMessageEvent",
2894
- outputName: "response",
2895
- useRelativeSource: true,
4093
+ 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.",
4094
+ 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.",
4095
+ inputName: "body",
4096
+ inputTarget: "body"
4097
+ },
4098
+ "Maestro.CaseCycleCommit": {
4099
+ extensionType: "Maestro.CaseCycleCommit",
4100
+ label: "Commit case decision cycle",
4101
+ bpmnElement: "bpmn:ServiceTask",
4102
+ placements: {},
4103
+ extensionTag: "uipath:activity",
4104
+ contextFields: [],
4105
+ inputPattern: "mergedBody",
2896
4106
  bindingPattern: "none",
2897
4107
  requiresDiscovery: false,
2898
4108
  isDynamic: false,
2899
- xmlTemplate: `<bpmn:IntermediateThrowEvent id="{id}" name="{name}">
4109
+ generatedOutputs: true,
4110
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
2900
4111
  <bpmn:extensionElements>
2901
- <uipath:event version="v1">
2902
- <uipath:type value="Maestro.SendMessageEvent" version="v1" />
2903
- <uipath:context>
2904
- <uipath:input name="name" type="string" value="{name}" />
2905
- <uipath:input name="_label" type="string" value="{_label}" />
2906
- <uipath:input name="inputSchema" type="jsonSchema" value="{inputSchema}" />
2907
- </uipath:context>
2908
- <uipath:input name="ItemData" type="json" target="body"><![CDATA[{"Reference":"{Reference}","SpecificContent":{},"TimeToLive":""}]]></uipath:input>
2909
- <uipath:output name="response" type="Maestro.SendMessageEvent" var="{varId}" />
2910
- </uipath:event>
4112
+ <uipath:activity version="v1">
4113
+ <uipath:type value="Maestro.CaseCycleCommit" version="v2" />
4114
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"decisions":{decisions},"sequentialTasksToResetByStageName":{sequentialTasksToResetByStageName},"lastPrimaryStageExitedGlobalKey":"{lastPrimaryStageExitedGlobalKey}"}]]></uipath:input>
4115
+ <uipath:output name="latestCaseState" type="jsonSchema" source="=caseState" var="{varId}" />
4116
+ </uipath:activity>
2911
4117
  </bpmn:extensionElements>
2912
- <bpmn:messageEventDefinition />
2913
4118
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
2914
4119
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
2915
- </bpmn:IntermediateThrowEvent>`,
2916
- 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.",
2917
- extensionTagNotes: "In isEvents array, uses uipath:event",
4120
+ </bpmn:ServiceTask>`,
2918
4121
  inputFields: [
2919
4122
  {
2920
- name: "Reference",
2921
- displayName: "Reference",
2922
- type: "string",
2923
- required: true,
4123
+ name: "decisions",
4124
+ type: "json",
4125
+ required: false,
2924
4126
  hidden: false,
2925
4127
  isPrimaryKey: false,
2926
4128
  binding: false,
2927
4129
  defaultValue: null,
2928
4130
  target: "body",
2929
- description: "Correlation reference to match this send event to its receiver"
4131
+ displayName: "Case manager decisions"
2930
4132
  },
2931
4133
  {
2932
- name: "SpecificContent",
2933
- displayName: "Item information",
4134
+ name: "sequentialTasksToResetByStageName",
2934
4135
  type: "json",
2935
4136
  required: false,
2936
4137
  hidden: false,
@@ -2938,21 +4139,24 @@ var bpmn_spec_default = {
2938
4139
  binding: false,
2939
4140
  defaultValue: null,
2940
4141
  target: "body",
2941
- description: "JSON payload with the message content"
4142
+ displayName: "Sequential task names to reset, keyed by stage name"
2942
4143
  },
2943
4144
  {
2944
- name: "TimeToLive",
2945
- displayName: "Time to live",
2946
- type: "duration",
4145
+ name: "lastPrimaryStageExitedGlobalKey",
4146
+ type: "string",
2947
4147
  required: false,
2948
4148
  hidden: false,
2949
4149
  isPrimaryKey: false,
2950
4150
  binding: false,
2951
- defaultValue: null,
4151
+ defaultValue: "CaseGlobalsLastPrimaryStageExited",
2952
4152
  target: "body",
2953
- description: "Duration after which the message expires if not consumed"
4153
+ displayName: "Instance-globals key for the last primary stage exited"
2954
4154
  }
2955
- ]
4155
+ ],
4156
+ 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.',
4157
+ 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.",
4158
+ inputName: "body",
4159
+ inputTarget: "body"
2956
4160
  },
2957
4161
  "Maestro.CaseRulesEvaluator": {
2958
4162
  extensionType: "Maestro.CaseRulesEvaluator",
@@ -3517,7 +4721,7 @@ var bpmn_spec_default = {
3517
4721
  extensionTagResolution: {
3518
4722
  description: "How the frontend determines which XML extension tag to use",
3519
4723
  rules: [
3520
- "If serviceType is in isEvents array [Intsvc.WaitForEvent, Intsvc.EventTrigger, Maestro.ReceiveMessageEvent, Maestro.SendMessageEvent] => uipath:event",
4724
+ "If serviceType is in isEvents array [Intsvc.WaitForEvent, Intsvc.EventTrigger, Maestro.ReceiveMessageEvent, Maestro.SendMessageEvent, Queue.WaitForEvent] => uipath:event",
3521
4725
  "If serviceType is BPMN.Variables on bpmn:StartEvent, bpmn:EndEvent, or bpmn:Task => uipath:mapping",
3522
4726
  "If nodeType is bpmn:ScriptTask or bpmn:SubProcess => uipath:mapping",
3523
4727
  "Otherwise => uipath:activity"
@@ -3527,7 +4731,8 @@ var bpmn_spec_default = {
3527
4731
  "Intsvc.WaitForEvent",
3528
4732
  "Intsvc.EventTrigger",
3529
4733
  "Maestro.ReceiveMessageEvent",
3530
- "Maestro.SendMessageEvent"
4734
+ "Maestro.SendMessageEvent",
4735
+ "Queue.WaitForEvent"
3531
4736
  ],
3532
4737
  isExecutionArray: [
3533
4738
  "Intsvc.ActivityExecution",
@@ -3547,6 +4752,23 @@ var bpmn_spec_default = {
3547
4752
  // src/manifest/bpmn-spec.ts
3548
4753
  var BPMN_SPEC = bpmn_spec_default;
3549
4754
  var MERGED_INPUT_PATTERNS = new Set(["mergedBody", "splitInputsItemData", "scriptArgs"]);
4755
+ var STRUCTURAL_TEMPLATE_TOKENS = Object.freeze([
4756
+ "id",
4757
+ "name",
4758
+ "incomingEdge",
4759
+ "outgoingEdge",
4760
+ "varId",
4761
+ "errorVarId",
4762
+ "outputVarId",
4763
+ "hasItemVarId",
4764
+ "countVarId",
4765
+ "bindingId",
4766
+ "nameBindingId",
4767
+ "folderPathBindingId",
4768
+ "connectionBindingId",
4769
+ "folderBindingId",
4770
+ "fileRef"
4771
+ ]);
3550
4772
  var STATIC_UIPATH_EXTENSION_TAG_NAMES = [
3551
4773
  "binding",
3552
4774
  "bindings",
@@ -3581,8 +4803,9 @@ var SUPPORTED_UIPATH_EXTENSION_TAGS = Object.freeze(SUPPORTED_UIPATH_EXTENSION_T
3581
4803
  export {
3582
4804
  BPMN_SPEC,
3583
4805
  MERGED_INPUT_PATTERNS,
4806
+ STRUCTURAL_TEMPLATE_TOKENS,
3584
4807
  SUPPORTED_UIPATH_EXTENSION_TAGS,
3585
4808
  SUPPORTED_UIPATH_EXTENSION_TAG_NAMES
3586
4809
  };
3587
4810
 
3588
- //# debugId=D6D3A659D1E9456364756E2164756E21
4811
+ //# debugId=38ED8885433FCF6A64756E2164756E21