This function returns the name of the specified node.
The name is assigned internally by the IBM® Integration Toolkit and is unique in the message flow. The label that is assigned to a node by the message flow designer in the Message Flow Editor can be obtained by calling cciGetNodeAttribute to read the label attribute.
CciSize getNodeName (int* returnCode,
CciNode* node,
CciChar* value,
CciSize length);
The provided buffer was not large enough to hold the value of node's name.
void myPropagatedMessageCallback(
CciMessage* message,
CciMessage* localEnvironment,
CciMessage* exceptionList,
CciMessage* environment,
CciConnection* connection){
int rc = CCI_SUCCESS;
CciNode* targetNode = cciGetTargetNode(&rc,
connection);
CciChar targetNodeName [initialStringBufferLength];
targetNodeNameLength = cciGetNodeName(&rc,
targetNode,
targetNodeName,
initialStringBufferLength);
/*you should now check the rc for unexpected values*/
/*if rc is CCI_BUFFER_TOO_SMALL, resize and retry*/
}