def _get_next_activities(self):
    for activity_name in self.flow._out_edges[self.name]:
        activity = self.flow._get_activity_by_name(process=self.process, activity_name=activity_name)
        if activity.should_skip():
            for later_activity in activity._get_next_activities():
                (yield later_activity)
        else:
            (yield activity)
def _get_next_activities(self):
    for activity_name in self.flow._out_edges[self.name]:
        activity = self.flow._get_activity_by_name(process=self.process, activity_name=activity_name)
        if activity.should_skip():
            for later_activity in activity._get_next_activities():
                (yield later_activity)
        else:
            (yield activity)