The cciPropagatedMessageCallback function can be registered as a callback and is called whenever a message is propagated from one node to another.
The cciPropagatedMessageCallback function is called for every message that is propagated in the integration server where the callback was registered, if the user exit state is active. The callback is registered by providing a pointer to the function as the iFpPropagatedMessageCallback field of the CCI_UE_VFT struct that is passed to cciRegisterUserExit.
typedef void (*cciPropagatedMessageCallback)(
CciDataContext* userContext,
CciMessage* message,
CciMessage* localEnvironment,
CciMessage* exceptionList,
CciMessage* environment,
CciConnection* connection);
None.
void myPropagatedMessageCallback(
CciMessage* message,
CciMessage* localEnvironment,
CciMessage* exceptionList,
CciMessage* environment,
CciConnection* connection){
int rc = CCI_SUCCESS;
CciNode* targetNode = cciGetTargetNode(amp rc,
connection);
CciChar targetNodeName [initialStringBufferLength];
targetNodeNameLength = cciGetNodeName(amp rc,
targetNode,
targetNodeName,
initialStringBufferLength);
/*you should now check the rc for unexpected values*/
/*if rc is CCI_BUFFER_TOO_SMALL, resize and retry*/
}