Class Bpmn

  • Direct Known Subclasses:
    BpmnImpl

    public class Bpmn
    extends Object
    Provides access to the camunda BPMN model api.
    Author:
    Daniel Meyer
    • Field Detail

      • INSTANCE

        public static final Bpmn INSTANCE
    • Constructor Detail

      • Bpmn

        protected Bpmn()
        Register known types of the BPMN model
    • Method Detail

      • convertToString

        public static String convertToString​(BpmnModelInstance modelInstance)
        Allows the conversion of a BpmnModelInstance to an String. It will be validated before conversion.
        Parameters:
        modelInstance - the model instance to convert
        Returns:
        the XML string representation of the model instance
      • validateModel

        public static void validateModel​(BpmnModelInstance modelInstance)
        Validate model DOM document
        Parameters:
        modelInstance - the BpmnModelInstance to validate
        Throws:
        org.camunda.bpm.model.xml.ModelValidationException - if the model is not valid
      • createExecutableProcess

        public static ProcessBuilder createExecutableProcess()
      • createExecutableProcess

        public static ProcessBuilder createExecutableProcess​(String processId)
      • doWriteModelToFile

        protected void doWriteModelToFile​(File file,
                                          BpmnModelInstance modelInstance)
      • doValidateModel

        protected void doValidateModel​(BpmnModelInstance modelInstance)
      • doRegisterTypes

        protected void doRegisterTypes​(org.camunda.bpm.model.xml.ModelBuilder bpmnModelBuilder)
      • getBpmnModel

        public org.camunda.bpm.model.xml.Model getBpmnModel()
        Returns:
        the Model instance to use
      • setBpmnModel

        public void setBpmnModel​(org.camunda.bpm.model.xml.Model bpmnModel)
        Parameters:
        bpmnModel - the bpmnModel to set
      • getBpmnModelBuilder

        public org.camunda.bpm.model.xml.ModelBuilder getBpmnModelBuilder()