DecisionPointItemアクティビティの種類

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

DecisionPointItemアクティビティの種類は、Marketing Automationが連絡先をキャンペーンに登録するときのロジックを定義するのに役立ちます。

DecisionPointItemアクティビティタイプを使用して、コンタクトのインタラクションを待たずに、コンタクトをさまざまなマーケティングアクションで移動します。たとえば、取引先担当者が上位100位の顧客として登録されている場合、Yesパスに沿って続行し、特定のオファーを表示することを選択できます。お客様がトップ100のお客様でない場合は、Noパスに進むことができます。

アイテムの構造

DecisionPointItemアクティビティの種類には、次の構造が含まれています。

Illustration showing the structure of the DecisionPointItem activity type.

プロパティ

DecisionPointItemアクティビティの種類には、次のプロパティがあります。

インゴーイングパス

1

送信パス

2

タイトルとサブタイトル

アクティビティタイプが定義されているときにツールチップに表示されます。マークアップでは使用できません。

ロジック位置

他のDecisionPointItemアクティビティ タイプの送信パスの下。

メモ

アイテム アイコンは、パラメーターを定義するとひし形に変わります。

サポートされているCSSクラス

DecisionPointItemアクティビティの種類は、次のCSSクラスをサポートしています。

CSSクラス

未定義

定義

decision-point

サンプルTypeScript実装

これは、DecisionPointItemアクティビティの種類の実装例です。

sample/src/sample-decision-point-item-activity-type.ts

import { DecisionPointItem } from '@sitecore/ma-core';

export class SampleDecisionPointItemActivityType extends DecisionPointItem {

  getVisual(): string {
    const subTitle = this.isDefined ? 'Count: ' + this.editorParams.count : '';
    const cssClass = this.isDefined ? '' : 'undefined';

    // The CSS class can only be decision-point.
    return `
      <div class="decision-point ${cssClass}" title="Sample decision point item">
        <span class="icon">
          <img src="/~/icon/OfficeWhite/32x32/gearwheels.png" />
        </span>
      </div>
    `;
  }

  get isDefined(): boolean {
    /*
      The editorParams property value is the object that is serialized from the activity editor.
      If the activity is undefined, the editorParams property will evaluate to {}.
    */
    return Boolean(this.editorParams.count);
  }
}
この記事を改善するための提案がある場合は、 お知らせください!