<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Baskaran,<div>you can use drools-pipeline module with the Smooks transformers to do that!</div><div><br></div><div>lucaz</div><div><br><div><div>El 11/11/2009, a las 01:23, bas karan escribió:</div><div><br></div><br class="Apple-interchange-newline"><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0"><tbody><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><<a href="mailto:lucazamador@gmail.com">lucazamador@gmail.com</a>></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 <<a href="mailto:lucazamador@gmail.com">lucazamador@gmail.com</a>><br>Subject: Re: [rules-users] Reg: Writing complex rules in Grided editor<br>To: "Rules Users List" <<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>><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><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><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></tbody></table><br> <!--1--><hr size="1"> 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>._______________________________________________<br>rules-users mailing list<br><a href="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></body></html>