In Code Effects, you can't just type a new list of strings directly in a method as param. You need to populate that list in your rule first and then pass it to the action method. Something like this:
public class Test
{
public Test()
{
this.EmailList = new List<string>();
}
public List<string> ListEmail { private get; set; }
public void AddEmail(string email)
{
if(string.IsNullOrEmpty(email)) return;
this.ListEmail.Add(email);
}
public void SendEmail(CaseRequest caserequest, List<string> emails)
{
// Do your thing here...
}
}
This allows you to create the following rule:
If
Something equals to True
then
AddEmail("[email protected]") and
AddEmail("[email protected]") and
SendEmail(yourEnum, ListEmail)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…