<div dir="ltr">yeah, that is what we are doing to the complicated statements. We may end up doing this for the prediction part.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 31, 2013 at 10:33 AM, Stephen Masters <span dir="ltr"><<a href="mailto:stephen.masters@me.com" target="_blank">stephen.masters@me.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>btw - If you ever find the statements being written by the business team to be a bit weird, and overly technical, just create a simple DSL phrase to hide what is actually happening.</div>
<div><br></div><div>This way, you can have a statement "Reject the request", which might in reality perform multiple actions, such as inserting and modifying facts.</div><div><div class="h5"><div><br></div><br><div>
<div>On 31 Jul 2013, at 14:36, Sean Su <<a href="mailto:sean.x.su@gmail.com" target="_blank">sean.x.su@gmail.com</a>> wrote:</div><br><blockquote type="cite"><div dir="ltr"><div><div>I agree with your points, Steve.<br>
<br></div>I know this solution will require certain "statements" on the RHS which I am trying to avoid due to the fact that the "business team" is authorizing the rules. But I will keep that as an option.<br>
<br></div><div>Thanks<br><br></div>Sean<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 30, 2013 at 5:36 PM, Stephen Masters <span dir="ltr"><<a href="mailto:stephen.masters@me.com" target="_blank">stephen.masters@me.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Something to consider, which I have used for some rules is that instead of those rules making a 'decision' they can insert a restriction fact.<br>
<br>
You can then create technical rules, which match on those restriction facts.<br>
<br>
Also, it's very simple to write code to look at the facts in the working memory, so you can establish what date range a restriction applies to. Much easier than examining the LHS of rules.<br>
<br>
Steve<br>
<div><div><br>
<br>
On 30 Jul 2013, at 20:49, Sean Su <<a href="mailto:sean.x.su@gmail.com" target="_blank">sean.x.su@gmail.com</a>> wrote:<br>
<br>
> Our rules will be using "Date" heavily when making decisions. When the LHS involving dates is evaluated "true", decision will be made.<br>
><br>
> Meanwhile, from prediction point of view, we want to know when the LHS would be evaluated to false, with the changes made to the date fields (forward to the future). Therefore this becomes prediction - what is the future date that would cause the LHS to be false.<br>
><br>
> Question to the list:<br>
> has anyone explored the possibility of using the same set of rules to achieve both tasks?<br>
><br>
> If there is no tools automatically doing this in Drools (I doubt there is), I am thinking to build a tool to parse the rules and then auto-generate the prediction rules based on the "decision" rules. Is this the right direction?<br>
><br>
> Any inputs will be appreciated.<br>
><br>
> thanks<br>
><br>
> Sean<br>
</div></div>> _______________________________________________<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>
<br>
<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>
_______________________________________________<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></blockquote>
</div><br></div></div></div><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>