rslc plan keeps one person’s answers in a journey file and prints the next question as a card.
The planner asks only for inputs that still change a result.
Rate with missing answers shows the result that each rater gives.
Start a journey
Save the shared renters example, a rater from the synthetic carrier Example Mutual:journey.jsonis the journey file. Each later command reads it and writes it back.--rater renters=rentersgives the rater an ID and names the folder that holdsrater.rsl.- The first line of a card holds its kind, the path of the input, and the question.
readylists each rater that is settled.
Answer a card
Pass the path of the card and the answer as JSON:number card shows the smallest and the largest answer.
The help line comes from the rater’s help annotation.
choice card lists each answer as its JSON value, then its label.
A text answer keeps its JSON quotes, so wrap it in single quotes for the shell:
construction out. Each rural row of the building table holds the same factor.
dog_has_bitten is a follow-up input. The planner asks it only after has_dog is true.
Read the premium
The journey file holds the answers underfacts. Rate them with rslc.journey.Journey:
Plan for several raters
A journey takes one--rater for each rater. Save a second, smaller rater as basic/rater.rsl:
Complete example: basic/rater.rsl
Complete example: basic/rater.rsl
basic/rater.rsl
asked by names the raters that declare the input, when some raters leave it out.
still settled if skipped counts the other raters whose result ignores the answer.
The two raters share the paths Policy.contents and Policy.has_dog, so one answer serves both.
Put a card off
A person who lacks an answer puts the card off. Skip the path of the card:Renters waits on the skipped answer, so the planner first asks what Renters Basic needs.
Renters Basic is ready after two answers. The remaining cards belong to Renters.
A skipped card comes back after the other cards, marked (skipped before):
rslc plan next. It leaves the journey as it is:
Search the answers of a card
To find an answer in a long list, search the card’s path:search card holds a list too long to print, and this command finds its answers.
Decline a document
The renters rater names a document with two annotations.gives says who has a declarations page, and found_on says that the page prints contents.
The planner offers the document as a card:
Drive a journey from Python
Journey.plan returns the same plan as rslc plan --json, for facts that your program holds:
answerreturns a copy of the facts with one more answer.afternames the card answered last, so the planner stays in its section.step["next"]isNonewhen the plan has zero open cards.step["standings"]then gives the state of each rater.
Related
- Planner lists each command, each
Journeymethod and each field of a plan. - Missing answers explains why a rater names the inputs that still matter.
- Ask the questions a rater needs writes the
ask,helpandgroupannotations that a card shows.