Page 1 of 1

match trigger

Posted: 26 Sep 2014 13:24
by ttydylcy
can you add match for trigger?
example: trigger A AND trigger B is true, run action xx.

thx.

Re: match trigger

Posted: 26 Sep 2014 14:07
by Bushmills
I see a complication with this: a time domain component within which a trigger is considered as "has occured". As a trigger is not (necessarily) a lasting condition, and two triggers are extremely unlikely to occur at exactly the same time, either some time specification within which both triggers occurred is needed (you probably don't want your flow to execute because of one trigger issued now, and another trigger ANDed with happened to take place two days ago), or maybe a state machine, which resets if no state change has taken place for some time.

Re: match trigger

Posted: 26 Sep 2014 14:27
by kintrupf
ttydylcy wrote:can you add match for trigger?
example: trigger A AND trigger B is true, run action xx.
Use both triggers in a flow and connect the rest of the flow to them with a matching condition for trigger A and a matching condition for trigger B. This should effectively work likes two triggers combined with "AND".

Re: match trigger

Posted: 26 Sep 2014 20:26
by mcyber
kintrupf wrote:
ttydylcy wrote:can you add match for trigger?
example: trigger A AND trigger B is true, run action xx.
Use both triggers in a flow and connect the rest of the flow to them with a matching condition for trigger A and a matching condition for trigger B. This should effectively work likes two triggers combined with "AND".
This is it. Probably, if you want to compare two (or more) states you have to create two (or more) global variables, one for each state, and do the comparison against the variables.