Method: BPEL_Transform#bpel_copy_x

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

#bpel_copy_x(c, what, op) ⇒ Object

}}}



193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
# File 'lib/cpee/processtransformation/bpel/lib/BPEL_Transform.rb', line 193

def bpel_copy_x(c,what,op) # {{{
  result = ''
  c.find(what).each do |to|
    text = if to.attributes['variable']
      if to.attributes['part']
        temp = "$#{to.attributes['variable']}"
        temp << '/' + @vars[to.attributes['variable']].to_s + to.attributes['part']
        result << transform_bpel_xpath(temp,op)
      else
        result << "data.#{to.attributes['variable']}"
      end
      temp
    else
      result << transform_bpel_xpath(to.text,op)
    end
  end
  result
end