Processes
Service for managing UiPath Maestro Processes
UiPath Maestro is a cloud-native orchestration layer that coordinates bots, AI agents, and humans for seamless, intelligent automation of complex workflows. UiPath Maestro Guide
Methods¶
getAll()¶
Returns¶
Promise
<MaestroProcessGetAllResponse
[]>
Promise resolving to array of MaestroProcess objects with methods MaestroProcessGetAllResponse
Example¶
// Get all processes
const processes = await sdk.maestro.processes.getAll();
// Access process information and incidents
for (const process of processes) {
console.log(`Process: ${process.processKey}`);
console.log(`Running instances: ${process.runningCount}`);
console.log(`Faulted instances: ${process.faultedCount}`);
// Get incidents for this process
const incidents = await process.getIncidents();
console.log(`Incidents: ${incidents.length}`);
}
getIncidents()¶
Get incidents for a specific process
Parameters¶
Parameter | Type | Description |
---|---|---|
processKey |
string |
The key of the process to get incidents for |
folderKey |
string |
The folder key for authorization |
Returns¶
Promise
<ProcessIncidentGetResponse
[]>
Promise resolving to array of incidents for the process ProcessIncidentGetResponse
Example¶
// Get incidents for a specific process
const incidents = await sdk.maestro.processes.getIncidents('<processKey>', '<folderKey>');
// Access incident details
for (const incident of incidents) {
console.log(`Element: ${incident.incidentElementActivityName} (${incident.incidentElementActivityType})`);
console.log(`Status: ${incident.incidentStatus}`);
console.log(`Error: ${incident.errorMessage}`);
}