Issue
When updating a Pega Platform™ application from Theme-Cosmos to Constellation in hybrid mode, the Constellation Create menu does not invoke a data transform on menu item selection the way the Theme-Cosmos navigation menu does. As a result, context-dependent Case initialization — such as setting a Work ID prefix or a location-based property — is not applied when a user selects a specific Create menu option.
Scenario
You are updating a Theme-Cosmos portal to run in hybrid mode, where portal pages render in Constellation and Case workflows remain in the traditional UI. In Theme-Cosmos, the navigation menu fires a data transform on menu click, setting the Work ID prefix and additional Case properties before creation begins.
Consider the following example. Two Create menu options exist, both creating the same Case Type, but each requiring a different Work ID prefix:
- Create Case 1 — expected prefix: Case1-
- Create Case 2 — expected prefix: Case2-
The logic to generate the Case1- and Case2- prefixes is already implemented. After extending the Constellation Create menu with pyPopulateCreateMenuAdditionalEntries, the following symptoms are displayed:
- Both Create menu options are listed correctly and map to the same Case Type.
- Selecting either option does not trigger the expected Data Transform.
- The Work ID prefix is not applied based on the selected menu option — both options produce the same default prefix.
- No error message is displayed; the behavior is a missing functional capability, not a failure.
This blocks go-live for applications that require distinct Work ID prefixes or context-specific properties per Create menu selection.
Steps to Reproduce
- Open a Pega Platform application running in hybrid mode (Constellation portal, Theme-Cosmos Case workflow).
- Extend pyPopulateCreateMenuAdditionalEntries to add two entries that map to the same Case Type, with labels Create Case 1 and Create Case 2, and expected prefixes Case1- and Case2- respectively.
- Open the application portal and select the menu.
- Click Create Case 2.
- Verify that the Work ID on the created Case does not carry the Case2- prefix.
Explanation
This is an architectural difference between Theme-Cosmos and Constellation.
In Theme-Cosmos, the navigation menu can execute a data transform directly on user selection, before Case creation begins. In Constellation, pyPopulateCreateMenuAdditionalEntries populates the D_pyCreateMenuAdditionalEntries Data Page with menu entry metadata — .pyClassName, .pyLabel, and .pyWorkIDPrefix — but Constellation's Create menu does not natively invoke a custom pre-creation data transform on menu item selection. The selection context (Create Case 1 vs. Create Case 2) is not automatically passed into a data transform at Case initialization.
Solution
Three approaches address this gap, in order of preference.
Option 1 — Set the Work ID prefix directly in pyPopulateCreateMenuAdditionalEntries
The .pyWorkIDPrefix field can be set per entry within the pyPopulateCreateMenuAdditionalEntries Data Transform. This is the supported out-of-the-box mechanism in Constellation for differentiating Case IDs by menu selection. For the example above, set .pyWorkIDPrefix to Case1- for the Create Case 1 entry and Case2- for the Create Case 2 entry in your pyDefault subclass Data Transform. Verify that the mapping is complete and correctly structured before testing.
Option 2 — Configure a pre-processing data transform on the Create stage
For setting additional context-specific properties at case initialization, configure a pre-processing Data Transform on the Case Type's Create stage. This Data Transform can read initialization parameters or clipboard properties set during menu construction. The D_pyCreateMenuAdditionalEntries Data Page entries can carry additional metadata — for example, a property indicating whether the user selected Create Case 1 or Create Case 2 — which the initialization Data Transform reads to apply the correct property values before the Create stage begins.
Option 3 — Single Create option with an initial user prompt (alternative)
If Options 1 and 2 present implementation challenges, present a single Create menu option and add an initial step in the Create stage that prompts the user to select between Case 1 and Case 2. The correct prefix is then applied based on that selection. This approach avoids the architectural difference between Theme-Cosmos and Constellation entirely and provides the most upgrade-safe path while preserving the required functionality.