KIE Drools 6.2.0 - Guided Decision Table - Set The Value of field on new fact is not working

11 views
Skip to first unread message

SK

unread,
Mar 15, 2017, 1:28:40 PM3/15/17
to Drools Usage
Hi,
I am trying to create a Guided decision table  set the value in new fact object based on two different input objects.
When I am tested with Test Scenarios it is firing rule. See attached screen shot.
 
But it is not working when I am testing using container end point.  Please see below request  response XML.In response i don't see premiumAmount value.
Please let me know what I am missing here ? why insertLogical is not able to insert Premium fact.

Please see my GDT and source code attached.

Thanks in advance.
SK


Preimum_RuleTestScenario.PNG
PremiumField.PNG
Preimum_GDT.PNG
Preimum_GDT_sourcecode

Toni Rikkola

unread,
Mar 16, 2017, 3:18:46 AM3/16/17
to Drools Usage
I would just temporally add logging for the rule.

First something to see if the rule fires. It probably doesn't. So next I would take out restrictions for Vehicle and print out both Applicant and Vehicle.

If that does not help them just print out every Vehicle you have and every Applicant using the table you have here or  make a new rule for testing.

At some point you see what the difference is with the Test Scenario and real runtime.

Toni
Reply all
Reply to author
Forward
0 new messages