Hello,
I’m generating a process, with tasks, with the org.flowable.bpmn.model.
I can create the process, tasks and transitions. And instantiate it with success.
No I’m trying to create a form, and associate it to a task.
I got something like this:
UserTask userTask = new UserTask();
userTask.setName("my task name"));
userTask.setId("IDTask123");
FormProperty formProperty = new FormProperty();
ExtensionElement extensionElement = new ExtensionElement();
formProperty.setName("task value");
formProperty.setId("taskType");
extensionElement.setName("new name of the form");
extensionElement.setValues(formProperty);
userTask.addExtensionElement(extensionElement);
But when I inspect the usertask attributes the extensionElement are missing… So, no form is being added…
Any help?
Thanks in advance,
Filipe