Shwetha, consider use activity notifications with events...that is, associate events to the activity notifications. And in the
events, you can specify the conditions like "if this do abc otherwise do xyz" logic and in the action of the event, use multiple notification type action to send emails. Activity notifications(like initial, abandon, close etc) will be triggers and
the conditions in the events will control when and what actions. If your logic is not configurable this way, think about using some spel code to implement. Thanks _Chi