提交 015e065f 编写于 作者: F falko.menge

ACT-119 Added example for a Web Service invocation with simplistic data flow

上级 990797d2
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:activiti="http://activiti.org/bpmn-extensions"
typeLanguage="http://www.w3.org/2001/XMLSchema"
expressionLanguage="http://java.sun.com/products/jsp/"
targetNamespace="http://www.activiti.org/bpmn2.0/examples/webServiceInvocationWithSimplisticDataFlow"
xmlns:tns="http://www.activiti.org/bpmn2.0/examples/webServiceInvocationWithSimplisticDataFlow"
xmlns:counter="http://webservice.activiti.org/">
<!--
XML Schema is used as type language for the model whereas the Java
Unified Expression Language serves as language for Expressions.
-->
<import importType="http://schemas.xmlsoap.org/wsdl/"
location="http://localhost:63081/counter?wsdl"
namespace="http://webservice.activiti.org/" />
<process id="webServiceInvocationWithSimplisticDataFlow">
<startEvent id="theStart" />
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="webService" />
<serviceTask id="webService"
name="Web service invocation"
implementation="##WebService"
operationRef="tns:prettyPrintCountOperation">
<!--
Warning: The following code abuses the syntax of Data Associations
for a radical shortcut.
-->
<dataInputAssociation>
<sourceRef>PrefixVariable</sourceRef><!-- name of an Activiti variable -->
<targetRef>prefix</targetRef><!-- name of an element of the input message -->
</dataInputAssociation>
<dataInputAssociation>
<sourceRef>SuffixVariable</sourceRef><!-- name of an Activiti variable -->
<targetRef>suffix</targetRef><!-- name of an element of the input message -->
</dataInputAssociation>
<dataOutputAssociation>
<sourceRef>prettyPrint</sourceRef><!-- name of an element of the output message -->
<targetRef>OutputVariable</targetRef><!-- name of an Activiti variable -->
</dataOutputAssociation>
</serviceTask>
<sequenceFlow id="flow2" sourceRef="webService" targetRef="waitState" />
<receiveTask id="waitState" />
<sequenceFlow id="flow3" sourceRef="waitState" targetRef="theEnd" />
<endEvent id="theEnd" />
</process>
<!-- Interface: implementationRef = QName of WSDL Port Type -->
<interface name="Counter Interface" implementationRef="counter:Counter">
<!-- Operation: implementationRef = QName of WSDL Operation -->
<operation id="prettyPrintCountOperation" name="prettyPrintCount Operation" implementationRef="counter:prettyPrintCount">
<inMessageRef>tns:prettyPrintCountRequestMessage</inMessageRef>
<outMessageRef>tns:prettyPrintCountResponseMessage</outMessageRef>
</operation>
</interface>
<message id="prettyPrintCountRequestMessage" itemRef="tns:prettyPrintCountRequestItem" />
<message id="prettyPrintCountResponseMessage" itemRef="tns:prettyPrintCountResponseItem" />
<itemDefinition id="prettyPrintCountRequestItem" structureRef="counter:prettyPrintCount" /><!-- QName of input element -->
<itemDefinition id="prettyPrintCountResponseItem" structureRef="counter:prettyPrintCountResponse" /><!-- QName of output element -->
</definitions>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册