Piotr Tempes [
http://community.jboss.org/people/carek] created the discussion
"Re: Instantiating the KnowledgeBase"
To view the discussion, visit:
http://community.jboss.org/message/598924#598924
--------------------------------------------------------------
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
[
http://community.jboss.org/message/598924#598924]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]