Constellation Studio docsOpen the studio

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.

Record from Pega

Recording creates a real case in Pega and walks it screen by screen. Use a development environment.

  1. 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.
  2. 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.
  3. 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.
  4. Or move the case to a stage reaches alternate stages through Pega's "Change stage" (PUT cases/{ID}/stages/{stageID}).
  5. 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:

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):

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:

Admin operators were unaffected.

The runner window during a recording

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:

From recording to what users see

  1. Record the case type: each step gets its recorded screen.
  2. Redesign the steps you want to change, and choose Redesigned where available.
  3. Preview flow to click through the screens in the studio. Nothing is published.
  4. Publish to Pega (the flow's tab) publishes the screen in use for every step as a FORM template.
  5. In App Studio, set each step's view to its template, once. SETUP.txt lists 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).