this is my definition of the user task:
<bpmn:userTask id="Task_4" name="Task 4" camunda:assignee="demo">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="module" label="Modulkurse" type="ch.zhaw.iwi.demokell.Module" />
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>SequenceFlow_1djhjhi</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_1dy1hbs</bpmn:outgoing>
</bpmn:userTask>
Executing the model in Eclipse will yield the following error (Module.java is available):
- unknown type ‘ch.zhaw.iwi.demokell.Module’ | process.bpmn | line 77 | column 98
Hi Thomas Keller,
Camunda extends BPMN with custom Extension Elements and Attributes and one of the camunda extension elements is formField https://docs.camunda.org/manual/7.4/reference/bpmn20/custom-extensions/extension-elements/#formfield
Based on documentation https://docs.camunda.org/manual/7.4/user-guide/task-forms/#form-fields
Only the following types are supported for type attribute (out of the box):
- string
- long
- date
- boolean
- enum
To work with serialized java objects in embedded forms see below sample
https://github.com/camunda/camunda-bpm-examples/tree/master/usertask/task-form-embedded-serialized-java-object
2 Likes