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