Use this function to check whether a terminal is attached to another node by a connector. It returns an integer value that specifies whether the specified terminal object is attached to one or more terminals on other message flow nodes.
Use this function to test whether a message can be propagated to a terminal; you do not have to call this function before you propagate a message with the cniPropagate utility function. Use the cniIsTerminalAttached function to modify the node behavior when a terminal is not connected.
int cniIsTerminalAttached(
int* returnCode,
CciTerminal* terminalObject);
if (terminalObject) {
if (cniIsTerminalAttached(&rc, terminalObject)) {
if (rc == CCI_SUCCESS) {
retvalue = cniPropagate(
&rc,
terminalObject,
localEnvironment,
exceptionList,
message);