Hi,Hi, I have a doubth about rules. Can I to evaluate a rule using a external source?, for instance a database or always is it with a statics conditions?
class AGlobalDataSource
{
public Collection<SomeData> getSomeDataFeed
{
...
}
}
AGlobalDataSource dataSource = new AGlobalDataSource();
WorkingMemory wm = rulebase.newStatefulSession();
wm.setGlobal( "dataSource", dataSource );
global AGlobalDataSource dataSource;
rule "test from data source"
when
SomeData( ) from dataSource.someDataFeed
then
// action
end
Thanks. -- View this message in context: http://drools.46999.n3.nabble.com/Evaluating-Rules-tp4021241.html Sent from the Drools: User forum mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users