Image Linking Job

Prev Next

This job parses a field in an image module and creates or updates links to matching items in the referenced Product module. Also, if a respective product item is not found in the Product module, it is then created by the job and is linked to the corresponding image item. It is also possible to perform reverse linking by changing the FieldModuleLink ID in Scheduler.properties file.

For example, in case of direct image linking the Image Linking job links items (images) in Module A to items of Module B (products), by parsing a text field in Module A that contains IDs of matching module B's items. With reverse linking the Image Linking job links items (products) in Module B to items of Module A (images), by parsing a text field in Module A that contains IDs of matching module B's items.

Parameter

Description

job.ImageLinkingJob.type= enCode.app.common.scheduler.jobs.ImageLinkingJob

The name of the class that will perform image linking job.

job.ImageLinkingJob.interval=6000

The interval at which image linking job will be rerun.

job.ImageLinkingJob.param.ModuleLinker

The ID of the Module with images.

job.ImageLinkingJob.param.FieldModuleLink

The ID of the module field in the Image module that links to the Product module, or when performing reverse linking, Id of module field in Product module that links to the Image module

job.ImageLinkingJob.param.FieldProductText

The ID of the field in the Image module that contains product IDs.

job.ImageLinkingJob.param.ModuleLinked

The ID of the module with Products.

job.ImageLinkingJob.param.FieldProductID

The ID of the field in the Product module that stores a Product ID.

job.ImageLinkingJob.param.createNew=true/false

The parameter specifies whether or not a product entry with the product ID being parsed should be created in the Product module if it is not there yet.

Job.ImageLinkingJob.param.Pattern=(\d+)/(.*)

Only values containing one or more digits/symbols will be considered a Product ID

Note! 

Values entered in the Product ID field of the Image module can be separated by any of the following characters: comma, semi-colon, forward slash, space.

A product ID, therefore, cannot contain any of those symbols.