Skip to main content
A program is an RSL bundle that Effective hosts for your organization. Its entry file is a rating function (a rater), or a process (a guideline) with the raters it uses. Each rater is also a program with the same ID. You put a program on Effective once for each version, then call it through the API: A release names one uploaded bundle by a version number. A release stays as it is, so a caller that names a version gets the same answer each time.

Releases

  1. Check the entry file with rslc check, and fix each message. Write your first rater shows the check.
  2. Test it on your machine: test a rater against its filed examples, and for a guideline run a submission through each path its rules take. An uploaded bundle answers no call until it is released, and a release stays as it is, so the tests you run here are the ones that count.
  3. Package it with rslc export rater.rsl --format bundle --out rater.zip. For a guideline, export guideline.rsl: the bundle carries the raters it uses.
  4. Upload the bundle. Effective checks it and returns a bundleId. The bundle serves calls only once you release it.
  5. Release the bundle under a version number. A version above the latest one makes it the latest release.
rslc export is how any program reaches Effective. To rate a book of policies with Relativities instead, package a program with its prepare function and its examples; a guideline does not use that package. Versions and releases explains what a release pins.

Roles

A guideline’s rules name the role that answers each question and takes each act, such as uw for the underwriter and manager for referrals. Releasing a guideline makes you the holder of each role it declares. To let your team work submissions, replace who holds the program’s roles. The body names every role you keep bound; a role you leave out has no holders on this program:

Rating

A rater release takes one request and returns its outcomes, such as the premium. Read the release’s contract first: it holds the JSON schema of the inputs. A rater’s inputs go under inputs, inside the contract’s root record, such as Policy:
A guideline evaluate takes answers by input path. because is an object keyed by the same paths, one reason for each answer that needs one, and acts lists the acts to take in order:
This firm is two years old, so the program’s new_venture rule refers it: the quote is recorded but held, and bind is refused until a manager approves. An evaluate call leaves the program as it was, so a caller repeats it safely. A request that breaks a check gets the check’s code and message. Rating a product describes the rater use.

Submission logs

A release with a guideline entry keeps one log for each subject, such as a submission. Each log is pinned to one release, and that release decides every write to it. To populate a log from an uploaded application and read the resulting premium, follow Rate a submission from broker documents.
  1. Open a log under a UUID you choose, such as the ID of the case it decides. The open entry pins the log to a release.
  2. Write to the log: answers, sign-offs and acts. The commands of one write land together, or the log refuses them all.
  3. Preview a write to see the entries and the status it gives. A preview leaves the log as it was.
  4. Get the status: one word for where the log stands, its open questions with the role that answers each, its referrals, its offers and its outcomes.
A caller writes in a program role that it holds. A workspace admin, program owner, or someone with an explicit Manager grant on the program can bind users and groups to its roles. Workspace admins can assign roles across every program that declares them. Underwriting a submission describes the guideline use, and Processes and the log explains how a log folds into a status.

Log entry fields

A log only grows. Each entry is one JSON line with the same fields: seq, at, by, kind, on, value, in, from, reason, note and stamp. Its kind is one of eight: Submission log gives the fields of each kind, the statuses and the refusal codes. A log stays on the engine that its release pins. A log that an older release wrote replays on that release’s engine, so its statuses stay as they were. The API returns its entries in the same eight kinds. Release the guideline again with the current rslc to put new logs on the current engine.

Operations by job

Each link opens the operation in the API reference, with its parameters and responses. A receipt records what a system outside the log did after a final act, such as issuing a policy. A log that stands accepted, refused or ended takes receipts and refuses every other write.