Models
A model is a flow of steps that turns inputs into outputs. The main model is what a calculation runs; the other models are sub-models it calls, for example once per insured person. You draw a model on a canvas: each step does one thing, and Another system the suite calls for you, such as a lookup service or a tool of your own, with its address and its access, set once in the console.Glossary → Someone who showed interest and has not been qualified yet: from a link, a form left half-way, a file, a referral.Glossary → from Start to an End.
This page says what goes into a model: its fields and its steps. How to work on the canvas (the header, the panes, the Inputs or answers saved with the result they must give, tried again after each change. Rate and Studio both keep them.Glossary →, What a record did not meet after a move, kept open until someone deals with it.Glossary →, checking, history) is in The model editor.
- New model creates an empty model with a start and an end.
- The main model, marked Main: the one a calculation runs. Click its name to open it in the editor.
- The actions of a model: Open in the editor, Duplicate, Make it the main model, Delete.
Who can do it
Section titled “Who can do it”Editing a model needs Rate: tariffs: Full. Reading it needs Rate: tariffs: See.
Manage the models
Section titled “Manage the models”Models lists the models of the Everything Rate needs to price one insurance product: its models, rate tables, lists of values and constants.Glossary →. New model creates an empty model with a start and an end: give it a Name and a Key (how other models and the API name it; it cannot change later). Create one model for each part you want to reuse, for example “One driver” or “Taxes”.
In a model’s actions: Open in the editor, Duplicate, Make it the main model and Delete. A right click on a model’s row offers the same actions. Deleting a model removes it from the The copy of a tariff, a form or a template that you change. Nobody outside your team uses it: calculations, respondents and documents use what you published.Glossary →; steps of other models that call it show a problem until you change them. Published A frozen, numbered copy of a tariff's draft, in force from a date. Calculations use the release in force on their date.Glossary → keep their copy.
Describe the fields
Section titled “Describe the fields”Open the model, then the Fields tab on the right. A field is a named value of the model, and A level of a product, such as "Third party" or "Comprehensive": the covers it includes, with their values.Glossary → refer to it by its key.
- Inputs are the values the caller gives: date of birth, zone, sum insured. The model cannot change them.
- Computed fields are intermediate results the steps fill in, like an age or a base rate. They are not returned.
- Outputs are the results returned to the caller: , tax, total. They are the API contract of the model.
For each field, choose its Type (Number, Text, Yes / no, Date, Option of a list of values, a list, or an Item holding several values), a Default value, and for inputs whether it is Required. A number can keep a number of Decimals; once it does, a Rounding mode appears under it (Half up (arrondi commercial) by default). Inputs can carry a Minimum, a Maximum or a Format: the caller gets a clear error outside them. A date or number input can also be bounded by another input of the same kind: Not before and Not after for a date, At least and At most for a number. The motor example sets the The right to use one app or option, which your plan gives. The console's Home lists them under What it may use.Glossary → date Not before the birth date: the The Rate screen where you try a tariff with your own values and see every step of the calculation. Nothing is saved.Glossary → then shows the error under the licence date and calculates nothing.
When the list a field needs does not exist yet, choose New list under List of values: give the list a name and its options, one per line, then Create the list. It is saved with the tariff’s lists and the field takes it at once. Add the values each option carries in Lists and constants.
Changing a field’s key renames it everywhere: in this model, in the other models that call it and in the test cases (Rename everywhere). Systems calling the API keep the old name until you publish a new release, so tell them before you publish.
Add and connect steps
Section titled “Add and connect steps”- In Add a step on the left, click a step, or drag it onto the canvas. If a step is selected, the new one is connected under it. In an empty model, Compute stands out as a good first step; Sub-model stays disabled, with the reason, until the tariff has a second model.
- Connect steps by dragging from the dot under a step to another step. From the keyboard, or to change a connection, choose where each exit of the selected step goes under Where it goes next in its settings.
- Select a step to set it up in the Step tab on the right.
- End every path with an End step, then Save (Ctrl+S).
| Step | What it does |
|---|---|
| Start | Where the calculation begins. One per model. |
| Compute | Gives values to fields, one formula per field, in order: a line can use the fields set by the lines above. |
| Branch | Chooses a path: the cases are checked in order, the first true one is followed, otherwise the Otherwise exit. |
| Lookup | Finds the first row of a Rows of rates by criteria, such as a rate per zone and age band. A lookup returns the first row whose keys all match.Glossary → matching keys, and copies its values into fields. Its No match exit says what to do when no row matches, or the step stops with an error. |
| Sub-model | Runs another model of the tariff once, gives it values, and copies its outputs into fields. |
| For each | Runs a A model of a tariff that the main model calls, once or once per item of a list, such as the surcharge of each insured person.Glossary → once per item of a list (each insured person, each A guarantee of a product: what is insured, with its ceilings, its excess and its waiting period for each formula.Glossary →) and keeps the results in a list field, for example sum(results, r => r.premium) afterwards. |
| End | Finishes the calculation: Quoted, Refer to an underwriter or Decline, with an optional Reason code (such as UNDERAGE) and a Message. |
| Note | A comment on the canvas, for the next person. It does nothing. |
Select a step to see its settings in the Step tab, in titled sections: its name, what it does (such as What to look up), and Results to keep once there is something to keep. More options, closed unless one of them is set, holds the step’s Notes and Skip this step, which keeps a step on the canvas without running it, to see what changes without it (a skipped branch follows Otherwise). Inside a For each step, item is the current item and position its number; previous and rounds give the results of the rounds before. The Rate steps reference describes every step.
When something goes wrong
Section titled “When something goes wrong”- This would make a loop: reconnect the step forward, or use a For each step.
- A formula shows an error after a field was deleted: change the formulas that used it, or undo.
- A field key is refused:
item,position,previousandroundsname the current round inside a For each step and cannot be field keys.
When the price itself is empty or wrong, see My price is empty or wrong.