ServiceIntegrationProvider Interface
Implement the ServiceIntegrationProvider interface to use the integration framework with Continuation.
The IntegrationHandler class calls a class that implements this interface. The ServiceExcellenceAlertCard and ServiceExcellenceGenericAlertCard have Integration Procedure data sources that call the IntegrationHandler class. These FlexCards display information about financial accounts.
The following are methods for ServiceIntegrationProvider.
-
getCalloutRequest(requestId, params, attributes)
Fetches the Continuation object, which stores the API call request and its attributes.
-
getCalloutResponse(httpResponseList, state, attributes)
Fetches the response data from the API call and performs postprocessing.
-
Tells the integration framework what attributes are expected and provides defaults for values that might be missing in the Integration Definition.
Fetches the Continuation object, which stores the API call request and its attributes.
public IntegrationCalloutRequest getCalloutRequest(String requestId, Map<String, String> params, Map<String, Object> attributes)
- requestId
Type: String
Represents the Request GUID that uniquely identifies the API call.
- params
Type: Map<String,String>
Represents the input data containing the payload for the API call.
- attributes
Type: Map<String,Object>
Represents attribute data from the Integration Definition record.
Type: IntegrationCalloutRequest object
Used by the IntegrationHandler class to retrieve the Continuation object.
Fetches the response data from the API call and performs postprocessing.
public IntegrationCalloutResponse getCalloutResponse(List<HttpResponse> httpResponseList, Object state, Map<String, Object> attributes)
- httpResponseList
Type: List<HttpResponse>
Represents the response data from the API call.
- state
Type: Object
Represents the value of the State property of the Continuation object created by the getCalloutRequest method.
- attributes
Type: Map<String,Object>
Represents attribute data from the Integration Definition record.
Type: IntegrationCalloutResponse object
Used by the IntegrationHandler class for postprocessing after the API call.
Tells the integration framework what attributes are expected and provides defaults for values that might be missing in the Integration Definition.
public List<ApexProviderAttr> getProviderAttributes()
None
Type: List<ApexProviderAttr>
Used by the IntegrationHandler class to retrieve default values from the Integration Definition record.