First of all you need to learn the basics about drools: <a href="http://docs.jboss.org/drools/release/5.4.0.Beta1/droolsjbpm-introduction-docs/html_single/index.html">http://docs.jboss.org/drools/release/5.4.0.Beta1/droolsjbpm-introduction-docs/html_single/index.html</a><div>
Then, you will need to learn about DRL syntax and how to use drools' engine: <a href="http://docs.jboss.org/drools/release/5.4.0.Beta1/drools-expert-docs/html_single/index.html">http://docs.jboss.org/drools/release/5.4.0.Beta1/drools-expert-docs/html_single/index.html</a></div>
<div>And finally, since JS is a client side language and drools (typically) runs in server side, you will need to choose one of the existing integration techniques: <a href="http://docs.jboss.org/drools/release/5.4.0.Beta1/drools-expert-docs/html_single/index.html">http://docs.jboss.org/drools/release/5.4.0.Beta1/drools-expert-docs/html_single/index.html</a></div>
<div><br></div><div>As you can see, moving from JS to drools it is not a one step solution :)</div><div><br></div><div>Best Regards, </div><div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>
- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>
- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">2011/12/20 G S <span dir="ltr"><<a href="mailto:gshrestha1972@gmail.com">gshrestha1972@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have a source code written in Java script but I want that logic to<br>
be written in .drl (drools). Any guidelines, or ideas how I can<br>
convert java script to rules?<br>
sample source code attached.<br>
<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>
<br></blockquote></div><br></div>