[rules-users] ProcessEventListener event order

Carlos Villegas cav at uniscope.jp
Tue Sep 7 23:53:00 EDT 2010


  Hi,

I'm testing the ProcessEventListener on a simple process and I get the 
"after" events in reverse order.
For example,

Process completed : 1283915643204
Node left: 5: 1283915643268
Node triggered: 5: 1283915643268
Node left: 4: 1283915643268
Node triggered: 4: 1283915643269
Node left: 3: 1283915643269
Node triggered: 3: 1283915643270
Node left: 2: 1283915643270
Node triggered: 2: 1283915643270
Node left: 1: 1283915643270
Node triggered: 1: 1283915643271
Node left: 0: 1283915643271
Node triggered: 0: 1283915643271
Process started : 1283915643271

I'm just printing the node id and the time in milliseconds.

Is this the way is supposed to be?

I guess technically "after" could be anytime after, but if I use the 
afterProcessStarted event, I get it after the whole process has 
completed!, which it's not useful at all.
The "before" events work as expected I think.

I'm using Drools Flow 5.1.0.

Thanks,
Carlos



More information about the rules-users mailing list