Inventory Import

This documentation is not for the latest version Pacemaker version. Click here to switch to version 1.2

The inventory import is one of the predefined pipelines (What is a pipeline?), which you can use after installing Pacemaker. There are sample files, which can be used as a template for your own data files or for testing purposes (see Run your first predefined import jobs). On this page, you will read how it works, how to configure, and how to customize this pipeline.

Pipeline Definition

The import pipeline contains the following steps:

Stage Step Description

Prepare

move_files

Move import files to the working directory of the current pipeline

Transformation

inventory_transformation

This step has a dummy executor in default and is designed in order to customize for mapping and transformation purpose

Pre-Import

index_suspender_start

Activates delta index suspending in order to avoid cron based re-indexing during the import

Import

inventory_import

Update inventory data

Post-Import

index_suspender_stop

Disable suspending of delta indexers

Configuration

In Magento’s backend (admin-ui) you’ll find settings for the price import under following path: Stores > Configuration > TechDivision > Pacemaker Import > Inventory (stock) Import

config inventory import
Figure 1. Configuration Inventory Import
Configuration Description Default Value

General Settings > Source Directory

Defines the source directory for import files. This directory will be observerd by Pacemaker in oder to intialize a import pipeline. This setting is for all pacemaker imports.

var/pacemaker/import

Inventory (stock) Import > Enable Inventory Import Pipeline

Active toggle for the source directory observer for price import.

Yes

Inventory (stock) Import > File Name Pattern

Regular expression, which defines the source file name for source directory observer.

/(inventory)-import_(?P<identifier>[0-9a-z\-]*)([_0-9]*?).(csv|ok)/i

Import Files Observer (How it works)

Source directory observer works in the same way like for Catalog Import. Please refer this page in order to understand how initialization of new import pipelines work.