Db2 Subsystems flow

About this task

The Db2 Subsystems flow comprises eight conversational steps. You begin the flow by creating a new skill action in the AIOps Assistant

Procedure

  1. Log in to watsonx Orchestrate.
  2. Click the AI assistant builder tile.
  3. From the main menu bar, select the AIOps Assistant to which you want to create the skill flow.
  4. Hover the cursor over the home icon, select Actions, and then click New action.
  5. On the Create an action page, select Start from scratch.
  6. On the New Action window, enter Show all my Db2 subsystems and click Save.
    You are directed to the page where you can create the conversational steps. Step 1 exists by default. To add the remaining steps, click New step for each step that you want to add, and then save the changes by clicking the Save icon.
  7. Create the Db2 Subsystems flow:
    Step 1:
    1. In the Add then section, click Go to a subaction, and then select Returns information about all Db2 subsystems.
    Step 2:
    1. Select the variables and their values as described in the following table.
      For more information on how to add variables, see Setting conditions and variables for AIOps Assistant flows.
      Note: The variable values are provided in boldface to differentiate them from the object values.
      Variable Type Value
      allDb2Table Any 1. Returns information about all Db2 subsystems result variable .value.message
      NormalizedDb2Table1 Any allDb2Table .toString().replace("DB2 ID", "Db2Id").toJson()
      Db2IdList Free text NormalizedDb2Table1 .joinToArray("%e.Db2Id%", true)
    2. In the Assistant says section, enter Do you want to see details of a specific Db2 instance? .
    3. Click Define customer response and select Confirmation to include the Yes and No buttons.
    Step 3:
    1. In the Conditions section, select Action step variables > 2. **Do you want to see details of a specific Db2 instance?** selected and set the value to No.
      For more information on how to add conditions, see Setting conditions and variables for AIOps Assistant flows.
    2. In the Add then section, select End the action.
    Step 4:
    1. In the Conditions section, select Action step variables > 2. **Do you want to see details of a specific Db2 instance?** selected and set the value to Yes.
    2. In the Assistant says section, enter Which Db2 instance details would you like?.
    3. Click Define customer response and then click Options.
    4. In the Edit Response window, do the following:
      1. Toggle the Dynamic switch to the On position.
      2. Select the variable Db2IdList that you defined in the previous step.
      3. Click Apply.
    Step 5:
    1. In the Conditions section, select Action step variables > 4. **Which Db2 instance would you like?** selected and set the value to defined.
    2. Select the variables and their values as described in the following table.
      For more information on how to add conditions and variables, see Setting conditions and variables for AIOps Assistant flows.
      Note: The variable values are provided in boldface to differentiate them from the object values.
      Variable Type Value
      selectedDb2Id Free text 4. **Which Db2 instance details would you like?**.value
    3. In the Add then section, select Go to a subaction.
    4. In the Go to a subaction window, do the following:
      1. In the Go to field, select Returns information about a Db2 subsystem.
      2. Click Apply.
    5. In the Edit passed values window, do the following:
      1. Click Set new value and select the following value:
        • Select Subsystem name and set the value to selectedDb2Id.
      2. Click Apply.
    Step 6:
    1. In the Assistant says section, enter Do you want to see the buffer pools for this Db2 subsystem?
    2. Click Define customer response and select Confirmation to include the Yes and No buttons.
    Step 7:
    1. In the Conditions section, select Action step variables > 6. **Do you want to see the buffer posts for this Db2 system?** selected and set the value to No.
    2. In the Add then section, select End the action.
    Step 8:
    1. In the Conditions section, select Action step variables > 6. **Do you want to see the buffer posts for this Db2 system?** selected and set the value to Yes.
    2. In the Add then section, select Go to a subaction.
    3. In the Go to a subaction window, do the following:
      1. In the Go to field, select Returns list of buffer pools on a specific Db2 subsystem.
      2. Click Apply.
    4. In the Add then section, click Edit passed values.
    5. In the Edit passed values window, do the following:
      1. Click Set new value and do the following:
        • Select Subsystem name and set the value to selectedDb2Id.
      2. Click Apply.