lib/openwfe/expressions/timeout.rb in openwferu-0.9.7 vs lib/openwfe/expressions/timeout.rb in openwferu-0.9.8
- old
+ new
@@ -62,15 +62,15 @@
#
# Looks for the "timeout" attribute in its process definition
# and then sets the @timeout_at field (if there is a timeout).
#
- def determine_timeout
+ def determine_timeout (timeout_attname=:timeout)
#@timeout_at = nil
#@timeout_job_id = nil
- timeout = lookup_attribute(:timeout, @applied_workitem)
+ timeout = lookup_attribute(timeout_attname, @applied_workitem)
return unless timeout
timeout = OpenWFE::parse_time_string(timeout)
@timeout_at = Time.new.to_f + timeout
end