[jboss-user] [jBPM] New message: "Re: How to get sub process instance id"
Giuseppe Trotta
do-not-reply at jboss.com
Thu Jan 28 10:20:29 EST 2010
User development,
A new message was posted in the thread "How to get sub process instance id":
http://community.jboss.org/message/522785#522785
Author : Giuseppe Trotta
Profile : http://community.jboss.org/people/gtrotta
Message:
--------------------------------------------------------------
hi,
your solutions don't work for me. That is, when I get executions from processInstance I have an empty collection.
here my code:
ProcessInstance mainProcessInstance = (ProcessInstance)executionService.findProcessInstanceById(mainProcessInstanceId);
* Collection<? extends Execution> executions = mainProcessInstance.getExecutions();*
* // here 'executions' is empty*
but I'm sure to have a subprocess active in a 'wait' state.
Maybe cause the subprocessInstance isn't a mainProcessInstance's child execution, rather another ProcessInstance wired to the mainProcessInstance.
I tried to get subprocessid through OpenExecution interface as follows:
*OpenExecution mainOpenExecution = (OpenExecution) mainProcessInstance;
OpenExecution subOpenExecution = mainOpenExecution.getSubProcessInstance();
String subId = subOpenExecution.getId();
logger.info("subProcessInstance ID: "+subId);*
but either this solution doesn't work throwing following exception:
*org.hibernate.LazyInitializationException: could not initialize proxy - no Session
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:86)*
Any idea?
thanxs
Giuseppe
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/522785#522785
More information about the jboss-user
mailing list