OnTaskEnd
Syntax
OnTaskEnd(Reason)
Description
This event is fired when a task ends, which can occur in the following scenarios:
-
The task finishes by executing its last step.
-
The task is aborted (either manually by a user or automatically by a Task - Stop activity with a return status set to Error).
-
The task is stopped (because of a task error that is set to stop the task or a Task - Stop activity is executed with a return status set to Error).
-
The task fails on error.
Parameters
Parameter | Description |
---|---|
Reason | The reason the
task ended. The following numeric values may be returned:
|
Example
Sub
Main
MsgBox OnTaskEnd()
End Sub
See also
Main | OnStepEnd | OnStepError | OnStepStart | OnTaskEnd | OnTaskFailure | OnTaskStart |