Hi guys.
I use Zeebe BPMN Model API(version 0.21.0) to create a Workflow. When i deploy it to Zeebe, i got an ERROR – “Must have exactly one zeebe:taskDefinition extension element”
How can I add “zeebe:taskDefinition extention element” when i model with Zeebe BPMN Model API?
Blockquote
public static void testCreateInvoiceProcess() throws Exception{
BpmnModelInstance modelInstance = (BpmnModelInstance) Bpmn
.createExecutableProcess(“invoice”)
.startEvent()
.name(“Invoice received”)
.serviceTask()
.name(“assign Approver”)
.endEvent()
.done();
Bpmn.validateModel(modelInstance);
File file = File.createTempFile(“InvoiceProcess”, “.bpmn”, new File(“/Users/lkestk/tmp”));
Bpmn.writeModelToFile(file,modelInstance);
}