A process can expose Web services operations that are modeled as Web Services Description Language (WSDL) one-way or request-response operations. If a long-running process exposes a one-way operation, the results of the process, such as the values of process variables, must be retrieved from the database.
QueryResultSet result = process.query ("PROCESS_INSTANCE.PIID", "PROCESS_INSTANCE.NAME = 'CustomerOrder' AND PROCESS_INSTANCE.STATE = PROCESS_INSTANCE.STATE.STATE_FINISHED", (String)null, (Integer)null, (TimeZone)null); if (result.size() > 0) { result.first(); PIID piid = (PIID) result.getOID(1); ClientObjectWrapper output = process.getOutputMessage(piid); DataObject myOutput = null; if ( output.getObject() != null && output.getObject() instanceof DataObject ) { myOutput = (DataObject)output.getObject(); int order = myOutput.getInt("OrderNo"); } }
Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)