[JBoss jBPM] - Ending a process instance and all its sub-process instance.
by vineeth.varghese
Hi Folks,
I tried searching for any existing queries on this issue but couldn't find any, so posting this.
I have an application that runs with 2 process definition lets say main process 'A' and sub-process 'B'. When process 'A' starts, based on some runtime info one or more instances of sub-process 'B' will be spawned. So at any point in time I will have an instance of process 'A' and 0-n process 'B'. Each of the process definition includes task assignments.
A timer exists in process 'A' to check if the token/task/process is inactive for some X days. If it is found to be inactive, then the required action is to end the token of process 'A' and tokens of sub-process 'B'. Is there any obvious ways to achieve this is jbpm rather than querying all this from the db and programmatically doing this?.
I would also like to know how to end just a subset of the number of process 'B' tokens.
Thanks in advance for your help.
Vineeth.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055219#4055219
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055219
18Â years, 10Â months
[Management, JMX/JBoss] - SLSB in Mbean
by MurphyRic
Hi All,
I'm using MBeans to call a Stateless SessionBean in my application.
Below is how I declared the MBean in the JBoss-service.xml file.
I'm using Jboss-4.0.2, JDK 1.5.
----------- JBoss-service.xml ------------------------
<mbean code="com.myapp.services.PlatformManagerJMXService" name="com.myapp.services:name=PlatformManagerJMXService">
| <depends>jboss.j2ee:module=my-ejb.jar,service=EjbModule</depends>
| </mbean>
|
------------------------------------------------------------
Problem:
The jboss-service.xml file gets loaded, when Jboss starts..., it throws the below Exception and this is due to looking-up the SLSBean in the JNDI before it actually loads.
-----------------------error--------------------------------
Caused by: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.Socket
TimeoutException: Receive timed out]
-----------------------------------------------------------------
I tried with the below code also in the Jboss-service.xml file and still getting the same "Timed out" exception. I expected this should actually load the MBean after the Naming service is started.
Anything wrong in the below?
------------ JBoss-service.xml ------------------------
<mbean code="com.myapp.services.PlatformManagerJMXService" name="com.myapp.services:name=PlatformManagerJMXService">
| <attribute name="JndiName">ejb/MyPlatformManager</attribute>
| <depends>jboss:service=Naming</depends>
| </mbean>
------------ JBoss-service.xml ------------------------
I request you to please help me resolve this problem
Thanks and Regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055214#4055214
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055214
18Â years, 10Â months