JavaScript is an imperative language and Drools propose a declarative approach.
You should analyze the business logic included in that js file and
analyze how to translate that logically to business rules.
Then you should learn about the DRL syntax and how is the rule engine
behavior to fully understand what you are doing.
You are not only changing the language you are also changing how the
business logic will be expressed and executed.
Cheers
2011/12/20 G S <gshrestha1972(a)gmail.com>:
I have a source code written in Java script but I want that logic to
be written in .drl (drools). Any guidelines, or ideas how I can
convert java script to rules?
sample source code attached.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
- CTO @
http://www.plugtree.com
- MyJourney @
http://salaboy.wordpress.com
- Co-Founder @
http://www.jugargentina.org
- Co-Founder @
http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -