Constellation Studio docsOpen the studio

Exports and the app on a Pega backend

On this page
Target What you get
Blueprint ZIP Static HTML/CSS of the design (responsive, accessible markup)
React SDK (shadcn) code Components for a Pega React SDK project
SDK starter A starter with Pega SDK and shadcn controls side by side
React app A Vite 8 + React 19 app (latest stable versions: MUI 9, Ant Design 6, Mantine 9, Fluent 9, Carbon 11, React Bootstrap 2, shadcn 4, TypeScript 7) using the real packages of every library in the design; data components load live when given a token
Case flow app The app on a Pega backend below
Publish to Pega / DX component See Working with Pega

App on a Pega backend

Export a case flow (Case flows → Export app) to get a complete front end for that case type. Pega runs the cases: stages, routing, validation and automation stay in the case type. The app is everything the user sees.

Its menu, home page and case page are designed in the studio too (Case flows → App pages: App shell, Home, Case page), with live Pega data in their case summary, details, stages, to-do, Pulse, attachments and upload area. Step by step: Tutorial: a whole app on Pega. Without designed pages the app uses the built-in pages described below.

Part What it does
Sign-in Sign in with Pega using your public OAuth client (authorization code + PKCE). The token stays in the browser tab; DX calls and the token exchange go through the Vite proxy, so Pega needs no CORS setup.
My work The user's assignments (D_pyMyWorkList), each opening its case or the assignment
My cases The case type's list data page (D_<CaseType>List, configurable)
New ‹case› Creates a case of the type, then opens it
Case page Status, stages, what is waiting and with whom (work queue or person), history (D_pyWorkHistory), Pulse with posting
Assignment The screen designed for that step (matched by flow action, then view, then name). Its fields, choices, pickers and gauges start from the case's current values; only what the user changes is submitted, with the case eTag; then the next assignment or the case page. Steps without a design say to finish them in Pega.
Prototype Without a Pega server, a click-through of the designed screens

Where the look comes from

What the app does with Pega:

Set it up

  1. In Pega, register a public OAuth 2.0 client (authorization code + PKCE) with the app's address as redirect URI, e.g. http://localhost:5174/.
  2. In the exported app:
    • npm install;
    • npm run ui:add: copies the shadcn/ui components the screens use into src/components/ui. Without it the app fails with "Failed to resolve import @/components/ui/…";
    • cp .env.example .env.local, then set:
      • VITE_PEGA_SERVER: the server with the application path, e.g. https://pega.example.com/prweb/app/myapp;
      • VITE_PEGA_CLIENT_ID: the public client's ID;
      • optionally VITE_PEGA_CASE_TYPE and VITE_PEGA_CASE_LIST;
      • VITE_PEGA_TOKEN: a development-only alternative to signing in. Never commit it.
  3. npm run dev -- --port 5174 --strictPort (the port of your redirect URI), then Sign in with Pega.

For production, serve the built app behind a reverse proxy that forwards /pega-api to <server>/api/application/v2 and /pega-oauth to <prweb>/PRRestService/oauth2/v1, like vite.config.ts does, and register the production redirect URI.