Use esta função para definir uma classe de nó, conforme especificado pelo parâmetro name, que é suportado pela factory do nó especificada como o parâmetro factoryObject.
Esta função é chamada pelo nó durante a execução do bipGetMessageFlowNodeFactory, quando o arquivo LIL é carregado.
Se cniGetAttribute e cniGetAttribute2 ou cniGetAttributeName e cniGetAttributeName2 forem implementados, cniDefineNodeClass falhará com CCI_INV_IMPL_FUNCTION.
void cniDefineNodeClass(
int* returnCode,
CciFactory* factoryObject,
CciChar* name,
CNI_VFT* functbl);
Por exemplo, se você tiver designado o nome como Básico no WebSphere Message Broker Toolkit, o nome de classe do nó deverá ser BasicNode.
vftable.iFpCreateNodeContext = _Transform_createNodeContext;
vftable.iFpDeleteNodeContext = _deleteNodeContext;
vftable.iFpGetAttributeName2 = _getAttributeName2;
vftable.iFpSetAttribute = _setAttribute;
vftable.iFpGetAttribute2 = _getAttribute2;
vftable.iFpEvaluate = _Transform_evaluate; /* if not an input node */
vftable.iFRun = _run /* if an input node */
Em geral você deve definir somente uma das últimas 2 entradas, ou seja, você define vftable.iFpEvaluate = _Transform_evaluate; para um nó de processamento de mensagem, ou define vftable.iFpRun = _run; para um nó input.
Nenhuma. Se ocorrer um erro, o parâmetro returnCode indica o motivo do erro.