Constellation Studio docsOpen the studio

Tutorial: from a Pega case type to designed screens, in one sitting

On this page

This is the story the product demo tells, written as steps you can follow yourself. It starts from a case type built in Pega App Studio (Recipe Organization in a small recipe app on Pega Infinity 26.1), records its screens, redesigns one of them, checks it, runs it on a real case, publishes it into Pega the way Pega recommends, sets it up in App Studio, and ends with the same designs as Pega's theme and as a standalone app.

You need: an account in the online studio, a Pega Infinity 25.1 or 26.1 server with a Constellation application, an operator who may work its cases, and an unlocked ruleset version for the components (see Getting started). Nothing is installed except the small setup helper in step 11.

Everything below was run on a live Pega 26.1 server. Where Pega's own screens are involved (App Studio, the Work Portal) the steps name Pega's menus as they appear in 26.1.

1. The starting point: what Pega gives you

Open the case type in App Studio (Case types → Recipe Organization). Four stages, a handful of steps, and every screen is a default form: two columns of fields, the same for every step. Pega runs the process well; the screens are generic, and changing that normally means writing React components by hand.

2. Connect the studio to Pega

  1. Sign in to the online studio. Nothing to install.
  2. Status bar → Connect to Pega: the server address, Pega Infinity version 26.1.1 (your exact patch), and the client credentials of a Pega OAuth client (see Getting started).
  3. List case types. The status bar turns green: Pega 26.1 connected. The studio now knows the application's case types, properties and data pages; they are suggested wherever you type a property or data page name.

Showing it to others? ⌘K → Presentation mode hides the server address, names and e-mail addresses (Designing → Presentation mode).

3. Drag, drop, and the property finds itself

  1. Open a design, then Components → Form → Toggle group (or drag it onto the canvas).
  2. In Properties, type the label Dietary category.
  3. Under Pega property the studio says ✓ Matches Pega's .DietaryCategory from the label: bound, nothing to type, and the choices become Pega's own: Vegetarian, Vegan, Gluten free, Dairy free, No specific category.

A label that is not a property yet says New property .X: Set up in Pega (step 11) can create it. Picking a name in the property box fills the label and the choices the same way.

4. Record the case from Pega

  1. Rail → Case flows → Record from Pega, case type Recipe Organization.
  2. Record as: Signed-in user opens the runner window; sign in to Pega there once.
  3. The recorder creates a real case and walks it: each screen becomes a design with its real fields, types and choices; reference fields come with their data pages (for example the Recipe picker with D_RecipeList); stages mirror Pega's, and what Pega did on its own (automatic stage moves, the resolution) is listed.

See Case flows.

5. Redesign a screen

Take Update Preferences (11 fields recorded as a plain form) and give it a layout: in Case flows → Stages & steps → Redesign start a redesign of the step, then on the canvas:

The flow now uses the redesign for preview, publishing and export (Redesigned where available).

6. Real data from the DX API

Rail → DX API workbench → Data views: pick D_RecipeList, run it, and Insert as table. The table stays bound to the data page with its columns mapped. Canvas toolbar → Live data shows the real rows on the canvas.

7. A form as a conversation

Some steps read better as a chat. Define Categories uses a Conversation container: one question at a time, choices as chips, earlier answers editable, a summary card that submits. It writes the same Pega properties, and Pega still validates and routes. Preview it, then publish it like any form (Designing).

8. Guardrails

Open Checks (the shield in the rail). Every finding says what is wrong, why it matters in Pega, and how to fix it, many with a one-click Fix: unlabelled fields, properties Pega would reject, a table too wide for Pega's Utilities panel, a font Pega does not ship, accessibility problems (Checks → Run audit). Errors block Publish until they are fixed. Publishing also refuses a ruleset version that does not exist, and Set up in Pega never creates rulesets or branches.

9. Run it in Pega before publishing anything

