When triggers interrupt flows does chaos result?
Posted: 04 Jun 2019 20:02
I am getting very confused about the sequence of events in several flows running at the same time. Here is my (simple?) example:
TriggerONE is initiated and its task is to turn on NFC. This NFC flow runs for a few milliseconds and is interrupted by TriggerTWO which is supposed to turn NFC off. From the logs, it appears that although the second NFC task runs to completion, the first NFC task ends after the second task has already finished.
I am sorry that this sounds so confusing, but it has me screaming in frustration.
Here is a second and related question that arose from trying to fix the first question. In both TriggerONE and TriggerTWO, I tried to use Execute Flows to run the two NFC flows. I checked the “wait for called flows to finish” box in each Execute Flows options. It did not seem to make any difference compared to just running the flow itself. If checking the box does not force the other flows to wait, what does it actually do? I do not see any difference between Execute Flows and just running the flow itself.
Here are my questions: Why does the first flow end after the second has ended? Why doesn’t “wait” work the way I expect it to? How can I fix this?
TriggerONE is initiated and its task is to turn on NFC. This NFC flow runs for a few milliseconds and is interrupted by TriggerTWO which is supposed to turn NFC off. From the logs, it appears that although the second NFC task runs to completion, the first NFC task ends after the second task has already finished.
I am sorry that this sounds so confusing, but it has me screaming in frustration.
Here is a second and related question that arose from trying to fix the first question. In both TriggerONE and TriggerTWO, I tried to use Execute Flows to run the two NFC flows. I checked the “wait for called flows to finish” box in each Execute Flows options. It did not seem to make any difference compared to just running the flow itself. If checking the box does not force the other flows to wait, what does it actually do? I do not see any difference between Execute Flows and just running the flow itself.
Here are my questions: Why does the first flow end after the second has ended? Why doesn’t “wait” work the way I expect it to? How can I fix this?