QueryResultSet result = process.query("ACTIVITY.AIID", "(ACTIVITY.STATE = ACTIVITY.STATE.STATE_FAILED OR ACTIVITY.STATE = ACTIVITY.STATE.STATE_STOPPED) AND ACTIVITY.KIND=ACTIVITY.KIND.KIND_STAFF", null, null, null);
This fault name is the local part of the fault queue name.
if (result.size() > 0) { result.first(); AIID aiid = (AIID) result.getOID(1); ClientObjectWrapper faultMessage = process.getFaultMessage(aiid); DataObject fault = null ; if ( faultMessage.getObject() != null && faultMessage.getObject() instanceof DataObject ) { fault = (DataObject)faultMessage.getObject(); Type type = fault.getType(); String name = type.getName(); String uri = type.getURI(); } }
This returns the fault name. You can also analyze the unhandled exception for a stopped activity instead of retrieving the fault name.
Last updated: Tue Dec 06 04:14:41 2005
(c) Copyright IBM Corporation 2005. This information center is powered by Eclipse technology (http://www.eclipse.org)