📄 onalarm-1.bpel
字号:
<?xml version="1.0"?><!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more contributor license agreements. See the NOTICE file ~ distributed with this work for additional information ~ regarding copyright ownership. The ASF licenses this file ~ to you under the Apache License, Version 2.0 (the ~ "License"); you may not use this file except in compliance ~ with the License. You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, ~ software distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the License for the ~ specific language governing permissions and limitations ~ under the License. --><!--Test the onAlarm functionality of eventHandlers--><bp11:process xmlns:bp11="http://schemas.xmlsoap.org/ws/2003/03/business-process/" name="onalarm-1-1.1" targetNamespace="http://www.fivesight.com/tests/1.1/eventHandlers/onalarm-1-1.1" xmlns:test="http://ode/bpel/unit-test.wsdl"> <bp11:partnerLinks> <bp11:partnerLink name="testPartnerLink" partnerLinkType="test:TestPartnerLinkType" myRole="me" /> </bp11:partnerLinks> <bp11:variables> <bp11:variable name="v" messageType="test:TestMessage" /> </bp11:variables> <bp11:eventHandlers> <bp11:onAlarm for="'PT1S'"> <bp11:assign> <bp11:copy> <bp11:from expression="'pass'" /> <bp11:to variable="v" part="TestPart" /> </bp11:copy> </bp11:assign> </bp11:onAlarm> </bp11:eventHandlers> <bp11:sequence> <bp11:receive partnerLink="testPartnerLink" createInstance="yes" portType="test:TestPortType" operation="testOperation" variable="v" /> <bp11:assign> <bp11:copy> <bp11:from expression="'fail'" /> <bp11:to variable="v" part="TestPart" /> </bp11:copy> </bp11:assign> <bp11:wait for="'PT10S'" /> <bp11:reply partnerLink="testPartnerLink" portType="test:TestPortType" operation="testOperation" variable="v" /> </bp11:sequence></bp11:process>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -