[jboss-user] [JBoss jBPM] - Re: jBPM BPEL & Eclipse Process Designer interworking

federicok do-not-reply at jboss.com
Wed Nov 21 05:26:29 EST 2007


First, I am using JBoss 4.0.5.GA, jbpm-bpel-1.1Beta3 and Eclipse BPEL Designer 0.3.

Secondly, I made a simple bpel process to test the correlation sets. Later I had to change the xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable" to xmlns:bpws=http://schemas.xmlsoap.org/ws/2003/03/business-process/ in the bpel document  and set xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" in the wsdl document generated in the project.

the bpel of the project is

  | <?xml version="1.0" encoding="UTF-8"?>
  | <bpws:process exitOnStandardFault="yes" name="POC-CorrelationSets"
  |     suppressJoinFailure="yes" targetNamespace="http://eclipse.org/bpel/sample"
  |     xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:tns="http://eclipse.org/bpel/sample">
  |     <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="POC-CorrelationSets.wsdl" namespace="http://eclipse.org/bpel/sample"/>
  |     <bpws:partnerLinks>
  |         <bpws:partnerLink name="client" partnerLinkType="tns:POC-CorrelationSets" myRole="POC-CorrelationSetsProvider"  partnerRole="POC-CorrelationSetsRequester"/>
  |     </bpws:partnerLinks>
  |     <bpws:variables>
  |         <bpws:variable
  |             messageType="tns:POC-CorrelationSetsRequestMessage" name="input"/>
  |         <bpws:variable
  |             messageType="tns:POC-CorrelationSetsResponseMessage" name="output"/>
  |     </bpws:variables>
  |     <bpws:sequence name="main">
  |         <bpws:receive createInstance="yes" name="receiveInput" operation="initiate" partnerLink="client" portType="tns:POC-CorrelationSets" variable="input"/>
  |         <bpws:invoke inputVariable="output" name="callbackClient" operation="onResult" partnerLink="client" portType="tns:POC-CorrelationSetsCallback"/>
  |     </bpws:sequence>
  | </bpws:process>
  | 
and the wsdl is

  | <?xml version="1.0"?>
  | <definitions name="POC-CorrelationSets"
  |         targetNamespace="http://eclipse.org/bpel/sample"
  |         xmlns:tns="http://eclipse.org/bpel/sample"
  |         xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
  |         xmlns="http://schemas.xmlsoap.org/wsdl/"
  |         >
  | 
  | <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  |      TYPE DEFINITION 
  |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->    
  |     <types>  
  |         <schema attributeFormDefault="unqualified" 
  |                 elementFormDefault="qualified" 
  |                 targetNamespace="http://eclipse.org/bpel/sample" 
  |                 xmlns="http://www.w3.org/2001/XMLSchema"
  |                 >
  |                 
  |             <element name="POC-CorrelationSetsRequest">
  |                 <complexType>
  |                     <sequence>
  |                         <element name="input" type="string" />
  |                     </sequence>
  |                 </complexType>
  |             </element>
  |                   
  |             <element name="POC-CorrelationSetsResponse">
  |                 <complexType>
  |                     <sequence>
  |                         <element name="result" type="string"/>
  |                     </sequence>
  |                 </complexType>
  |             </element>
  |             
  |         </schema>
  |     </types>
  |   
  | <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  |      MESSAGE TYPE DEFINITION
  |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->    
  |     <message name="POC-CorrelationSetsRequestMessage">
  |         <part name="payload" element="tns:POC-CorrelationSetsRequest"/>
  |     </message>
  |     
  |     <message name="POC-CorrelationSetsResponseMessage">
  |         <part name="payload" element="tns:POC-CorrelationSetsResponse"/>
  |     </message>
  | 
  | 
  | <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  |      PORT TYPE DEFINITION 
  |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  |     <!-- portType implemented by the POC-CorrelationSets BPEL process -->
  |     <portType name="POC-CorrelationSets">
  |         <operation name="initiate">
  |             <input message="tns:POC-CorrelationSetsRequestMessage"/>
  |         </operation>
  |     </portType>
  | 
  |     <!-- portType implemented by the requester of POC-CorrelationSets BPEL process 
  |          for asynchronous callback purposes
  |          -->
  |     <portType name="POC-CorrelationSetsCallback">
  |         <operation name="onResult">
  |             <input message="tns:POC-CorrelationSetsResponseMessage"/>
  |         </operation>
  |     </portType>
  | 
  | 
  | <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  |      PARTNER LINK TYPE DEFINITION
  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->    
  |     <plnk:partnerLinkType name="POC-CorrelationSets">
  |         <plnk:role name="POC-CorrelationSetsProvider" portType="tns:POC-CorrelationSets"/>
  |         <plnk:role name="POC-CorrelationSetsRequester" portType="tns:POC-CorrelationSetsCallback"/>
  |     </plnk:partnerLinkType>   
  | </definitions>
  | 
