How to Use Export Processor in iDempiere

Learn how the Export Processor window in iDempiere configures replication delivery, connecting an Export Processor Type to a Replication Strategy.

Introduction

The Export Processor window in iDempiere defines the destination used to deliver replication data after an XML document has been generated. It does not create the XML itself; it acts as the runtime configuration that tells the replication engine how and where to send it.

This window is used within standard iDempiere replication and data-exchange processes, typically by Distribution, Wholesale, and multi-branch organizations that synchronize records such as Business Partners between systems.

It directly impacts business operations by determining whether replicated transactions are successfully delivered to an external file, folder, or messaging destination.

Process Flow

Business Rules

  • Export Processor must be Active to be available for use.
  • An Export Processor must reference an Export Processor Type.
  • The selected Export Processor Type determines which Java class executes the export.
  • Replication Strategy must reference an Export Processor to enable replication.
  • Different Export Processor Types require different runtime parameters.
  • The HDD Export Processor requires runtime parameters to determine the output file location.
  • Host, Port, Account, and Password fields are available for processors that require connection details.
  • The standard HDD Export Processor does not use the Host, Port, Account, or Password fields.

Prerequisites

  • An Export Processor Type must be created and linked to a valid Java processor class.
  • The Export Format required for the replicated table must already be configured.
  • A Replication Strategy must exist so the Export Processor can be assigned to it.
  • The destination location (for example, a server folder) must be accessible and writable.
  • The Client must have ExportModelValidator configured as a Model Validation Class.

Configuration Steps

Step 1: Create an Export Processor Type

This step is required to register the Java class that will perform the actual export. Without a processor type, no Export Processor can be created.

Navigate to Replication → Export Processor Type and create a new record. Provide a Search Key, Name, and the Java Class that implements the export logic, then save the record.

FieldSample ValueDescription
TenantGardenWorldTenant that owns the Export Processor Type
Organization*Organization scope of the record
Search KeyHDD Export Processor TypeUnique identifier for the processor type
NameHDD Export Processor TypeDisplay name of the processor type
DescriptionAdempiere HDD Export Processor TypeOptional descriptive text
ActiveCheckedEnables the processor type for selection
Java Classorg.adempiere.process.rpl.exp.HDDExportProcessorJava class that executes the export
TenthPlanet iDempiere GeneralRules

Step 2: Create an Export Processor

This step creates the runtime processor configuration that the Replication Strategy will use. It links the processor type to a named, reusable configuration record.

Navigate to Replication → Export Processor and create a new record. Enter a Search Key and Name, then select the Export Processor Type created in Step 1. Save the record.

FieldSample ValueDescription
TenantGardenWorldTenant that owns the Export Processor
Organization*Organization scope of the record
Search KeyHDD Export Processor1Unique identifier for the processor
NameHDD Export Processor1Display name of the processor
Export Processor TypeHDD Export Processor TypeSelects the processor implementation
DescriptionHDD Export Processor DescriptionOptional descriptive text
ActiveCheckedEnables the processor for selection
Host192.168.0.183Connection information used by some processor types
Port(blank)Connection information used by some processor types
Account(blank)Authentication information used by some processor types
Password Info(blank)Authentication information used by some processor types
TenthPlanet iDempiere GeneralRules

Step 3: Configure Processor Parameters

This step provides the processor-specific runtime values that the selected Export Processor Type needs to deliver the XML. Required parameters differ by processor type.

In the Export Processor Parameter tab, add a row for each required parameter. For the HDD Export Processor, enter the fileName and folder parameters with their values, then save.

FieldSample ValueDescription
Search KeyfileNameParameter name expected by the HDD processor
Search KeyfolderParameter name expected by the HDD processor
NameName of file to exportDescriptive label for the parameter
Parameter ValueBusinessPartner.xmlOutput XML file name
Parameter Value/home/dev078/Downloads/Destination folder for the output file
ActiveCheckedEnables the parameter for use at runtime

The processor combines the folder and fileName values to determine the output file location. The folder value should end with a directory separator so the resulting path is valid. If a required parameter such as fileName is missing, the processor cannot write the XML.

TenthPlanet iDempiere GeneralRules

Step 4: Assign the Export Processor to a Replication Strategy

This step connects the processor configuration to the replication process. Replication cannot deliver data unless a Replication Strategy references a valid Export Processor.

Open the Replication Strategy window, select the target strategy, and choose the Export Processor created in Step 2 from the Export Processor field. Save the record.

FieldSample ValueDescription
Search KeyExample POSUnique identifier for the Replication Strategy
NameExample POS Replication StrategyDisplay name of the strategy
Export ProcessorHDD Export Processor1Export Processor used when this strategy runs
ActiveCheckedEnables the strategy for replication

Once saved, the strategy uses the selected Export Processor whenever a record configured in its Replication Table is created, updated, or completed.

TenthPlanet iDempiere GeneralRules

Common Issues and Resolutions

IssueCauseResolution
Export Processor not available for selectionThe record is not ActiveVerify the Export Processor record is marked Active
Processor cannot executeExport Processor Type does not reference a valid Java classVerify the Java Class field points to a valid, deployed processor implementation
XML not written by the HDD processorfileName or folder parameters are missing or incorrectVerify the parameters are configured correctly and the server has write permission to the destination directory
Replication does not export dataReplication Strategy does not reference the correct Export ProcessorVerify the Replication Strategy points to the intended Export Processor
No export occurs at allClient is not assigned the Replication Strategy or ExportModelValidator is not configuredConfirm the Client has the Replication Strategy assigned and ExportModelValidator set as a Model Validation Class
Wrong file delivered to the wrong locationfolder parameter does not end with a directory separatorUpdate the folder value so it ends with a valid directory separator

Next Steps

  1. Assign the configured Export Processor to the relevant Replication Strategy.
  2. Configure the Export Format required for the tables being replicated.
  3. Ensure the Client is assigned the Replication Strategy and ExportModelValidator.
  4. Perform an end-to-end replication test to confirm XML generation and delivery.