CONDITION | CONDITION | CONDITION | CONDITION | ACTION | ACTION |
rule:Rule | result:Result | ||||
rule.country | rule.state | rule.isNew | result.ans | result.setAns("$param"); | rule.setAnsOnRule("$param"); |
--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/404454c5-32cc-44d9-a7a9-1a4d0c81c7a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
CONDITION | CONDITION | CONDITION | CONDITION | ACTION | ACTION |
route:RouteAttribute | resultOfInput:Result | ||||
route.country | route.state | route.isNew | resultOfInput.ans | resultOfInput.setAns("$param"); | route.setAnsOnRule("$param"); |
I don't think you can use 'rule' as a keyword. Change that and see if thing improve.
On Saturday, 6 June 2015, <code...@gmail.com> wrote:
I have been trying to use Drools 6.0.1 with Spring and am getting an error on the decision table used. I am trying to have 2 objects - one as a Fact and the other as the Result. I can use the "result" in the CONDITION column but am not able to use the same object in the ACTION block.--
CONDITION CONDITION CONDITION CONDITION ACTION ACTION rule:Rule result:Result rule.country rule.state rule.isNew result.ans result.setAns("$param"); rule.setAnsOnRule("$param"); The above is the section from the decision table. In my code, the rules under the 4th column work fine(the result object is present). Also, the last column (second Action above) - is fine too - the Ans on the Rule object is set properly. But the first Action above gives me the error: "Rule Compilation Error" .... "result cannot be resolved."I don't understand why "result" is resolved in the "condition" but not in the "action". If I remove the first Action column from the decision table, everything works fine.
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup+unsubscribe@googlegroups.com.
Can you include the data rows you have for the headers you show? It could well be a cell has no value for the column binding "resultOfInput" and hence, for that row, it is not available in the RHS.
> Sent when I shouldn't really be working.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/404454c5-32cc-44d9-a7a9-1a4d0c81c7a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/cb8112ac-54af-4d04-8c86-9f3b973bc574%40googlegroups.com.
CONDITION | CONDITION | CONDITION | CONDITION | ACTION | ACTION |
route:RouteAttribute | resultOfInput:ResultOfInput | ||||
route.country | route.state | route.isNewEntry |
resultOfInput.ans | resultOfInput.setAns("$param"); | route.setAnsOnRule("$param"); |
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/404454c5-32cc-44d9-a7a9-1a4d0c81c7a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/404454c5-32cc-44d9-a7a9-1a4d0c81c7a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/cb8112ac-54af-4d04-8c86-9f3b973bc574%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/8597f0fa-c4a9-4e8c-9448-34f671691128%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/404454c5-32cc-44d9-a7a9-1a4d0c81c7a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/cb8112ac-54af-4d04-8c86-9f3b973bc574%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.