Sha256: 3946e9b65c901cdf59558b0453132e9ee54c499a791e8def092440cb6e66d803
Contents?: true
Size: 880 Bytes
Versions: 2
Compression:
Stored size: 880 Bytes
Contents
#!/usr/bin/ruby require "simplerubysteps" include Simplerubysteps task :t1 do action do |input| puts "Task t1: #{input}" input.merge({ "Foo1" => (input["foo"] == "John Wick" ? "ja" : "nein") }) end choice :t2 do string_matches "$.Foo1", "ja" do task :t3 do action do |input| puts "Task t3: #{input}" input.merge({ "Foo3": "Bar3x" }) end transition :t5 end end default do task :t4 do action do |input| puts "Task t4: #{input}" input.merge({ "Foo4": "Bar4xy" }) end end end end end task :t5 do action do |input| puts "Task t5: #{input}" input.merge({ "Foo5" => "Bar5" }) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simplerubysteps-0.0.2 | samples/sample1/workflow.rb |
simplerubysteps-0.0.1 | samples/sample1/workflow.rb |