Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Activity-Clear-Status method

Updated on August 16, 2022

Use this method to clear the activity status value, setting it to Good or another status determined by the operation of the parameter.

This method can be useful following an Obj-Open method or Obj-Open-by-Handle method in situations where failure is considered likely.

Parameters

This method uses a single parameter.

ParameterDescription
BackoutWorstOnlyStatus Select to clear the most severe status values (for example Error ) and retain a less severe status value (for example Warn or Good ).

Results

If the parameter is not selected, the pyMethodStatus property is forced to the value Good. If the parameter is selected, the most severe status is dropped, and pxMethodStatus is set to the next most severe status ( Fail or Good ).

Checking the method status

This method may update the pxMethodStatus property. See How to test method results using a transition.

Have a question? Get answers now.

Visit the Support 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.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us