[#81992814] Flow manager fixes and optimizations

new flow options are determined by available role flows  
flow query determines the tasks for the flows

--
ASB CT