Overview
The Briefing Import Job imports briefing and product data from XML files (e.g., exported from external ERP systems) and creates corresponding briefings, pages, headlines, products, and pricing data in Encodify.
Before scheduling the job, Briefing Import must be configured in the system to ensure proper mapping of XML root elements and fields.
Briefing Import Settings
To configure Briefing Import, follow these steps:
Navigate to Site Configuration → Briefing System Module → Import Configuration
Open the Edit Import Configuration window and upload an XML template for import.
Note: The XML used for import can also serve as a template.
Map root elements of the XML.
Map fields to the corresponding module fields.
If pages have no page number tag, use the
position()
XPath function on the pages’ node to maintain the correct order.Click OK to save the configuration.
Template download (Release 15.0.0+):
XML template files can be downloaded from Briefing System Module → Import Configuration by clicking the file name.
How it works
The Briefing Import Job works as below:
The job monitors the configured drop folder for new XML files.
Each file is processed to create or update briefings, pages, headlines, products, and pricing data according to the mapping in the Briefing Import settings.
Successfully imported files are moved to the backup folder, while failed files are moved to the error folder.
System logs are written to the configured log folder.
Parameters
The table below provides an overview of parameters supported for the Briefing Import Job
Parameter | Description |
---|---|
| Name of the scheduler job. |
| Class that performs the job: |
| Interval in seconds for periodic execution. |
| Folder containing XML files to import. |
| Folder for successfully imported XML files. |
| Folder for failed XML files. |
| Folder for system logs. |
| Department responsible for imported headlines. |
| Site ID for which the job will be performed. |
Note:
Ensure all IDs and directories exist and are correctly configured to avoid job failures.
Example Configuration
The below is an example of the Briefing Import Job
joblist=xmlImport
job.xmlImport.type=enCode.app.common.briefing.xmlDataImport.XMLDataImportJob
job.xmlImport.interval=90
job.xmlImport.param.dropdir=../Files/SAP/campaign
job.xmlImport.param.backupdir=../Files/SAP/campaign/backup
job.xmlImport.param.errordir=../Files/SAP/campaign/error
job.xmlImport.param.logdir=../Files/SAP/response
job.xmlImport.param.headlineDepartmentId=4
job.xmlImport.param.SiteID=1
Explanation:
Imports XML files from an external ERP system every 90 seconds.
Successfully processed files are moved to the backup folder; failed files are moved to the error folder.
Headlines are assigned to department with ID=4.