lib/jflow/activity/task.rb in jflow-0.2.0 vs lib/jflow/activity/task.rb in jflow-0.2.5

- old
+ new

@@ -10,21 +10,20 @@ def input YAML.load(task.input) end - def name task.activity_type.name end def version task.activity_type.version end def token - task.token + task.task_token end def klass @klass_value ||= JFlow.configuration.activity_map.klass_for(name,version) raise "Could not find code to run for given activity" unless @klass_value @@ -39,10 +38,10 @@ end end def run! log "Started #{klass}##{method} with #{input}" - result = klass.new.send(method, input) || "done" + result = klass.new.send(method, *input) || "done" log "Result is #{result.class} #{result}" completed!(result) end def completed!(result) \ No newline at end of file