[jboss-jira] [JBoss JIRA] (DROOLS-141) Rules run once completely on server, then only first rule executes
Davide Sottara (JIRA)
jira-events at lists.jboss.org
Sat May 18 02:41:06 EDT 2013
[ https://issues.jboss.org/browse/DROOLS-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12775195#comment-12775195 ]
Davide Sottara commented on DROOLS-141:
---------------------------------------
Jenna, there are a number of issues with your test case that should be fixed before this can be considered a bug.
1) The logic in the rules should be checked. I don't know if these are the "real" rules or a cleaned up version, but:
- you are not adding the observation to the meeting and the meeting to the foo --> in general, make sure that your data structures are built correctly
- you create the Measurement.type using the Observation type, which ends up as Measurement parameter. However, the expected values for the parameter are NOT the values of Obs.type
- the rule "Calculate Z score" has
when Measurement( .. ) Candidate( .. ) accumulate Candidate() .. then modify ( $m )
this is usually suspicious. You are executing the same operation - the accumulates - multiple times, one for each candidate.
2) Most importantly, you are using Ruleflows (DRF), which have been deprecated several version ago in favor of BPMN2 processes. You probably have an older Drools eclipse plugin,
which may ovverride some of your runtime libraries.
If you DO want to use them please consider that they're no longer supported.
This said, it would be useful to see how you are controlling the ruleflow-group focus on your stateless session(s). The example you provided uses a stateful one and does not
obviously correspond to your real code. There may be a configuration/control mistake there, but I'd need to see the code to confirm whether it's correct or not.
Best
Davide
> Rules run once completely on server, then only first rule executes
> -------------------------------------------------------------------
>
> Key: DROOLS-141
> URL: https://issues.jboss.org/browse/DROOLS-141
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 5.5.0.Final, 6.0.0.Beta2
> Environment: Mac OS X, Tomcat 7
> Reporter: Jenna Schabdach
> Assignee: Mark Proctor
> Attachments: growth_test.zip
>
>
> Drools of either version mentioned loaded on a server execute stateless ruleflow once correctly the first time. After that, only the first rule executes. Similar to issue 2718.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list