この文章は Salesforce 機械翻訳システムを使用して翻訳されました。詳細はこちらをご参照ください。
英語に切り替える

ServiceIntegrationProvider インターフェース

ServiceIntegrationProvider インターフェースは、インテグレーションフレームワークを継続フレームワークと共に使用する場合に実装します。

使用方法

IntegrationHandler クラスは、このインターフェースを実装するクラスをコールします。ServiceExcellenceAlertCard および ServiceExcellenceGenericAlertCard には、IntegrationHandler クラスを呼び出す Integration Procedure データソースがあります。これらの FlexCard は、金融口座に関する情報を表示します。

ServiceIntegrationProvider のメソッド

ServiceIntegrationProvider のメソッドは次のとおりです。

getCalloutRequest(requestId, params, attributes)

API コール要求とその属性を保存する Continuation オブジェクトを取得します。

署名

public IntegrationCalloutRequest getCalloutRequest(String requestId, Map<String, String> params, Map<String, Object> attributes)

パラメーター

requestId
型: String
API コールを一意に識別する要求 GUID を表します。
params
型: Map<String,String>
API コールのペイロードを含む入力データを表します。
attributes
型: Map<String,Object>
インテグレーション定義レコードの属性データを表します。

戻り値

型: IntegrationCalloutRequest オブジェクト

使用方法

Continuation オブジェクトを取得するために IntegrationHandler クラスで使用されます。

getCalloutResponse(httpResponseList, state, attributes)

API コールから応答データを取得して、事後処理を実行します。

署名

public IntegrationCalloutResponse getCalloutResponse(List<HttpResponse> httpResponseList, Object state, Map<String, Object> attributes)

パラメーター

httpResponseList
型: List<HttpResponse>
API コールからの応答データを表します。
state
型: Object
getCalloutRequest メソッドで作成された Continuation オブジェクトの State プロパティの値を表します。
attributes
型: Map<String,Object>
インテグレーション定義レコードの属性データを表します。

戻り値

型: IntegrationCalloutResponse

使用方法

API コールの後に事後処理を行うための IntegrationHandler クラスで使用されます。

getProviderAttributes()

インテグレーションフレームワークにどのような属性が予期されるかを伝え、インテグレーション定義で欠落している可能性がある値のデフォルトを提供します。

署名

public List<ApexProviderAttr> getProviderAttributes()

パラメーター

なし

戻り値

型: List<ApexProviderAttr>

使用方法

インテグレーション定義レコードからデフォルト値を取得するために IntegrationHandler クラスで使用されます。