NodeOPCUA API Documentation
    Preparing search index...

    Interface ClientSessionConditionService

    interface ClientSessionConditionService {
        acknowledgeCondition(
            conditionId: NodeId,
            eventId: Buffer,
            comment: LocalizedTextLike,
            callback: Callback<StatusCode>,
        ): void;
        acknowledgeCondition(
            conditionId: NodeId,
            eventId: Buffer,
            comment: LocalizedTextLike,
        ): Promise<StatusCode>;
        addCommentCondition(
            conditionId: NodeIdLike,
            eventId: Buffer,
            comment: LocalizedTextLike,
            callback: Callback<StatusCode>,
        ): void;
        addCommentCondition(
            conditionId: NodeIdLike,
            eventId: Buffer,
            comment: LocalizedTextLike,
        ): Promise<StatusCode>;
        confirmCondition(
            conditionId: NodeIdLike,
            eventId: Buffer,
            comment: LocalizedTextLike,
            callback: Callback<StatusCode>,
        ): void;
        confirmCondition(
            conditionId: NodeIdLike,
            eventId: Buffer,
            comment: LocalizedTextLike,
        ): Promise<StatusCode>;
        disableCondition(): void;
        enableCondition(): void;
        findMethodId(
            nodeId: NodeIdLike,
            methodName: string,
            callback: ResponseCallback<NodeId>,
        ): void;
        findMethodId(nodeId: NodeIdLike, methodName: string): Promise<NodeId>;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • helper to acknowledge a condition

      from Spec 1.03 Part 9 : page 27

      The Acknowledge Method is used to acknowledge an Event Notification for a Condition instance state where AckedState is false.

      Normally, the NodeId of the object instance as the ObjectId is passed to the Call Service.

      However, some Servers do not expose Condition instances in the AddressSpace.

      Therefore all Servers shall also allow Clients to call the Acknowledge Method by specifying ConditionId as the ObjectId.

      The Method cannot be called with an ObjectId of the AcknowledgeableConditionType Node.

      A Condition instance may be an Object that appears in the Server Address Space. If this is the case the ConditionId is the NodeId for the Object.

      The EventId identifies a specific Event Notification where a state to be acknowledged was reported.

      Acknowledgement and the optional comment will be applied to the state identified with the EventId. If the comment field is NULL (both locale and text are empty) it will be ignored and any existing comments will remain unchanged. If the comment is to be reset, an empty text with a locale shall be provided.

      A valid EventId will result in an Event Notification where AckedState/Id is set to TRUE and the Comment Property contains the text of the optional comment argument. If a previous state is acknowledged, the BranchId and all Condition values of this branch will be reported.

      Parameters

      Returns void

    • Parameters

      Returns Promise<StatusCode>

    • helper to add a comment to a condition

      The addComment Method is used to apply a comment to a specific state of a Condition instance.

      Normally, the NodeId of the object instance as the ObjectId is passed to the Call Service.

      However, some Servers do not expose Condition instances in the AddressSpace. Therefore all Servers shall also allow Clients to call the AddComment Method by specifying ConditionId as the ObjectId.

      The Method cannot be called with an ObjectId of the ConditionType Node.

      • Comments are added to Event occurrences identified via an EventId. EventIds where the related EventType is not a ConditionType (or subtype of it) and thus does not support Comments are rejected.
      • A ConditionEvent – where the Comment Variable contains this text – will be sent for the identified state. If a comment is added to a previous state (i.e. a state for which the Server has created a branch), the BranchId and all Condition values of this branch will be reported/.

      Parameters

      Returns void

    • Parameters

      Returns Promise<StatusCode>

    • helper to confirm a condition

      from Spec 1.03 Part 9 : page 27 The Confirm Method is used to confirm an Event Notifications for a Condition instance state where ConfirmedState is FALSE.

      Normally, the NodeId of the object instance as the ObjectId is passed to the Call Service.

      However, some Servers do not expose Condition instances in the AddressSpace.

      Therefore all Servers shall also allow Clients to call the Confirm Method by specifying ConditionId as the ObjectId.

      The Method cannot be called with an ObjectId of the AcknowledgeableConditionType Node.

      Parameters

      Returns void

    • Parameters

      Returns Promise<StatusCode>

    • Returns void

    • Returns void

    • Parameters

      • nodeId: NodeIdLike

        the nodeId of the parent Object

      • methodName: string

        the method name

      • callback: ResponseCallback<NodeId>

        note:

        • methodName is a browse name and may therefore be prefixed with a namespace index.
        • if method is not found on the object specified by nodeId, then the findMethodId will recursively browse up the hierarchy of object typeDefinition Node until it reaches the root type. and try to find the first method that matches the provided name.

      Returns void

      use global findMethodId(session, nodeId, methodName): Promise instead

    • Parameters

      Returns Promise<NodeId>