Optional
options: { Optional
config?: DeepPartial<CamundaPlatform8Configuration>Optional
oconst operate = new OperateApiClient()
An error that may occur during API operations.
Private
oPrivate
restPrivate
tenantPrivate
userProtected
addDelete a specific process instance by key.
const operate = new OperateApiClient()
await operate.deleteProcessInstance(2251799819847322)
Private
getRetrieve the metadata for a specific process definition, by key.
const operate = new OperateApiClient()
const definition = await operate.getProcessDefinition(2251799817140074);
Retrieve a specific process instance by id.
const operate = new OperateApiClient()
const instance = await operate.getProcessInstance(2251799819847322)
Get the statistics for a process instance, grouped by flow nodes
Return a variable identified by its variable key
Retrieve the variables for a Process Instance, given its key
Private
safeJSONparseSearch and retrieve incidents.
const operate = new OperateApiClient()
const query: Query<Incident> = {
filter: {
state: "ACTIVE"
},
size: 50,
sort: [
{
field: "creationTime",
order: "ASC"
}
]
}
const incidents = operate.searchIncidents(query)
Search and retrieve process definitions.
const query: Query<ProcessDefinition> = {
filter: {},
size: 50,
sort: [
{
field: "bpmnProcessId",
order: "ASC",
},
],
};
const operate = newOperateClient()
const defs = await operate.searchProcessDefinitions(query);
Search and retrieve process instances.
const operate = new OperateApiClient()
const query: Query<ProcessInstance> = {
filter: {
processVersion: 1
},
size: 50,
sort: [
{
field: "bpmProcessId",
order: "ASC"
}
]
}
const instances = await operate.searchProcessInstances(query)
console.log(`Found ${instances.total} instances`)
Generated using TypeDoc
Description
The high-level client for Operate.
Example