Configure a blueprint rule
Configure a rule that contains actions the system can take on blueprint attributes.
Before you begin
Role required: sn_cmp.cloud_service_designer
Procedure
Open a blueprint that has the attribute for which you want to create a rule.
On the Catalog tab, click the operation, such as the provision operation, that contains the attribute.
Provision operation
In the Variable Sets related list on the Cloud Catalog Item form, click the name of the variable set that contains the variable.
In the Cloud Variables related list on the Variable Set form, click the name of the variable for which you want to crate the rule.
In the Rules related list, click New and then fill in the form.
| Field | Description |
|---|---|
| NameDescription | Enter a name and description. |
| Order | Enter a number that tells the system which record to evaluate first in relation to others. The record with the lowest number runs first. |
- Right-click the form header and select Save.
Example
This example rule is based on the CloudAccount property and contains an action that tells the system to update the list of locations when the user changes the cloud account.
An example blueprint rule
What to do next
Configure an optional condition and a mandatory action.
Parent Topic:Build a Cloud Provisioning blueprint
Related topics
Add a resource operation to the execution plan
Execute blueprint operations in parallel
Configure a blueprint rule condition
Configure the condition on a blueprint form event rule that determines when the actions in the rule can run. Conditions are optional.
Before you begin
Role required: sn_cmp.cloud_service_designer
Procedure
Open a rule for a variable on a blueprint.
On the Conditions related list, click New.
Fill out the form fields (see table).
| Field | Description |
|---|---|
| Operand | Enter the property against which you can perform the condiontal evaluation. For example, if your blueprint has a property which holds the value of a datacenter, enter the property name here. |
| Operator | Select an operator that evaluates the operand. |
| Value | Enter a value that the evaluated event rule must match. |
| Condition Type | If you configure multiple conditions, select the logical operator that determines how the system evaluates the condition in relation to the next condition (the next condition is determined by the Order field):
|
| Order | Enter a number that tells the system which record to evaluate first in relation to others. The record with the lowest number runs first. |
| Status | Keep the status active to have the system process the condition. Change the status to inactive when you do not want the system to process the condition. |
- Click Submit.
Example
This example condition applies when the user selects the AWS Datacenter for the Logical_Datacenter property, which is a field on the catalog item form:
Example blueprint condition
What to do next
Configure a blueprint action
Configure actions that the system runs when blueprint form attribute actions or event actions are triggered. You can configure actions like making a field mandatory, showing or hiding a field, or automatically populating a field.
Before you begin
Role required: sn_cmp.cloud_service_designer
Procedure
Open a rule for a property or an event on a blueprint.
On the Actions related list, click New and then fill in the form.
| Field | Description |
|---|---|
| Name | Unique and descriptive name. |
| Action Type | Select an action type: - Reload: Select a variable to reload - Show: Select a variable to make visible. - Hide: Select a variable to hide. - MakeMandatory: Select a variable to make mandatory. - MakeNonMandatory: Select a variable to make optional. - TriggerChangeEvent: Select a variable on which to trigger a change event. All rules on the selected variable are triggered. - SetValue: Set the value of a variable. |
| Datasource | Select an action type: - Reload Cloud Account: - Reload Cloud Location: - Check Quota: - Reload Resource Profile: - Reload From Profile: |
| Target Field | Enter the name of the field on the form that the action applies to. For example, if you selected TriggerChangeEvent for the action type, the value of the field changes when something changes on the form, as specified in the blueprint rule. |
| Value | Enter an optional value that you want to assign to the target field. For example, if you selected SetValue for the Action Type field and you want to update the Resource Group Name, you can use the value ${ResourceGroup}, which pulls the names of the resource groups from the blueprint. |
| Order | Enter a number that tells the system which record to evaluate first in relation to others. The record with the lowest number runs first. |
Right-click the header and select Save.
Enter a Key and Value in the KeyValues related list.
The value in the Value field is applied to the attribute in the Key field.
Create as many actions as necessary.
Example
This example action applies to the blueprint rule example, which is based on the CloudAccount attribute. The action tells the system to update the list of locations when the user changes the cloud account.
Configuring a blueprint action