We want to generate BPMN XML by taking inputs from custom UI Form. So, we are looking for API which will take inputs from the form on UI as we don’t want any designer to model custom workflow, we are taking design elements(like user tasks, gateways etc) from UI form and we want to generate BPMN XML in backend.
You can use the BpmnModel in this module to create a Java representation of the process definition:
And then you can use the BpmnXMLConverter to convert this Java BpmnModel to XML:
How to generate BpmnModel object to pass convertToXml() ? and Where to pass UI inputs ?.