Suggested answer

A B2C Commerce Job is a server-side process that executes one or more steps either on a configurable schedule or on demand. Jobs are configured in Business Manager under Administration > Operations > Jobs. They are commonly used for:

1. Catalog, inventory, and price feed imports from external systems
2. Order data exports to ERP or fulfilment systems
3. Search index rebuilding after catalog updates
4. Batch order processing and custom data maintenance

To create a custom job step:

1. Write a JavaScript module in cartridge/scripts/jobsteps/myStep.js that exports an execute(parameters, stepExecution) function. The function performs the work and returns a Status object indicating success or failure.
2. Register the step by creating a job step configuration (via XML import or directly in Business Manager) that maps the step ID to the script path and exposed parameter names.
3. In Business Manager, create a new Job, add the custom step from the step picker, configure parameters, and set the schedule or trigger.

Practice content for interview preparation; not an official vendor answer. Verify details against current product documentation.

Community comments (0)

No comments yet.

Sign in or create a free account to add a comment. Comments are moderated before they appear.

Plain text only, 3–2000 characters. A moderator reviews every comment before it is published.