Underwriting rules
The rating manual has four rules:- The premium is $2 for each $1,000 of payroll.
- A firm with claims pays 1.5 times that premium.
- The basic limit is $1,000,000. A higher limit, up to $2,000,000, costs 1.1 times that premium.
- The program rates a payroll of $1,000 or more.
- A professional employer organization (PEO) must be in operation for 3 years or more and be financially sound.
- An underwriter judges the loss experience and the financial soundness.
- A manager signs off a firm in operation for less than 3 years.
- A manager signs off a premium of $10,000 or more.
- An underwriter quotes and binds.
Save the rating function
Make a folder for the program:rater.rsl:
rater.rsl
rater.rsl
staffing/rater.rsl
premium.
Its check PAYROLL_BELOW_MINIMUM refuses a payroll below $1,000.
per quote on limit makes the limit a term: each offer may set its own limit. Every other input is a fact that all offers share.
Write the guideline
Createguideline.rsl beside rater.rsl. The parts below build it from top to bottom, and the whole file follows them.
Use the rating function
spec header as a rater, with component: guideline.
use links the rater under the short name ts, so its record is ts.Policy.
Grant roles and acts
Roles lists the roles from lowest to highest, and a role acts for each role below it.
Each act names its kind, the states it moves between, and the lowest role that takes it.
Ask the questions
policy: ts.Policytakes the inputs of the rater as one input. The guideline asks each of them underpolicy.by @Role.uwgrants a question to the underwriter. A question that lacksbyis open to every role.policy.experience by @Role.uwgrants one question of the rater to the underwriter, by its path.whenmakesfinancially_sounda follow-up: the log asks it only for a PEO.
questions example words two questions this way:
ask is the question, help the longer text, and group the section. The words change what a host asks, and the premium stays the same.
Input contract lists every key, and rslc examples get questions saves the whole file.
Call the rating function
ts(self.policy).premium calls the rater on the policy and reads its premium.
A policy that breaks a check of the rater makes the submission ineligible.
Add eligibility and referrals
- The
whererule has a code. A submission that breaks it isineligible, and the log refusesquote. - A
referrule holds the offer act while its condition holds: the underwriter can still record a quote, but it is held, andbindrefuses it (NOT_READY) until the named role decidesApprovedorDeclined. - A decision stands while the values that its condition reads stay the same. When one changes, the decision lapses.
Check the guideline
The whole file, with its header, source and constants:guideline.rsl
guideline.rsl
staffing/guideline.rsl
large_account holds the call, because its condition reads the premium.
Work a submission
rslc log records one submission in a log file. Each command names its writer as --as role:name, and prints the entries it wrote and the status.
Open and answer
Save the answers of the applicant asapplication.json:
staffing/application.json
new_venture is open before the premium is known.
An assistant who answers policy.experience gets the refusal NOT_AUTHORIZED, and the log stays as it was.
Answer as the underwriter
Sign off as manager
A sign-off answers the referral by its name:ready: the offer act is free to take.
Quote
q1 keeps the $5,000 premium. It stands while the answers stay the same.
Change an answer
The applicant reports a higher payroll:q1 lapses. The sign-off stands, because new_venture reads only years_in_operation.
Now change the answer that the referral reads:
Sign off and bind
q1 stays in the log under its name, so the new offer takes a new name.
bind takes an offer only while it stands, so the bound premium matches the answers in the log. An accepted submission is final.
Read the log
The log file holds one JSON object on each line. These are entries 7, 8 and 13:kindis the shape of the entry, andonis what it is about.decideis the sign-off.stamp.readholds the answer that the manager read.actis an act of the program.stamp.actsays what it did:offer, thenaccept.atis the time of your run. Commands only add lines, and each status follows from the lines.
rslc log history submission.jsonl lists every entry with its number and its writer.
Release it on Effective
To take real submissions, release the guideline on Effective:- Package it with
rslc export guideline.rsl --format bundle --out guideline.zip. The bundle carries the rating function it uses. - Upload the bundle, then release it under a version number.
Next steps
- Run a submission covers each command: documents, offer options, declines, scripts and
--json. - Processes and Rules and decisions explain the model behind the log.
- Submission log lists every entry, status, refusal code and script line.
- Check messages for guidelines explains each message that
rslc checkgives a guideline.