<% if flow.is_a? Dynflow::Flows::Atom %> <% else %> <% flow.sub_flows.each do |sub_flow| %> <% end %> <% end %>
<%= erb :flow_step, locals: { flow: flow, step: step(flow.step_id) } %>
<%= erb :flow, locals: { flow: sub_flow } %>