[jboss-user] [jBPM] - Re: timer repeat count in JBPM4.4

paul jazzar do-not-reply at jboss.com
Mon Feb 14 11:47:49 EST 2011

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): 

<?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>

  <start g="271,50,48,48" name="StartTestProcess">
      <transition name="to task1" to="testTimer" g="-49,-18"/>

   <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>

          <transition name="notifyManager" to="state1" g="-53,-18">
              <timer  name="escalate" duedate="1 minute" />
          <transition name="to state2" to="state2" g="13,-15"/>

   <state name="notifyManager" g="42,337,158,62">
      <transition name="to end1" to="end1" g="-77,-4"/>

   <state name="state2" g="348,333,180,66">
      <transition name="to end1" to="end1" g="15,13"/>


and this is my Event handling class:

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 " );


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 ?


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110214/d770abc4/attachment-0001.html 

More information about the jboss-user mailing list