[JBoss jBPM] - JBPM Timer Action
by itsmeprash
Hi,
I have written a JBPM Timer Action Handler.
STEPS:
1) Enable the JBPM Scheduler Servlet in web.xml
2) In the process definition define the timer tag.
| <task-node name="First Task Task Task[9-1.1]">
| <task name="First Task Task Task[9-1.1]" duedate="1 business days">
| <assignment actor-id="jeromepater"/>
| <timer duedate="6 business hours">
| <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" name="tasktimer" config-type="bean">
| <targetBean>updateEscalationForActor</targetBean>
| <factoryKey>jbpmConfiguration</factoryKey>
| </action>
| </timer>
| </task>
| <event type="task-start">
| <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" name="taskstart" config-type="bean">
| <targetBean>taskStartEvent</targetBean>
| <factoryKey>jbpmConfiguration</factoryKey>
| </action>
| </event>
| <transition to="1-join"/>
| </task-node>
|
3) In the ActionClass i am calling
| Timer timer = executionContext.getTimer();
| Date date = timer.getDueDate();
|
Here i am getting a null pointer exception for timer. The timer object is not available to me. I looked at the classes in org.jbpm.scheduler.impl.*, but don't know where it fails. In Timer.execute see a call for action.execute(executionContext); Before that
| // first fire the event if there is a graph element specified
| if (graphElement!=null) {
| graphElement.fireAndPropagateEvent(Event.EVENTTYPE_TIMER, executionContext);
| }
|
Is the timer Object for sure set in the Execution context when the fireAndPropogateEvent is called. Is there anything i am missing here.
Please help.
Thanks
Prash
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986810#3986810
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986810
19Â years, 7Â months
[Clustering/JBoss] - Strange cluster error message resulting in an OutOfMemoryErr
by braunsdorf
Hi @all,
we have experienced a strange problem with our JBoss cluster this morning.
2006-11-17 08:02:59,281 WARN [org.jgroups.protocols.FD] I was suspected, but will not remove myself from membership (waiting for EXIT message)
|
| 2006-11-17 08:02:59,738 WARN [org.jgroups.protocols.FD] I was suspected, but will not remove myself from membership (waiting for EXIT message)
|
| 2006-11-17 08:03:08,220 WARN [org.jgroups.protocols.pbcast.CoordGmsImpl] I am the coord and I'm being am suspected -- will probably leave shortly
|
| 2006-11-17 08:03:08,228 INFO [org.jboss.ha.framework.interfaces.HAPartition.lifecycle.DefaultPartition] Suspected member: t-mw-as2:32833 (additional data: 15 bytes)
|
| 2006-11-17 08:03:08,235 WARN [org.jgroups.protocols.pbcast.GMS] checkSelfInclusion() failed, t-mw-as2:32833 (additional data: 15 bytes) is not a member of view [172.16.0.9:32831 (additional data: 15 bytes)|4] [172.16.0.9:32831 (additional data: 15 bytes)]; discarding view
|
| 2006-11-17 08:03:08,235 WARN [org.jgroups.protocols.pbcast.GMS] I (t-mw-as2:32833 (additional data: 15 bytes)) am being shunned, will leave and rejoin group (prev_members are [t-mw-as2:32833 (additional data: 15 bytes) 172.16.0.9:32825 (additional data: 15 bytes) 172.16.0.9:32831 (additional data: 15 bytes) ])
|
| ?
Only a few time later the following happened:
2006-11-17 08:06:14,646 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/web].[IstPortalEJB]] Servlet.service() for servlet IstPortalEJB threw exception: java.lang.OutOfMemoryError
I wonder if the OutOfMemoryError is a result of the ongoing problems with the cluster, but have to mention that the cluster was running fine over about three months.
As any of you experieenced any of these problems? What may be the source of the problem with the cluster? Network problems? Some coding errors? Or ...?
Thanks in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986803#3986803
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986803
19Â years, 7Â months