Class Dmn


  • public class Dmn
    extends Object
    • Field Detail

      • INSTANCE

        public static Dmn INSTANCE
        the singleton instance of Dmn. If you want to customize the behavior of Dmn, replace this instance with an instance of a custom subclass of Dmn.
    • Constructor Detail

      • Dmn

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

      • convertToString

        public static String convertToString​(DmnModelInstance modelInstance)
        Allows the conversion of a DmnModelInstance 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​(DmnModelInstance modelInstance)
        Validate model DOM document
        Parameters:
        modelInstance - the DmnModelInstance to validate
        Throws:
        org.camunda.bpm.model.xml.ModelValidationException - if the model is not valid
      • doWriteModelToFile

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

        protected void doValidateModel​(DmnModelInstance modelInstance)
      • doRegisterTypes

        protected void doRegisterTypes​(org.camunda.bpm.model.xml.ModelBuilder modelBuilder)
      • getDmnModel

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

        public org.camunda.bpm.model.xml.ModelBuilder getDmnModelBuilder()
      • setDmnModel

        public void setDmnModel​(org.camunda.bpm.model.xml.Model dmnModel)
        Parameters:
        dmnModel - the cmmnModel to set