Network Subsystems flow
About this task
The Network Subsystems flow comprises eight conversational steps. You begin the flow by creating a new skill action in the AIOps Assistant.
Procedure
- Log in to watsonx Orchestrate.
- Click the AI assistant builder tile.
- From the main menu bar, select the AIOps Assistant to which you want to create the skill flow.
- Hover the cursor over the home icon, select Actions, and then click New action.
- On the Create an action page, select Start from scratch.
- On the New Action window, enter Show all my
Networks 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.
- Create the Network Subsystems flow: Step 1:
- In the Add then section, click Go to a subaction, and then select Retrieve all Network Details.
Step 2:- 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 allNetworkTable
Any 1. Retrieve All Network Details result variable.value.message
NormalizedNetworkTable1
Any allNetworkTable.toString().replace("Job Name", "networkId").toJson()
NormalizedNetworkTable2
Any NormalizedNetworkTable1.toString().replace("SMF ID", "smfId").toJson()
NetworkIdList
Free text NormalizedNetworkTable2.joinToArray("%e.networkId%", true)
- In the Assistant says section, enter What do you want to do next?.
- Click Define customer response and then click Options.
- In the Edit Response window, enter the following:
- Option 1 - View details
- Option 2 - View listeners
- Click Apply.
Step 3:- In the Conditions section, set the following
conditions: For more information on how to add conditions, see Setting conditions and variables for AIOps Assistant flows.
- Condition 1 - Select Action step variables > 2. **What do you want to do next?** and set the condition to View details.
- Condition 2 - Select Action step variables > 2. **What do you want to do next?** and set the condition to View listeners
- In the Assistant says section, do the following:
- Type the string "Select the Network Job Name you want to".
- Press the $ key on your keyboard.
- Select Action step variables > 2. **What do you want to do next?*.
- Type the string "for:".
After you perform the preceding steps from i through iv, the complete expression should be "Select the Network Job Name you want to 2. **What do you want to do next?** for:" - Click Define customer response and then click Options.
- In the Edit Response window, do the following:
- Toggle the Dynamic switch to the On position.
- Select the variable NetworkIdList that you defined in the previous step.
- Click Apply.
Step 4:- In the Conditions section, select Action step variables > 3. **Select the Network Job Name you want to** **{variable}** **for:** selected and set the value to Defined.
- 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 selectedNetworkId
Free text 3. **Select the Network Job Name you want to** **{variable}** **for:**.value
selectedNetworkIdIndex
Number NetworkIdList.indexOf(selectedNetworkId)
selectedNetworkSMFId
Free text NormalizedNetworkTable2.get(
selectedNetworkIdIndex).smfId
Step 5:- In the Conditions section, select Actions step variables > 2. **What do you want to do next?** selected and set the value to View details.
- In the Add then section, do the following:
- Select Go to a subaction.
- In the Go to field, select Retrieve Network details by Network ID.
- Click Apply.
- In the Add then section, do the following:
- Click Edit passed values.
- Click Set new value.
- Select networkId and set the value to selectedNetworkId.
- Click Apply.
Step 6:- In the Conditions section, select Retrieve a Network details by Network ID (step 5) > Retrieve a Network details by Network ID result variable selected and set the value to Defined.
- 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 selectedNetworkId
Free text Retrieve a Network details by Network ID result variable.value.message.extract('Details[^>]*>:\\s*(\\S+)', 1)
selectedNetworkIdIndex
Number NetworkIdList.indexOf(selectedNetworkId)
selectedNetworkSMFId
Free text NormalizedNetworkTable2.get(
selectedNetworkIdIndex).smfId
- In the Assistant says section, enter Do you want to see network job listeners?
- Click Define customer response and select Confirmation to include the Yes and No buttons.
Step 7:- In the Conditions section, select Action step variables > 6. **Do you want to see network job listeners?** selected and set the value to No.
- In the Add then section, select End the action.
Step 8:- In the Conditions section, set the following conditions:
- Condition 1 - Select Actions step variables > 2. **What do you want to do next?** selected and set the value to View listeners.
- Condition 2 - Select 3. **Select the Network Job Name you want to** **{variable}** **for:** selected and set the value to Defined.
- Add a new condition group and set the following Or
condition:
- Select Action step variables > 6. **Do you want to see network job listeners?** selected and set the value to Yes.
- In the Add then section, select Go to a subaction.
- In the Go to a subaction window, do the following:
- In the Go to field, select Retrieve a Network TCP Listener.
- Click Apply.
- In the Add then section, click Edit passed values.
- In the Edit passed values window, do the following:
- Click Set new value and select the following values:
- Select jobName and set the value to selectedNetworkId.
- Select smfId and set the value to selectedNetworkSMFId.
- Click Apply.
- Click Set new value and select the following values: