dbexec(new BpelDatabase.Callable<Object>() {
public Object run(BpelDAOConnection conn) throws Exception {
ProcessInstanceDAO instance = conn.getInstance(iid);
if (instance == null)
throw new InstanceNotFoundException("" + iid);
// TODO: deal with "ERROR" state information.
fillInstanceInfo(ii, instance);
return null;
}
});