lib/cpee/processtransformation/cpee.rb in cpee-1.3.176 vs lib/cpee/processtransformation/cpee.rb in cpee-1.3.177
- old
+ new
@@ -52,12 +52,11 @@
s1
end
def print_Node(node,res)
if node.endpoints.empty? && !node.script.nil? && node.script.strip != ''
- n = res.add('d:manipulate', 'id' => "a#{node.niceid}")
- n.text = node.script
+ n = res.add('d:manipulate', 'id' => "a#{node.niceid}", node.script)
n.attributes['output'] = node.script_var unless node.script_var.nil?
n.attributes['language'] = node.script_type unless node.script_type.nil?
else
n = res.add('d:call', 'id' => "a#{node.niceid}", 'endpoint' => node.endpoints.join(','))
p = n.add('d:parameters')
@@ -68,10 +67,10 @@
par = p.add('d:parameters')
node.parameters.each do |k,v|
par.add(k,v)
end
if !node.script.nil? && node.script.strip != ''
- x = n.add('manipulate',node.script)
+ x = n.add('d:finalize',node.script)
x.attributes['output'] = node.script_var unless node.script_var.nil?
x.attributes['language'] = node.script_type unless node.script_type.nil?
end
end
end