The cciOutputMessageCallback function can be registered as a callback and is called whenever a message is sent by an output node.
The cciOutputMessageCallback function is called for every output message that is sent successfully in the integration server or message flow where the callback was registered if the user exit state is active. If the node provides WrittenDestination information in the LocalEnvironment tree, the callback is called after this information is created.
The callback is registered by providing a pointer to the function as the iFpOutputMessageCallback field of the CCI_UE_VFT struct that is passed to cciRegisterUserExit. The iFpOutputMessageCallback field was added in CCI_UE_VFT struct version 2.
When you implement this callback, check the node type by using cciGetNodeType before you perform any node-specific operations.
typedef void (*cciOutputMessageCallback) (
CciDataContext* userContext,
CciMessage* message,
CciMessage* localEnvironment,
CciMessage* exceptionList,
CciMessage* environment,
CciNode* node);
You can update the message body. However, because this callback is called after the message has been sent to the transport, any changes do not appear in that message. Changes are visible only to nodes that are connected downstream of the output node. Updating the message can affect performance, particularly if the message tree would not otherwise be changed in the message flow.
None.
void myOutputMessageCallback(
CciDataContext* userContext,
CciMessage* message,
CciMessage* localEnvironment,
CciMessage* exceptionList,
CciMessage* environment,
CciNode* node){
}