D2000 OBJApi - basic parts of user client process

Initializing the communication
Handling NewObjectValue message
Handling NewDefinition message
Executive part
Stopping the communication

Initializing the communication


Before calling a function from the interface D2000 ObjApi, it is necessary at first to call the initialization function - ConnectKernel, that provides connection with the process D2000 Server. After calling the function ConnectKernel, then there is calling the function SendChildren that provides acceptance of the definition of user process' children.

Handling NewObjectValuemessage


When the connection is established with the D2000 Server, we use the parameter ConnectKernel to define a service procedure that will receive asynchronous messages about a change of the object value or status. Such massages are to be sent for each object, which is opened by calling the function OpenObject and for all children of given process.

Handling NewDefinition message


After connecting the D2000 Server, it is possible to request for definition of user process children by calling the function SendChildren. When calling this function, we define a service procedure that will receive NewDefinition configuration messages.

Executive part


In this part, we can call functions of the interface D2000 ObjApi which are used to:

Stopping the communication

Before terminating the user process, it is necessary to stop correctly the communication with D2000 Server by calling the function LogoffProc. Automatic restart of the user process is executed, if the following conditions are met: