I have an app where people perform tasks at different stations.
In the list of stations that they perform tasks at, I want to see how many times do they need to switch the station in a day.
So for example if the list is
a,a,a,b,b,b,a,c,c,a,a,b,b
I want
a,b,a,c,a,b
So that I can see they have switched station 5 times in a day. And also I can analyse from where to where the movements are happening etc.
Any ideas how to achieve this? (Preferably not via recursive API workflow, but rather something that can be done right away (custom event) and with minimal WUs)
Also, I want to achieve this in backend.