LayerRoot\Stop

Description: Stop the application designated by LayerRoot
Returns: Nothing
Usage: Script Only.
Function Groups: Configuration Management
Related to: Start |
Format: LayerRoot\Stop
Parameters:  
IsRestart
Optional Boolean. Set TRUE if the application is to be re-started.
Comments: For a VTScada application, most of the work is done in Start\VTSThread. After the app is stopped, AppStopMonObj does some post-stop clean-up. The work is done there rather than here as a script application often stops just by slaying itself, and AppStopMonitor picks up on both situations.
This module launches a worker module into the Layer so that the operation is not interrupted by this module's caller being slain.

Examples:

Building on the example in Start(), the following will stop the application started in that example.

CompLayer\Stop();