Table of Contents

Search

  1. Preface
  2. Part 1: Using Process Developer
  3. Part 2: Creating and Modifying Processes
  4. Part 3: Functions, Events, Errors, and Correlation
  5. Part 4: Testing and Deployment
  6. Part 5: Process Central and Process Server (On-Premises)

Process Developer

Process Developer

Element to Element Copy Operation with Keep Source Element Name Attribute

Element to Element Copy Operation with Keep Source Element Name Attribute

Select a FROM Type and then complete the Copy operation by making other appropriate selections. Add, edit, copy, delete, and reorganize Copy operations and scripts for the selected Assign activity.
Use
Keep Source Element Name
to replace the element at the destination with a copy of the entire element at the source, including children and attribute properties. This attribute supports XSD substitution groups and choice.
If Keep Source Element Name is disabled, then the resulting value for element-based variable in the destination (that is, the TO side) has its original namespace and local name properties.
If Keep Source Element Name is enabled, then the resulting value for the element-based variable in the destination uses the name of the element-based variable in the source (that is, the FROM side).
Given the following schema snippet:
<xsd:element name="poHeader"> <xsd:complexType> <xsd:sequence> <xsd:choice> <xsd:element name="shippingAddr" type="tns:AddressType" /> <xsd:element name="USshippingAddr" type="tns:USAddressType" /> </xsd:choice> <xsd:element name="billingAddr" type="tns:AddressType" /> </xsd:sequence> </xsd:complexType> </xsd:element>
Given the following process variable values prior to the copy operation:
poHeaderVar1
poHeaderVar2
<tns:poHeader>
<tns:poHeader>
<tns:USshippingAddr verified="true">
 
<tns:street>123 Main Street</tns:street>
 
<tns:city>SomeWhere City</tns:city>
<tns:shippingAddr pobox="true" />
<tns:country>USA</tns:country>
 
<tns:zipcode>98765</tns:zipcode>
 
</tns:USshippingAddr>
 
</tns:poHeader>
</tns:poHeader>
Given the following copy operation:
<assign> <copy keepSrcElementName="yes"> <from>$poHeaderVar1/tns:USshippingAddr</from> <to>$poHeaderVar2/tns:shippingAddr</to> </copy> </assign>
The resulting value of
poHeaderVar2
is:
<tns:poHeader> <tns:USshippingAddr verified="true"> <tns:street>123 Main Street</tns:street> <tns:city>SomeWhere City</tns:city> <tns:country>USA</tns:country> <tns:zipcode>98765</tns:zipcode> </tns:USshippingAddr> </tns:poHeader>

0 COMMENTS

We’d like to hear from you!