[jBPM] New message: "Re: How to get sub process instance id"
by Giuseppe Trotta
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
14 years, 4 months
[jBPM] New message: "Re: Problem with timer"
by Sebastian Schneider
User development,
A new message was posted in the thread "Problem with timer":
http://community.jboss.org/message/522779#522779
Author : Sebastian Schneider
Profile : http://community.jboss.org/people/sebastian.s
Message:
--------------------------------------------------------------
This not a response to your actual problem but just a remark. IMHO you cannnot achieve what you are trying to do. This is due to a behaviour of jBPM not deleting tasks in case of a timeout. When your transition "to timeout" fires execution of the process moves on to the next activity. Since this is a timer event it's a new execution started by the JobExecutor. When the execution of the proces then moves on the task again a new task is created. The old task will still be in the task list but you won't neither be able to complete it nor to delete it because the associated execution was already deleted.
Take a look at this issue for a good description: https://jira.jboss.org/jira/browse/JBPM-2559
The issue is duplicated by: https://jira.jboss.org/jira/browse/JBPM-2537 It's still unsolved but it's scheduled for jBPM 4.4.
P.S.: Please consider voting for the issue!
HTH
Sebastian
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/522779#522779
14 years, 4 months
[JBoss AOP] New message: "Re: withincode from JUnit test not working"
by Alan Nisbet
User development,
A new message was posted in the thread "withincode from JUnit test not working":
http://community.jboss.org/message/522759#522759
Author : Alan Nisbet
Profile : http://community.jboss.org/people/nizzy
Message:
--------------------------------------------------------------
Sorry didnt mean to post that, wasnt finished
What I was going to say was that none of the classes were compiled with the jboss-aop.xml from previous post.
"I would try using the pointcut with the call expression alone"
<aspect class="com.ecebs.unittest.aop.aspect.ExceptionInjector" scope="PER_CLASS" />
<bind pointcut="call(public void com.ecebs.unittest.aop.ExampleManagerBean->createObject(..))">
<advice name="throwMultefileException" aspect="com.ecebs.unittest.aop.aspect.ExceptionInjector" />
</bind>
Again none of the classes were compiled.
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\MultefileException.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\AbstractJPAHelper.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\PersistenceHelperTest.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\IPersistenceHelper.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\aspect\ExceptionInjector.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\mock\MockService.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\entitymodel\Application.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\entitymodel\Environment.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\AbstractJPAHelper.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\PersistenceHelper.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\PersistenceHelperTest$1.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\ExampleManager.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\ExampleManagerBean.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\ExampleManagerBeanTest.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\MultefileRuntimeException.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\AbstractJPAHelper.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\PersistenceHelper.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\interceptor\GenericInterceptor.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\entitymodel\EnvironmentPK.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\AbstractJPAHelper.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\PersistenceHelper.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\mock\MockPersistenceHelper.class
[aopc] [no comp needed] C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\entitymodel\Revision.class
Seems a bit strange!
In the past I have been able to use the call and withincode combination, however the java class defined in the withincode was not a JUnit test.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/522759#522759
14 years, 4 months