[prototype] Added generic flow concept (does not compile)