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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JBoss Drools

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
dear all,

i have a requirement in which the users are listed with around 150 rules. they are fetched from the db and shown to them.
they can take any rule(s) and assign to various categories they have created. they chain the rules so that it structures like a tree. here rules are a kind of conditions like "sum of the transaction done on a month by a given customer" or "threshold value of the given customer" or "average transaction value". all the rule they define has the LHS & RHS & an operand. they also say the value for each side. for my future reference i store the structure of rules, defined by the user, to the database.
at the end of the day one of my scheduler should do these operations:
* fetch the rules of a particular category from the database and do the necessary operation of the rules. i should traverse deep into the tree by the path the rules are satisfying.
* most of the rules performs the database call, the database has huge collection of data
* do some calculation based on the rules output and store it to the output to the db

now my confusion,
should i need to use the rules engine frameworks, such as jboss drools, which may reduce the work???. if so how do i generate and assign the rules at run time and how the rule engine is going to solve my case.
or
may i fetch directly the rules from the db and form a tree structure and do the work. will this way of doing consumes lot of time? am i reinventing a solved problem?

thanks in advance

Vijay V
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic