How and when are substrates selected for type III secretion?

How and when are substrates selected for type III secretion?