process.exists
Checks whether a process exists in the model.
js
process.exists(processNameOrId)Parameters
| Parameter | Type | Description |
|---|---|---|
processNameOrId | string | The process's name or id. |
Returns
booleantrue if the process exists, otherwise false.
Examples
js
// Check if a process exists.
const doesExist = process.exists("yourProcess");
console.log(doesExist); // true or false