Module: AWS::Flow::Utilities::SelfMethods Private
- Included in:
- AsyncDecider, GenericWorkflowClient
- Defined in:
- lib/aws/decider/utilities.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Instance Method Details
#handle_event(event, options) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 |
# File 'lib/aws/decider/utilities.rb', line 272 def handle_event(event, ) id = [:id_lambda].call(event) if [:id_lambda] id = event.attributes [:id_methods].each {|method| id = id.send(method)} id = [:id_methods].reduce(event.attributes, :send) id = @decision_helper.send([:decision_helper_id])[id] if [:decision_helper_id] state_machine = @decision_helper[id] state_machine.consume([:consume_symbol]) if [:decision_helper_scheduled] if state_machine.done? scheduled_array = [:decision_helper_scheduled] open_request = @decision_helper.send(scheduled_array).delete(id) else scheduled_array = [:decision_helper_scheduled] open_request = @decision_helper.send(scheduled_array)[id] end if [:handle_open_request] [:handle_open_request].call(event, open_request) end end return state_machine.done? end |