fredjean/simpler_workflow

View on GitHub
lib/aws/simple_workflow/decision_task_additions.rb

Summary

Maintainability
A
0 mins
Test Coverage
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