Class HvlBpmnProcessUtil
java.lang.Object
tr.com.havelsan.javarch.bpmn.admin.starter.module.process.util.HvlBpmnProcessUtil
Utility class.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.flowable.bpmn.model.BpmnModel
convertToBpmnModel
(byte[] sourceJson) Convert to source json to bpmn model.static org.flowable.bpmn.model.BpmnModel
convertToBpmnModel
(com.fasterxml.jackson.databind.JsonNode jsonNode) Convert to json node to bpmn model.static byte[]
convertToJson
(org.flowable.bpmn.model.BpmnModel bpmnModel) Convert to bpmn model object to json as byte array.static byte[]
convertToXml
(byte[] sourceJson) Convert to source json to xml as byte array.static byte[]
generateDiagram
(org.flowable.bpmn.model.BpmnModel bpmnModel, org.flowable.engine.ProcessEngineConfiguration processEngineConfiguration) Generate diagram as byte array.
-
Field Details
-
DIAGRAM_EXTENSION
The constant DIAGRAM_EXTENSION.- See Also:
-
-
Method Details
-
generateDiagram
public static byte[] generateDiagram(org.flowable.bpmn.model.BpmnModel bpmnModel, org.flowable.engine.ProcessEngineConfiguration processEngineConfiguration) Generate diagram as byte array.- Parameters:
bpmnModel
- the bpmn modelprocessEngineConfiguration
- the process engine configuration- Returns:
- the byte [ ]
-
convertToBpmnModel
public static org.flowable.bpmn.model.BpmnModel convertToBpmnModel(byte[] sourceJson) Convert to source json to bpmn model.- Parameters:
sourceJson
- the source json- Returns:
- the bpmn model
-
convertToBpmnModel
public static org.flowable.bpmn.model.BpmnModel convertToBpmnModel(com.fasterxml.jackson.databind.JsonNode jsonNode) Convert to json node to bpmn model.- Parameters:
jsonNode
- the json node- Returns:
- the bpmn model
-
convertToXml
public static byte[] convertToXml(byte[] sourceJson) Convert to source json to xml as byte array.- Parameters:
sourceJson
- the source json- Returns:
- the byte [ ]
-
convertToJson
public static byte[] convertToJson(org.flowable.bpmn.model.BpmnModel bpmnModel) Convert to bpmn model object to json as byte array.- Parameters:
bpmnModel
- the bpmn model- Returns:
- the byte [ ]
-