generator supports transitions from sub-diagrams