Foundations Apex API Developer Reference

fferpcore.ihcc_IIntegrationEventBusinessLogic

global interface ihcc_IIntegrationEventBusinessLogic extends ihcc_IBusinessLogic

Interface that Integration business logic classes must implement to handle events coming from the external system into the Salesforce Org.

This class extends fferpcore.ihcc_IBusinessLogic

Methods

processMessages

List<ihcc_IntegrationEventResponse> processMessages(fferpcore.ihcc_IntegrationEventDirection direction, List<fferpcore.ihcc_IIntegrationEventMessage> messages, fferpcore.ihcc_IProcessContext context)

Method in the business logic called to process one or more messages. The messages are a list of encoded integration specific message objects. These are the objects the integration either enqueued to the platform event in the queueMessage field of an ihcc_RestShapes.PlatformEventMessage object which was encoded into the MessageData__c field of the ErpInternalEvent__e object, or if the integration used the fferpcore.ihcc_QueueService to enqueue the events directly the messages will come from the Message_Content__c field in the ihcc_Integration_Queue_Event__c object.
The integration should do whatever processing is necessary with the messages and return a list of responses. The returned list must have the same size as the passed messages and each response should accurately reflect the outcomes of processing that message.

Input Parameters

Name Type Description
direction fferpcore.ihcc_IntegrationEventDirection The direction that all the messages in the list are in
messages List<fferpcore.ihcc_IIntegrationEventMessage> A List of encoded messages

Return Value

A List of responses to processing the messages

© Copyright 2009–2024 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.