<div dir="ltr">Hello,<div><br></div><div>I wrote a test that checks the marshalling of the DRL and it passes OK.</div><div><br></div><div>It could be that the workbench is failing fast midway through trying to marshal due to the MVEL issue Mario mentions (the test doesn't pro grammatically build meta-data from the classes in the model; whereas the workbench does).</div>
<div><br></div><div>Can you re-try with alterations to your public getters/setters names (getId instead of get_id)?</div><div><br></div><div>Thanks,</div><div><br></div><div>Mike</div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On 14 July 2014 13:39, Michael Anstis <span dir="ltr"><<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hello,<div><br></div><div>Class "ProducerMasterForRules" isn't valid; it references "getPCuisines()" that isn't in the class.</div><div><br></div><div>Since your rule uses the affected public methods "getPrimaryCuisine()" and "getSecondaryCuisine()" can you provide the missing implementation?</div>
<div><br></div><div>I could mock something up, but want to be sure to use exactly what you are.</div><div><br></div><div>With kind regards,</div><div><br></div><div>Mike</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">
On 12 July 2014 12:17, sumit dhaniya <span dir="ltr"><<a href="mailto:sumitdhaniya@gmail.com" target="_blank">sumitdhaniya@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Michael I really appreciate all the help from the forum and the time invested by the people to answer the queries.<div>I'm working as a freelance developer so if support is something affordable then please let me know.</div>
<div><br></div><div><br></div><div><br></div><div>DRL :-</div><div><table><tbody><tr><td><span style="color:grey"><br></span></td><td><br></td><td><br></td></tr><tr><td><span style="color:grey">2.</span></td><td><span style="color:green">|</span></td>
<td></td></tr><tr><td><span style="color:grey">3.</span></td><td><span style="color:green">|</span></td><td><span style="color:red">import</span> java.lang.Number;</td></tr><tr><td><span style="color:grey">4.</span></td>
<td>
<span style="color:green">|</span></td><td><span style="color:red">import</span> com.sophic.foodeemee.offers.dto.SearchContext;</td></tr><tr><td><span style="color:grey">5.</span></td><td><span style="color:green">|</span></td>
<td><span style="color:red">import</span> com.sophic.foodeemee.offers.dto.ProducerMasterForRules;</td></tr><tr><td><span style="color:grey">6.</span></td><td><span style="color:green">|</span></td><td><span style="color:red">import</span> com.sophic.foodeemee.offers.dto.RuleFactor;</td>
</tr><tr><td><span style="color:grey">7.</span></td><td><span style="color:green">|</span></td><td></td></tr><tr><td><span style="color:grey">8.</span></td><td><span style="color:green">|</span></td><td><span style="color:red">rule</span> <span style="color:green">"SecondaryCuisineRepeatUsage"</span></td>
</tr><tr><td><span style="color:grey">9.</span></td><td><span style="color:green">|</span></td><td> <span style="color:red">dialect</span> <span style="color:green">"mvel"</span></td></tr><tr><td><span style="color:grey">10.</span></td>
<td><span style="color:green">|</span></td><td> <span style="color:red">when</span></td></tr><tr><td><span style="color:grey">11.</span></td><td><span style="color:green">|</span></td><td> $searchContext : SearchContext( lastThreeCuisines != <span style="color:red">null</span> )</td>
</tr><tr><td><span style="color:grey">12.</span></td><td><span style="color:green">|</span></td><td> ProducerMasterForRules( primaryCuisine != <span style="color:red">null</span> , primaryCuisine != $searchContext.lastThreeCuisines , secondaryCuisine != <span style="color:red">null</span> , secondaryCuisine == $searchContext.lastThreeCuisines )</td>
</tr><tr><td><span style="color:grey">13.</span></td><td><span style="color:green">|</span></td><td> $secondaryCuisineRepeatUsageFactor : RuleFactor( )</td></tr><tr><td><span style="color:grey">14.</span></td><td>
<span style="color:green">|</span></td>
<td> <span style="color:red">then</span></td></tr><tr><td><span style="color:grey">15.</span></td><td><span style="color:green">|</span></td><td> $secondaryCuisineRepeatUsageFactor.setWeightageImpact( -30 );</td>
</tr><tr><td><span style="color:grey">16.</span></td><td><span style="color:green">|</span></td><td> update( $secondaryCuisineRepeatUsageFactor );</td></tr><tr><td><span style="color:grey">17.</span></td><td><span style="color:green">|</span></td>
<td><span style="color:red">end<br></span></td></tr></tbody></table></div><div><br></div><div>object models are attached.</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sat, Jul 12, 2014 at 3:40 PM, Michael Anstis <span dir="ltr"><<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Asking (at least) three questions at the same time on the same thread is really going to annoy people.</p>
<p dir="ltr">It's the weekend; most people are not working and you are not paying for our support.</p>
<p dir="ltr">When I am at my computer on Monday I will be happy to answer more. For now; please provide the DRL for the rule that does not reopen correctly and your object model.</p>
<p dir="ltr">Sent on the move</p><div><div>
<div class="gmail_quote">On 12 Jul 2014 10:54, "Sumit Dhaniya" <<a href="mailto:sumitdhaniya@gmail.com" target="_blank">sumitdhaniya@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I create the rule by comparing properties of two objects as shown in image<br>
attached. Till I don't close the window generated source looks fine but when<br>
I open this rule after closing it.<br>
But when I open the rule next time it removes the highlighted condition from<br>
the rule and also removes them from drl. Just wondering is there anything<br>
I'm doing wrong or issue is something else.<br>
<<a href="http://drools.46999.n3.nabble.com/file/n4030322/rule_snapshot.png" target="_blank">http://drools.46999.n3.nabble.com/file/n4030322/rule_snapshot.png</a>><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/conditions-getting-removed-from-Guided-Rule-tp4030308p4030322.html" target="_blank">http://drools.46999.n3.nabble.com/conditions-getting-removed-from-Guided-Rule-tp4030308p4030322.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" target="_blank">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>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
</div></div></blockquote></div><br></div>