OPC UA Example Device: Setting Tag Quality

I am programming a Driver Module with the ignition SDK. I create UaFolder Nodes that contain my UaVariableNodes, i want to change the Quality of the tags manually to Bad/Good. Is there any existing way how i can implement this to my java code?

Quality is wrapped into the DataValue you set on the items.

thanks for you answer, so how do i set the Quality? with an StatusCode for my UaVariableNode? May you provide example code please?

I use the two-arg constructor shown here:


(You cannot set the quality on the node, I don't think. You just supply a new DataValue with the desired quality.)