Example: Creating a duplicate business object

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:

  1. Ensure that Activity Editor is open.
  2. Drag and drop the triggeringBusObj variable onto the editing canvas.
  3. 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.
  4. Place a connection link between the output port of the triggeringBusObj variable and the Original input of the Duplicate function block.
  5. Drag and drop the inPortBusObj variable onto the canvas, placing it to the right of the Duplicate function block.
  6. 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


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

Copyright IBM Corp. 2003, 2004