What is usually the preferred way for an activity to create a work object in a flow
-
Trick question – activities can’t start flows
-
Use the Flow-New method
-
Call Add
-
Use the Utility shape
In Pega flows, activities create work objects using the Call Add method, which properly initializes the work object and adds it to the database. The Flow-New method and Utility shape serve different purposes, and activities can indeed start flows.
The standard, preferred approach for an activity to create a new work object mid-flow is to invoke the Add method (via the Work- class), which properly initializes the new work object's keys, class, and history rather than manipulating flow internals directly. Using Flow-New or a raw Utility shape bypasses the intended object-creation lifecycle and isn't the recommended pattern.