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,
--
John Mettraux - http://jmettraux.wordpress.com
--
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