Decision
In the Composition tab, the decision component is available underneath the Flow components menu. It is used for the purpose of selecting a flow based on a decision.
Procedure
- Drag Flow Components > Decision in the composition canvas.
- Select or enter the following details:
-
Title - Enter the title of the decision activity. The Title must have a unique value.
-
Description - The description of the decision activity.
-
Mapped Parameters - Click Link parameter to map an existing parameter or create a new parameter. Alternatively, click Add parameter and enter an interpolation value. Click the blue tick mark to save the value.
- Steps to map an existing parameter or create a new parameter of type mapped parameter:
-
Click Link parameter in the Activity details pane to map a new parameter.
-
In the Link parameter dialog, click Link to map an existing parameter.
-
Map an existing parameter or create a new parameter and link it automatically:
- Link parameters:
-
Select a linking option. You can map parameter values using the Input Parameters and Templates menu options in the Link Parameter dialog box:
- Input Parameters - This menu option lists all string parameters that have Options required set to true in the Input Parameters section of the main Parameters tab of a service.
- Templates - This option lists all parameters of all template activities that are available prior in sequence to this decision activity.
The values displayed in the Activity details pane change based on what you select and which activities you use in your service workflow.
Note: For example, if there are two templates A and B placed in sequence in the Provision Action of the Composition tab, then parameters of both the templates are available in the Activity Parameters section of the Parameters tab. If you want to link a parameter of template B, then a list of all parameters of the template A and shared parameters are available for association. If your service involves Business Process Manager activities and helm charts, then they are also available for linking. For the very first activity, template A, you can only link input parameters and shared parameters.
-
Expand the parameter menu and hover over the parameters to see a plus icon.
-
Click the plus icon to select it. A green tick mark indicates your selection and also the Value is refreshed. You can also use the Search Parameter to filter and find a parameter.
-
Click Save.
-
You can also click Remove Link in the Link Parameter dialog box to remove a mapping.
-
- Create a new parameter and link it at the same time:
-
In the Link Parameter dialog box, click Create.
-
Enter a value for the Parameter Key.
-
Enter or select values for the new parameter.
Notes:
- You can only use the End-User Permissions value of the parameter record from which you opened the Create New tab. You cannot change the value.
- You cannot change the Parameter Type value. It is dependent on the parameter record type from which you opened the Create New tab.
-
Enter or select the following values for Read and Write permission:
- Parameter Type - This value cannot be changed and is set to the parameter type of the parameter from which you opened the Link parameter dialog.
- Value Required - Determines whether a value is required for the parameter.
- Specify Options - For string data type, you can select this option for a drop-down list of string values.
- Display Name - The label or display name of the parameter.
- Description - The description appears as a tooltip when the customer orders this service.
- Default Value - Enter values for Label and Value pair fields. Select a record to mark it as default value. You can click the cross mark icon to delete a value record.
-
Click Save to create and save the new parameter.
-
- Link parameters:
-
- Steps to map an existing parameter or create a new parameter of type mapped parameter:
-
Cases - The value of Cases depends on the selected Mapped parameter.
An example of Cases can be
case 0: VMware
andcase 1: IBM Cloud
.
-