Seems like the table options, whatever they are, ought to be passed
through from the Rufus::Decision::Table, no?
I'll hack my own copy for now - just wanted to make sure that my
understanding was correct.
Thx,
W
On 5/27/10 11:05 AM, John Mettraux wrote:
On Thu, May 27, 2010 at 11:01:36AM -0500, Wes Gamble wrote:
The code below doesn't seem to allow for passing through options
into the Rufus::Decision::Participant when the
Rufus::Decision::Table is instantiated.
def consume (workitem)
table = @options['table']
raise(ArgumentError.new("'table' option is missing")) unless table
table = Rufus::Decision::Table.new(table)
workitem.fields = table.run(workitem.fields)
reply_to_engine(workitem)
end
end
It's easy to work around that :
---8<---
def consume (workitem)
table = @options['table']
raise(ArgumentError.new("'table' option is missing")) unless table
table = Rufus::Decision::Table.new(table, :ruby_eval => true)
workitem.fields = table.run(workitem.fields)
reply_to_engine(workitem)
end
end
--->8---
Tell me if you need that "enabled" formally with a new gem release of
rufus-decision.
Best regards,
--
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