When a non-basic activity does not contain an immediate descendant that is a control activity, all of the activity's subactivities are considered active when the activity is active. For such a non-basic activity, the generated code will resemble the following: