This functionality is only available in the jbpm console application but you could recreate similar in your own app. What console does is gets the process image (from Guvnor or classpath, where it can find it), queries the engine for currently active nodes, checks the bpmn2 for their positioning (in the BPMNDiagram section of your process bpmn2) and overlays a div ontop of the image which shows the red arrow markers next to the tasks that are currnetly active.
Hope this helps.