I have a requirement where i need to update the status of an icon based on an
This is not that easy for some reasons:
With these constraints I think that you should design your application in a way, which is capable to avoid this dependency, mostyl for scalability reasons.
Do you need to update the icon asynchronously or on page load.
If it is on page load then you can read those node values using nodepath.json and update it.