Decisions

Decisions are based on a contract and rules. The decision contract involves the initial configuration with an input, which can be inputs or dimensions, and an output, which is the response given by the BRMS upon evaluating the rules in the decision. Both the input and the output are mandatory, but the input can consist either of inputs or dimensions (not necessarily both, unless required under the project definitions).
Each decision and their result is determined based on the rules set under the contract. These rules can be one or more, and can use the values set in the contract. Rules are always executed following the same logic: WHEN
+ dimension(s) + IF
+ Condition + THEN
+ Output(s).
Important
Dimensions are not configured by the builder but by an ITCD profile in the backend of BRMS to then appear in the Dimensions drop-down of the Decision contract tab.
To set a rule condition, type @. A drop-down menu appears, and gives you options to enter a constant (@cons), an input (@input), a dimension (@dim), or the time variable. The time variable is used to evaluate a condition occurring at that moment (for example, whether at that moment is Monday or if it is 2 p.m.).
Navigate the Decisions page

The Decisions page contains all the decisions created for the client. From this page, you can see the details of the decisions created by you and your team and, if necessary, edit them.
Important
Note that making changes in the Decision contract breaks the contract and changes in the Decision rules may cause errors in the app. All changes must be agreed upon between the project team members.
To find a decision, go through the cards list or enter the decision name or tags in the search bar and press Enter in your keyboard. Each decision card shows its name, when it was last updated and its tags (if any). When you click a decision, it opens and you can see the configuration of the decision contract and rules.
In addition, you can import others created in a different environment; for example, a decision created in a testing environment that you need to use in your production environment. You can also export decisions to your device (in JSON format) to then import them in other environments.
If you haven't created the required decisions in another envinronment and you need a decision with a different configuration, you can create a new decision.
Read Create or Edit a Decision to learn how to configure a new decision or modify the configuration of an existing one.