我正在尝试通过属性过滤事件,但是它不起作用。但是,如果我按值过滤它,则可以正常工作。有什么方法可以通过configPlan文件中定义的值来过滤我的事件?
我正在尝试这样做:
那行不通:
<business-events>
<subscribe xmlns:sub1="http://www.vxxxxxx/events/edl/xxx"
name="sub1:UxxxxxxxxEvent" consistency="oneAndOnlyOne"
runAsRoles="$publisher">
<filter>
<xpath xmlns:co="http://www.vxxxxxx/schema/xxx/Common"
xmlns:tns="http://www.vxxxxxx/schema/xxx/Uxxx"
xmlns:be="http://oracle.com/fabric/businessEvent"
expression='/be:business-event/be:content/tns:Uxxxxxxx_v1.0/@enviroment = ora:getPreference('enviroment')'/>
</filter>
</subscribe>
有效:
<business-events>
<subscribe xmlns:sub1="http://www.vxxxxxx/events/edl/xxx"
name="sub1:UxxxxxxxxEvent" consistency="oneAndOnlyOne"
runAsRoles="$publisher">
<filter>
<xpath xmlns:co="http://www.vxxxxxx/schema/xxx/Common"
xmlns:tns="http://www.vxxxxxx/schema/xxx/Uxxx"
xmlns:be="http://oracle.com/fabric/businessEvent"
expression="/be:business-event/be:content/tns:Uxxxxxxx_v1.0/@enviroment = 'TEST'"/>
</filter>
</subscribe>
坦克。