ExchangePlanManager.<Exchange plan name>.ThisNode

Syntax:

ThisNode()

Returned value:

Type: ExchangePlanRef.

Description:

Obtains reference to the predefined node corresponding to the database.

Availability:

Server, thick client, external connection, Mobile application (server).

Example:

NodesSelection = ExchangePlans.FarOffices.Select();
While 
NodesSelection.Next() Do
    // Performing data exchange between all nodes, except current (ThisNode)
    If NodesSelection.Ref<>ExchangePlans.FarOffices.ThisNode() Then
        NodeObject = NodesSelection.GetObject();
        // Receive message
        NodeObject.ReadMessageWithChanges();
        // Generate message
        NodeObject.WriteMessageWithChanges();
    EndIf
;    
EndDo
;


    

1C:Enterprise Developer's Community