My comments here apply to 3.0.2. I think that's what you are using, correct me 
if I'm wrong.

The subProcessToken is not persistent. Hence when you load the process instance 
from the DB, its always null. 

Is there something you want to do that you cant accomplish using the subprocess 
end event?

See this for reference
http://jira.jboss.com/jira/browse/JBPM-462

If you implement the code change listed there, you can get the 
subProcessInstance from the subprocess end event. In our case, that turned out 
to be a great solution.

Otherwise, you'll have to change the way you are trying to load the subprocess. 
One thing you can do is run a custom HQL query to find the process instances 
that have a superprocesstoken = X. Should be pretty easy to write and if you 
write it in HQL it will not tie you to the database schema.

The aforementioned bug should be fixed in a 3.0.3 release in our opinion.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923042


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to