As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<br> <serviceTask name="Call A" startQuantity="1" implementation="##WebService" operationRef="tns:requestA"><br> <ioSpecification><br> <dataInput itemSubjectRef="tns:RequestAItem" id="dataInputOfServiceTask" /><br> <dataOutput itemSubjectRef="tns:ResponseAItem" id="dataOutputOfServiceTask" /><br> <inputSet><br> <dataInputRefs>dataInputOfServiceTask</dataInputRefs><br> </inputSet><br> <outputSet><br> <dataOutputRefs>dataOutputOfServiceTask</dataOutputRefs><br> </outputSet><br> </ioSpecification><br> <dataInputAssociation><br> <sourceRef>???</sourceRef><br> <targetRef>dataInputOfServiceTask</targetRef><br> <assignment><br> <from>${someProcessProperty}</from><br> <to>${dataInputOfServiceTask.value}</to><br> </assignment><br> </dataInputAssociation><br> <dataOutputAssociation><br> <targetRef>???</targetRef><br> <transformation>${dataOutputOfServiceTask.response}</transformation><br> </dataOutputAssociation><br> </serviceTask><br>
<br>…<br> <process id="asyncWebServiceInvocationWithDataFlowUEL"><br> <!–<br> The Data Inputs and Outputs of a Process have to be explicitly<br> declared with their type to be valid BPMN 2.0<br> –><br> <ioSpecification><br> <dataInput id="dataInputOfProcess" itemSubjectRef="tns:setToRequestItem" /><br> <inputSet><br> <dataInputRefs>dataInputOfProcess</dataInputRefs><br> </inputSet><br> <outputSet /><br> </ioSpecification><br> …<br> <serviceTask id="webService"<br> name="Call WS"<br> implementation="##WebService"<br> operationRef="tns:setToOperation"><br> <!– The BPMN 2.0 Meta Model requires an Input/Output Specification –><br> <ioSpecification><br> <dataInput itemSubjectRef="tns:setToRequestItem" id="dataInputOfServiceTask" /><br> <inputSet><br> <dataInputRefs>dataInputOfServiceTask</dataInputRefs><br> </inputSet><br> <outputSet /><br> </ioSpecification><br> <dataInputAssociation><br> <sourceRef>dataInputOfProcess</sourceRef><br> <targetRef>dataInputOfServiceTask</targetRef><br> <assignment><br> <from>${dataInputOfProcess.newCounterValue}</from><br> <to>${dataInputOfServiceTask.value}</to><br> </assignment><br> </dataInputAssociation><br> </serviceTask><br> …<br> </process><br>…<br>
<br><?xml version="1.0" encoding="UTF-8"?><br><definitions id="definitions"<br> xmlns="<a href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer">http://www.omg.org/spec/BPMN/20100524/MODEL</a>" xmlns:activiti="<a href="http://activiti.org/bpmn" rel="nofollow noopener noreferrer">http://activiti.org/bpmn</a>"<br> targetNamespace="org.activiti.enginge.impl.webservice" xmlns:tns="org.activiti.enginge.impl.webservice"<br> xmlns:counter="<a href="http://webservice.activiti.org/" rel="nofollow noopener noreferrer">http://webservice.activiti.org/</a>"><br><br> <import importType="<a href="http://schemas.xmlsoap.org/wsdl/" rel="nofollow noopener noreferrer">http://schemas.xmlsoap.org/wsdl/</a>" location="<a href="http://localhost:63081/counter?wsdl" rel="nofollow noopener noreferrer">http://localhost:63081/counter?wsdl</a>"<br> namespace="<a href="http://webservice.activiti.org/" rel="nofollow noopener noreferrer">http://webservice.activiti.org/</a>" /><br><br> <process id="webServiceInvocationWithParametersFromTask"><br> <dataObject id="dataInputOfProcess" name="Input for webservice" itemSubjectRef="tns:setToRequestItem"/><br><br> <startEvent id="theStart" /><br><br> <sequenceFlow id="flow1" sourceRef="theStart" targetRef="theScriptTask" /><br><br> <scriptTask id="theScriptTask" scriptFormat="groovy" name="Execute script"><br> <script><br> def scriptVar = "10"<br> execution.setVariable("dataInputOfProcess", scriptVar)<br> </script><br> </scriptTask><br><br> <sequenceFlow id="flow1a" sourceRef="theScriptTask" targetRef="webService" /><br><br> <serviceTask id="webService" name="Call WS"<br> implementation="##WebService" operationRef="tns:setToOperation"><br> <!– The BPMN 2.0 Meta Model requires an Input/Output Specification –><br> <ioSpecification><br> <dataInput itemSubjectRef="tns:setToRequestItem" id="dataInputOfServiceTask" /><br> <inputSet><br> <dataInputRefs>dataInputOfServiceTask</dataInputRefs><br> </inputSet><br> <outputSet /><br> </ioSpecification><br> <dataInputAssociation><br> <sourceRef>dataInputOfProcess</sourceRef><br> <targetRef>dataInputOfServiceTask</targetRef><br> <assignment><br> <from>${dataInputOfProcess}</from><br> <to>${dataInputOfServiceTask.value}</to><br> </assignment><br> </dataInputAssociation><br> </serviceTask><br><br> <sequenceFlow id="flow2" sourceRef="webService"<br> targetRef="waitState" /><br><br> <receiveTask id="waitState" /><br><br> <sequenceFlow id="flow3" sourceRef="waitState" targetRef="theEnd" /><br><br> <endEvent id="theEnd" /><br><br> </process><br> <!– Interface: implementationRef = QName of WSDL Port Type –><br> <interface name="Counter Interface" implementationRef="counter:Counter"><br> <!– Operation: implementationRef = QName of WSDL Operation –><br> <operation id="setToOperation" name="setTo Operation"<br> implementationRef="counter:setTo"><br> <inMessageRef>tns:setToRequestMessage</inMessageRef><br> </operation><br> </interface><br> <message id="setToRequestMessage" itemRef="tns:setToRequestItem" /><br> <itemDefinition id="setToRequestItem" structureRef="counter:setTo" /><!– <br> QName of input element –><br></definitions><br>