how to use global variables in flow services