JBoss Community

How to switch off schema validation ?

created by Tobias Wittur in jBPM - View the full discussion

Hello,

 

How exactly would I switch off the BPMN2 schema validation for eclipse?

 

This is how I init my process. Do I have to manipulate the ResourceFactory somehow?

 

KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();

kbuilder.add(ResourceFactory.newClassPathResource(

"com/myproject.bpmn2"), ResourceType.BPMN2 

);

 

kbuilder.add(ResourceFactory.newClassPathResource(

"com/apollo/myproject.drl"), ResourceType.DRL 

);

 

 

KnowledgeBase kbase = kbuilder.newKnowledgeBase();

 

StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();

 

Best regards and thanks,

 

Tobias

Reply to this message by going to Community

Start a new discussion in jBPM at Community