Sha256: d3932d0568cfed577adb74b454516f2191e632a69de006112a22d023eb49b02e

Contents?: true

Size: 1.19 KB

Versions: 147

Compression:

Stored size: 1.19 KB

Contents

#!/usr/bin/ruby 
require 'optparse'
require ::File.dirname(__FILE__) + '/lib/BPEL_Transform.rb'

dowhat = nil
ARGV.options { |opt|
  opt.summary_indent = ' ' * 2
  opt.banner = "Usage:\n#{opt.summary_indent}#{File.basename($0)} [options] [FILENAME]\nExample:\n#{opt.summary_indent}#{File.basename($0)} -d hotel.bpel\n"
  opt.on("Options:")
  opt.on("--help", "-h", "This text") { puts opt; exit }
  opt.on("--dsl", "-d", "For each tile visualize the resource tree and the layers.") { dowhat = "dsl" }
  opt.on("--dataelements", "-D", "For each tile visualize the resource tree and the resulting compositions.") { dowhat = "dataelements" }
  opt.on("--endpoints", "-e", "Visualize the resulting facade.") { dowhat = "endpoints" }
  opt.on("--invocation", "-i", "Invocation messages.") { dowhat = "invocation" }
  opt.on("Filename must be a BPEL file.")
  opt.parse!
}
if ARGV.length == 0 || !File.exists?(ARGV[0]) || dowhat.nil?
  puts ARGV.options
  exit
end
fname = ARGV[0]

bt = BPEL_Transform.new(fname)
case dowhat
  when "dsl"
    puts bt.transform_dsl
  when "endpoints"
    puts bt.transform_endpoints
  when "dataelements"
    puts bt.transform_data
  when "invocation"
    puts bt.transform_invocation
end  

Version data entries

147 entries across 147 versions & 1 rubygems

Version Path
cpee-1.5.27 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.26 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.25 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.24 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.23 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.22 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.21 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.20 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.19 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.18 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.17 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.16 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.15 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.13 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.12 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.11 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.10 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.9 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.8 lib/cpee/processtransformation/bpel/bpel2wee.rb
cpee-1.5.7 lib/cpee/processtransformation/bpel/bpel2wee.rb