Utilice esta función para definir una clase de nodo, tal como se especifica en el parámetro name, que esté soportada por la fábrica de nodos especificada en el parámetro factoryObject.
El nodo llama a esta durante la ejecución de bipGetMessageFlowNodeFactory, cuando se carga el archivo LIL.
Si se implementan cniGetAttribute y cniGetAttribute2, o cniGetAttributeName y cniGetAttributeName2, cniDefineNodeClass falla con CCI_INV_IMPL_FUNCTION.
void cniDefineNodeClass(
int* returnCode,
CciFactory* factoryObject,
CciChar* name,
CNI_VFT* functbl);
Por ejemplo, si ha asignado el nombre Basic al WebSphere Message Broker Toolkit, el nombre de clase del nodo debe ser BasicNode.
vftable.iFpCreateNodeContext = _Transform_createNodeContext;
vftable.iFpDeleteNodeContext = _deleteNodeContext;
vftable.iFpGetAttributeName2 = _getAttributeName2;
vftable.iFpSetAttribute = _setAttribute;
vftable.iFpGetAttribute2 = _getAttribute2;
vftable.iFpEvaluate = _Transform_evaluate; /* si no es un nodo de entrada */
vftable.iFRun = _run /* si es un nodo de entrada */
Normalmente sólo definirá una de las 2 últimas entradas, es decir, definirá vftable.iFpEvaluate = _Transform_evaluate; para un nodo de proceso de mensajes o definirá vftable.iFpRun = _run; para un nodo de entrada.
Ninguno. Si se produce un error, el parámetro returnCode indica la razón del mismo.