JBoss Community

Re: Instantiating the KnowledgeBase

created by Piotr Tempes in jBPM - View the full discussion

1. Yes and the package is built successfully.

2. What do you mean by builds? If you mean that if the first code snippet is done before the third, than yes I do build the package before kbase.getProcesses()

 

ProcessBuilderFactory.setProcessBuilderFactoryService(new ProcessBuilderFactoryServiceImpl());
ProcessMarshallerFactory.setProcessMarshallerFactoryService(new ProcessMarshallerFactoryServiceImpl());        ProcessRuntimeFactory.setProcessRuntimeFactoryService(new ProcessRuntimeFactoryServiceImpl());
BPMN2ProcessFactory.setBPMN2ProcessProvider(new BPMN2ProcessProviderImpl());       
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent("default guvnor agent");      
kagent.applyChangeSet(ResourceFactory.newClassPathResource("ChangeSet.xml"));
kbase = kagent.getKnowledgeBase();
 

 

this is a part of my connector's constructor... so the third snippet looks actually like that:

 

 

3. Yes I do... I have catch clause in which I set error variable and print it in index.jsp ... there's no error

Reply to this message by going to Community

Start a new discussion in jBPM at Community