Export services

An export writer is a Java class that:

  • Reads the InterPlay objects from the database.
  • Writes them into files with a specific file format.

InterPlay provides a set of default export writers. You can however create additional writers to customize your export procedures.

By default, InterPlay provides the following writers:

An export writer is a subclass of the com.axway.interplay.core.externaldata.exportdata.writers.DefaultWriter abstract class.

The Variable flat file writer and Variable flat file writer for Business Objects writers are wrapped into a single writer called Variable flat file writer. You must declare the java class DocumentWriterWrapper in the interplayPublicContext.xml file as bellow:

<bean id="variableFlatFileWriter" class="com.axway.interplay.core.externaldata.exportdata.writers.DocumentWriterWrapper" scope="prototype">

<property name="writerType" value="VariableFlatFile" />

<property name="normalWriter" value="flatFileWriter" />

<property name="virtualWriter" value="flatFileWriterVirtualBO" />

</bean>

If the Is virtual Business Object writer flag from the Export writer section is set, the Variable flat file writer for Business Objects writer is used, otherwise the Variable flat file writer is used.

The Fixed flat file writer and Fixed flat file writer for virtual Business Objects writers are wrapped into a single writer called AccountingIntegrator writer. You must declare the java class DocumentWriterWrapper in the interplayPublicContext.xml file as bellow:

<bean id="accountingIntergratorWriter" class="com.axway.interplay.core.externaldata.exportdata.writers.DocumentWriterWrapper" scope="prototype">

<property name="writerType" value="FixedFlatFile" />

<property name="normalWriter" value="accountingIntegratorFileWriter" />

<property name="virtualWriter" value="accIntWriterVirtualBO" />

</bean>

If the Is virtual Business Object writer flag from the Export writer section is set, the Fixed flat file writer for virtual Business Objects writer is used, otherwise the Fixed flat file writer writer is used.

Related Links