Skip to content

Commit 3f2959e

Browse files
committed
1 parent fa8c274 commit 3f2959e

File tree

4 files changed

+53
-15
lines changed

4 files changed

+53
-15
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
},
5757
"dependencies": {
5858
"@camunda/element-templates-json-schema": "^0.19.0",
59-
"@camunda/zeebe-element-templates-json-schema": "^0.30.0",
59+
"@camunda/zeebe-element-templates-json-schema": "^0.31.1",
6060
"json-source-map": "^0.6.1",
6161
"min-dash": "^4.1.1"
6262
}

test/fixtures/ad-hoc-broken.json

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[
22
{
33
"$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
4-
"name": "AdHoc Missing TaskDefinition",
5-
"id": "io.camunda.examples.AdHoc.MissingTaskDefinition",
4+
"name": "AdHoc Missing Output Collection",
5+
"id": "io.camunda.examples.AdHoc.MissingOutputCollection",
66
"version": 1,
77
"appliesTo": ["bpmn:AdHocSubProcess"],
88
"elementType": {"value": "bpmn:AdHocSubProcess"},
99
"properties": [
1010
{
1111
"type": "Hidden",
12-
"binding": {"type": "zeebe:adHoc", "property": "outputCollection"},
13-
"value": "toolCallResults"
12+
"binding": {"type": "zeebe:taskDefinition", "property": "type"},
13+
"value": "io.camunda.agenticai:aiagent-job-worker:1"
1414
},
1515
{
1616
"type": "String",
@@ -22,8 +22,8 @@
2222
},
2323
{
2424
"$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
25-
"name": "AdHoc Missing Output Collection",
26-
"id": "io.camunda.examples.AdHoc.MissingOutputCollection",
25+
"name": "AdHoc Task Definition and Active Elements Collection",
26+
"id": "io.camunda.examples.AdHoc.Valid.BPMN",
2727
"version": 1,
2828
"appliesTo": ["bpmn:AdHocSubProcess"],
2929
"elementType": {"value": "bpmn:AdHocSubProcess"},
@@ -35,9 +35,20 @@
3535
},
3636
{
3737
"type": "String",
38-
"binding": {"type": "zeebe:adHoc", "property": "outputElement"},
38+
"binding": {"type": "zeebe:adHoc", "property": "outputCollection"},
39+
"value": "toolCallResults"
40+
},
41+
{
42+
"type": "String",
3943
"feel": "required",
44+
"binding": {"type": "zeebe:adHoc", "property": "outputElement"},
4045
"value": "={ id: toolCall._meta.id, name: toolCall._meta.name, content: toolCallResult }"
46+
},
47+
{
48+
"type": "String",
49+
"feel": "required",
50+
"binding": {"type": "zeebe:adHoc", "property": "activeElementsCollection"},
51+
"value": "=selectedTools"
4152
}
4253
]
4354
}

test/fixtures/ad-hoc.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,32 @@
4949
"value": "={ id: toolCall._meta.id, name: toolCall._meta.name, content: toolCallResult }"
5050
}
5151
]
52+
},
53+
{
54+
"$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
55+
"name": "AdHoc Template",
56+
"id": "io.camunda.examples.AdHoc.Valid.BPMN",
57+
"version": 1,
58+
"appliesTo": ["bpmn:AdHocSubProcess"],
59+
"elementType": {"value": "bpmn:AdHocSubProcess"},
60+
"properties": [
61+
{
62+
"type": "String",
63+
"binding": {"type": "zeebe:adHoc", "property": "outputCollection"},
64+
"value": "toolCallResults"
65+
},
66+
{
67+
"type": "String",
68+
"feel": "required",
69+
"binding": {"type": "zeebe:adHoc", "property": "outputElement"},
70+
"value": "={ id: toolCall._meta.id, name: toolCall._meta.name, content: toolCallResult }"
71+
},
72+
{
73+
"type": "String",
74+
"feel": "required",
75+
"binding": {"type": "zeebe:adHoc", "property": "activeElementsCollection"},
76+
"value": "=selectedTools"
77+
}
78+
]
5279
}
5380
]

0 commit comments

Comments
 (0)