adTempus API
ArcanaDevelopment.adTempus.ApplicationIntegration Namespace / ScriptHostInterface Class / SetJobOutcome Method
Indicates whether the job should be reported as Succeeded or Failed.
Optional message to log to the Job Log


In This Topic
    SetJobOutcome Method (ScriptHostInterface)
    In This Topic
    Sets the success or failure state of the job in which the script is executing
    Syntax
    'Declaration
     
    
    Public Shared Sub SetJobOutcome( _
       ByVal outcome As ExecutionOutcome, _
       Optional ByVal message As String _
    ) 
    public static void SetJobOutcome( 
       ExecutionOutcome outcome,
       string message
    )
    public:
    static void SetJobOutcome( 
       ExecutionOutcome outcome,
       String^ message
    ) 

    Parameters

    outcome
    Indicates whether the job should be reported as Succeeded or Failed.
    message
    Optional message to log to the Job Log
    Remarks
    When the outcome is set using SetStepOutcome, this overrides the normal success/failure determination rules for the step. This is equivalent to using a JobControlAction with a ControlType of SucceedJob or FailJob
    See Also