Elastic Path Production Tools

Batch Syndication Jobs

Batch Syndication Jobs

Content Management System (CMS) administrators can initiate batch syndication jobs by sending a batch event message to the ep.batch.catalogsyndication topic using Java Messaging Service (JMS).

Create Batch Syndication JMS Message

When the catalog syndication batch job in the Elastic Path batch server gets an event message from the ep.batch.catalogsyndication topic, the batch projection builder starts the corresponding batch jobs.

For Elastic Path batch server to initiate the batch jobs, CMS developers must create a message and send it to the ep.batch.catalogsyndication topic in JMS in the following format:

 "data": {

Note: Ensure that the "cleanUpDatabase" flag is set to true to clean the entire database before building the batch projection. If the flag is set to false, only projections for entities that have changed are cleaned. Cleaning up the database ensures that data from the previous build projection is removed.

Build Projection

The batch projection builder builds each projection in the following sequence:

  1. Runs the cleanUpDatabase job. This step is optional.
  2. Fetches all entities of the corresponding job type, such as, brand, SKU option, or product.
  3. Builds multiple projections from the single domain entity.
  4. Writes the projections to the database.

The batch projection builder can build all entity projections together or as separate entities. The entities are built in the following order if built all together:


Expired Projections

You can set a date and time to disable a product from the catalog or from showing in the storefront in Elastic Path Commerce Manager. These values are syndicated to the TCATALOGPROJECTIONS database table. When you run a batch job, the job checks the TCATALOGPROJECTIONS table and deletes the product from the catalog if the DISABLE_DATE_TIME is set to the current date and time or is in the past. The job schedules its next run to be on the closest DISABLE_DATE_TIME or within an hour, whichever comes first.