Creating the Child Requests

After you have populated the Bundle field on the Parent Request with the bundle selected as the Service Item, you can add the automatic action that creates the Child Requests. This automatic action immediately follows the Populate Bundle Attribute automatic action you created earlier.

This procedure involves adding a value type to the Lifecycle attribute on the Request window. This field is not usually displayed on this window, so you may need to add it temporarily using Window Manager.

To create the Child Requests for the Bundle process:
  1. In Process Designer, open the process that you are using to handle Bundle Requests.
  2. From the Toolbox, add an Automatic Action Instance.
    The Select Action dialog appears. We need to create a Child Request for each item in the bundle.
  3. From the Select Action dialog, select Create Child Request, then click OK.
    The Request window appears, so that you can populate the necessary fields.
  4. Right-click the Service Item field, then click Value Type.
    The Control Value Selection dialog appears. We want to specify a runtime value that populates the field with every CI in the bundle. The CIs in a bundle are stored in a collection called Catalog Items.
  5. Select the Specify a runtime value for control option.
    The tree at the bottom of the dialog is enabled.
  6. Expand the Bundle branch, then the Catalog Items branch, and select Configuration Item.
    This selects the Configuration Item in the collection of Catalog Items in the Bundle. We need to select ALL of the items in the collection, because we want to create a Child Request for every CI in the Bundle.
  7. Select the Select ALL collection items? check box.
  8. Click OK.
    The Control Value Selection dialog closes. _Bundle/CatalogItems*/ConfigItem appears in the Service Item field.
  9. Similarly, set the Request Type field to use the value type:
    {_Bundle/CatalogItems*/ConfigItem/CatalogHierarchy}

The * after CatalogItems shows that the Select ALL collection items? check box has been selected to choose all of the items in the collection of Catalog Items.

  1. Similarly, set the Lifecycle field to use the value type:
    {_Bundle/CatalogItems*/ConfigItem/Lifecycle}

The Lifecycle field might not be on the window, in which case use Window Manager to add it while you do this design.

Because the paths set for the Request Type and Lifecycle fields are based on the path set for the Service Item field, the system knows to create only one Child Request for each Service Item. The system then matches the value types for the Request Type and Lifecycle fields to for each Child Request as appropriate.

  1. Set any other value types or static values that you require for the Child Request, then click OK on the Request window.
  2. Link the Create Child Request automatic action after the Populate Bundle Attribute automatic action.
  3. Complete and save the rest of the Bundle process as you require.

If a bundle includes a CI that does not have a lifecycle set for it, you will receive an Object Reference Not Set to an Instance of an Object error. Make sure that all services that are available through the Service Catalog have a lifecycle associated with them.


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other