ProcessInstance processInstance = ksession.startProcess("NoneIntermediateEvent", null);
assertEquals(ProcessInstance.STATE_COMPLETED, processInstance.getState());
}
private KnowledgeBase createKnowledgeBase(String process) throws Exception {
KnowledgeBaseFactory.setKnowledgeBaseServiceFactory(new ProcessBaseFactoryService());
KnowledgeBuilderConfiguration conf = KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration();
((PackageBuilderConfiguration) conf).initSemanticModules();
((PackageBuilderConfiguration) conf).addSemanticModule(new BPMNSemanticModule());
((PackageBuilderConfiguration) conf).addSemanticModule(new BPMNDISemanticModule());
// ProcessDialectRegistry.setDialect("XPath", new XPathDialect());