String currentActivity = processInstance.getProcessInstance().getActivityName();
// get coordinates
RepositoryService repoService = this.processEngine.getRepositoryService();
ActivityCoordinates coords = repoService.getActivityCoordinates(
processInstance.getProcessDefinitionId(), currentActivity
);
results.add(new ActiveNodeInfo(
coords.getWidth(), coords.getHeight(),
new DiagramNodeInfo(
currentActivity,
coords.getX(), coords.getY(),
coords.getWidth(), coords.getHeight()
)
)
);
}