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 /
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
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
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
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 :