public void Process(string symbols) { var entity = new ProcessData { GroupName = GroupName, ActivityName = ActivityName }; foreach (var key in _propertyDic.Keys) { var result = Regex.Match(symbols, _propertyDic[key]); if (result.Success) { entity.ParameterDic.Add(key, result.Value); } } _documentContext.EnQueue(entity); }