Activity.setResult()

The method changes the result member of the activity.

Availability

IBM® Tivoli® Identity Manager 4.x

IBM Tivoli Identity Manager 5.x

IBM Security Identity Manager 6.x

IBM Security Identity Manager 7.0.

Synopsis
activity.setResult(summary)
activity.setResult(summary, detail)
Arguments
summary
String code that represents the result summary.
detail
String representing the result details.
Description
This method changes the result member of the activity in the current activity. It is supported for current activities in the current workflow process. The result is composed by an application-specific summary code, and optional more detailed application-specific description. The summary code can indicate a success or failure. This summary code is stored as the resultSummary member locally and updated in the relevant data in the workflow engine. The detail is stored as the resultDetail member locally and updated in the relevant data in the workflow engine.
Usage
activity.setResult(activity.FAILED); 
activity.setResult(activity.FAILED, "Unable to connect to resource");