use of com.axelor.apps.marketing.db.Campaign in project axelor-open-suite by axelor.
the class CampaignServiceImpl method generateAndSendMessage.
@Transactional(rollbackOn = { Exception.class })
protected void generateAndSendMessage(Campaign campaign, Model model, Template template) throws ClassNotFoundException, InstantiationException, IllegalAccessException, MessagingException, IOException, AxelorException, JSONException {
Message message = templateMessageMarketingService.generateAndSendMessage(model, template);
message.setRelatedTo1Select(Campaign.class.getCanonicalName());
message.setRelatedTo1SelectId(campaign.getId());
}
Aggregations