Method: BPEL_Transform#print_alternative

Defined in:
lib/cpee/processtransformation/bpel/lib/BPEL_Transform.rb

}}}



225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
# File 'lib/cpee/processtransformation/bpel/lib/BPEL_Transform.rb', line 225

def print_alternative(e,word,spaces) # {{{
  result = ''
  result << print_spaces(spaces) 
  case word 
    when 'alternative'
      result << word + " " 
      result << transform_bpel_xpath(e.find('string(bpel:condition)'),'evaluate')
    when 'otherwise'
      result << word
  end    
  result << " do\n"
  result << print_elements(e,spaces+@MULTI)
  result << print_spaces(spaces) << "end\n"
  result
end