}
public List getProcessInstances() {
JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext();
GraphSession graphSession = jbpmContext.getGraphSession();
ArrayList processInstancesList = new ArrayList();
List listProcessInstance = graphSession.findProcessInstances(this.id);
if (listProcessInstance.isEmpty() == false) {
ListIterator listProcessInstances = listProcessInstance.listIterator();
while (listProcessInstances.hasNext()) {
ProcessInstance processInstance = (ProcessInstance) listProcessInstances.next();