[rules-users] access to in working memory generated objects

thomas kukofka thomaskukofka at web.de
Wed Jun 18 07:01:31 EDT 2008


Hi,

I want to use rules which shall generate as a consequence a new java object.
The GUI of my application shall display the new generated objekt.
but how can the GUI of my application get informed by the rule engine that
it has generated a new object (Warning)? And how the GUI or any other java
component can access this new generated object from outside?

rule "Value below threshold"
    when
        FactX ( property  < threshold)
    then
        insert(new Warning( "Under threshold" ) );
end

rule "Value above threshold"
    when
        FactX ( property >= threshold)
    then
        insert(new Warning("Threshold exceeded" ) );
end


regards
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080618/9353f476/attachment.html 


More information about the rules-users mailing list