Pipeline XML
The structure of a pipeline gets defined with a pipeline.xml
file.
-
The implementation and processing of dynamic pipelines can get realized with the pipeline initializer logic
- pipelines are based on a schema that can get viewed at
vendor/techdivision/process-pipelines/etc/pipeline.xsd
:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:TechDivision_ProcessPipelines:etc/pipeline.xsd"> (1)
<pipeline name="clean_up_pipelines" description="Pack the pipelines and make cleanup by configuration" use-working-directory="true" expire-in="2 hours"> (2)
<conditions> (3)
<pipeline_condition type="TechDivision\ProcessPipelines\Helper\Condition\Pipeline\CleanUp" description="Cron expression check for message import"/> (4)
</conditions>
<step name="compress_pipeline_data" executorType="TechDivision\ProcessPipelines\Model\Executor\CompressExecutor" sortOrder="10" description="" expireIn="2 hours"> (5)
<conditions>
<step_condition type="TechDivision\ProcessPipelines\Helper\Condition\Step\AttemptsLimit\Limit5" description="Try step up to 5 times"/> (6)
</conditions>
</step>
... (7)
</pipeline>
(8)
</config>
1 | A Pipeline.XML must always be validated against the applicable pipeline schema |
2 | A pipeline must be created with the <pipeline> XML tag and contain the name XML attribute
|
3 | A pipeline can be equipped with several conditions |
4 | A pipeline operation must always contain a type that implements the \TechDivision\ProcessPipelines\Api\PipelineConditionInterface |
5 | A pipeline must consist of at least one step and must meet the following criteria
|
6 | Like pipelines, steps can also have execution conditions
|
7 | A pipeline can consist of several steps |
8 | Multiple pipelines can be defined and structured in Pipeline.XML
|
All defined pipelines can get listed with the CLI command |