'Generate org.activiti.bpmn.model.Classes from .bpmn.xml or .bpmn files?
i am new to activiti and i am currently trying to learn more about the engine. After debugging our application i found classes like "BpmnParse", "BpmnXMLConverter", "BpmnModel" etc.
What i am trying to find is a way to convert our .bpmn or bpmn20.xml into this "BpmnModel". Then I would like to work with these classes and later on convert them back into an xml file.
The converting of the bpmn.xml into bpmnModel is used, when I am deploying a process. Internally the line seems to prove that the functionality exists in one way at least:
bpmnModel = converter.convertToBpmnModel(streamSource, validateSchema, enableSafeBpmnXml, encoding); (org.activiti.engine.impl.bpmn.parser;)
In the package "org.activiti.bpmn.converter I found:
public byte[] convertToXML(BpmnModel model) {
return convertToXML(model, DEFAULT_ENCODING);
}
So it seems like it should be possible. However, how can i extract for example the UserTask form this model and maybe set properties. And can i really convert the model back into valid XML programmatically?
Thank you very much in advance.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
