노드 오브젝트의 인스턴스에 대한 컨텍스트를 작성합니다. 노드 오브젝트의 인스턴스가 구성될 때마다 메시지 브로커에 의해 호출됩니다. 브로커가 메시지 플로우를 전개할 때나 실행 그룹이 시작될 때 노드가 구성됩니다.
정의 대상 | 유형 | 구성원 |
---|---|---|
CNI_VFT | 필수 | iFpCreateNodeContext |
CciContext* cniCreateNodeContext( CciFactory* factoryObject, CciChar* nodeName, CciNode* nodeObject);
static char* functionName = (char *)"_Switch_createNodeContext()"; NODE_CONTEXT_ST* p; /* Allocate a pointer to the local context */ p = (NODE_CONTEXT_ST *)malloc(sizeof(NODE_CONTEXT_ST)); if (p) { /* Clear the context area */ memset(p, 0, sizeof(NODE_CONTEXT_ST)); /* Save our node object pointer in our context */ p->nodeObject = nodeObject; /* Save our node name */ CciCharNCpy((CciChar*) &p->nodeName, nodeName, MAX_NODE_NAME_LEN); } else /* Handle errors */