Support Article
pyStatusWorkOld reflects the current status
Summary
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.
Resolution
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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.