|
From: <pka...@us...> - 2009-08-02 17:51:19
|
Revision: 420
http://cse-ip.svn.sourceforge.net/cse-ip/?rev=420&view=rev
Author: pkasprzak
Date: 2009-08-02 17:51:03 +0000 (Sun, 02 Aug 2009)
Log Message:
-----------
* DependencyManager wsdl adaptations
* Load context
* Fixes in variable assignments
Modified Paths:
--------------
trunk/sandbox/lsf-adapter-demo/ObjectProcessor/src/AddCourse.bpel
Modified: trunk/sandbox/lsf-adapter-demo/ObjectProcessor/src/AddCourse.bpel
===================================================================
--- trunk/sandbox/lsf-adapter-demo/ObjectProcessor/src/AddCourse.bpel 2009-08-02 17:48:08 UTC (rev 419)
+++ trunk/sandbox/lsf-adapter-demo/ObjectProcessor/src/AddCourse.bpel 2009-08-02 17:51:03 UTC (rev 420)
@@ -21,6 +21,7 @@
<import namespace="http://cse.campussource.de/ejb/DependencyManager" location="Common/DependencyManager.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<import namespace="http://cse.campussource.de/ejb/SystemManager" location="Common/SystemManager.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<import namespace="http://cse.campussource.de/ejb/LoggingManager" location="Common/LoggingManager.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
+ <import namespace="http://cse.campussource.de/wsdl/Common/OutboundAdapter" location="Common/OutboundAdapter.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<partnerLinks>
<partnerLink name="LoggingManager" xmlns:tns="http://cse.campussource.de/ejb/LoggingManager" partnerLinkType="tns:LoggingManagerLinkType"
@@ -35,14 +36,13 @@
<partnerLink name="IdentityManager" xmlns:tns="http://cse.campussource.de/ejb/IdentityManager" partnerLinkType="tns:IdentityManagerLinkType"
partnerRole="IdentityManagerRole"/>
- <partnerLink name="DependencyManager" xmlns:tns="http://cse.campussource.de/ejb/DependencyManager" partnerLinkType="tns:DependencyManagerLinkType"
- myRole="DependencyManager_Requestor"
- partnerRole="DependencyManager_Provider"/>
-
<partnerLink name="SystemManager" xmlns:tns="http://cse.campussource.de/ejb/SystemManager" partnerLinkType="tns:SystemManagerLinkType"
partnerRole="SystemManagerRole"/>
+ <partnerLink name="DependencyManager" partnerLinkType="ns0:DependencyManagerCourseLinkType" myRole="DependencyManager_Receiver" partnerRole="DependencyManager_Provider"/>
+ <partnerLink name="OutboundAdapter" xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" partnerLinkType="tns:OutboundAdapter"
+ partnerRole="OutboundAdapterPortTypeRole"/>
- <partnerLink name="ClientAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/AddCourse" partnerLinkType="tns:AddCourse"
+ <partnerLink name="InboundAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/AddCourse" partnerLinkType="tns:AddCourse"
myRole="AddCoursePortTypeRole"/>
</partnerLinks>
@@ -75,7 +75,7 @@
</correlationSets>
<sequence>
- <receive name="start" createInstance="yes" partnerLink="ClientAdapter" operation="processCourse"
+ <receive name="start" createInstance="yes" partnerLink="InboundAdapter" operation="processCourse"
xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/AddCourse"
portType="tns:AddCoursePortType"
variable="ProcessCourseIn"/>
@@ -328,12 +328,14 @@
<scope name="SystemScope">
<variables>
- <variable name="GetCourseContextOut" xmlns:tns="http://cse.campussource.de/ejb/EntityManager" messageType="tns:getCourseContextResponse"/>
- <variable name="GetCourseContextIn" xmlns:tns="http://cse.campussource.de/ejb/EntityManager" messageType="tns:getCourseContext"/>
- <variable name="NotifyIn" messageType="ns0:notifyRequest"/>
+ <variable name="OutboundProcessCourseOut" xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" messageType="tns:ProcessCourseOperationResponse"/>
+ <variable name="OutboundProcessCourseIn" xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" messageType="tns:ProcessCourseOperationRequest"/>
+ <variable name="GetCourseContextOut" xmlns:tns="http://cse.campussource.de/ejb/EntityManager" messageType="tns:getCourseContextResponse"/>
+ <variable name="GetCourseContextIn" xmlns:tns="http://cse.campussource.de/ejb/EntityManager" messageType="tns:getCourseContext"/>
+ <variable name="NotifyIn" messageType="ns0:notifyRequest"/>
- <variable name="System" type="xsd:string"/>
- <variable name="EntityId" type="xsd:int"/>
+ <variable name="System" type="xsd:string"/>
+ <variable name="EntityId" type="xsd:int"/>
</variables>
<sequence>
@@ -352,7 +354,7 @@
<receive name="receiveNotification" createInstance="no" partnerLink="DependencyManager"
operation="notify"
- portType="ns0:DependencyManagerNotification"
+ portType="ns0:DependencyManagerCourseNotification"
variable="NotifyIn">
<correlations>
<correlation set="DependencyManager" initiate="no"/>
@@ -399,10 +401,55 @@
inputVariable="GetCourseContextIn"
outputVariable="GetCourseContextOut"/>
- <empty name="distributeMessages">
- <documentation>Send courseMessage + context to outboundadapter (synchronisouly)</documentation>
- </empty>
+ <assign name="prepareProcessCourse">
+ <!-- Initialize xml skeleton -->
+ <copy>
+ <from>
+ <literal>
+ <courseMessage xmlns:dt="http://cse.campussource.de/schema/DataTypes">
+ <dt:eventTime/>
+ <dt:event/>
+ <dt:source/>
+ <dt:target/>
+ <dt:course/>
+ </courseMessage>
+ </literal>
+ </from>
+ <to>$OutboundProcessCourseIn.courseMessage</to>
+ </copy>
+
+ <!-- Set event -->
+ <copy>
+ <from variable="Event"/>
+ <to>$OutboundProcessCourseIn.courseMessage/dt:event</to>
+ </copy>
+
+ <!-- Set source system -->
+ <copy>
+ <from>'Core'</from>
+ <to>$OutboundProcessCourseIn.courseMessage/dt:source</to>
+ </copy>
+
+ <!-- Set target system -->
+ <copy>
+ <from variable="System"/>
+ <to>$OutboundProcessCourseIn.courseMessage/dt:target</to>
+ </copy>
+
+ <!-- Set course data -->
+ <copy>
+ <from>$GetCourseContextOut.parameters/return</from>
+ <to>$OutboundProcessCourseIn.courseMessage/dt:course</to>
+ </copy>
+ </assign>
+
+ <invoke name="processCourse" partnerLink="OutboundAdapter"
+ operation="processCourse"
+ xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter"
+ portType="tns:OutboundAdapterPortType"
+ inputVariable="OutboundProcessCourseIn"
+ outputVariable="OutboundProcessCourseOut"/>
</sequence>
</scope>
</forEach>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|