Skip to content
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.

Adding WorkflowReplayer and bumping version to 2.2.0 #72

Merged
merged 2 commits into from
Nov 3, 2014

Conversation

pmohan6
Copy link
Contributor

@pmohan6 pmohan6 commented Nov 3, 2014

  • Adding a WorkflowReplayer for Ruby Flow
  • Bumping version to 2.2.0

WorkflowReplayer is an AWS Flow Framework utility that is used to 'replay' a workflow history in the decider against the workflow implementation. It is a useful debugging tool.

Usage -

# Create an instance of the replayer with the required options -
require 'replayer'
replayer = AWS::Flow::Replayer::WorkflowReplayer.new(
  domain: '<domain_name>',
  execution: {
    workflow_id: "<workflow_id",
    run_id: "<run_id>"
  },
  workflow_class: WorkflowClass
)

# Call the replay method (optionally) with the replay_upto event_id number -
decision = replayer.replay(20)
puts decision.inspect

pmohan6 added a commit that referenced this pull request Nov 3, 2014
Adding WorkflowReplayer and bumping version to 2.2.0
@pmohan6 pmohan6 merged commit 89746a0 into amazon-archives:master Nov 3, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant