Playbook variants, evaluation points, activity state mapping, Go back activities and scheduled triggers are the parts of a playbook that the Workflow Studio playbook overview does not walk through. This page covers how to configure each one in the Brazil release, which role each step needs, and the rules that block activation.
Build variants from a base playbook
A variant is a version of a base playbook built for one case, so you avoid copying the playbook or stacking run conditions and branches. A recruitment process is a typical fit: the stages stay the same, but individual contributor and manager candidates need different activities.
Creating a variant needs the admin or playbook.admin role:
- Open the playbook from All > Workflow Studio and select the variant icon to open the variant panel.
- Select Add a variant and enter a name. Agents and fulfillers see this name when the variant runs.
- In the condition builder, choose a field, an operator and a value. Add more conditions if needed.
- Select Create variant.
Activities that match the parent appear greyed out, while changed or added activities appear in full colour. Child variants nest up to six levels. For a wider look at playbook design patterns, see Workflow Studio playbook patterns with nested, restart and archive steps. A child inherits its parent’s conditions automatically, so its own conditions narrow the match. From the variant’s kebab menu, select Add child variant or Edit properties. To add a variant at the same level, use the add-a-variant steps and choose Add sibling variant.
Ordering and favourites
Variants are checked from the top down at each level, and the first match runs, so order decides the outcome when two could match. Drag a variant to reorder it among its siblings. A variant cannot move to a different level. Set a Favorite from the kebab menu, or search for the variant with Quick Find.
Decide when variants are evaluated
By default, variants are evaluated when the playbook starts. An evaluation point moves that check to a place in the base playbook, after some activities have completed, so the choice can use their output. In a recruitment playbook choosing among Manager, Senior Manager and Individual Contributor, the point can sit after the stage that gathers interview feedback.
Placing and moving the point
Three checks come first. No variant activity can sit before the point. No earlier activity may overwrite the value the variant depends on. No variant condition may refer to a later activity. The admin or playbook.admin role is needed. In Diagram view, select the + control after the activity, then the variants icon in the mini-picker. To move a point, select it and choose Evaluate all variants at the beginning of the playbook or Evaluate children after field. Test the playbook after a move. For a broader test plan, see the Flow Designer testing and acceptance checklist.
Inherited properties
Start rules and display order can be inherited from the parent. Changing one inside a variant flags it as overridden, and that property stops following the parent. Check each property after an edit and re-sync any that should match. Stage overrides are not supported in variants in the Brazil release, so set stage properties on the base playbook.
Map activity states to the record behind each card
A playbook card shows an activity state by default, and that state comes from the flow behind the activity. The two can disagree. An agent who clicks Skip on an instructional card leaves the flow showing complete while the step was skipped. Activity state mapping lets the card read its status from a record instead. An activity definition names that record in its experience properties. Any table can serve, and default definitions use sys_flow_data.
The default states
| Activity state | What it means |
|---|---|
| Pending | The flow has not started |
| In Progress | The flow is running |
| Complete | The flow has finished |
| Skipped | The flow was skipped because of its conditions |
| Error | The flow encountered an error |
| Canceled | The flow was canceled |
The table covers the main states; the Ready state is not described on this page.
These states feed declarative action conditions, activity override conditions, animations, the card visual and exception handling. Default states are always set, so mapping works alongside them.
Mapping rules
Each Experience Status Table needs state-mapping rules that decide how a record changes when a user completes or skips an activity. The Global Playbook Experience supplies defaults for sys_flow_data and task under its Status Mapping tab. A custom table needs its own rules.
Mapping runs in two directions. Experience Status to Activity State decides which state a card shows for a record status. Activity State to Experience Status decides how the record changes when a user completes or skips.
Permissions
Can Complete and Can Skip are checked each time an activity is fetched. The user needs write access to the Experience Status Record and its Experience Status Field, a rule set must exist for the table, and a mapping rule must exist for the operation. Complete maps to Can Complete and Skipped maps to Can Skip. If a check fails, the operation is unavailable and its declarative action does not display. A user without read access to the Experience Status Field sees the default state instead, which is the state of the flow behind the activity.
Add stages and activities with the right settings
Stages need the playbook.admin or pd_author role. Add one in Diagram view with the + control after the trigger, or in Board view with + Add stage. Set a user-facing Label, an optional Description, a Run condition and a Start Rule of either When playbook starts or After specific stages.
Display order sets the sequence when stages run together. Start with delay holds a stage after its start rule and conditions are met, which gives users time to act or waits for a set date and time. Changing advanced properties can break automation, so check the flow first.
Activities are interactive, non-interactive or optional. Their inputs sit on the Automation tab, and the Automation section can also open the action, subflow or flow that drives the activity. An activity can set an input by dot-walking to a data pill, which draws on data from previous activities, the playbook trigger, the playbook parent table or the playbook inputs. For a wider guide to dynamic inputs and outputs in actions, see Flow Designer action dynamic inputs and outputs.
Return to an earlier step with a Go back activity
A Go back activity is a conditional return point. When its branch is taken at runtime, the playbook returns to the target, for example an earlier data-gathering step after a rejected request.
| Target | The playbook returns to |
|---|---|
| Activity | The start of a specific earlier activity |
| Stage | The start of a specific stage |
| Start of Playbook | The beginning of the playbook |
Workflow Studio enforces these rules, and activation fails while one is broken:
- A decision holding a Go back needs at least one forward branch.
- A decision that evaluates all true branches cannot hold a Go back. Switch it to the first true branch.
- The target must appear earlier in the playbook and cannot be another Go back.
- A decision branch holds one Go back, as its last activity.
Adding one needs the pd_author role. Select the + icon on a decision branch in Diagram view and choose Add a Go back. Between two stages with no decision, Workflow Studio adds a decision with parallel branches. Set the target on the Configuration tab. Errors are flagged as you work. If restart is not configured for the target, the playbook does not continue from that point. For the decision blocks that hold a Go back, see Workflow Studio flow logic control blocks.
Schedule a trigger and choose when records start a run
A playbook holds up to 10 triggers of any type, and record-based and scheduled triggers can be mixed. The Triggers icon in the sidebar opens once the parent table is set, through Start in Diagram view or More actions > Properties. For the trigger types in general, see Workflow Studio flow triggers, types and setup.
Record-based triggers fire on create, update, or both, and only for record operations that are interactive or made by a user. Trigger on unique values stops a reactivated playbook from running again for a trigger it has already fulfilled.
To schedule, choose Add trigger > Scheduled, set the time zone and start date and time, then pick a repeat pattern:
| Repeat option | What it runs |
|---|---|
| Daily | Each day, or each chosen number of days |
| Weekly | On chosen weekdays, every chosen number of weeks |
| Monthly | A fixed day of the month, or a relative weekday such as the first Monday |
| Yearly | In a chosen month, on a fixed day or a relative weekday such as the fourth Friday |
| Time interval | At an hh:mm:ss interval, such as 47:30:00 |
| Does not repeat | Once, at the specified date and time |
Set an end with On this day. The Conditions tab can cap the records processed at 1000 and sort them by a field.
Frequently asked questions
Can a variant use the output of an earlier activity?
Yes. Place an evaluation point after that activity. No variant activity can sit before the point, and the variant condition cannot refer to an activity after it.
Why does a card show Complete when the step was skipped?
By default the card reads the state of the flow behind the activity, and a flow can show complete while the business step was skipped. Activity state mapping lets the card read its status from a record instead.
Can a Go back activity sit outside a decision?
No. It must sit inside a decision branch with at least one forward branch. Between two stages with no decision, Workflow Studio adds the decision for you.
Can a playbook have more than one trigger?
Yes, up to 10 triggers of any type, mixing record-based and scheduled triggers.
Can I change a stage’s settings inside a variant?
Not in the Brazil release. Stage overrides are not supported in variants, so set stage properties on the base playbook.