OBLYTECH Logo
OBLYTECH Logo

Playbook patterns and runtime admin in Workflow Studio

Playbook patterns and runtime administration in Workflow Studio cover guided decision, wizard and nested parent builds, plus the restart, archive and permission controls that apply once a playbook is running. Each build pattern has its own activation order, so this page follows the order that keeps a build from stalling.

Building a guided decision playbook

Choose Guided Decision as the type on the New Playbook form. A standalone execution type lets the playbook be nested inside another one, while a record-driven playbook cannot be nested. A guided decision playbook uses one stage. Inside it, questionnaire activities collect answers, decision activities branch on those answers, and guidance activities deliver the outcome at the end of each branch. Without at least one decision, the playbook has no branching for the guided layout to present. For the broader set of branching blocks that Workflow Studio offers, see flow logic and control blocks.

Activate the playbook from its header before you move to UI Builder, because the Guided Layout bundle lists activated playbooks only. Editing an activated playbook saves the change but deactivates it, so activate it again afterwards.

Hosting the guided flow in UI Builder

Create or open an Experience, add a page, and start from the Standard record template or an empty page, since the Guided Layout has no matching page template. Add the Playbook Guided Layout bundle from Components. Its dialog offers a default option, which reads the table, sysId and other runtime values from the page URL and so changes that URL, and a manual option, which keeps those values out of it.

Then point the Playbook Custom Layout Controller at the playbook. For a standalone playbook, set Playbook to launch in the controller panel. For a record-driven playbook, bind the parent table and record sysId to props.table and props.record, then set the controller’s sysId to -1. Without the -1 value, the controller resets the record on each action and the playbook does not start.

Test with UI Builder Preview, because the Test option in Playbook Designer does not support the Guided Layout. Follow each branch and confirm the expected activities appear as accordion entries beneath the one in progress. Then save and publish the page.

Sequencing steps with the wizard layout

A wizard layout needs an activated playbook whose activity order is final, because each activity becomes one step. In UI Builder, add the Playbook Horizontal Wizard bundle, select the Playbook Wizard component, and set its Playbook property. Rename the generated steps so they match how users describe the work, then check that required fields stop a user from advancing. A wizard suits ordered work shown one step at a time. For complex branching, the guided decision type fits better, and for several visible activities, the Focused or Stacked layouts do.

Nesting child playbooks inside a parent

Build the child first. Use the standalone execution type, which selects the nestable option, add a stage, and set its runtime permissions in the properties panel. On the Start node’s Inputs & Outputs tab, declare the values the parent passes in and the values the child returns. Item names are generated from their labels and cannot be edited. A String item takes a hint, default value and maximum length; a Reference item takes a hint, reference table and reference qualifier.

Add a Set Playbook Outputs activity to the stage and map each declared output on its Automation tab. The child returns only outputs that are both declared and set by that activity, so an unmapped output does not reach the parent. The child also needs at least one launch permission, added under Runtime Permissions with Trigger on-demand ticked, and it must carry the same runtime permissions as its parent. Activate the child before building the parent.

Build the parent as a standard, record-driven playbook with a parent table. For how triggers are set up for records, see flow trigger types and setup. Add a stage between Start and End, place a playbook activity in it, and search for the child. Under Show additional options you can set display order, a start delay and restart rules. The restart rules are Skip on restart, Run always and Skip on first run.

On the activity’s Automation tab, map each child input to a fixed value, a trigger or parent-table data pill, or an earlier output. The picker lists only activities that start before the one you are configuring. When the child returns true or false outputs, test each combination, such as all true, some true and none true, so you can confirm the branches rejoin.

Restart rules and archiving after launch

Restart is enabled by default on new playbooks. An administrator must enable it on older ones, and once enabled it cannot be switched off. Each stage and activity carries one restart rule.

Rule Initial run Restarted run Suits
Skip on restart Runs Does not run Work where the original task should remain the one in use
Run always Runs Runs Steps that repeat on each attempt
Skip on first run Does not run Runs Steps meant for restarted runs

A playbook restarts only while it is In Progress. Complete, Error and Cancelled playbooks cannot restart. Stages and activities restart from a complete or error state, and some activities cannot restart once started. Agents with the agent or pd_restarter role use the context menus: Restart playbook on the playbook name, Restart stage on a stage name, or Restart on an activity card. Keep the final stage out of the Skip on first run rule unless a parallel path reaches the end, and do not put every Skip on first run activity in one stage, since that stage stays hidden until it has run twice.

Archiving compresses the records of finished playbooks to keep queries fast. Admins and playbook admins can run it. By default, executions in Complete, Skipped or Cancelled states are archived once the playbook has gone 14 days without an edit, and that interval is adjustable. Error executions must be archived by hand. The element mappings, context log, variable values and context records fold into one JSON record that can be viewed but not edited. Archiving cannot be reversed. To archive by hand, enter sys_pd_context.list in the All filter, tick the executions, choose Archive Process Contexts from the upper-right menu, and confirm. For the separate archive rules in the data management console, see data archive rules.

Who can build and who can run a playbook

Four mechanisms control access. Roles and delegated development decide who can build playbooks. Content access filtering narrows a broad role to specific activity definitions, playbook types or resource tags. Runtime permissions, set by the author, decide who can read, restart, cancel or add optional activities on a running playbook. The pd_author role grants full build access, while playbook.write gives no read access by itself and needs playbook.read or a filtering rule alongside it.

Users need the snc_internal role to reach internal resources, and completing an activity requires write access to its Experience Status Record. Assigned roles accumulate, and a required role on an activity definition blocks use even when a filtering rule grants access. Runtime permissions add restrictions and do not widen access. A user who cannot reach every activity definition sees the whole playbook as read-only. When a running activity form looks read-only, check its declarative actions before you assume a permissions problem. For a wider look at access design, see Flow Designer security and access design.

Testing, duplicating and showing the ideal path

A test runs the playbook with sample data and ignores trigger conditions. Each test creates or changes records, so run it on a non-production instance. Review the process execution details, which admin, playbook.admin and pd_operator users can open. Duplicate copies a playbook’s trigger, stages, activities and experience settings, and it works on one playbook at a time. For a checklist to run before sign-off, see the Flow Designer testing and acceptance checklist.

The ideal path marks the expected branch at each decision. With first matching branch only, you can mark one branch. With all matching branches, you can mark several, and each appears as a conditional activity. Turn on Golden path under View options to trace the route. The highlight stops at a decision that has no ideal branch. At runtime, activities behind an unresolved decision appear as read-only conditional activities, and they give way to the actual path when the decision resolves elsewhere. To show them, open All > Playbook Experience > Playbook Experiences, pick the experience and a configuration, set Pending Item Visibility to show stages and activities on the ideal path, and select Update or Submit. That step needs the admin role.

Frequently asked questions

Can a guided decision playbook sit inside another playbook?

Yes, when its execution type is standalone and the nestable option stays selected. A record-driven playbook cannot be nested.

Why does my guided page not list my playbook?

The Guided Layout bundle lists activated playbooks only. Activate the playbook from its header, then check the controller on the page.

Can a finished playbook be restarted?

No. Complete, Error and Cancelled playbooks cannot restart. Stages and activities inside a playbook that is still in progress can restart once they are complete or in error.

Can archived process contexts be restored?

Archiving cannot be reversed, but the JSON record remains viewable. Keep live records for any logs or reports you still need.

For the basics of how a playbook is assembled, read the playbook overview in this section. The Flow Designer section lists the related pages.