Package org.camunda.bpm.model.xml

Examples of org.camunda.bpm.model.xml.ModelValidationException


    this.schemaFactory = SchemaFactory.newInstance(W3C_XML_SCHEMA);
    URL bpmnSchema = ReflectUtil.getResource(BpmnModelConstants.BPMN_20_SCHEMA_LOCATION, BpmnParser.class.getClassLoader());
    try {
      this.schema = schemaFactory.newSchema(bpmnSchema);
    } catch (SAXException e) {
      throw new ModelValidationException("Unable to parse schema:" + bpmnSchema);
    }
  }
View Full Code Here


    Validator validator = schema.newValidator();
    try {
      validator.validate(document.getDomSource());
    } catch (IOException e) {
      throw new ModelValidationException("Error during DOM document validation", e);
    } catch (SAXException e) {
      throw new ModelValidationException("DOM document is not valid", e);
    }
  }
View Full Code Here

     this.schemaFactory = SchemaFactory.newInstance(W3C_XML_SCHEMA);
     URL cmmnSchema = ReflectUtil.getResource(CmmnModelConstants.CMMN_10_SCHEMA_LOCATION, CmmnParser.class.getClassLoader());
     try {
       this.schema = schemaFactory.newSchema(cmmnSchema);
     } catch (SAXException e) {
       throw new ModelValidationException("Unable to parse schema:" + cmmnSchema);
     }
   }
View Full Code Here

TOP

Related Classes of org.camunda.bpm.model.xml.ModelValidationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.