<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def do_action_to_descendants(analysis_request, transition_id):
 """Cascades the transition passed in to the descendant partitions """

    for partition in analysis_request.getDescendants(all_descendants=False):
        do_action_for(partition, transition_id)