How to get target references from database tables

how to get list of target references which are mentioned in BPMN xml from any particular usertask or exclusive gateway from database tables or any classes/methods to get that.

Suppose My BPMN XML is like below:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
1 Like

Have a look at repositoryService.getBpmnModel, it gives you a java representation of the BPMN xml model that is deployed.