paul jazzar [
http://community.jboss.org/people/pjazzar] created the discussion
"Re: timer repeat count in JBPM4.4"
To view the discussion, visit:
http://community.jboss.org/message/587289#587289
--------------------------------------------------------------
Ok so i have been doing some playing around to test different possible setups, here is
where i am at now (Still not working):
[code]
<?xml version="1.0" encoding="UTF-8"?>
<process name="test" xmlns="
http://jbpm.org/4.4/jpdl
http://jbpm.org/4.4/jpdl">
<on event="start">
<event-listener class="com.xxx.jbpmEventsActivities.MyEventListener"
propagation="enabled">
<field name="msg"><string value="testing
"/></field>
</event-listener>
</on>
<start g="271,50,48,48" name="StartTestProcess">
<transition name="to task1" to="testTimer"
g="-49,-18"/>
</start>
<end g="270,458,48,48" name="end1"/>
<task name="testTimer" g="196,226,202,69">
<on event="timeout">
<timer name="reminder" duedate="20 seconds"
repeat="10 seconds" />
<event-listener
class="com.xxx.jbpmEventsActivities.TimersNotifications">
<field name="msg"><string value="timerEvent
"/></field>
</event-listener>
</on>
<transition name="notifyManager" to="state1"
g="-53,-18">
<timer name="escalate" duedate="1 minute" />
</transition>
<transition name="to state2" to="state2"
g="13,-15"/>
</task>
<state name="notifyManager" g="42,337,158,62">
<transition name="to end1" to="end1"
g="-77,-4"/>
</state>
<state name="state2" g="348,333,180,66">
<transition name="to end1" to="end1"
g="15,13"/>
</state>
</process>
[/code]
and this is my Event handling class:
[code]
package com.xxx.jbpmEventsActivities;
import org.jbpm.api.listener.EventListener;
import org.jbpm.api.listener.EventListenerExecution;
public class TimersNotifications implements EventListener{
private static final long serialVersionUID = 1L;
String msg;
public void notify(EventListenerExecution execution) throws Exception
{
String currentActivity = execution.getActivity().getName();
System.out.println("triggered timer : " + currentActivity + "\n
" );
}
}
[/code]
The thing is my event listener "on start" is working just fine printing out to
the console on entering every state and task. But the timer event is generating an
exception "class not found" i have checked the name again and again. i have even
replaced com.xxx.jbpmEventsActivities.TimersNotifications with
com.xxx.jbpmEventsActivities.MyEventListener and i still got the same exception.
Any clue what's causing this ?
thanks
Paul.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/587289#587289]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]