[jboss-user] [jBPM Users] - Re: [jbpm 4.2] Finding a Process Instance

2009-12-09 Thread mike_burton
Thanks for your reply. environment-interceptor / is specified in jbpm.cfg.xml. Here is my complete configuration. jbpm-configuration process-engine-context repository-service / repository-cache / execution-service / history-service /

[jboss-user] [jBPM Users] - Re: [jbpm 4.2] Finding a Process Instance

2009-12-09 Thread saraswati.santanu
Name of the command service and the id-generator are to be changed in 4.2. Yours is for 4.1. But you should have got exception at some other step because of these. This is a sample cfg file for 4.2 | jbpm-configuration | | import resource=jbpm.businesscalendar.cfg.xml / | import

[jboss-user] [jBPM Users] - Re: [jbpm 4.2] Finding a Process Instance

2009-12-05 Thread saraswati.santanu
Hi Mike, you caught me. What you did was perfect and my way of creating query is definitely not the correct way. Thanks for pointing that and sorry for giving an incorrect code. For the current exception you might need to see if you have environment-interceptor / in you command service

[jboss-user] [jBPM Users] - Re: [jbpm 4.2] Finding a Process Instance

2009-12-03 Thread mike_burton
Hi Santanu Thanks for your respnse. When i use this statement in my code, i am getting the below exception. org.jbpm.api.JbpmException: no environment to get org.hibernate.Session at org.jbpm.pvm.internal.env.Environment.getFromCurrent(Environment.java:196) at

[jboss-user] [jBPM Users] - Re: [jbpm 4.2] Finding a Process Instance

2009-12-02 Thread saraswati.santanu
org.jbpm.api.ProcessInstanceQuery is the class you should be using. | ProcessInstanceQuery query = new ProcessInstanceQueryImpl(); | ListProcessInstance list = query.processDefinitionId(procesDefinitionId).list(); | View the original post :