lib/aws/simple_workflow/decision_task_additions.rb
require 'aws/simple_workflow/decision_task'
module AWS
class SimpleWorkflow
module DecisionTaskAdditions
def scheduled_event(event)
workflow_execution.events.reverse_order.find { |e| e.id == event.attributes.scheduled_event_id }
end
end
end
end