Aug 6, 2015
Rendering BPMN and highlight current task using bpmn.io
With bpmn.io and the Camunda REST API it is really simple to develop a small HTML page that displays a process instance graphically and highlights some activities. In our “JSF Simple Tasklist” snippet we used this to highlight the current Task (like it is done in the Camunda BPM Tasklist): The cool thing – you do not need a lot of code to do this! This is what we do: Handed over the taskId via URL parameter (see Screenshot). Load the Task details and BPMN XML via REST API. Instantiate the BPMN viewer and hand over the XML for rendering Add a CSS class for the activity to be highlighted Load JavaScript/CSS dependencies, we used WebJars, so they are…