'Update the `node.processing_state` to reflect the widget state.'

def __update_node_processing_state(self, node):

    state = self.node_processing_state(node)
    node.set_processing_state((1 if state else 0))
