Hello,

I would like to use JbiHelper in servicemix-drools in following way:

global org.apache.servicemix.drools.model.JbiHelper jbi;
rule "Init"
    agenda-group "init"
    when
        eval(!jbi.isExchangeHandled())
    then
        ...
end

- so that the rules are not fired after e.g. answer has been sent.
However, currently it's not possible, because message exchange is first
inserted into memory (in JbiHelper constructor) and only after that
helper is set as global object. When fireAllRules is called - the helper
is available, but when rules are calculated - it's not...

Is this intended behaviour, or could be changed so that globals are set
first, and inserts are made after? Of course I could make sth like  
"jbi != null || !jbi.isExchangeHandled()" - but it's quite clumsy...

thanks for any thoughts
br
maciek


Reply via email to