<div dir="ltr">Yes you can. The problem you are having is because &quot;Charge a fee&quot; is using $item variable and that variable is not bound in &quot;<span style="font-family:arial,sans-serif;font-size:13px">When the loan application is submitted&quot;.</span><div>

<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">Best Regards,</span></div></div><div class="gmail_extra"><br clear="all"><div>

<br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a></div>
<br><br><div class="gmail_quote">On Mon, Feb 18, 2013 at 4:34 PM, IPatel <span dir="ltr">&lt;<a href="mailto:ishita.patel@usbank.com" target="_blank">ishita.patel@usbank.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

A basic question about writing DSL rules. I am not sure if i am using correct<br>
terminology to ask the following question.<br>
<br>
I have the following in my DSL Configuration:<br>
<br>
[when] When the transcation is credit= $item:Item(CDIndicator == &quot;Credit&quot;)<br>
[then] Charge a fee = $item.setChargeFee (true)<br>
<br>
[when] When the loan application is submitted =<br>
$application:LoanApplication(Submitted == true)<br>
<br>
Now in my business rules tab. I have the rule that when the loan application<br>
is submitted then charge a fee.<br>
so i selected something like this on the Business Rules tab:<br>
When<br>
    1.   When the loan application is submitted<br>
THEN<br>
    1.   Charge a fee<br>
<br>
When i test this scenario, the system does not recognize &quot;Then&quot; part. So the<br>
question is *Can i not use the &quot;Then&quot; part defined in DSL format with<br>
different &quot;When&quot; part??*<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/When-Then-In-DSL-Rule-tp4022407.html" target="_blank">http://drools.46999.n3.nabble.com/When-Then-In-DSL-Rule-tp4022407.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="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>
</blockquote></div><br></div>