Work Object Lock released when invoking the DataFlow-Execute method
Scenario: When a Data Flow is getting called from an utility in process flow, Pega is releasing the lock on Work Object.
Reason: This seems to be happening coz when Data Flow is called, an object for Data Flow is created and commit happens, that is when Pega releases the lock on Work Object.
Work Around: Implemented the Obj-Save before calling Data Flow and applied Obj-Refresh-And-Lock after Data flow calling step.
Question: What is the recommended way to avoid obj-save and Obj-Refresh-And-Lock calls to ensure work object saved properly when invoke DataFow-Execute method?