This is a demo that uses Operate API to render a Bpmn diagram for a specified process definition, along with highlighting processed sequence flows and displaying process instance statistics (in this example, incidents).
Clone the project
git clone https://github.com/camunda/operate-api-bpmn-demo.git
cd operate-api-bpmn-demo
Install the required packages
npm install
Change the Operate API url in api.js file
if necessary from http://localhost:8080
to your server URL, and use your active OPERATE-SESSION cookie value.
request.get(
{
url: `http://localhost:8080${req.url}`,
headers: {
/*
* Replace COOKIE_VALUE with a valid OPERATE-SESSION cookie.
* See https://docs.camunda.io/docs/apis-clients/operate-api/#authentication-for-self-managed-cluster for more details
*/
Cookie: "OPERATE-SESSION=COOKIE_VALUE",
},
},
Start running the proxy server
node server.js
Run index.html in your browser and see your process!
Example: