[jboss-jira] [JBoss JIRA] Created: (JBRULES-2334) Cascading Drools Rules

Brian Do (JIRA) jira-events at lists.jboss.org
Thu Nov 12 14:55:18 EST 2009


Cascading Drools Rules
----------------------

                 Key: JBRULES-2334
                 URL: https://jira.jboss.org/jira/browse/JBRULES-2334
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: drools-guvnor
    Affects Versions: 5.0.1.FINAL
         Environment: Tomcat, Drools, Java, Oracle
            Reporter: Brian Do
            Assignee: Mark Proctor


I have a business requirements to develop a lead score algorithm.  The algorithm is a summation of various data fields.  Each data field has different values, and each of that value represent a score.

For example: Job Function = (CEO, President, CFO, Director, Manager)
CEO = 30
President = 30
CFO = 30
Director = 20
Manager = 15

Time Frame = (Immediately, One Week, One Month, Not Sure) where Immediately = 30, One Week = 25, One Month = 20, Not Sure = 5

Department = (Sales, Support, Engineer) where Sales = 30, Support = 30, Engineer = 20

We need to determine the score of each value of each field and sum them up to get a final score.

My question is is there an easy way to do this using Drools Guvnor.  Is there a way to cascading rules?

If we use rules, then it's gonna be something like this:
rule1: if job_function = CEO then score = 30
rule2: if job_fuction = President the score = 30
rule3: if job_function = CFO then score = 30
...
rule#: if time_frame = Immediate then score = 30
...
rule#: if department = Sales then score = 30

The challenge is how do I keep track of the score of each rule in each scoring category and then sum them up at the end.

Thanks,
Brian


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list