AnsweredAssumed Answered

Unable to deploy webservice xml in Model workspace

Question asked by anbu on Dec 17, 2015
Latest reply on Dec 21, 2015 by vasile.dirla
Hi,

I'm trying to import below xml in model workspace to invoke webservice call and getting below error. Can anyone help, Is there any changes required in the xml or the way for making webservice call is incorrect??

12:39:17,193 [http-bio-8080-exec-7] ERROR org.activiti.bpmn.converter.BaseBpmnXMLConverter  - Error converting Input for webservice, invalid data type: setToRequestItem
12:39:17,194 [http-bio-8080-exec-7] ERROR org.activiti.bpmn.converter.BaseBpmnXMLConverter  - Error converting Input for webservice, invalid data type: setToRequestItem
Dec 17, 2015 12:39:17 PM com.vaadin.Application terminalError
SEVERE: Terminal error:
com.vaadin.event.ListenerMethod$MethodException: Invocation of method uploadFinished in org.activiti.explorer.ui.custom.ImportComponent failed.

Please find below the xml data for webservice. appreciate the response..

<?xml version="1.0" encoding="UTF-8" ?>
<definitions id="definitions"
   xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn"
   targetNamespace="org.activiti.enginge.impl.webservice" xmlns:tns="org.activiti.enginge.impl.webservice"
   xmlns:counter="http://webservice.activiti.org/">
<import importType="http://schemas.xmlsoap.org/wsdl/" location="http://localhost:63081/counter?wsdl"
      namespace="http://webservice.activiti.org/" />

   <process id="webServiceInvocationWithParametersFromTask">
      <dataObject id="dataInputOfProcess" name="Input for webservice" itemSubjectRef="tns:setToRequestItem"/>

      <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>

Attachments

Outcomes