Page 1 of 1
Flow state changed trigger
Posted: 18 Aug 2013 21:02
by jimox
I would like to be able to execute a script when a trigger changes from enabled to disabled (or the other way).
Re: Flow state changed trigger
Posted: 18 Aug 2013 21:04
by jimox
It would be really cool if there was a way to get the name of the flow when the state changed. Because then you could have one flow state changed trigger monitor multiple flows and have conditional logic based on which one changed.
Re: Flow state changed trigger
Posted: 12 Sep 2013 22:35
by auto_wiz
In each of the flows you want to monitor add a script to assign the name of the active flow to a global variable like global_flowname.
You can than have another flow with the trigger "Global Variable" which will initiate each time global_flowname changed. In this flow you can read the variable to find which flow triggered it.
You may need to add a time stamp of some kind when you set the value of the variable because the second flow won't trigger if the value assigned is the same as it's previous value ie when a flow executes twice in a row.