/// <summary> /// accept all changes include sub-items /// </summary> /// <param name="acceptAll"></param> public void AcceptChanges(bool acceptAll) { base.AcceptChanges(); if (acceptAll) { // work Arguments?.AcceptChanges(); // steps Steps?.Select(x => { x.AcceptChanges(acceptAll); return(x); })?.ToList(); // flows Flows?.Select(x => { x.AcceptChanges(acceptAll); return(x); })?.ToList(); // groups Groups?.Select(x => { x.AcceptChanges(acceptAll); return(x); })?.ToList(); } }
/// <summary> /// accept all changes include sub-items /// </summary> /// <param name="acceptAll"></param> public void AcceptChanges(bool acceptAll) { base.AcceptChanges(); if (acceptAll) { // step Arguments?.AcceptChanges(); // executions PreActionResults?.Select(x => { x.AcceptChanges(acceptAll); return(x); }).ToList(); ActionResults?.Select(x => { x.AcceptChanges(acceptAll); return(x); }).ToList(); } }