使用“onEvent”进行 Oracle BPEL 事件处理活动和商务活动
我正在尝试使用 bpel 扩展在 soa suite 11g ps3 下进行事件处理。我正在尝试从事件传递网络订阅事件,但收到错误。
这就是代码:
<eventHandlers>
<onEvent bpelx:eventName="ns4:discountEvent" variable="discEvent" >
<scope name="Scope1">
<sequence name="Sequence1">
<exit name="Exit1"/>
</sequence>
</scope>
</onEvent>
</eventHandlers>
编译器给出以下错误:
Error(52): Activity <bpel:onEvent> must have "element", "messageType" attribute present.
我找不到有关在“onEvent”活动中使用扩展的任何信息。
任何帮助表示赞赏!
谢谢,克里斯
I'm trying to use the bpel extension for eventhandling under the soa suite 11g ps3. I'm trying to subscribe to an event from the event delivery network but I get an error.
That's the code:
<eventHandlers>
<onEvent bpelx:eventName="ns4:discountEvent" variable="discEvent" >
<scope name="Scope1">
<sequence name="Sequence1">
<exit name="Exit1"/>
</sequence>
</scope>
</onEvent>
</eventHandlers>
The compiler is giving me the following error:
Error(52): Activity <bpel:onEvent> must have "element", "messageType" attribute present.
I can't find any information on using the extension in an "onEvent" activity.
Any help appreciated!
Thanks, Chris
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事件处理程序的工作方式与其他交互活动略有不同。当接收、调用等操作先前定义的变量时,事件处理程序定义自己的变量,该变量在 onEvent 的子活动范围内可见。为了给这个变量一个类型,需要将 messageType 或元素标识为该变量的声明类型。这就是需要 element 或 messageType 的原因。
请在下面找到 BPEL 2.0 规范的相关引用:
Event handlers work slightly different than other interaction activities. While receive, invoke etc. work on previously defined variables, the event handler defines its own variable which is visible in the scope of the onEvent's child activity. In order to give this variable a type, either a messageType or an element needs to be identified to be the declared type of the variable. This is why element or messageType is needed.
Please find below the related quote of the BPEL 2.0 spec: