process.listAll ^v2.6.226
Lists all processes in a model.
js
process.listAll(modelNameOrId)Parameters
| Parameter | Type | Description |
|---|---|---|
modelNameOrId | string | Optional. The model's name or id. Defaults to the current model. |
Returns
arrayThe processes, each with an id and name.
Examples
js
// List all processes.
const processList = process.listAll();
console.log(processList);json
[
{ "id": "abcdefg1", "name": "Process 1" },
{ "id": "abcdefg2", "name": "Process 2" }
]