public override void Run(RunCustomActionParams args)
        {
            var log = new StringBuilder();

            try
            {
                var status = args.Context.CurrentDocument.GetFieldValue(Configuration.StatusFildId)?.ToString();
                if (!string.IsNullOrEmpty(status) && status.Equals(SuccessStatus, StringComparison.InvariantCultureIgnoreCase))
                {
                    var docId           = args.Context.CurrentDocument.GetFieldValue(Configuration.DokFildId)?.ToString();
                    var api             = new AutentiHelper(log);
                    var responseContent = api.GetDocument(Configuration.ApiConfig.TokenValue, docId);
                    SaveAtt(args.Context.CurrentDocument, responseContent);
                }
                else
                {
                    args.HasErrors = true;
                    args.Message   = "Document cannot be a saved if it is not signed";
                }
            }
            catch (Exception e)
            {
                args.HasErrors = true;
                args.Message   = e.Message;
                log.AppendLine(e.ToString());
            }
            finally
            {
                args.LogMessage = log.ToString();
                args.Context.PluginLogger.AppendInfo(log.ToString());
            }
        }