Process Termination Task

The Process Termination task allows you to have adTempus terminate a process that is executing outside of adTempus.

If the process is running as a service process, use the Service Control Task instead to stop the service cleanly.

Be sure you understand how adTempus terminates a process before using this task. Terminating a process is not always "clean," and this can lead to problems (such as data corruption) with your application.

Job Variables

The Process Termination Task sets the following Job Variables, which can be used by subsequent operations in the job:

Variable Description
ProcessTermination.KilledProcessCount The number of processes matching the target process name that were successfully terminated
ProcessTermination.FailedToKillProcessCount The number of processes matching the target process name that were not successfully terminated
ProcessTermination.KilledChildProcessCount The number of processes terminated that were child processes of target processes
ProcessTermination.FailedToKillChildProcessCount The number of processes not terminated that were child processes of target processes
ProcessTermination.KilledChildProcesses Comma-separated list of the names of the child processes that were terminated
ProcessTermination.FailedToKillChildProcesses Comma-separated list of the names of the child processes that could not be terminated