---
title: "インタラクションバッチパイプライン"
slug: "the-interactions-batch-pipeline"
abstract: "インタラクションバッチパイプラインの概要。"
---
# インタラクションバッチパイプライン

インタラクションバッチパイプライン(<interactionsBatch>)はSitecore 9.3で導入されました。以下の表は、クラシックなインタラクションパイプラインとバッチインタラクションパイプラインの違いを説明します。

特徴

クラシックな相互作用パイプライン

バッチインタラクションパイプライン

xDB Reporting データベースにデータをバッチごとに書き込みます。

はい

はい

xDBからデータをバッチで読み込みます。

はい

はい

パイプラインプロセッサは一連のインタラクションを反復処理します。

いいえ。プロセッサはバッチ内の各インタラクションごとに一度だけ動作します。

はい。プロセッサは一括のインタラクションを受け取り、そのバッチ全体に対してロジックを実行します。

クラシックなインタラクションパイプラインはSitecore 9.3でまだ利用可能で、インタラクションバッチパイプラインの後に動作します。 [インタラクションバッチパイプラインに対応してプロセッサを更新](https://doc.sitecore.com/xp/ja/developers/93/sitecore-experience-platform/walkthrough--using-the-interactions-batch-pipeline-to-aggregate-and-store-reporting-data.html "Walkthrough: Using the interactions batch pipeline to aggregate and store reporting data")することを推奨しますが、すぐにプロセッサをアップグレードする必要はありません。

以下の例は、インタラクションバッチパイプライン(<interactionsBatch>)とクラシックインタラクションパイプライン(<interactions>)の設定を示しています。

<pipelines>
 <interactionsBatch>
 <!-- All batch processors -->
 <processor type="Sitecore.Analytics.Aggregation.Pipelines.InteractionsBatch.RunInteractionsPipeline, Sitecore.Analytics.Aggregation" resolve="true" />
 </interactionsBatch>
 <interactions>
 <-- All classic processors -->
 <processor type="Sitecore.Analytics.Aggregation.Pipelines.Interactions.LogAggregationInfo, Sitecore.Analytics.Aggregation" resolve="true" />
 </interactions>
 <contacts />
</pipelines>

## インタラクションバッチパイプラインの使用

従来のインタラクション集約パイプラインの代わりにインタラクションバッチパイプラインを使用するには、[バッチインタラクションアグリゲーションプロセッサ](https://doc.sitecore.com/xp/ja/developers/93/sitecore-experience-platform/walkthrough--using-the-interactions-batch-pipeline-to-aggregate-and-store-reporting-data.html "Walkthrough: Using the interactions batch pipeline to aggregate and store reporting data")を作成して登録してください。

## インタラクションバッチパイプライン引数

InteractionBatchAggregationPipelineArgsクラスはインタラクションのバッチパイプライン引数を表し、現在のインタラクションのバッチなどのデータも含みます。以下の表はInteractionBatchAggregationPipelineArgsクラスの特性を説明します。

議論

種類

アクセル

概要

Contexts

IEnumerable<IInteractionAggregationContext>

get

リストは IInteractionAggregationContext。各 IInteractionAggregationContext には以下が含まれます:  
  

-   コンテキストコンタクト。
-   コンテキストの相互作用です。
-   集約プロセスの結果です。
-   集約プロセスで利用可能なソース、例えばxConnectやReference Dataクライアントなど。

DateTimeStrategy

IDateTimePrecisionStrategy

get

DateTimeの値を下げる戦略。デフォルトで日、時、分の戦略を選択できます。

Scope

AggregationScope

get

インタラクション集約が行われる文脈を定義します。例えば、履歴処理やライブ処理などです。

FailedAggregationContexts

ICollection<IInteractionAggregationContext>

get

例外が発生した IInteractionAggregationContext オブジェクトのリストを返します。