Yes, I have put 'jbpm.cfg.xml' in lib of my java project.

Let me explain you whole scenario:

I have developed business process using eclipse.
Now I have java project in which I have class trying to access this process.
For your reference I am putting snipet of code below:

....
JbpmConfiguration jbpmConfiguration = 
JbpmConfiguration.getInstance("D:\\eclipse_new\\eclipse-SDK-3.4.1-win32\\eclipse\\workspace\\TestEvenNumberjDPL\\src\\lib\\jbpm.cfg.xml");
                
                
//jbpmConfiguration.parseResource("D:\\eclipse_new\\eclipse-SDK-3.4.1-win32\\eclipse\\workspace\\TestEvenNumberjDPL\\src\\lib\\jbpm.cfg.xml");
                
//jbpmConfiguration.parseXmlString("D:\\eclipse_new\\eclipse-SDK-3.4.1-win32\\eclipse\\workspace\\TestEvenNumberjDPL\\src\\lib\\jbpm.cfg.xml");
                
                JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
                
                try {
                
                        ProcessDefinition definition = 
ProcessDefinition.parseXmlResource("D:/eclipse_new/eclipse-SDK-3.4.1-win32/eclipse/workspace/Even-number-manipulation/src/main/jpdl/add-even-numbers/processdefinition.xml");
                        
                        ProcessInstance instance = new 
ProcessInstance(definition);
.....

I have a lib folder consisting all requied jar and 'jbpm.cfg.xml'.
I am not sure whether this is correct way or not.
Can you please suggest me the required steps?

Regards,
Ruchika

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183759#4183759

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4183759
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to