hello.bpel

来自「ejb3 java session bean」· BPEL 代码 · 共 38 行

BPEL
38
字号
<?xml version="1.0" encoding="UTF-8"?><process name="HelloWorld" targetNamespace="http://jbpm.org/examples/hello"  xmlns:tns="http://jbpm.org/examples/hello"  xmlns:bpel="http://schemas.xmlsoap.org/ws/2003/03/business-process/"  xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">  <partnerLinks>    <!-- establishes the relationship with the caller agent -->    <partnerLink name="caller" partnerLinkType="tns:Greeter-Caller" myRole="Greeter" />  </partnerLinks>  <variables>    <!-- holds the incoming message -->    <variable name="request" messageType="tns:nameMessage" />    <!-- holds the outgoing message -->    <variable name="response" messageType="tns:greetingMessage" />  </variables>  <sequence name="MainSeq">    <!-- receive the name of a person -->    <receive name="ReceiveName" operation="sayHello" partnerLink="caller" portType="tns:Greeter"      variable="request" createInstance="yes" />    <!-- compose a greeting phrase -->    <assign name="ComposeGreeting">      <copy>        <from expression="concat('Hello, ', bpel:getVariableData('request', 'name'), '!')" />        <to variable="response" part="greeting" />      </copy>    </assign>    <!-- send greeting back to caller -->    <reply name="SendGreeting" operation="sayHello" partnerLink="caller" portType="tns:Greeter"      variable="response" />  </sequence></process>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?