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