You are here: Reference > Activity methods > Activity-Set-Status

  Activity-Set-Status method

Use the Activity-Set-Status method to convey the outcome of an activity's execution. This method sets the value of pxMethodStatusafter the activity has finished executing.

NOTE:The pxMethodStatus property value is volatile. Many other methods also set this property value. If such a method executes in a step after the Activity-Set-Status method, the value set in this method may be overwritten and lost.

Parameters

This method has two required parameters.

Parameter

Description

Severity Select a return status: Good, Info, Warn, or Fail.
Message Enter a text message to be associated with this status (as a literal constant), or the key of a Rule-Message rule containing a text message to be associated with this status.

Results

The pxMethodStatus property is set to the value specified in the Severity parameter. The message is added to the page.

Definitions Activity-Clear-Status method
How to customize the activity success and exception windows

Methods and instructions by function