[rules-users] Test Scenarios with Rule Flows in 5.1.1 Guvnor

John Peterson john.peterson.gv3k at statefarm.com
Wed Mar 30 13:53:36 EDT 2011


Hi all,

I had (hopefully) a quick question about trying to test rules in rule flows in Guvnor with Drools 5.1.1.  I have a simple 4 step rule flow (Start-RuleGroup1-RuleGroup2-End) with 1 rule in each Rule group.  When I set up the test scenario to fire the first rule, which will trigger the second rule, activate "RuleGroup1", and run the scenario, it doesn't trigger the RuleFlow and fire the rule.  I've also tried activating "Start" instead, but neither of them trigger the RuleFlow.

I know from experience that Rule Flows don't seem to work with 5.0, but with the addition of the entry options, I thought they would with 5.1.1.  Am I mistaken?

Also, when I look at the Audit Log, I see the Rule Flow activated and deactivated before any of the facts are asserted:


BEFORE RULEFLOW GROUP ACTIVATED group:Start[size=0]


AFTER RULEFLOW GROUP ACTIVATED group:Start[size=0]


BEFORE RULEFLOW GROUP DEACTIVATED group:Start[size=0]


AFTER RULEFLOW GROUP DEACTIVATED group:Start[size=0]


OBJECT ASSERTED value:com.test.Game at 47244724 factId: 1


OBJECT ASSERTED value:com.test.Customer at 4c584c58 factId: 2




Could this be part of the problem?

Thanks!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110330/c5ed9ea3/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture (Device Independent Bitmap) 1.jpg
Type: image/jpeg
Size: 732 bytes
Desc: Picture (Device Independent Bitmap) 1.jpg
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20110330/c5ed9ea3/attachment.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture (Device Independent Bitmap) 2.jpg
Type: image/jpeg
Size: 732 bytes
Desc: Picture (Device Independent Bitmap) 2.jpg
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20110330/c5ed9ea3/attachment-0001.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture (Device Independent Bitmap) 3.jpg
Type: image/jpeg
Size: 732 bytes
Desc: Picture (Device Independent Bitmap) 3.jpg
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20110330/c5ed9ea3/attachment-0002.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture (Device Independent Bitmap) 4.jpg
Type: image/jpeg
Size: 732 bytes
Desc: Picture (Device Independent Bitmap) 4.jpg
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20110330/c5ed9ea3/attachment-0003.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture (Device Independent Bitmap) 5.jpg
Type: image/jpeg
Size: 742 bytes
Desc: Picture (Device Independent Bitmap) 5.jpg
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20110330/c5ed9ea3/attachment-0004.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture (Device Independent Bitmap) 6.jpg
Type: image/jpeg
Size: 742 bytes
Desc: Picture (Device Independent Bitmap) 6.jpg
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20110330/c5ed9ea3/attachment-0005.jpg 


More information about the rules-users mailing list