[rules-users] Reg: Using window:time(..) method in Guided Editor in Guvnor

bas karan ibasas at yahoo.co.in
Thu Nov 26 06:01:47 EST 2009


Hi,
 
    Can you tell me how window:time(..) function is used in drools guided editor?
    I have situation where Collection of objects will be there in entry-point. And if one of the objects matches certain criteria and other other objects match certain criteria, then I have to take do something.
 
  In otherwords, Is it possible to specify "when condition" in guided editor using collection of objects for a given time window from entry-point?
 
Example condition,
 
  when
      remTxnData : REMTxnData(transactionType == "P2P")    -- Current object inserted into session
      remTxnDataLoad : REMTxnData(remTxnData.accountNumber == accountNumber,   transactionType == "CC_LOAD") over window:time(1m) from entry-point TransactionStream 
  then
      --------
  end
Thanks
Baskaran S
 


      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20091126/a4b8da2f/attachment.html 


More information about the rules-users mailing list