Hello, 

I tried to make my own process from the hello process of jbpm bpel. 

1/ I can't deploy the process, what is wrong ?
2/ With this process definition, is it possible after to communicate and 
exchange data with my client application coded in Java ?
3/ Can I use different operations with differents partners link, but with same 
variables ?
4/ I don't understand very well the role of "service" ?

pwf.bpel :


  | <?xml version="1.0" encoding="UTF-8"?>
  | <process name="pwf" targetNamespace="http://jbpm.org/examples/hello";
  |   xmlns:tns="http://jbpm.org/examples/hello";
  |   xmlns:bpel="http://schemas.xmlsoap.org/ws/2003/03/business-process/";
  |   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/";
  |   xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/";>
  | 
  |   <partnerLinks>
  |     <!-- realizes the abstract relationship with the caller -->
  |     <partnerLink name="client" partnerLinkType="tns:loanformPLT" 
myRole="service"/>
  |     <partnerLink name="CallCenter" partnerLinkType="tns:rdvPLT" 
myRole="service"/>
  |     <partnerLink name="Agent" partnerLinkType="tns:loaninsurancePLT" 
myRole="service"/>
  |   </partnerLinks>
  | 
  |   <variables>
  |     <!-- Variables of pwf --> 
  |     <variable name="carloan" messageType="tns:carloanMessage"/>
  |     <variable name="callcenterbasket" 
messageType="tns:callcenterbasketMessage"/>
  |     <variable name="rendezvous" messageType="tns:rendezvousMessage"/>
  |    <variable name="driverprofile" messageType="tns:driverprofileMessage"/>
  |     <variable name="carprofile" messageType="tns:carprofileMessage"/>
  |     <variable name="insuranceinfo" messageType="tns:insuranceinfoMessage"/>
  |   </variables>
  | 
  |   <sequence>
  |     <!-- receive a message carrying by the client (loan form) -->
  |     <receive operation="pwf" partnerLink="client" portType="tns:carloanPT"
  |      variable="carloan" createInstance="yes"/>
  |  
  |     <!-- reply with a message carrying the launch of the process to the 
call center basket -->
  |     <reply operation="pwf" partnerLink="client" 
portType="tns:callcenterbasketPT"
  |      variable="callcenterbasket"/>
  | 
  |     <!-- receive a message carrying by the call center (rendez-vous) -->
  |     <receive operation="pwf" partnerLink="callcenter" 
portType="tns:rendezvousPT"
  |      variable="rendezvous" createInstance="no"/>
  | 
  |     <!-- reply with a message carrying the date of the rendez-vous to the 
agent -->
  |     <reply operation="pwf" partnerLink="agent" portType="tns:rendezvousPT"
  |      variable="rendezvous"/>
  |      
  |     <!-- reply with a message carrying the car loan to the agent (Car Loan) 
-->
  |     <reply operation="pwf" partnerLink="agent" portType="tns:carloanPT"
  |      variable="carloan"/> 
  | 
  |     <!-- receive a message carrying by the agent (Car Loan) -->
  |     <receive operation="pwf" partnerLink="agent" portType="tns:carloanPT"
  |      variable="carloan" createInstance="no"/> 
  | 
  |     <!-- receive a message carrying by the agent (Driver Profile) -->
  |     <receive operation="pwf" partnerLink="agent" 
portType="tns:driverprofilePT"
  |      variable="driverprofile" createInstance="no"/> 
  |      
  |     <!-- receive a message carrying by the agent (Car Profile) -->
  |     <receive operation="pwf" partnerLink="agent" portType="tns:carprofilePT"
  |      variable="carprofile" createInstance="no"/> 
  |      
  |     <!-- receive a message carrying by the agent (Insurance Info) -->
  |     <receive operation="pwf" partnerLink="agent" 
portType="tns:insuranceinfoPT"
  |      variable="insuranceinfo" createInstance="no"/> 
  |   </sequence>
  | 
  | </process>
  | 


pwf.wsdl :


  | <?xml version="1.0" encoding="UTF-8"?>
  | <definitions targetNamespace="http://jbpm.org/examples/hello";
  |   xmlns:tns="http://jbpm.org/examples/hello"; 
  |   xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
  |   xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"; 
  |   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |   xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/ 
  |                       http://schemas.xmlsoap.org/wsdl/
  |                       http://schemas.xmlsoap.org/ws/2003/05/partner-link/ 
  |                       http://schemas.xmlsoap.org/ws/2003/05/partner-link/";  
 
  |   xmlns="http://schemas.xmlsoap.org/wsdl/";>
  |   
  |   <!-- characterizes the relationship between the process and the client -->
  |   <plt:partnerLinkType name="loanformPLT">
  |     <plt:role name="service">
  |       <plt:portType name="tns:carloanPT"/>
  |     </plt:role>
  |   </plt:partnerLinkType>
  |   
  |   <!-- characterizes the relationship between the process and the call 
