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. For a complex type or element, you can generate an XML data file. If the Generate button is greyed out, the variable selected is not of a compatible type. For any variable, use this editor to type in appropriate literal values. Select any matching type or element from the drop-down list to create a XML data file for the root element.
Copy Operation Literal Contents Examples
Type in a literal value for copying to a simple variable, variable property, expression, or partner link, as shown in Example 1. Generate XML data for a complex variable, as shown in Example 2.
Example 1: Literal value
The expression above assigns a string to variable part that is a string. If the variable part were an integer, Process Developer would not report an error, rather it would generate a zero value. Process Developer converts any illegal values to zero for numeric type conversions.
Example 2: Literal contents generation used to initialize a complex variable
Do the following:
In the TO panel, select a complex variable (and optionally one of its parts) that you want to generate XML data for.
If you do not select a TO target first, an unfiltered list of top-level schema elements or complex types that the process is importing are available. If no elements or types are available, the
Generate
button is unavailable.
Select the
Dialog (...) Button
below the Literal Contents text box to open a larger edit box.
Select
Generate
. The
Generate
button is available only if there are top-level schema elements or complex types in the imported WSDL. The list is filtered if you have selected a known type or element in the TO panel.
Fill in the details for generating data, as described in
Using the XML Data Wizard
.
Edit details of the generated data in the Literal Contents edit box, if desired, as shown in the example.
Click
OK
to view the copy operation, as shown in the example.