[rules-users] Reg: Writing complex rules in Grided editor
Lucas Amador
lucazamador at gmail.com
Wed Nov 11 08:40:18 EST 2009
Hi Baskaran,
you can use drools-pipeline module with the Smooks transformers to do
that!
lucaz
El 11/11/2009, a las 01:23, bas karan escribió:
> Hi Lucas,
>
> Thanks for your replay. And one more question I have is,
>
> Can we have access to TimesTen or any other in-memory
> databases so that no need to load WorkingMemoryEntryPoints with all
> the objects?
>
> Is there any way to load objects into WorkingMemoryEntryPoints taken
> from database?
>
> Thanks in advance
> Baskaran S
>
>
>
> --- On Tue, 10/11/09, Lucas Amador <lucazamador at gmail.com> wrote:
>
> From: Lucas Amador <lucazamador at gmail.com>
> Subject: Re: [rules-users] Reg: Writing complex rules in Grided editor
> To: "Rules Users List" <rules-users at lists.jboss.org>
> Date: Tuesday, 10 November, 2009, 6:34 PM
>
> Hi,
>
> the best way is use DSL because isn't possible create "complex"
> rules with the guided editor
>
> El 10/11/2009, a las 06:33, bas karan escribió:
>
>> Hi,
>>
>> I am new to Drools rules. Can any one of you tell me how can
>> we write complex rules like below using Grided editor.
>>
>> rule sequenceOfIncreasingWithdrawals
>> when
>> $account:Account($number : number)
>> $t1:TransactionCreatedEvent(fromAccountNumber == $number)
>> from entry-point TransactionStream
>> $t2:TransactionCreatedEvent(amount > $t1.amount,
>> fromAccountNumber == $number, this after[0, 3m] $t1)
>> from entry-point TransactionStream
>> not (TransactionCreatedEvent(fromAccountNumber == $number,
>> this after $t1, this before $t2 )
>> from entry-point TransactionStream)
>> $t3:TransactionCreatedEvent(amount > $t2.amount,
>> fromAccountNumber == $number, this after[0, 3m] $t2 )
>> from entry-point TransactionStream
>> not (TransactionCreatedEvent(fromAccountNumber == $number,
>> this after $t2, this before $t3 )
>> from entry-point TransactionStream)
>> $ai : AccountInfo(number == $number, eval($t1.amount.add(
>> $t2.amount).add($t3.amount).compareTo(BigDecimal.
>> valueOf(0.90).multiply(averageBalance)) > 0))
>> then
>> insert(new SuspiciousAccount($number,
>> SuspiciousAccountSeverity.MAJOR));
>> insert(new SuspiciousTransaction($t1.transactionUuid,
>> SuspiciousTransactionSeverity.MAJOR));
>> insert(new SuspiciousTransaction($t2.transactionUuid,
>> SuspiciousTransactionSeverity.MAJOR));
>> insert(new SuspiciousTransaction($t3.transactionUuid,
>> SuspiciousTransactionSeverity.MAJOR));
>> end
>>
>>
>> Thanks
>> Baskaran S
>>
>> Try the new Yahoo! India Homepage. Click
>> here._______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
> The INTERNET now has a personality. YOURS! See your Yahoo!
> Homepage._______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20091111/74f4e29d/attachment.html
More information about the rules-users
mailing list