Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

pyStatusWorkOld reflects the current status



When the case is moving forward in the flow after performing any specific flow action which causes a status change.

After progressing the case, 'pyStatusWorkOld' property hold the current status instead of holding the old status.

Error Messages

Not Applicable.

Steps to Reproduce

Progress through the flow and observe the values of pyStatusWork and pyStatusWorkOld.

Root Cause

This is expected behavior and there is a reason for this behavior, following is from the online help that implies the same:
Copy Value to (optional)

Optional. Identify a property of the same mode and type as the property in the Property field on this row. This property can retain the current value of the changed property. Copying occurs only if the trigger activity runs, and after the trigger activity completes.

Copying makes the previous property value available to the second and subsequent executions of this rule.

The property copy is done after processing the trigger activity. This is to allow the next invocation of the trigger to have a reference to the old property value. The copy property is therefore only useful during trigger execution, not after the trigger execution.


To save the previous status value of pyStatusWork, create a new declare trigger which copies the value of pyStatusWork into a new property.

That property will hold the previous value of pyStatusWork.


Published April 13, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us