---
title: "Commerce Engineのパイプラインとブロックの扱いについて"
slug: "working-with-commerce-engine-pipelines-and-blocks"
abstract: "カスタムプラグインを作成してCommerce Engineの機能を拡張する際のCommerce Engineパイプラインフレームワークの操作方法についてのガイダンス。"
---
# Commerce Engineのパイプラインとブロックの扱いについて

Commerce Engineコアは、[Core Dependency Injection.NET](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-2.2)パイプラインフレームワークを使用しており、拡張性をサポートしています。Commerceプラグインでは、パイプラインはビジネスロジックのコンテナとして機能します。パイプラインクラス自体は通常軽量で、主にパイプラインの定義を表現します。Commerceパイプラインは、ビジネスロジックを詳細に示すブロック定義で構成されています。各パイプラインブロックは、ルールや条件などに基づいて実行すべきアクションを定義します。カスタムプラグインのconfigure.sitecoreクラスを使って [、Commerce Engineでパイプラインやブロックを登録](https://doc.sitecore.com/xp/ja/developers/101/sitecore-experience-commerce/registering-a-custom-commerce-pipeline-or-block.html "Registering a custom Commerce pipeline or block") し、ブロックを実行する順序を設定します。

Sitecore XC、デフォルトで存在するCommerceプラグインを理解し、カスタムパイプラインやブロックをどこに挿入するか、新たに実装されたパイプラインやブロックが期待通りに動作しているかを確認する方法を提供します。

PostmanのAPIリクエストを使って[Commerce Engineに登録されたパイプラインを取得する](https://doc.sitecore.com/xp/ja/developers/101/sitecore-experience-commerce/retrieve-registered-pipelines.html "Retrieve registered pipelines") か、[ノード設定ログで実行中のパイプラインやブロックを確認できます](https://doc.sitecore.com/xp/ja/developers/101/sitecore-experience-commerce/view-running-pipelines.html "View running pipelines")。