public ProcessFailedError GetFailError() { var res = new ProcessFailedError(this); res.Data["process_name"] = ToString(); try { XmlDocument doc = XmlTool.CreateDocument("Job"); m_job.Root.SaveToXml(doc.DocumentElement); XmlTool.RemovePasswords(doc.DocumentElement); res.Data["job_definition"] = doc.OuterXml; } catch { } return(res); }