I good fit for your case is embedded subprocess with multiinstance (aka for each). So it will embedded C and D and process it as many times as needed based on input collection.
HTH
Reply to this message by going to Community
Start a new discussion in jBPM at Community