Advanced Customization > Services and Infrastructure Customization > Import Export Framework > Navigating Through an Object’s Structure with ObjectSet Application > Examples > Examples about Exp/Imp Application: > Export Application
  
Export Application
The current Windchill Export OOTB GUI and the StandardIXBService is an Export Application.
The OOTB Windchill Export GUI is Export Application (client) that calls export process in StandardIXBService (Export Application (server)) via IXBHelper.
ObjectExportParameters exportParam = new ObjectExportParameters ();

exportParam.setActionName(actorName);
exportParam.setClientFileName(jarFileName);
exportParam.setContainer(container);
exportParam.setDetailedLog(detailedLog);
exportParam.setGuiId(reqGUIid);
exportParam.setPolicyFile(policyFile);
exportParam.setPreviewOnly(isPreview);
exportParam.setRuleFile(ruleF);
exportParam.setValidation(false);
exportParam.setGenerators(generators);
exportParam.setFilters(filters);
exportParam.setLocale(RB.getLocale());
exportParam.setJarInJarFlag(jarInJar);
exportParam.getContextData().setIXApplicationContext(appContext);
try{
String formatType = WTProperties.getAppletProperties().
getProperty("wt.ixb.export.formatType");
if(formatType != null){
exportParam.setFormatType(ExportImportFormatType.
toExportImportFormatType(formatType));
}
}catch(Exception e){
}

IXBExpImpStatus status = IXBHelper.service.doExport ( exportParam);
IXBHelper is a class in wt.ixb.clientAccess. It calls methods doExport(…) of the class StandardIXBService to do export process.
IXBExpImpStatus is a class in wt.ixb.clientsAccess containing information about the Exp/Imp process and is used to pass Exp/Imp status between the server and client.
generatorIds – see definition above.
generatorParams is an array of Object Ids of top-level objects that will be exported. From the current Exp GUI, those objects will be chosen by using NavigatorSearchDialog. After the selection is done, this dialog will return a list of IXBSelectedNavInfo with Navigator Id and Generator Id, and seed object as an objectId. Given an object obj, we can get the Object Id by using IXBHelper.service.getObjectId(obj).
filterIds - see definition above
filterParams is an array of objects attributes to set the objects to be excluded from export process, or to be included in export process, depends on the type of filters.
ruleFile is the rule file for export process. This file is provided to Exporter to create a tuner for export process.
guiId is the id of the GUI from which the export process is called. See the method recordGuiIdInContext() of the class wt.clients.ixb.util.ExpImpServerRequest for an example how to create the GUIid.
detailLog indicates whether the status message should be in details or not.
stDtd specifies which version of the Exp/Imp handlers will be used. This is used to support backward compatible. If stDtd is null or empty (“”), the STRING_DTD will be calculated based on the current Windchill.
When the method IXBHelper.service.doExport(…) is called, it will call to the method doExportImpl(…) in the StandardIXBService.
This method:
Creates a general export handler ExportHandler handler. This is an inner class of StandardIXBService.
Gets a list of objects that will be exported by calling

ObjectSetHelper.computeObjectSetForGivenGeneratorsAndFilters (
generatorIds,
generatorParams,
filterIds,
filterParams);
Creates an instance of Exporter, the class that does the export.
Depending on isPreview (true/false) the exporter will do a preview or real export by calling methods of Exporter class mention in the section Exporter class of this document.
Calls clean-up methods of the ExportHandler handler.