And when I execute the ant deploy-definition I get something like that:

  | 12:14:14,046 INFO  [[/jbpm-bpel]] processDeployServlet: deploying process definition: file=file:/opt/jbpm-bpel-1.1.Beta3/examples/POC-CorrelationSets/target/POC-CorrelationSets-process.zip
  | 12:14:14,134 INFO  [BpelReader] read wsdl definitions: POC-CorrelationSets.wsdl
  | 12:14:14,196 INFO  [BpelReader] read wsdl definitions: POC-CorrelationSets.wsdl
  | 12:14:14,198 ERROR [ProblemHandler]  POC-CorrelationSets.bpel port type of first role not found [/process/partnerLinks/partnerLink]
  | 12:14:14,202 ERROR [ProblemHandler]  POC-CorrelationSets.bpel port type of second role not found [/process/partnerLinks/partnerLink]
  | 12:14:14,205 ERROR [ProblemHandler]  POC-CorrelationSets.bpel port type mismatch between message activity and partner link [/process/sequence/receive]
  | 12:14:14,206 ERROR [ProblemHandler]  POC-CorrelationSets.bpel operation not found [/process/sequence/receive]
  | 12:14:14,208 ERROR [ProblemHandler]  POC-CorrelationSets.bpel could not read process document
  | java.lang.NullPointerException
  |         at org.jbpm.bpel.xml.BpelReader.readReceiver(BpelReader.java:995)
  |         at org.jbpm.bpel.xml.ReceiveReader.readSpecificProperties(ReceiveReader.java:40)
  |         at org.jbpm.bpel.xml.ActivityReader.read(ActivityReader.java:54)
  |         at org.jbpm.bpel.xml.BpelReader.readActivity(BpelReader.java:1178)
  |         at org.jbpm.bpel.xml.SequenceReader.readSpecificProperties(SequenceReader.java:41)
  |         at org.jbpm.bpel.xml.ActivityReader.read(ActivityReader.java:54)
  |         at org.jbpm.bpel.xml.BpelReader.readActivity(BpelReader.java:1178)
  |         at org.jbpm.bpel.xml.BpelReader.readScope(BpelReader.java:540)
  |         at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:251)
  | .
  | .
  | .
  | 12:14:14,255 ERROR [[processDeployServlet]] Servlet.service() for servlet processDeployServlet threw exception
  | org.jbpm.jpdl.JpdlException: [[ERROR] POC-CorrelationSets.bpel port type of first role not found [/process/partnerLinks/partnerLink], [ERROR] POC-CorrelationSets.bpel port type of second role not found [/process/partnerLinks/partnerLink], [ERROR] POC-CorrelationSets.bpel port type mismatch between message activity and partner link [/process/sequence/receive], [ERROR] POC-CorrelationSets.bpel operation not found [/process/sequence/receive], [ERROR] POC-CorrelationSets.bpel could not read process document]
  | .
  | .
  | .
  | 
Those are the most relevant error messages, tell me if you need further details

A question, are you using Eclipse BPEL Designer 0.3 to develop jbpm-bpel process?

thanks

saludos/regards,
federico

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

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



More information about the jboss-user mailing list