Run Rule
A task used to run an arbitrary rule with a series of name / value pairs.
You must have to configure some return statement as string. From your code, you have to return some meaningful string to the task. In your task definition declare:
<Returns>
<Argument name="tskSuccess" type="string">
<Prompt>Task Result:</Prompt>
</Argument>
</Returns>
And in your code:
String tskSuccess = "failed";
if ( Do some condition check here) {
//Do something;
String tskSuccess = "Success";
}
return tskSuccess;
The rule is expected to return a string value representing its status. Any string other than Success results in a failed task result.
For an overview of developing and using rules in IdentityIQ, see Rules and Scripts in IdentityIQ.