addWorkunitWarning

STD.System.Log.addWorkunitWarning ( text [ , code ] )

textA string containing the text to write.
codeOptional. The code number to associate with the text. If omitted, the default is zero (0).
Return:addWorkunitWarning does not return a value.

The addWorkunitWarning action writes the text string to the eclagent.log file for the workunit, and also displays the code and text in the Syntax Errors toolbox along with the Warnings section of the ECL Watch page for the workunit.

Example:

IMPORT STD;
STD.System.Log.addWorkunitWarning('Got Here',1);    
   //write text to log and display "1: Got Here" in Warnings