Materialized workflow definitions

resp.states=new ArrayList<>(states.values());
sort(rest.states);