Certainly not the setter code you have posted, which is a NO-OP.

Are you using dialect MVEL? Is the field qrpQualRule6 public?

-W


On 29 December 2011 18:05, Rob Fisher <rob.fisher.l2gk@statefarm.com> wrote:
Sorry...I meant

Does Drools add the "SET" behind the scenes?


-----Original Message-----
From: Rob Fisher [mailto:rob.fisher.l2gk@statefarm.com]
Sent: Thursday, December 29, 2011 10:43 AM
To: rules-users@lists.jboss.org
Subject: [rules-users] DSL/DSLR question

I have a question given the following code:

Inserted fact setter method:
public void setqrpQualRule6(String qrpQualRule6) {
               qrpQualRule6 = qrpQualRule6;
       }

DSL
[consequence][]Write {AttributeName} on {objectVarName} as {customCode}=modify ({objectVarName})  \{{AttributeName}={customCode} \};


DSLR
rule "test rule 1"
       dialect "mvel"
when
            ThereIsQrpRuleFlagData called QrpFlags
       - where $var04 is QrpQualFlagRule6 and is equal to "N"
then
       Write QrpQualFlagRule6 on QrpFlags as "Y"

DRL Translation
modify (QrpFlags)  {qrpQualRule6="Y" };

Question....Does Drools create the "get" behind the scenes?  I'm guessing yes, because the rule is firing and the qrpQualRule6 attribute is getting set to "Y".



--
View this message in context: http://drools.46999.n3.nabble.com/DSL-DSLR-question-tp3619216p3619216.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users