[jboss-user] [jBPM] - Re: Instantiating the KnowledgeBase

Piotr Tempes do-not-reply at jboss.com
Fri Apr 8 13:28:14 EDT 2011


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&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110408/631a1ab6/attachment.html 


More information about the jboss-user mailing list