• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

rules engine

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
We are in the process of designing a basic rules engine for our project. The approach is to define these rules in an XML (generated using a UI) and have some means to compile this XML rules into a JAVA class. This is expected to be self contained JAVA class in the sense that when this class is instantiated and its execute() method called the corresponding rule gets executed.

Are there any ideas on how to accomplish this conversion from XML to JAVA? If someone can suggest a better alternative it is welcome.

If I have posted this question in the wrong forum please execuse me ...request to be directed to the correct forum.

regards
Chander
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rather than reinventing the wheel -- maybe check out JESS (no not me) its "the Rule Engine for the Java(TM) Platform". Maybe you can use some of the features it has rather than writing your own. -- And lucky for you, the author of Jess is one of our sheriff's -- Ernest Friedman-Hill.
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is one open source rules engine (Drools) available in java. May be it will solve your problem.

http://drools.org/

----Nagaraj
 
reply
    Bookmark Topic Watch Topic
  • New Topic