Case flows and recording
On this page
A case flow mirrors a Pega case type: stages, and in each stage the steps that have a screen. Every step can have its own design. Open it from the Case flows rail button.
Stages and steps
The Stages & steps tab is laid out like Pega's case designer: the stages from left to right, and under each stage the steps people do there. Each step shows one screen.
- A step card shows its type (Create screen, Assignment, Approval, Confirmation), its name and which screen it uses: As recorded, Redesigned, or Pega's own screen when it has no design yet. Open opens that screen; Redesign copies the recorded screen into a new design to change. Click a name to rename it.
- Details (the arrow on a card) holds the rest: the type of step, which design is the recorded and which the redesigned screen, and the link to Pega (flow action and view). Record from Pega fills that link in; Run in Pega and the exported app use it to show the step's screen for the right Pega assignment. Earlier and Later move a step, also into the previous or next stage.
- Alternate stages (rework, rejection: reached by a decision, not on the main path) sit in their own row below.
- Stages with no screens say so: Pega runs them on its own.
- Preview flow clicks through every designed screen with a stage tracker.
Record from Pega
Recording creates a real case in Pega and walks it screen by screen. Use a development environment.
- Record as:
- Studio operator: your Connect to Pega client.
- Signed-in user: the user signed in to the runner window. The studio sends each DX call to the runner, which makes it with that user's session. The user's token never leaves the runner.
- Start recording. For each screen Pega serves, the studio:
- saves a design with the screen's fields, in Pega's order (or the published design's order);
- adds the step to the flow;
- shows the fields so you can fill in sample values and Submit and continue.
- Fields that need care:
- Read-only fields are shown but never sent back. Pega ignores them or rejects the request.
- Date-time fields keep their time and go to Pega as UTC.
- Approvals get a Decision (Approve or Reject, sent as
pyApprovalResult). Reject records the rejection path.
- Or move the case to a stage reaches alternate stages through Pega's "Change stage" (
PUT cases/{ID}/stages/{stageID}). - Parallel steps. When Pega opens several steps at once (a parallel process in a stage), the recorder names them under Parallel steps open. Record them one after another in any order; each lands in the same stage, and the list follows Pega as each branch moves on.
Why a recording stops
When there is nothing the recorder can do, it says why and keeps a Waiting panel with the stage picker:
- finished: the case is resolved;
- waiting on someone else: a step is in a work queue, or with another operator, that the recording operator cannot perform. The panel names the queue or the person and suggests what to change;
- open with no assignment: Pega is working on something without a screen;
- flow problem: Pega's "Problem Flow Assignment" means the Pega flow itself needs fixing.
What Pega did on its own
After each screen the log lists Pega's own steps between screens, read from the case history (D_pyWorkHistory):
- automatic stage moves;
- "Change stage" steps;
- status changes;
- correspondence.
Silent utilities, such as notifications or decisions that leave no history, do not show.
Who may perform a step
The recorder follows Pega's own canPerform answer:
- Membership doesn't restrict: in Pega, being in a work queue only feeds Get next work. It does not by itself stop others from performing a queued step.
- How to restrict: give the work queue Roles (Dev Studio → the work queue record → Roles). Only operators whose access group has one of those roles may then process its assignments.
Admin operators were unaffected.
The runner window during a recording
- Closing it: if you close the runner mid-recording, the next submit fails with a clear message and the screen keeps your values. Reopen the runner and sign in again.
- Locks: the case that was open stays locked for the closed session (423 "locked by another user") until Pega's lock times out, often after 30 minutes. Start a new recording.
- Reusing the window: "Open the runner" reuses a signed-in runner window without reloading it.
Redesigned screens
Recording gives each step a design of the screen as Pega serves it. Keep that as the record of the real screen, and redesign next to it:
- Redesign (on a step) copies the recorded screen into a new design and opens it. Change it freely; the recorded design stays as it was. You can also pick any existing design as the step's redesign (for example a styled form you already published).
- Screens (flow header) chooses what Preview flow, Publish to Pega and Export app use:
- Redesigned where available (the default): a step's redesign if it has one, otherwise the recorded screen;
- As recorded: every step as recorded. The redesigns are kept for later.
- Recording again does not touch redesigns.
From recording to what users see
- Record the case type: each step gets its recorded screen.
- Redesign the steps you want to change, and choose Redesigned where available.
- Preview flow to click through the screens in the studio. Nothing is published.
- Publish to Pega (the flow's tab) publishes the screen in use for every step as a FORM template.
- In App Studio, set each step's view to its template, once.
SETUP.txtlists which.
Where a change to a design shows up:
| Where | When a design changes |
|---|---|
| Studio canvas, Preview flow | At once |
| Run in Pega (runner) | The next time you click Run in Pega. For a step whose template was published once and selected in App Studio, the runner draws your latest design itself, without republishing |
| Pega portal (App Studio views) | After Publish to Pega again. Pega keeps the component's ?v= address, so reload with the cache disabled |
| Exported app | After Export app again; the designs are built into the app |
Publish all screens
Publish to Pega in the flow publishes every step's FORM template, plus bound widgets, behind the guideline checks.
It also gives a ZIP with FLOW.json and SETUP.txt, which lists the template to pick in App Studio for each step.
Screens keep their Studio_Flows_… names. If you redesign a step after publishing it, the next publish warns that a
different design will replace what Pega shows; tick the confirm box to go ahead.
Export the app
Export app produces a React app with every designed screen, which runs the case type on Pega. See Exports and the app on a Pega backend.
App pages
The App pages tab picks a studio design for the exported app's own pages: Home (My work), the Case page and the App shell (the menu, a top bar, a right rail, and the theme, style and page transitions of the whole app). Design starts a page from studio sections, using the case type's properties when the studio is connected to Pega. See Tutorial: a whole app on Pega.
The App shell's areas are found by name:
| Area | Where it shows in the app | Typical content |
|---|---|---|
| The App navigation component | Beside every page (it stays in place while the page scrolls, Sign out at the bottom) or above it | The menu |
| A container named Top bar | Above every page, kept in view | A search box (typing a case ID such as RO-19 and pressing Enter opens that case), links, a short note |
| A container named Right rail | Beside an open case and its tasks, like Pega's Utilities; below the page on narrow screens | Pega widgets that read the open case: attachments, tags, Pulse, related cases |
Delete an area you do not want; a shell without them looks as before. An app without an App shell uses a built-in menu (also fixed in place, Sign out at the bottom).