Why are you using an extra data object -its far easier if your facts are actually facts in the working memory.
What you have written as your rules is totally incorrect - you seem to be trying to write java method calls not rule statements. My advice is to a) try writing the same rule as a drl first before trying to represent it in a spreadsheet b) look at the intermediate drl that the spreadsheet compiler produces to get a better understanding of the output that the spreadsheet produces. Thomas > -----Original Message----- > From: rules-users-boun...@lists.jboss.org [mailto:rules-users- > boun...@lists.jboss.org] On Behalf Of jilani > Sent: 04 October 2011 07:43 > To: rules-users@lists.jboss.org > Subject: [rules-users] Using object.getter in Decision table > > Hi, > > I have a scenario, where for decision table I will inject one object which > holds > all facts. Using those facts the decision table has rules. How to retrieve the > child fact from parent in decision table. > > sample for this is as follows > > Java Code snippet: > DataObject dataObj = new DataObject(); > Fact1 fact1 = new Fact1(); > Fact2 fact2 = new Fact2(); > dataObj.setFact1(fact1); > dataObj.setFact2(fact2); > statelessKnowledgeSession.execute(dataObj); > > > In decision table: > > ------------------------------------------- > CONDITION > -------------------------------------------- > fact1 : DataObject().getFact1(); > -------------------------------------------- > fact1.getData1().equalsIgnoreCase("$param") > -------------------------------------------- > "Hello" > -------------------------------------------- > > Here I am getting error. > > Please suggest me how to access the child fact from parent fact in decision > table. > > > > > > > > > > > > > > -- > View this message in context: http://drools.46999.n3.nabble.com/Using- > object-getter-in-Decision-table-tp3392337p3392337.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 ************************************************************************************** This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmas...@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary. NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00 ************************************************************************************** _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users