Hi Guys:
I found my self always using some duplicated code to access current work
item in Ruote. So I wrote a simple extension that includes a method for
quick accessing the current workitems given a process positions:
Could you please have a look at the code and see if I am reinventing the
wheels?
class Ruote::ProcessStatus
def current_work_items
current_positions=self.position
items=current_positions.collect { |pos|
self.stored_workitems.find { |wi|
#puts "#{wi.fei.sid} <> #{pos[0]}"
wi.fei.sid==pos[0] }
}
return items
end
end
Any comment is helpful
Thanks!
--
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en