Hi,
I wants to Abort the Running BPEL 10.1.3.1 instances deployed on OC4J container.
Using the below code snippet to do the same.
Locator locator = new Locator("domainname", prop);
WhereCondition whereProcessId = new WhereCondition("process_id = ? and CI_STATE = ?");
whereProcessId.setString(1, "myprocessname");
whereProcessId.setInt(2, 1);
whereProcessId.append("ORDER BY CI_Creation_Date desc");
IInstanceHandle[] instanceHandles = locator
.listInstances(whereProcessId,0,50);
Wants to know if this is the correct approach or we have a different way to do the same ?
Thanks,
Tapan