Job flows, flow scope and step sequencing
Key Takeaway
Each flow's scope sets where its steps run, and "Organization" is the default. The scope must fit the steps in the flow. "All Storefront Sites" runs on the storefront sites available when the job executes, so new sites are included without editing the job.
A B2C Commerce job organizes its steps into flows. Each flow has a scope that sets where its steps run, either for the whole organization or on storefront sites. Flows can sit side by side as sibling flows, which run one after another or in parallel. Business Manager settings and the attributes in a custom step type's steptypes.json file decide which steps can share a flow and whether sibling flows can run in parallel. Each step's exit status then decides whether the job keeps going.
Flows in a job
When you create a new job in the Business Manager "Jobs" module, its "Job Steps" tab already has one empty flow. You add system or custom job steps to a flow. You can put all of a job's steps in that first flow.
The Job Steps tab has three flow controls:
- Add a sibling flow.
- Toggle sibling flows between sequential and parallel processing.
- Add a new sequential flow.
You can create up to four sibling flows.