Define the type for the UserTask in Element template

Hi all,
is there a way to define the type of the user task with the element template ?
In particular i need to setup the type of the user task as parallel multi instance.

Thank you.

Giuseppe

As far as I know, and what I can get from the element templates documentation, this is currently not possible.

Although it’s not possible via element template, maybe you can create a plugin to achieve that?

Hi Niklas,

Ok, i’ll try to investigate with the plugin, for the moment i wrapped the user task in a new wf and used the call activity element template.

Thank you

Giuseppe

for the moment i wrapped the user task in a new wf and used the call activity element template

Sounds interesting, mind you sharing this approach?

Hi Niklas,
sorry for the delay.
Sure, in the attachment you can find the bmpn
diagram_2.bpmn (2.5 KB)

This is the modeler template:
{
“name”: “multi instances task”,
“id”: “modeler.multi.instances.task”,
“appliesTo”: [
“bpmn:CallActivity”
],
“properties”: [
{
“label”: “Called Process”,
“type”: “String”,
“editable”: false,
“value”: “multi_instances_task”,
“binding”: {
“type”: “property”,
“name”: “calledElement”
}
},
{
“label”: “Documents collection Input”,
“type”: “String”,
“value”: “yourCollection”,
“binding”: {
“type”: “camunda:in”,
“target”: “collection”
},
“constraints”: {
“notEmpty”: true
}
}
]
}

This work if the type of the collection variable is JSON.