How to change node's state

 

Hi all.
I have written a node-extension. Everything seems to work, but there is one thing still bothering me. I want my node to automatically change its state (to IDLE), whenever an input connection is changed, but I don't know how to access this attribute.
Does anyone have any suggestions how to do it?
 
I would be thankful for any advice.
Marta

Whenever the input data changes or the node gets a new input connection, the corresponding #configure method in the NodeModel is called. If this method runs through, the node will be configured (yellow), if you want the node to fall into the not-cofigured state (I hope that is what you meant with IDLE), you will need to throw a InvalidSettingsException during #configure. Hope this helps?

That was exactly what I meant. I changed my #configure method and everything works now.

Thank you very much!