Some customers supply or approve their own label design. The starter rule Print a customer's own layout adds one rule that chooses a layout of yours for every line of one customer. Other customers keep the layouts your existing rules choose.
Use the starter rule
You need the Author role. The rule is added to a draft: production keeps using its active release until a Reviewer publishes a new one.
- Open Rules. The page opens on Starter rules.
- Find Print a customer's own layout. It is in Recommended and in Layouts; you can also type a word such as "layout" in Search starter rules and Help.
- Fill in the blanks in the card's sentence, "For customer …, print the … layout.":
- Customer code: the customer's code exactly as it arrives in your job data, for example ELLAND. It is matched exactly as typed, including capitals, so a code with a space before or after it is refused.
- Layout: one of the layouts in your active release.
- Choose Use this rule. The button waits until every blank has a value, and a value the card cannot accept is refused on the card with what the blank accepts.
LabelRules opens an ordinary rule draft, named with the sentence you completed. Its page says Began from a starter rule, names the rule that was added (for example layout-elland) and names the rule of yours the draft is anchored on, which is unchanged. No model is asked and nothing is approved.
What the rule does
The rule belongs to the decision which layout prints. It matches when the job's customer code equals the code you entered, and it chooses the layout you picked. It is given a priority one step above every other layout rule in the release, so it wins wherever it matches.
The rule changes which layout prints and nothing else. What the label says still comes from your other rules, and the design of the layout is changed in a layout draft, which is reviewed separately. To add a new design, publish the layout first: the card offers only the layouts in your active release.
Check the examples
Open Review the examples for this rule. The starter rule prepares five examples for the values you chose, one in each category, and the page says so under Examples prepared by the starter rule. They are not saved until you save them.
- Positive: a line for your customer prints on the layout you chose.
- No match / default: another customer's line keeps the layout its own rules choose.
- Missing data: a line for your customer that is already held for missing data stays held, and no layout is chosen for it.
- Boundary: a single-unit line for your customer also prints on the layout.
- Unrelated: an export line for another customer is unchanged.
The examples name a layout by its family. Where your layout belongs to another family, choose the expected family yourself.
Check each example before you save it:
- Example input holds the values the example runs with. Change any that do not suit your data.
- Independently expected result is what you expect to happen. The starter rule fills in the part its own rule decides. The rest is LabelRules' ordinary synthetic example, so correct anything your own rules decide differently.
- Expected matched rule identities, in execution order lists every rule you expect to match. The starter rule states only its own rule. Add the others from the list of available rules, in order.
Tick the review box, write a note saying where the expected results come from and choose Save reviewed examples. Then choose Verify saved examples and inspect the proofs and refusals. A failed check tells you which expectation and which result disagree: decide which of the two is wrong before changing either.
Release it
When the saved examples pass, freeze the draft with Freeze rule candidate and hand the candidate to a Reviewer. Examples and releases describes the review and publication. Where the site requires a second approver, a rule from a starter rule needs one like any other.
If the card is refused
- This starter rule changed. LabelRules has a newer version of the starter rule than the page you have open. Reload the page and fill the card in again.
- The active release changed. A release was published while the page was open. Reload the page: the cards are built for the release in use.
- Remove the spaces around the customer code. The code is matched exactly as typed.
- A site holds up to 100 rule drafts and a ruleset up to 50 rules. At either limit, finish or publish existing work first.