MBOModel is an object for mobile business objects, and has a method called getPendingObjects to return pending operations. A pending object is the combined pending operations on that object instance.
CommonMBOModel mboInstance = MBOModelFactory.getInstance().getCommonMBOModel(mboId); if ( !(mboInstance instanceof MBOModel) ) { continue; } MBOModel mobileApp = (MBOModel) mboInstance; ObjectList pendingObjectList = mobileApp.getPendingObjects();
Similarly, the static method getLogs returns all logs for the specified package name and query criteria.
Query query = new Query(); query.setTestCriteria(new AttributeTest("component", componentName, AttributeTest.EQUAL)); LogRecord[] logs = MBOModel.getLogs(packageName, query);