Briefing Import Job

Prev Next

This Job applies XML exported by SAP system and creates corresponding briefings with pages, headlines, products (including all product info and prices). Briefing Import should be configured before setting up Briefing Import Job.

Briefing Import settings


Location: Site Configuration > Briefing System Module > Import Configuration

To Configure Briefing Import follow the next steps:

  1. Open Edit Import Configuration window and upload template for import

    Note! XML containing briefing that would be imported may be used as a template

  2. Map root elements

  3. Map fields

    Note!

    position() XPath function can be used for mapping field containing sorting. For example:

    There’s no tag defining page number. Without using position() function to pages’ node, pages will be imported in random order. If position() was applied to pages’ node, pages will be imported in the order they placed in exported XML.

  4. Click OK

image1.pngEdit Import Configuration window

Staring from release 15.0.0, XML Template File can be also downloaded by clocking on the file name on Briefing System Module > Import Configuration tab:

78ea4da2f0.jpg

Read Import Configuration window

Briefing Import Job settings


Location: System Configuration > System Status > Scheduler > Scheduler Properties

Table below describes parameters of Briefing Import Job:

Parameter

Description

joblist=xmlImport

Specify scheduler to run Briefing Import Job

job.xmlImport.type= enCode.app.common.briefing.xmlDataImport.XMLDataImportJob

Specify class of the job

job.xmlImport.interval=90

Interval in seconds at which import job will be rerun to ensure that newly-uploaded files are imported.

job.xmlImport.param.dropdir=../Files/SAP/campaign

Path to folder with XML files that will be imported

job.xmlImport.param.backupdir=../Files/SAP/campaign/backup

Path to folder with XML files that have been imported successfully

job.xmlImport.param.errordir=../Files/SAP/campaign/error

Path to folder with XML files that have been imported unsuccessfully

job.xmlImport.param.logdir=../Files/SAP/response

 

job.xmlImport.param.headlineDepartmentId=4

Specify Department that will be responsible for imported headline

job.xmlImport.param.SiteID=1

Id of the site for which Briefing Import job will be performed.

Note! If the import fails because of impossibility to create a new record in one of the modules (Briefings, Pages, Headline, Products, Products on Briefing and Prices), the data that has already been imported will remain.