center -->
  |   <plt:partnerLinkType name="rdvPLT">
  |     <plt:role name="service">
  |       <plt:portType name="tns:callcenterbasketPT"/>
  |     </plt:role>
  |     <plt:role name="service">
  |       <plt:portType name="tns:rendezvousPT"/>
  |     </plt:role>
  |   </plt:partnerLinkType>
  |   
  |   <!-- characterizes the relationship between the process and the agent -->
  |   <plt:partnerLinkType name="loaninsurancePLT">
  |     <plt:role name="service">
  |       <plt:portType name="tns:carloanPT"/>
  |     </plt:role>
  |     <plt:role name="service">
  |       <plt:portType name="tns:accountdataPT"/>
  |     </plt:role>
  |     <plt:role name="service">
  |       <plt:portType name="tns:driverprofilePT"/>
  |     </plt:role>
  |     <plt:role name="service">
  |       <plt:portType name="tns:carprofilePT"/>
  |     </plt:role>
  |     <plt:role name="service">
  |       <plt:portType name="tns:insuranceinfoPT"/>
  |     </plt:role>
  |   </plt:partnerLinkType>
  | 
  | 
  |   <!-- carries the structure of car loan -->
  |   <message name="carloanMessage">
  |     <part name="idclient" type="xsd:string"/>
  |     <part name="globaleffectiverate" type="xsd:float"/>
  |     <part name="globalfixedrate" type="xsd:float"/>
  |     <part name="loanamount" type="xsd:double"/>
  |     <part name="duedatequantity" type="xsd:int"/>
  |     <part name="duedateamount" type="xsd:double"/>
  |     <part name="standingcharges" type="xsd:double"/>
  |     <part name="vehicletype" type="xsd:string"/>
  |     <part name="firstduedatewish" type="xsd:date"/>
  |     <part name="homecharges" type="xsd:double"/>
  |     <part name="totalotherloanamount" type="xsd:double"/>
  |     <part name="othercharges" type="xsd:double"/>
  |     <part name="grossincome" type="xsd:double"/>
  |     <part name="otherincome" type="xsd:double"/>
  |   </message>
  | 
  |   <!-- carries the id client in the call center basket -->
  |   <message name="callcenterbasketMessage">
  |     <part name="idclient" type="xsd:string"/>
  |   </message>
  |   
  |   <!-- carries the date of the rendez-vous -->
  |   <message name="rendezvousMessage">
  |     <part name="daterdv" type="xsd:string"/>
  |   </message>
  |   
  |   <!-- carries the structure of the driver profile -->
  |   <message name="driverprofileMessage">
  |     <part name="drivinglicensedate" type="xsd:string"/>
  |     <part name="isconduiteaccompagnee" type="xsd:boolean"/>
  |     <part name="isdrivinglicensesuspension" type="xsd:boolean"/>
  |     <part name="suspensiondate" type="xsd:string"/>
  |     <part name="bonus" type="xsd:float"/>
  |     <part name="insuranceduration" type="xsd:int"/>
  |     <part name="accidentnumber" type="xsd:int"/>
  |     <part name="isalreadyinsured" type="xsd:boolean"/>
  |     <part name="vehicleusage" type="xsd:string"/>
  |     <part name="kilometrage" type="xsd:int"/>
  |   </message>
  |    
  |   <!-- carries the structure of the car profile -->
  |   <message name="carprofileMessage">
  |     <part name="brandname" type="xsd:string"/>
  |     <part name="model" type="xsd:string"/>
  |     <part name="powersourcetype" type="xsd:string"/>
  |     <part name="bodywork" type="xsd:string"/>
  |     <part name="codevehicle" type="xsd:string"/>
  |     <part name="version" type="xsd:string"/>
  |     <part name="enginepower" type="xsd:string"/>
  |     <part name="minetype" type="xsd:string"/>
  |     <part name="firstbuildyear" type="xsd:string"/>
  |   </message>
  |   
  |   <!-- carries the structure of insurance information -->
  |   <message name="insuranceinfoMessage">
  |     <part name="couvertureassurance" type="xsd:string"/>
  |   </message>
  | 
  |   
  |   <!-- describes the interface presented to clients -->
  |   <portType name="carloanPT">
  |     <operation name="pwf">
  |       <input message="tns:carloanMessage"/>
  |       <output message="tns:carloanMessage"/>
  |     </operation>
  |   </portType>
  | 
  |   <portType name="callcenterbasketPT">
  |     <operation name="pwf">
  |       <output message="tns:callcenterbasketMessage"/>
  |     </operation>
  |   </portType>
  |   
  |   <portType name="rendezvousPT">
  |     <operation name="pwf">
  |       <input message="tns:rendezvousMessage"/>
  |       <output message="tns:rendezvousMessage"/>
  |     </operation>
  |   </portType>
  |   
  |   <portType name="driverprofilePT">
  |     <operation name="pwf">
  |       <input message="tns:driverprofileMessage"/>
  |     </operation>
  |   </portType>  
  |  
  |   <portType name="carprofilePT">
  |     <operation name="pwf">
  |       <input message="tns:carprofileMessage"/>
  |     </operation>
  |   </portType>
  |   
  |   <portType name="insuranceinfoPT">
  |     <operation name="pwf">
  |       <input message="tns:insuranceinfoMessage"/>
  |     </operation>
  |   </portType>  
  | </definitions>
  | 


bpel-definition.xml :


  | <?xml version="1.0" encoding="UTF-8"?>
  | <!-- specifies the location of the process definition -->
  | <bpelDefinition location="pwf.bpel" 
  |   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |   xsi:schemaLocation="http://jbpm.org/bpel
  |                       http://jbpm.org/bpel/bpel_definition_1_0.xsd";
  |   xmlns="http://jbpm.org/bpel"; >
  | 
  |   <!-- makes WSDL interface elements available to the process -->
  |     <imports>
  |       <wsdl namespace="http://jbpm.org/examples/hello"; location="pwf.wsdl"/>
  |   </imports>
  | 
  | </bpelDefinition>
  | 


Thanks for your help. 

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

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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to