ServiceIntegrationProvider インターフェース
使用方法
IntegrationHandler クラスは、このインターフェースを実装するクラスをコールします。ServiceExcellenceAlertCard および ServiceExcellenceGenericAlertCard には、IntegrationHandler クラスを呼び出す Integration Procedure データソースがあります。これらの FlexCard は、金融口座に関する情報を表示します。
ServiceIntegrationProvider のメソッド
ServiceIntegrationProvider のメソッドは次のとおりです。
getCalloutRequest(requestId, params, attributes)
署名
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)
署名
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 クラスで使用されます。