protected override void InitActivityConfiguration() { AddActivities(new ActivityEngine()); AddActivities(new ActivityEngine(REQUESTOR_REWORKED)); ActivityList.Each(p => { AddActivities(new ActivityEngine(p)); }); AddActivities(new ActivityEngine(() => { IEnumerable <string> ccList = null; string subject = string.Empty; if (RequestHeader != null) { ccList = requestHeaderRepository.GetMTFEmailNotification(RequestHeader.Id); subject = _treatmentRepository.GetSubjectEmail(RequestHeader.Id); } return(CreateEmailData("MODIFICATION", ccList, subject)); }, new FormDataProcessing() { IsAddNewRequestHeader = false, IsEditPriority = false, IsEditRequestor = false, IsSaveActivityHistory = true, IsUpdateLastActivity = true, IsSaveRequestData = true, IsSaveAttachments = true, TriggerWorkflow = false })); }
protected override void InitActivityConfiguration() { AddActivities(new ActivityEngine()); ActivityList.Each(p => { AddActivities(new ActivityEngine(p)); }); AddActivities(new ActivityEngine(() => { return(CreateEmailData("MODIFICATION")); })); }
protected override void InitActivityConfiguration() { AddActivities(new ActivityEngine()); ActivityList.Each(p => { if (p.Name.IsCaseInsensitiveEqual("repair")) { AddActivities(new ActivityEngine(p, () => { return(GetEmailData("ITIRF_REPAIR_GROUP")); })); } else { AddActivities(new ActivityEngine(p)); } }); }
protected override void InitActivityConfiguration() { AddActivities(new ActivityEngine()); AddActivities(new ActivityEngine(REQUESTOR_REWORKED)); ActivityList.Each(p => { AddActivities(new ActivityEngine(p)); }); AddActivities(new ActivityEngine(() => { return(CreateEmailData("MODIFICATION")); }, new FormDataProcessing() { IsAddNewRequestHeader = false, IsEditPriority = false, IsEditRequestor = false, IsSaveActivityHistory = true, IsUpdateLastActivity = true, IsSaveRequestData = true, IsSaveAttachments = true, TriggerWorkflow = false })); }