[rules-users] Calculating minimal value for a group of facts

kothvandir kothvandir kothvandir at gmail.com
Mon Aug 31 14:28:22 EDT 2009


Hi,

I need to calculate the min time for a set of "jobs" inserted in working
mermory to know wich job is going to be finished first.

Is there any way to obtain within a rule the current facts of some type to
pass then to a function/method?
somethin like this:

Another idea to acomplish this?


gobal MyService myservice

rule "cmdCheckTime" ruleflow-group "comprobarExistencias"
when
Job(time = eval(myService.getMinTime( <jobs in working memory >))
then
go, go, go...

end

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090831/fef5e504/attachment.html 


More information about the rules-users mailing list