Top bar → Run in Pega. The runner (Pega's own React SDK) creates or opens a real case as the signed-in operator and draws the redesigned screens with Pega's real controls inside: the real case data, routing and server-side validation. Nothing in Pega has changed yet. The portal's own frame and theme come after publishing (step 13).

10. Publish into Pega

Publish in the top bar, then:

  1. Ruleset CustomConstellation, version 01-01-01 (an existing, unlocked version).
  2. Publishing mode Pega fields, set up with Pega's gear for forms whose fields are ordinary Pega fields.
  3. Also publish as… a read-only display of the same form, or widgets.

Progress shows each step (Pack → Build → Upload → Pega confirms). Before the bundle, the studio runs Pega's own publish checks (the component config validator and ESLint with Pega's starter settings) and stops on any finding. The meal chips go along as their own Field (Studio_Fields_…), which can be used anywhere Pega offers Display as.

Widgets are published from their own designs with Export page as DX component: a card around one bound data component (the recipe library table, the case activity timeline) publishes as a live widget that reads its data page in Pega. Design a widget for Pega's Utilities panel on the 368 artboard: Pega gives it 368 px there.

See Publishing.

11. Set up in Pega, through the helper

Publish step 3, Set up in Pega, makes the App Studio changes with Pega's own authoring tool, in a branch:

  1. Download and start the setup helper once (node setup-helper.mjs), enter its pairing code in the studio, and sign in to Pega when its tool asks.
  2. Pick the branch (for example BP-1) and what to do: use the published form on the step's view, place its fields, turn the studio's rules into Pega conditions, add a validate rule to the flow action.
  3. Review and merge the branch in Pega, as Pega recommends.

The helper is a stopgap until Pega's authoring becomes available to hosted tools (see Getting started).

12. App Studio: place the published pieces

The published components are ordinary Pega components now:

Pega's portal UI Designer (the purple tab at the top of the portal) only offers Pega's built-in widgets; studio widgets are placed in App Studio as above.

13. Run the case in the Pega portal

Create a Recipe Organization case in the Work Portal and reach Update Preferences: the redesigned form, Pega's fields inside it. Pick Dinner: Dietary category turns required. Submit it empty: Pega refuses with Dietary category: Cannot be blank. Fill it in and the case moves on to Resolved-Completed.

14. Themes, motion, and the look on Pega's own screens

  1. Themes → Kit: pick a kit and apply it to Case type (7): every screen and page of the case type at once.
  2. Themes → Style → Motion: Subtle for screen transitions (skipped for people who prefer reduced motion).
  3. Themes → Kit → Use in Pega → Copy JSON. Only fonts Pega ships are allowed: for another font the panel offers the closest one Pega ships.
  4. In Pega: Application menu → Settings → Themes → Add Theme, ⋮ Open → Check out, paste into Theme Json, Save, Check in.
  5. In the portal's UI Designer → Design, the theme is in the gallery next to Pega's themes. Pick it: the case header, the stages and the buttons take the design's look.

See Designing → Use in Pega.

15. Beyond Pega's portal: a standalone app

Case flows → Export app produces a React app with Pega as its engine (Exports):

  1. Unzip, npm install, npm run ui:add, set VITE_PEGA_SERVER and VITE_PEGA_CLIENT_ID in .env.local, npm run dev, Sign in with Pega.
  2. The App shell designed in the studio frames every page: the menu stays beside the page with Sign out at the bottom; the Top bar search opens a case by its ID (type RO-19, press Enter); the Right rail beside an open case shows its documents and tags, like Pega's Utilities.
  3. Each assignment shows its designed screen, starting from the case's values (Dinner already selected, the recipe already picked); Submit sends only what changed, and Pega still drives the case through the DX API.

16. What the studio did for you

Pega's recommended way to build custom Constellation components, step by step, and where the studio does it:

Pega's step In the studio
Create from Pega's starter template, with Pega's React, Cosmos and builder versions Every published component, with the versions Pega names for your Infinity version
Develop and document: Storybook story, docs, unit test Generated with each component in the DX source
Verify: UI guidelines, accessibility, a run on a real case Checks, the accessibility audit, Run in Pega
Build and publish into an unlocked ruleset Pega's component builder and publish checks, into the ruleset version you name
Configure in a branch, review and merge Set up in Pega, in the branch you name