argh actually that does work if i remove the |p| sorry!
But the real problem that I'm having is actually related to using this
in rails. I'm calling a method in a model called 'submission' that
has many 'tasks' the process definition dsl keeps thinking that the
objects i'm calling in the process definition method are
participants. how to i get around this:
# models/submission.rb
def generate_process_definition # returns pdef
input_files = ['test1.txt','test2.txt']
pdef = Ruote.process_definition do
sequence do
tasks.each do |t| ## <== again 'tasks' refers to a has_many
of submission, but it breaks because it assumes it's a participant!
concurrence do
input_files.each do |in_file|
participant :ref => 'worker_node', :input_files =>
in_file, :command => t.executable, :args => t.args, :queue => 'test'
# see error below...
end
end
end
cleanup
end
end
return pdef
end
Error from rails:
undefined method `executable' for ["tasks", {}, []]:Array
--
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