Esempio n. 1
0
        public bool ResumeProcess(string processId, string comment)
        {
            bool result = true;

            try
            {
                var pim = new ProcessInstanceManager(_dataAccessor, _loggerFactory);
                pim.Resume(processId);
                var tam = new TaskAdviceManager(_dataAccessor, _applicationContext, _loggerFactory);
                tam.RecordWhenResume(processId, comment);
            }
            catch (Exception ex)
            {
                _logger.LogError(ex.Message);
                result = false;
            }
            return(result);
        }
Esempio n. 2
0
        public bool ResumeProcess(string processId, string comment)
        {
            bool result = true;

            try
            {
                var pim = new ProcessInstanceManager(_serviceProvider);
                pim.Resume(processId);
                var tam = new TaskAdviceManager(_serviceProvider);
                tam.RecordWhenResume(processId, comment);
            }
            catch (Exception ex)
            {
                _logger.LogError(ex.Message);
                result = false;
            }
            return(result);
        }