public void AddAction(string actionName, string name, string url, PXPolicyResult policy) { Trace.TraceInformation("ADD ACTION " + actionName); PXActionContext context = new PXActionContext { Id = Guid.NewGuid().ToString(), CreatedAt = DateTimeOffset.Now, Name = name, Key = actionName, Url = url, FilenamePrefix = ReplaceInvalidChars(name), PolicyInfo = policy }; context.WorkingDictory = Storage.NewTemp(context); ActionM.AddAndStart(context); }
public void RetryAction(string id) { var context = Storage.GetAction(id); ActionM.AddAndStart(context); }