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.
tijs
August 31, 2018, 6:41am
2
Hi,
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:
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.flowable.bpmn.converter;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
This file has been truncated. show original
Best regards,
Tijs
How to generate BpmnModel object to pass convertToXml() ? and Where to pass UI inputs ?.