Multiple choice technology packaged enterprise solutions

What is usually the preferred way for an activity to create a work object in a flow

  1. Trick question – activities can’t start flows

  2. Use the Flow-New method

  3. Call Add

  4. Use the Utility shape

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

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.

AI explanation

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.