The following example demonstrates how to duplicate a business
object. In this example, the original object is the triggering business
object (triggeringBusObj), and the duplicate is going to be the business
object for a port variable called inPort (inPortBusObj). Both business
objects are located in the Variables folder of the Library and Content
windows.
To create the duplicate business object for this example:
- Ensure that Activity Editor is open.
- Drag and drop the triggeringBusObj variable onto the editing
canvas.
- Drag and drop the Duplicate function block onto the canvas, placing it to
the right of the triggeringBusObj function block.
- Note:
- The Duplicate function block is located in the General\APIs\Business Object
folder in the Library and Content windows.
- Place a connection link between the output port of the triggeringBusObj
variable and the Original input of the Duplicate function block.
- Drag and drop the inPortBusObj variable onto the canvas, placing it to the
right of the Duplicate function block.
- To assign the value of the original business object to the new business
object, place a connection link between the duplicate output of the Duplicate
function block and the input for the inPortBusObj variable.
Figure 49. Duplicating a business object

- Save the activity definition by clicking File-->Save.
