Calendar Event trigger logic
Posted: 27 Apr 2015 07:31
Is there a way to make this deal with overlapping events? At the moment it triggers at the end of event even when another event is still in progress (in parallel).
It would be good to have an option to 'merge' events as far as the trigger is concerned, so overlapping events appear to the trigger as one big event. Or, alternatively, to have a condition for 'Event in progress' so I could prevent an 'end of event action' taking place if the trigger fires when there is another overlapping event still in progress (in the same or another calendar). Or have a new variable as part of the calendar event trigger which was the total number of event's "active" at the time of the trigger...
------
Example use case
- I'm out with friends from 1pm to 8pm and set an event for that.
- We go to the cinema from 2pm to 4pm, and I've received and accepted an event invite for that too.
I have a flow for setting my phone to Priority interruptions whilst I'm busy, and return to All interruptions after.
As it stands, the end of event trigger fires at the end of the film at 4pm and my phone goes to All interruptions whilst I'm still busy with my friends
------
I guess an alternative would be to use a global variable to count (increment/decrement) the current number of concurrent events based on individual event starts and event ends triggers. And then a flow to test when it's >0 or 0? Seems a bit kludgy though, and prone to error if events are added or removed during the event duration.
It would be good to have an option to 'merge' events as far as the trigger is concerned, so overlapping events appear to the trigger as one big event. Or, alternatively, to have a condition for 'Event in progress' so I could prevent an 'end of event action' taking place if the trigger fires when there is another overlapping event still in progress (in the same or another calendar). Or have a new variable as part of the calendar event trigger which was the total number of event's "active" at the time of the trigger...
------
Example use case
- I'm out with friends from 1pm to 8pm and set an event for that.
- We go to the cinema from 2pm to 4pm, and I've received and accepted an event invite for that too.
I have a flow for setting my phone to Priority interruptions whilst I'm busy, and return to All interruptions after.
As it stands, the end of event trigger fires at the end of the film at 4pm and my phone goes to All interruptions whilst I'm still busy with my friends
------
I guess an alternative would be to use a global variable to count (increment/decrement) the current number of concurrent events based on individual event starts and event ends triggers. And then a flow to test when it's >0 or 0? Seems a bit kludgy though, and prone to error if events are added or removed during the event duration.
