# How to trigger flow when context value change

**URL:** <https://discourse.nodered.org/t/how-to-trigger-flow-when-context-value-change/62957>\
**Category:** General\
**Tags:** database, function-node\
**Created:** [23 May 2022 09:25 UTC](https://discourse.nodered.org/t/how-to-trigger-flow-when-context-value-change/62957 "2022-05-23T09:25:15Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [23 May 2022 10:07 UTC](https://discourse.nodered.org/t/how-to-trigger-flow-when-context-value-change/62957/3 "2022-05-23T10:07:39Z")

</div>

This post in this thread may help you

> [@Lighting controller ideas](https://discourse.nodered.org/t/lighting-controller-ideas/50876/19):
>
> Here you go... [{"id":"3984433f.b0374c","type":"function","z":"553814a2.1248ec","name":"Make Observable","func":"\n/\*\*\n\* make properties of `object` Observable\n\* @param {string} name key name to store `object` in `global` or `flow` context\n\* @param {object} object the object to make observable\n\*/\nfunction makeObservable(name, object) {\n let store = null;\n let nameParts = name.split(\".\");\n if(nameParts.length \< 2) {\n node.error(\"name must be global.xxx or flow.xxx\"…

---

_[View the full topic](https://discourse.nodered.org/t/how-to-trigger-flow-when-context-value-change/62957)._
