04-07-2013 03:21 PM
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:activiti="http://activiti.org/bpmn"
targetNamespace="org.activiti.enginge.impl.webservice"
xmlns:tns="org.activiti.enginge.impl.webservice"
xmlns:counter="http://webservice.impl.engine.activiti.org/">
<import importType="http://schemas.xmlsoap.org/wsdl/"
location="http://localhost:8080/axis2/services/Counter?wsdl"
namespace="http://webservice.impl.engine.activiti.org/" />
<process id="Parameters_test">
<dataObject id="dataInputOfProcess" name="Input for webservice" itemSubjectRef="xs:int"/>
<startEvent id="theStart" />
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="theScriptTask" />
<scriptTask id="theScriptTask" scriptFormat="groovy" name="Execute script">
<script>
def scriptVar = "10"
execution.setVariable("dataInputOfProcess", scriptVar)
</script>
</scriptTask>
<sequenceFlow id="flow1a" sourceRef="theScriptTask" targetRef="webService" />
<serviceTask id="webService" name="Call WS"
implementation="##WebService" operationRef="tns:setToOperation">
<!– The BPMN 2.0 Meta Model requires an Input/Output Specification –>
<ioSpecification>
<dataInput itemSubjectRef="tns:setToRequestItem" id="dataInputOfServiceTask" />
<inputSet>
<dataInputRefs>dataInputOfServiceTask</dataInputRefs>
</inputSet>
<outputSet />
</ioSpecification>
<dataInputAssociation>
<sourceRef>dataInputOfProcess</sourceRef>
<targetRef>dataInputOfServiceTask</targetRef>
<assignment>
<from>${dataInputOfProcess}</from>
<to>${dataInputOfServiceTask.value}</to>
</assignment>
</dataInputAssociation>
</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="setToOperation" name="setTo Operation"
implementationRef="counter:setTo">
<inMessageRef>tns:setToRequestMessage</inMessageRef>
</operation>
</interface>
<message id="setToRequestMessage" itemRef="tns:setToRequestItem" />
<itemDefinition id="setToRequestItem" structureRef="counter:setTo" /><!–
QName of input element –>
</definitions>
04-09-2013 10:54 AM
04-10-2013 04:21 AM
…
<xs:complexType name="setTo">
<xs:sequence>
<xs:element name="value" type="xs:int"/>
</xs:sequence>
</xs:complexType>
…
04-18-2013 04:47 AM
04-18-2013 07:55 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.