<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi Lucas,</DIV>
<DIV> </DIV>
<DIV> Thanks for your replay. And one more question I have is,</DIV>
<DIV> </DIV>
<DIV> Can we have access to TimesTen or any other in-memory databases so that no need to load WorkingMemoryEntryPoints with all the objects?</DIV>
<DIV> </DIV>
<DIV>Is there any way to load objects into WorkingMemoryEntryPoints taken from database?</DIV>
<DIV> </DIV>
<DIV>Thanks in advance</DIV>
<DIV>Baskaran S</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR>--- On <B>Tue, 10/11/09, Lucas Amador <I><lucazamador@gmail.com></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>From: Lucas Amador <lucazamador@gmail.com><BR>Subject: Re: [rules-users] Reg: Writing complex rules in Grided editor<BR>To: "Rules Users List" <rules-users@lists.jboss.org><BR>Date: Tuesday, 10 November, 2009, 6:34 PM<BR><BR>
<DIV id=yiv863146683>Hi,
<DIV><BR></DIV>
<DIV>the best way is use DSL because isn't possible create "complex" rules with the guided editor
<DIV><BR>
<DIV>
<DIV>El 10/11/2009, a las 06:33, bas karan escribió:</DIV><BR class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV> I am new to Drools rules. Can any one of you tell me how can we write complex rules like below using Grided editor.</DIV>
<DIV> </DIV>
<DIV>rule sequenceOfIncreasingWithdrawals<BR> when<BR> $account:Account($number : number)<BR> $t1:TransactionCreatedEvent(fromAccountNumber == $number)<BR> from entry-point TransactionStream <BR> $t2:TransactionCreatedEvent(amount > $t1.amount, <BR> fromAccountNumber == $number, this after[0, 3m] $t1)<BR> from entry-point TransactionStream<BR> not (TransactionCreatedEvent(fromAccountNumber == $number,<BR> this after $t1, this before $t2 ) <BR> from entry-point TransactionStream)<BR> $t3:TransactionCreatedEvent(amount > $t2.amount, <BR> fromAccountNumber == $number, this after[0, 3m] $t2 )<BR> from entry-point
TransactionStream<BR> not (TransactionCreatedEvent(fromAccountNumber == $number,<BR> this after $t2, this before $t3 ) <BR> from entry-point TransactionStream)<BR> $ai : AccountInfo(number == $number, eval($t1.amount.add(<BR> $t2.amount).add($t3.amount).compareTo(BigDecimal.<BR> valueOf(0.90).multiply(averageBalance)) > 0))<BR> then<BR> insert(new SuspiciousAccount($number, <BR> SuspiciousAccountSeverity.MAJOR));<BR> insert(new SuspiciousTransaction($t1.transactionUuid, <BR> SuspiciousTransactionSeverity.MAJOR));<BR> insert(new SuspiciousTransaction($t2.transactionUuid, <BR> SuspiciousTransactionSeverity.MAJOR));<BR> insert(new
SuspiciousTransaction($t3.transactionUuid, <BR> SuspiciousTransactionSeverity.MAJOR));<BR>end</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV>Baskaran S</DIV></TD></TR></TBODY></TABLE><BR>
<HR SIZE=1>
Try the new Yahoo! India Homepage. <A href="http://in.rd.yahoo.com/tagline_metro_1/*http://in.yahoo.com/trynew" target=_blank rel=nofollow>Click here</A>._______________________________________________<BR>rules-users mailing list<BR><A href="http://in.mc79.mail.yahoo.com/mc/compose?to=rules-users@lists.jboss.org" target=_blank rel=nofollow ymailto="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A><BR>https://lists.jboss.org/mailman/listinfo/rules-users<BR></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV><BR>-----Inline Attachment Follows-----<BR><BR>
<DIV class=plainMail>_______________________________________________<BR>rules-users mailing list<BR><A href="http://in.mc79.mail.yahoo.com/mc/compose?to=rules-users@lists.jboss.org" ymailto="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A><BR><A href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank>https://lists.jboss.org/mailman/listinfo/rules-users</A><BR></DIV></BLOCKQUOTE></td></tr></table><br>
<!--1--><hr size=1></hr>
The INTERNET now has a personality. YOURS! <a href="http://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/" target="_blank">See your Yahoo! Homepage</a>.