From: <pka...@us...> - 2009-05-29 14:46:08
|
Revision: 229 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=229&view=rev Author: pkasprzak Date: 2009-05-29 14:46:01 +0000 (Fri, 29 May 2009) Log Message: ----------- * Unfinished stuff Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-05-29 14:45:37 UTC (rev 228) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-05-29 14:46:01 UTC (rev 229) @@ -12,20 +12,24 @@ xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" xmlns:il_crs="http://cse.campussource.de/schema/ilias/course" xmlns:il_objs="http://cse.campussource.de/schema/ilias/objects" + xmlns:dt="http://cse.campussource.de/schema/DataTypes" xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/OutboundClientAdapter"> - <import namespace="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" location="ilias-3.10.5-Wrapper.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" location="ILIASClientAdapter.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://cse.campussource.de/schema/ilias/course" location="ilias-course.xsd" importType="http://www.w3.org/2001/XMLSchema"/> - <import namespace="http://cse.campussource.de/schema/ilias/objects" location="ilias-objects.xsd" importType="http://www.w3.org/2001/XMLSchema"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" location="Login.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" location="AddCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" location="UpdateCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" location="DeleteCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" location="AddCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" location="UpdateCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" location="DeleteCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://cse.campussource.de/schema/DataTypes" location="Common/CDDM.xsd" importType="http://www.w3.org/2001/XMLSchema"/> + <import namespace="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" location="ilias-3.10.5-Wrapper.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" location="ILIASClientAdapter.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://cse.campussource.de/schema/ilias/course" location="ilias-course.xsd" importType="http://www.w3.org/2001/XMLSchema"/> + <import namespace="http://cse.campussource.de/schema/ilias/objects" location="ilias-objects.xsd" importType="http://www.w3.org/2001/XMLSchema"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" location="Login.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" location="AddCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" location="UpdateCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" location="DeleteCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" location="AddCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" location="UpdateCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" location="DeleteCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ReplyProcessor" location="ObjectProcessor/ReplyProcessor.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <partnerLinks> <partnerLink name="Login" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" partnerLinkType="tns:Login" partnerRole="LoginPortTypeRole"/> @@ -41,6 +45,8 @@ partnerRole="UpdateCategoryPortTypeRole"/> <partnerLink name="DeleteCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" partnerLinkType="tns:DeleteCategory" partnerRole="DeleteCategoryPortTypeRole"/> + <partnerLink name="ReplyProcessor" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ReplyProcessor" partnerLinkType="tns:ReplyProcessor" + partnerRole="ReplyProcessorPortTypeRole"/> <partnerLink name="ILIAS" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" partnerLinkType="tns:ILIASSoapWebserviceLinkType" partnerRole="ILIASSoapWebserviceRole"/> <partnerLink name="ILIASAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" partnerLinkType="tns:ILIASClientAdapter" @@ -49,6 +55,7 @@ <variables> <!-- Messages --> + <variable name="ProcessReplyIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ReplyProcessor" messageType="tns:processReplyRequest"/> <variable name="DeleteCategoryOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryResponse"/> <variable name="DeleteCategoryIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryRequest"/> <variable name="UpdateCategoryOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" messageType="tns:updateCategoryResponse"/> @@ -69,11 +76,14 @@ <variable name="LogoutOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:logoutResponse"/> <variable name="LogoutIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:logoutRequest"/> - <!-- Ilias --> - <!-- Ilias session id --> <variable name="SID" type="xsd:string"/> + <!-- Reply vars --> + <variable name="ObjectBusId" type="xsd:int"/> + <variable name="ObjectClientId" type="xsd:string"/> + <variable name="ReplyStatus" type="dt:statusType"/> + </variables> <sequence> @@ -95,11 +105,21 @@ portType="tns:LoginPortType" inputVariable="LoginIn" outputVariable="LoginOut"/> - <assign name="saveSIDForCourses"> + <assign name="initCourseProcessing"> <copy> <from variable="LoginOut" part="SID"/> <to variable="SID"/> </copy> +<!-- + <copy> + <from>$ProcessCourseOperationIn.courseMessage/course/busId</from> + <to>$ObjectBusId</to> + </copy> +--> + <copy ignoreMissingFromData="yes"> + <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'clientId']/value</from> + <to>$ObjectClientId</to> + </copy> </assign> <!-- Branch on different events --> @@ -332,6 +352,7 @@ <to variable="LogoutIn" part="sid"/> </copy> </assign> + <invoke name="logout" partnerLink="ILIAS" operation="logout" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="LogoutIn" @@ -342,5 +363,28 @@ </sxt:log> </sxt:trace> </invoke> + + <!-- Generate reply(s) --> + <assign name="prepareReply"> + <copy> + <from> + <literal> + <reply xmlns="http://cse.campussource.de/schema/DataTypes"> + <objectBusId/> + <objectClientId/> + <replyTime/> + <replyStatus/> + <info/> + </reply> + </literal> + </from> + <to>$ProcessReplyIn.reply</to> + </copy> + </assign> + + <invoke name="returnReply" partnerLink="ReplyProcessor" operation="processReply" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ReplyProcessor" + portType="tns:ReplyProcessorPortType" + inputVariable="ProcessReplyIn"/> </sequence> </process> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |