从v5.0.20.6升级到v5.0.21.6后,方法名称将替换为XML文档中的标记

如何解决从v5.0.20.6升级到v5.0.21.6后,方法名称将替换为XML文档中的标记

版本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 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?
Java在半透明框架/面板/组件上重新绘画。
Java“ Class.forName()”和“ Class.forName()。newInstance()”之间有什么区别?
在此环境中不提供编译器。也许是在JRE而不是JDK上运行?
Java用相同的方法在一个类中实现两个接口。哪种接口方法被覆盖?
Java 什么是Runtime.getRuntime()。totalMemory()和freeMemory()?
java.library.path中的java.lang.UnsatisfiedLinkError否*****。dll
JavaFX“位置是必需的。” 即使在同一包装中
Java 导入两个具有相同名称的类。怎么处理?
Java 是否应该在HttpServletResponse.getOutputStream()/。getWriter()上调用.close()?
Java RegEx元字符(。)和普通点?