Class BpmnXMLConverter

java.lang.Object
org.activiti.bpmn.converter.BpmnXMLConverter
All Implemented Interfaces:
BpmnXMLConstants
Direct Known Subclasses:
SubprocessXMLConverter

public class BpmnXMLConverter extends Object implements BpmnXMLConstants
  • Field Details

  • Constructor Details

    • BpmnXMLConverter

      public BpmnXMLConverter()
  • Method Details

    • addConverter

      public static void addConverter(BaseBpmnXMLConverter converter)
    • addConverter

      public static void addConverter(BaseBpmnXMLConverter converter, Class<? extends org.activiti.bpmn.model.BaseElement> elementType)
    • setClassloader

      public void setClassloader(ClassLoader classloader)
    • setUserTaskFormTypes

      public void setUserTaskFormTypes(List<String> userTaskFormTypes)
    • setStartEventFormTypes

      public void setStartEventFormTypes(List<String> startEventFormTypes)
    • validateModel

      public void validateModel(InputStreamProvider inputStreamProvider) throws Exception
      Throws:
      Exception
    • validateModel

      public void validateModel(XMLStreamReader xmlStreamReader) throws Exception
      Throws:
      Exception
    • createSchema

      protected Schema createSchema() throws SAXException
      Throws:
      SAXException
    • createSchema

      protected Schema createSchema(SchemaFactory factory, URL schemaUrl) throws SAXException
      Throws:
      SAXException
    • convertToBpmnModel

      public org.activiti.bpmn.model.BpmnModel convertToBpmnModel(InputStreamProvider inputStreamProvider, boolean validateSchema, boolean enableSafeBpmnXml)
    • convertToBpmnModel

      public org.activiti.bpmn.model.BpmnModel convertToBpmnModel(InputStreamProvider inputStreamProvider, boolean validateSchema, boolean enableSafeBpmnXml, String encoding)
    • convertToBpmnModel

      public org.activiti.bpmn.model.BpmnModel convertToBpmnModel(XMLStreamReader xtr)
    • processFlowElements

      protected void processFlowElements(Collection<org.activiti.bpmn.model.FlowElement> flowElementList, org.activiti.bpmn.model.BaseElement parentScope)
    • getFlowNodeFromScope

      protected org.activiti.bpmn.model.FlowNode getFlowNodeFromScope(String elementId, org.activiti.bpmn.model.BaseElement scope)
    • convertToXML

      public byte[] convertToXML(org.activiti.bpmn.model.BpmnModel model)
    • convertToXML

      public byte[] convertToXML(org.activiti.bpmn.model.BpmnModel model, String encoding)
    • createXML

      protected void createXML(org.activiti.bpmn.model.FlowElement flowElement, org.activiti.bpmn.model.BpmnModel model, XMLStreamWriter xtw) throws Exception
      Throws:
      Exception
    • createXML

      protected void createXML(org.activiti.bpmn.model.Artifact artifact, org.activiti.bpmn.model.BpmnModel model, XMLStreamWriter xtw) throws Exception
      Throws:
      Exception