public string GetRuleDefinition(JObject ruleName)
        {
            string ruleNameStr = ruleName.ToObject <Name>().name;

            if (NullString(ruleNameStr))
            {
                return("false");
            }
            Rule rule = RulesManager.GetRuleByName(ruleNameStr).Value;

            RuleDefinition ruleDefinition = new RuleDefinition()
            {
                entityName    = rule.EntityName,
                priority      = rule.Priority,
                ruleName      = rule.RuleName,
                ruleCondition = rule.RuleCondition,
                ruleGroup     = rule.RuleGroup
            };

            ruleDefinition.ruleExecution = new List <RuleExecutionDefinition>();
            foreach (var ruleExecution in rule.RuleExecution)
            {
                ruleDefinition.ruleExecution.Add(new RuleExecutionDefinition()
                {
                    propertyName = ruleExecution.PropertyName,
                    execution    = ruleExecution.Execution,
                    order        = ruleExecution.Order
                });
            }

            return(JsonConvert.SerializeObject(ruleDefinition));
        }