Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
The version history table describes the major changes to the specifications between published versions.

This section provides information on the core data structures/data models that are used by this Building Block.

This section provides a reference for APIs that should be implemented by this Building Block.
Terminology used within this specification.




Perform consultationAdd 3 + 2; return resultProcess: “Process A”
Trigger: Webhook Event
Start: 07:37:00 00:13:12.3132
End: 08:15:25 13:24:12.3222
Exit Code: **1** (failure)
Log: “HTTP REQUEST ERROR 502”Trigger: Webhook Event
Start: 11:57:00 01:28:12.1328
End: 14:22:25 05:24:12.8932
Exit Code: **0** (success)
Log: “New Patient Added!”{
"callbackUrl": 'https://www.moh.gov/api/liveScoring',
"beneficiaryDetails": { "age": 20, "name": "Bukayo Saka" },
"arbitraryThing": "that's fine",
"id": 326178
}This section links to any external documents that may be relevant, such as standards documents or other descriptions of this Building Block that may be useful.







Listing of all processes with basic information
list of processes
generated by a system surrogate primary key
Processes not found
Internal server error, please contact administrator
Pass in the ID of the process and it will return all information about that process
The id for a defined process in the workflow engine.
bf20fe53-5548-11ed-9dd4-0242ac150002process found and representation returned
generated by a system surrogate primary key
Process not found
Internal server error, please contact administrator
Create a process instance and register it with the execution engine
The id for a defined process in the workflow engine.
bf20fe53-5548-11ed-9dd4-0242ac150002Process started; registered for execution with unique process instance ID.
Process not found
Internal server error, please contact administrator
Optionally include a processId in the query params to filter by that process
The id for a defined process in the workflow engine.
bf20fe53-5548-11ed-9dd4-0242ac150002An array of process instances
generated by a system surrogate primary key
020229ae-9fd5-11ed-94af-0242ac150002reference to the process definition
ReviewInvoice:1:bf20fe53-5548-11ed-9dd4-0242ac150002Initiation Timestamp
2023-11-08T17:23:00see BPMN specification v.2.0 section 13.2.2
runninglast change Timestamp
2023-11-08T17:23:00Process instance not found
Internal server error, please contact administrator
By passing in the process instance ID, get full details on its execution, including server logs emitted.
Numeric ID of a process instance
95aef406-3a7a-11e5-85b6-dafa20524153A detailed process instance status object
generated by a system surrogate primary key
020229ae-9fd5-11ed-94af-0242ac150002reference to the process definition
ReviewInvoice:1:bf20fe53-5548-11ed-9dd4-0242ac150002Initiation Timestamp
2023-11-08T17:23:00see BPMN specification v.2.0 section 13.2.2
runninglast change Timestamp
2023-11-08T17:23:00Process instance not found
Internal server error, please contact administrator
GET /processes HTTP/1.1
Accept: */*
{
"ArrayOfProcesses": {
"type": "array",
"example": [
{
"id": "ReviewInvoice:1:bf20fe53-5548-11ed-9dd4-0242ac150002",
"key": "ReviewInvoice",
"category": "http://bpmn.io/schema/bpmn",
"version": 1
},
{
"id": "invoice:1:bf2013f1-5548-11ed-9dd4-0242ac150002",
"key": "invoice",
"category": "http://www.omg.org/spec/BPMN/20100524/MODEL",
"version": 1
}
]
}
}GET /processes/{processId} HTTP/1.1
Accept: */*
{
"id": "text",
"processDefinition": {
"id": "invoice:1:bf2013f1-5548-11ed-9dd4-0242ac150002",
"key": "invoice",
"category": "http://www.omg.org/spec/BPMN/20100524/MODEL",
"version": 1
}
}POST /processes/{processId}/start HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 102
{
"processStartedBy": "text",
"InstanceValues": [
[
{
"creditor": "Niall",
"amount": 100,
"invoiceNumber": 123
}
]
]
}{
"id": "95aef406-3a7a-11e5-85b6-dafa20524153",
"processRef": "invoice:1:15e97a1c-312d-11e5-aca3-a0e120524153",
"suspended": false,
"ended": false,
"state": "running"
}GET /instances/ HTTP/1.1
Accept: */*
{
"ProcessInstances": {
"type": "array",
"example": [
{
"id": "020229ae-9fd5-11ed-94af-0242ac150002",
"processRef": "ReviewInvoice:1:bf20fe53-5548-11ed-9dd4-0242ac150002",
"initTime": "2023-01-31T08:45:11",
"lastChangeTime": "2023-05-23T02:34:00",
"state": "running"
},
{
"id": "ff0f25e2-a792-11ed-b524-0242ac150002",
"processRef": "invoice:1:bf2013f1-5548-11ed-9dd4-0242ac150002",
"initTime": "2023-11-08T17:23:00",
"lastChangeTime": "2023-11-08T17:23:00",
"state": "suspended"
}
]
}
}GET /instances/{instanceId} HTTP/1.1
Accept: */*
{
"id": "020229ae-9fd5-11ed-94af-0242ac150002",
"processRef": "ReviewInvoice:1:bf20fe53-5548-11ed-9dd4-0242ac150002",
"initTime": "2023-11-08T17:23:00",
"state": "running",
"lastChangeTime": "2023-11-08T17:23:00"
}