[rules-users] Different Thread Handling between fireAllRules() and fireUntilHalt()

Wolfgang Laun wolfgang.laun at gmail.com
Tue May 15 03:10:19 EDT 2012


Issue?
-W

On 15/05/2012, totempole <dr.xyliu at gmail.com> wrote:
> The issue occurs only when fireUntilHalt() is launched in Drools-Spring
> integration, like this,
>
>     <drools:ksession id="ksession" type="stateful" name="ksession"
> kbase="kbase" >
>         <drools:batch>
>             <drools:set-global identifier="droolsServiceUtil"
> ref="droolsServiceUtil" />
>             *<drools:fire-until-halt />*
>         </drools:batch>
>     </drools:ksession>
>
> When I invoke the same method in Java below, the issue doesn't show up.
> Could it be a bug in Drools-Spring integration?
>     @Async
>     public void fireRulesUtilHalt()
>     {
>             try {
>                 getKsession().fireUntilHalt();
>             } catch ( ConsequenceException e ) {
>                 throw e;
>             }
>     }
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Different-Thread-Handling-between-fireAllRules-and-fireUntilHalt-tp3985748p3987310.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list