I am using Web Forms for Marketers 8.2.rev. 170518
I have made a save action that does nothing except throwing an exception. This is my first save action:
public class FailAction : ISaveAction
{
public ID ActionID { get; set; }
public ActionType ActionType { get; set; }
public string UniqueKey { get; set; }
public ActionState QueryState(ActionQueryContext queryContext)
{
return ActionState.Enabled;
}
public void Execute(ID formId, AdaptedResultList adaptedFields, ActionCallContext actionCallContext = null, params object[] data)
{
throw new Exception("Fail Action has failed", null);
}
}
But now the other Save Actions are executed as well, like sending email etc.
What can I do to prevent the other save actions to be executed if a previous save actions fail? Or do I need more than just an exception to make a save action "fail"?
Regards