You are here:
Tips to Work with Subexpressions
You can’t modify a subexpression version when it’s active. You can reuse an active subexpression without creating a subexpression from scratch. You can map the subexpression’s input and output variables to the local resources of the expression set version that the subexpression is used in. You can directly replace or delete subexpressions added in expression set versions, without deleting mapped variables or subsequent steps that reference the subexpression’s variables.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Unlimited, and Developer Editions for clouds that have Business Rules Engine enabled |
| Scenario | Tips |
|---|---|
A subexpression version with the highest rank is used as a step in an expression set version. You want to update the steps in the subexpression version without changing the input and output variables. For example, the subexpression version has 10 input and output variables. Without changing any variable, you want to update the calculation formulas or the conditions that the variables are used in. |
When the parent expression set version is run the next time, the updated subexpression version that has the highest rank is considered. |
| A subexpression version with the highest rank is used as a step in an expression set version. You want to use some steps and variables in the subexpression version, but you also want to make other changes that require you to add or remove variables. |
When the parent expression set version is run the next time, the version considers the updated subexpression version. |
| When a subexpression version is added in an expression set version step, variables are automatically created in the expression set version corresponding to the subexpression’s variables. You now want to map the subexpression’s variables to different local resources in the expression set version. |
|
| A subexpression is used in an active expression set version and its output variables are used in subsequent calculation steps of the expression set version. You now want to delete the subexpression from the expression set version. |
|
| A subexpression is used in an active expression set version and its output variables are used in subsequent calculation steps. You now want to substitute the subexpression in the expression set version with another one that better suits your business needs. |
|

