[jboss-user] [JBoss jBPM] - Re: Error generate-service

ZazzaZ do-not-reply at jboss.com
Thu Oct 25 04:10:28 EDT 2007


A correct (I mean with respect with jbpm-bpel implementation) bpel is 


  | 
  | <?xml version="1.0" encoding="UTF-8"?>
  | <process name="Login" targetNamespace="http://j2ee.netbeans.org/wsdl/Login"
  |   xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
  |   xmlns:bpel="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
  |   xmlns:tns="http://j2ee.netbeans.org/wsdl/Login"
  |   xmlns:coac="http://j2ee.netbeans.org/wsdl/ControlloAccesso" xmlns:sch="http://xml.netbeans.org/schema/LoginTypes"
  |   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  |   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |   xsi:schemaLocation="http://schemas.xmlsoap.org/ws/2003/03/business-process/
  |       http://schemas.xmlsoap.org/ws/2003/03/business-process/">
  | 
  |   <partnerLinks>
  | 
  |     <!-- relationship with the ticket issuer -->
  |     <partnerLink name="rec" partnerLinkType="tns:loginPLT"
  |       myRole="loginRole" />
  | 
  |     <!-- relationship with the ATM -->
  |      <partnerLink name="ca" partnerLinkType="tns:CAPLT" partnerRole="ProcessRole" /> 
  | 
  |   </partnerLinks>
  | 
  |   <variables>
  |     <!-- ATM connection request -->
  |     <variable name="lor" messageType="tns:loginoprep" />
  |     <!-- ticket creation request -->
  |     <variable name="cao" messageType="coac:ControlloAccessoOperationReply" /> 
  |     <!-- ticket number wrapper -->
  |     <variable name="cai" messageType="coac:ControlloAccessoOperationRequest" /> 
  |     <!-- ATM connection flag -->
  |     <variable name="cr" messageType="tns:loginopreq" />
  | 
  |     <variable name="temp" type="sch:Identificato" />
  | 
  |   </variables>
  | 
  | 
  |   <sequence>
  | 
  |     <!-- receive a connection request -->
  |     <receive operation="loginop" partnerLink="rec"
  |       portType="tns:loginPT" variable="cr" createInstance="yes" />
  | 
  |     <assign>
  | 		
  | 	<copy>
  | 		<from expression="bpel:getVariableData('cr', 'inRequest')"/>
  | 		<to variable="lor" part="outResponse" query="/outResponse/sch:Esito" />
  | 	</copy>
  | 
  |     </assign>
  | 
  |     <!-- send the ticket number back to the ATM -->
  |     <reply operation="loginop" partnerLink="rec"
  |       portType="tns:loginPT" variable="lor"/>
  | 
  |   </sequence>
  | 
  | </process>
  | 
  | 

while this one is not accepted by service generator


  | 
  | <?xml version="1.0" encoding="UTF-8"?>
  | <process name="Login" targetNamespace="http://j2ee.netbeans.org/wsdl/Login"
  |   xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
  |   xmlns:bpel="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
  |   xmlns:ns1="http://j2ee.netbeans.org/wsdl/Login"
  |   xmlns:ns2="http://j2ee.netbeans.org/wsdl/ControlloAccesso" xmlns:ns3="http://xml.netbeans.org/schema/LoginTypes"
  |   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  |   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |   xsi:schemaLocation="http://schemas.xmlsoap.org/ws/2003/03/business-process/
  |       http://schemas.xmlsoap.org/ws/2003/03/business-process/">
  | 
  |   <partnerLinks>
  | 
  |     <!-- relationship with the ticket issuer -->
  |     <partnerLink name="rec" partnerLinkType="ns1:loginPLT"
  |       myRole="loginRole" />
  | 
  |     <!-- relationship with the ATM -->
  |      <partnerLink name="ca" partnerLinkType="ns1:CAPLT" partnerRole="ProcessRole" /> 
  | 
  |   </partnerLinks>
  | 
  |   <variables>
  |     <!-- ATM connection request -->
  |     <variable name="lor" messageType="ns1:loginoprep" />
  |     <!-- ticket creation request -->
  |     <variable name="cao" messageType="ns2:ControlloAccessoOperationReply" /> 
  |     <!-- ticket number wrapper -->
  |     <variable name="cai" messageType="ns2:ControlloAccessoOperationRequest" /> 
  |     <!-- ATM connection flag -->
  |     <variable name="cr" messageType="ns1:loginopreq" />
  | 
  |     <variable name="temp" type="ns3:Identificato" />
  | 
  |   </variables>
  | 
  | 
  |   <sequence>
  | 
  |     <!-- receive a connection request -->
  |     <receive operation="loginop" partnerLink="rec"
  |       portType="ns1:loginPT" variable="cr" createInstance="yes" />
  | 
  |     <assign>
  | 		
  | 	<copy>
  | 		<from expression="bpel:getVariableData('cr', 'inRequest')"/>
  | 		<to variable="lor" part="outResponse" query="/outResponse/ns3:Esito" />
  | 	</copy>
  | 
  |     </assign>
  | 
  |     <!-- send the ticket number back to the ATM -->
  |     <reply operation="loginop" partnerLink="rec"
  |       portType="ns1:loginPT" variable="lor"/>
  | 
  |   </sequence>
  | 
  | </process>
  | 
  | 

ZazzaZ

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098699#4098699

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098699



More information about the jboss-user mailing list