[jboss-user] [jBPM] New message: "Re: Upgrade from JBPM3 to JBPM4 woes"

Ronald van Kuijk do-not-reply at jboss.com
Sat Feb 6 08:51:03 EST 2010


User development,

A new message was posted in the thread "Upgrade from JBPM3 to JBPM4 woes":

http://community.jboss.org/message/524544#524544

Author  : Ronald van Kuijk
Profile : http://community.jboss.org/people/kukeltje

Message:
--------------------------------------------------------------
No, what you do here is mimic the 3.x way in 4.... Casting should only be needed if the services do, at the time, not provide you the methods to  think SERVICES!!! ;-)
 
In semi-pseudo code
 
      Set<String> anl = pi.findActiveActivityNames();
      
      for (String an : anl) {
        for (int i = 0; i < timedNodes.length; i++) {
          if (timedNodes[i].equals(an)) {
            Execution e = pi.findActiveExecutionIn(an);
        
            executionService.signalExecutionById(e.getId(), (TIME_OUT));
          }
        }
      }
 

 
But may I ask what you are trying to achieve? Personally I would solve the usecase u seem to have (I think) is put timers on transitions. This would take care of all this automagically.

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/524544#524544




More information about the jboss-user mailing list