问题描述
版本5.0.21.6引入了对规则XML内容的重大更改。
在版本5.0.20.6中,方法通过XML文件中的名称进行引用,如下所示:
<method name="AddReason"><value type="system.int32">1</value></method>
但是在5.0.21.6版中,方法由“令牌”引用,如下所示:
<method name="1064B76D73CE9F304CA588DF55C65438"><value type="system.int32">1</value></method>
我们确实使用XML文档来进一步验证用户提供的规则,由于此问题,v5.0.21.6破坏了我们的功能。
完整的v5.0.21.6规则XML:
<?xml version="1.0" encoding="utf-8"?>
<codeeffects xmlns="https://codeeffects.com/schemas/rule/41"
xmlns:ui="https://codeeffects.com/schemas/ui/4">
<rule id="c11fc9b9-f60b-4b50-ac65-f46fb5c21471" webrule="5.0.21.2" utc="2020-08-11T18:42:06.3444" type="RuleModel.PermissibilityRuleModel,Rules.CodeEffects,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null" eval="false">
<name>__rule_name__</name>
<deFinition>
<if>
<clause>
<or>
<and ui:block="true">
<condition type="equal">
<property name="PortfolioType" />
<value type="numeric">1</value>
</condition>
<condition type="equal">
<property name="IndependenceRestrictionStandard" />
<value type="numeric">1</value>
</condition>
</and>
<condition type="equal">
<property name="IndependenceRestrictionStandard" />
<value type="numeric">1</value>
</condition>
</or>
</clause>
<then>
<set>
<property name="PermissibilityStatus" />
<value type="numeric">1</value>
</set>
<method name="1064B76D73CE9F304CA588DF55C65438">
<value type="system.int32">1</value>
</method>
</then>
<else>
<if>
<clause>
<condition type="equal">
<property name="IndependenceRestrictionStandard" />
<value type="numeric">1</value>
</condition>
</clause>
<then>
<method name="23434FBDF0B4243BC14729C5D1539E7D">
<value type="system.int32">1</value>
</method>
</then>
<else>
<set>
<property name="PermissibilityStatus" />
<value type="numeric">1</value>
</set>
<method name="1064B76D73CE9F304CA588DF55C65438">
<value type="system.int32">1</value>
</method>
</else>
</if>
</else>
</if>
</deFinition>
<format>
<lines>
<line index="0" tabs="1" />
<line index="3" tabs="2" />
<line index="9" tabs="2" />
<line index="16" tabs="1" />
<line index="19" tabs="1" />
<line index="25" tabs="1" />
<line index="28" tabs="2" />
<line index="35" tabs="2" />
<line index="42" tabs="0" />
<line index="44" tabs="1" />
<line index="49" tabs="1" />
<line index="52" tabs="2" />
<line index="58" tabs="0" />
<line index="60" tabs="1" />
<line index="66" tabs="1" />
</lines>
</format>
</rule>
</codeeffects>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)