Definition and Usage
This command terminates a running process on the system. It allows you to stop a process either by specifying its name or by its Process ID (PID). When terminating by process name, if multiple processes with the same name are running, all of them will be terminated.
Parameter Values
Input parameters
Parameter | Description | Possible Values | Required | Options / Notes |
Find process by | Specify whether to find the process by its name or ID | Process name, PID | Yes | The selected option determines which field appears next |
Process name | Enter the process name to terminate. If more than one process with the same name are running, all of them will be terminated. |
| Yes (if "Process name" is selected) | Variables can be used |
PID | Enter the process ID to terminate |
| Yes (if "PID" is selected) | Variables can be used |
Error handling
Parameter Name | Description |
Throw error & stop | When an error occurs, the action will trigger an error and stop the execution of the entire app. |
Retry command | If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process. |
Ignore error & continue | When an error occurs, the action will be ignored, and the workflow will continue without interruption. |
Variables produced
This action doesn't produce any variables.
Using Variables in Conditions
You can use variables for both the Process name and PID parameters. This is indicated by the {x} icon in the input fields. For example, you can store a process name or PID in a variable from another action and use it in this command.
Notes
Ensure you have appropriate permissions to terminate the specified process; otherwise, the command may fail.
Use caution when terminating processes, as closing critical system processes may cause system instability.
When terminating by process name, verify the exact name of the process (typically includes the .exe extension on Windows systems).
For greater precision, consider using PID when you need to terminate a specific instance of a process.
The command will fail if the specified process doesn't exist or has already been terminated.