Class Cmmn


  • public class Cmmn
    extends Object
    Author:
    Roman Smirnov
    • Field Detail

      • INSTANCE

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

      • Cmmn

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

      • convertToString

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

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

        protected void doValidateModel​(CmmnModelInstance modelInstance)
      • doRegisterTypes

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

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

        public org.camunda.bpm.model.xml.ModelBuilder getCmmnModelBuilder()
      • setCmmnModel

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