java.lang.Object
tr.com.havelsan.javarch.bpmn.admin.starter.module.process.util.HvlBpmnProcessUtil

public final class HvlBpmnProcessUtil extends Object
Utility class.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The constant DIAGRAM_EXTENSION.
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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 model
      processEngineConfiguration - 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 [ ]