Hello,
I want to create a bpmn userTask xml.
using this code:
BpmnModelInstance modelInstance = Bpmn.createEmptyModel();
Definitions definitions = modelInstance.newInstance(Definitions.class);
definitions.setTargetNamespace(“The Universal Process Orchestrator | Camunda”);
modelInstance.setDefinitions(definitions);Process process = createElement(modelInstance, definitions,“process-with-one-task”, Process.class);
UserTask task = createElement(modelInstance, process, “task”, UserTask.class);
task.setName(“User Task”);Bpmn.validateModel(modelInstance);
return Bpmn.convertToString(modelInstance);
and getting this xml:
when copy this xml and paste on CamundaModeller.exe it says me;
I am using this version;
implementation(‘org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter:3.3.1’)
implementation(‘org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-webapp:3.3.1’)
implementation(‘org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-rest:3.3.1’)
What’s wrong on my code?
Thank you!