Yes you can. The problem you are having is because "Charge a fee" is using
$item variable and that variable is not bound in "When the loan application
is submitted".
Best Regards,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
- Blog @
http://ilesteban.wordpress.com
On Mon, Feb 18, 2013 at 4:34 PM, IPatel <ishita.patel(a)usbank.com> wrote:
A basic question about writing DSL rules. I am not sure if i am
using
correct
terminology to ask the following question.
I have the following in my DSL Configuration:
[when] When the transcation is credit= $item:Item(CDIndicator == "Credit")
[then] Charge a fee = $item.setChargeFee (true)
[when] When the loan application is submitted =
$application:LoanApplication(Submitted == true)
Now in my business rules tab. I have the rule that when the loan
application
is submitted then charge a fee.
so i selected something like this on the Business Rules tab:
When
1. When the loan application is submitted
THEN
1. Charge a fee
When i test this scenario, the system does not recognize "Then" part. So
the
question is *Can i not use the "Then" part defined in DSL format with
different "When" part??*
--
View this message in context:
http://drools.46999.n3.nabble.com/When-Then-In-DSL-Rule-tp4022407.html
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users