0

What is the best way to write a condition in drools CEP to infer ( A after max time B ) Example :

a : new A();
b : new B( this after [1m] )

The above example is not my need.

I need this :

a : new A();
b : new B( this after a , b.timestamp - a.timestamp <= 60000)

So i reformulate the question. Is another way to obtain the same result with less instructions ?

Thanks

Fabio_M
  • 879
  • 7
  • 21
  • If neither of my proposals fits your bill you need to be more verbose, editing your question. – laune Jun 01 '17 at 18:50

1 Answers1

0

Edit after clarification of Q

$a: A() $b: B( this after[ 0s, 60s ] $a )

This fires if B comes after A but not later than 60 seconds.

laune
  • 31,114
  • 3
  • 29
  • 42