From: <pka...@us...> - 2009-05-28 07:52:07
|
Revision: 219 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=219&view=rev Author: pkasprzak Date: 2009-05-28 07:51:59 +0000 (Thu, 28 May 2009) Log Message: ----------- * Error-Fixing * Prettying 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-28 06:08:59 UTC (rev 218) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-05-28 07:51:59 UTC (rev 219) @@ -19,39 +19,48 @@ <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/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/"/> <partnerLinks> - <partnerLink name="Login" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" partnerLinkType="tns:Login" partnerRole="LoginPortTypeRole"/> - <partnerLink name="AddCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" partnerLinkType="tns:AddCourse" partnerRole="AddCoursePortTypeRole"/> - <partnerLink name="UpdateCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" partnerLinkType="tns:UpdateCourse" partnerRole="UpdateCoursePortTypeRole"/> - <partnerLink name="DeleteCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" partnerLinkType="tns:DeleteCourse" partnerRole="DeleteCoursePortTypeRole"/> - <partnerLink name="AddCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" partnerLinkType="tns:AddCategory" partnerRole="AddCategoryPortTypeRole"/> - <partnerLink name="UpdateCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" partnerLinkType="tns:UpdateCategory" partnerRole="UpdateCategoryPortTypeRole"/> - <partnerLink name="DeleteCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" partnerLinkType="tns:DeleteCategory" partnerRole="DeleteCategoryPortTypeRole"/> - <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" myRole="ILIASClientAdapterPortTypeRole"/> + <partnerLink name="Login" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" partnerLinkType="tns:Login" + partnerRole="LoginPortTypeRole"/> + <partnerLink name="AddCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" partnerLinkType="tns:AddCourse" + partnerRole="AddCoursePortTypeRole"/> + <partnerLink name="UpdateCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" partnerLinkType="tns:UpdateCourse" + partnerRole="UpdateCoursePortTypeRole"/> + <partnerLink name="DeleteCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" partnerLinkType="tns:DeleteCourse" + partnerRole="DeleteCoursePortTypeRole"/> + <partnerLink name="AddCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" partnerLinkType="tns:AddCategory" + partnerRole="AddCategoryPortTypeRole"/> + <partnerLink name="UpdateCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" partnerLinkType="tns:UpdateCategory" + partnerRole="UpdateCategoryPortTypeRole"/> + <partnerLink name="DeleteCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" partnerLinkType="tns:DeleteCategory" + partnerRole="DeleteCategoryPortTypeRole"/> + <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" + myRole="ILIASClientAdapterPortTypeRole"/> </partnerLinks> <variables> <!-- Messages --> - <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"/> - <variable name="UpdateCategoryIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" messageType="tns:updateCategoryRequest"/> - <variable name="AddCategoryOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" messageType="tns:AddCategoryResponse"/> - <variable name="AddCategoryIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" messageType="tns:AddCategoryRequest"/> - <variable name="DeleteCourseOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseResponse"/> - <variable name="DeleteCourseIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseRequest"/> - <variable name="UpdateCourseOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" messageType="tns:updateCourseResponse"/> - <variable name="UpdateCourseIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" messageType="tns:updateCourseRequest"/> - <variable name="AddCourseOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" messageType="tns:AddCourseResponse"/> - <variable name="AddCourseIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" messageType="tns:AddCourseRequest"/> + <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"/> + <variable name="UpdateCategoryIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" messageType="tns:updateCategoryRequest"/> + <variable name="AddCategoryOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" messageType="tns:AddCategoryResponse"/> + <variable name="AddCategoryIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" messageType="tns:AddCategoryRequest"/> + <variable name="DeleteCourseOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseResponse"/> + <variable name="DeleteCourseIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseRequest"/> + <variable name="UpdateCourseOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" messageType="tns:updateCourseResponse"/> + <variable name="UpdateCourseIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" messageType="tns:updateCourseRequest"/> + <variable name="AddCourseOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" messageType="tns:AddCourseResponse"/> + <variable name="AddCourseIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" messageType="tns:AddCourseRequest"/> <variable name="LoginOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" messageType="tns:loginResponse"/> <variable name="LoginIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" messageType="tns:loginRequest"/> <variable name="ProcessCategoryOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" messageType="tns:ProcessCategoryOperationRequest"/> @@ -193,15 +202,19 @@ <sequence> <assign name="prepareAddCategory"> <copy> - <from>$ProcessCourseOperationIn.courseMessage/course</from> - <to>$AddCourseIn.course</to> + <from>$ProcessCategoryOperationIn.categoryMessage/category</from> + <to>$AddCategoryIn.category</to> </copy> <copy> <from>$SID</from> - <to>$AddCourseIn.SID</to> + <to>$AddCategoryIn.SID</to> </copy> </assign> - <invoke name="addCategory" partnerLink="AddCategory" operation="addCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" portType="tns:AddCategoryPortType" inputVariable="AddCategoryIn" outputVariable="AddCategoryOut"/> + <invoke name="addCategory" partnerLink="AddCategory" operation="addCategory" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" + portType="tns:AddCategoryPortType" + inputVariable="AddCategoryIn" + outputVariable="AddCategoryOut"/> </sequence> <elseif> <!-- Event == "UPDATE" --> @@ -209,15 +222,19 @@ <sequence> <assign name="prepareUpdateCategory"> <copy> - <from>$ProcessCourseOperationIn.courseMessage/course</from> - <to>$UpdateCourseIn.course</to> + <from>$ProcessCategoryOperationIn.categoryMessage/category</from> + <to>$UpdateCategoryIn.category</to> </copy> <copy> <from>$SID</from> - <to>$UpdateCourseIn.SID</to> + <to>$UpdateCategoryIn.SID</to> </copy> </assign> - <invoke name="updateCategory" partnerLink="UpdateCategory" operation="updateCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" portType="tns:UpdateCategoryPortType" inputVariable="UpdateCategoryIn" outputVariable="UpdateCategoryOut"/> + <invoke name="updateCategory" partnerLink="UpdateCategory" operation="updateCategory" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" + portType="tns:UpdateCategoryPortType" + inputVariable="UpdateCategoryIn" + outputVariable="UpdateCategoryOut"/> </sequence> </elseif> <elseif> @@ -226,15 +243,19 @@ <sequence> <assign name="prepareDeleteCategory"> <copy> - <from>$ProcessCourseOperationIn.courseMessage/course</from> - <to>$DeleteCourseIn.course</to> + <from>$ProcessCategoryOperationIn.categoryMessage/category</from> + <to>$DeleteCategoryIn.category</to> </copy> <copy> <from>$SID</from> - <to>$DeleteCourseIn.SID</to> + <to>$DeleteCategoryIn.SID</to> </copy> </assign> - <invoke name="deleteCategory" partnerLink="DeleteCategory" operation="deleteCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" portType="tns:DeleteCategoryPortType" inputVariable="DeleteCategoryIn" outputVariable="DeleteCategoryOut"/> + <invoke name="deleteCategory" partnerLink="DeleteCategory" operation="deleteCategory" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" + portType="tns:DeleteCategoryPortType" + inputVariable="DeleteCategoryIn" + outputVariable="DeleteCategoryOut"/> </sequence> </elseif> </if> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
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. |
From: <pka...@us...> - 2009-06-03 14:54:47
|
Revision: 235 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=235&view=rev Author: pkasprzak Date: 2009-06-03 14:54:45 +0000 (Wed, 03 Jun 2009) Log Message: ----------- * Generate replies (does not work for now...) 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-06-03 14:54:38 UTC (rev 234) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-06-03 14:54:45 UTC (rev 235) @@ -80,6 +80,9 @@ <variable name="SID" type="xsd:string"/> <!-- Reply vars --> + <variable name="STATUS_SUCCESS" type="xsd:string"/> + <variable name="STATUS_FAILURE" type="xsd:string"/> + <variable name="ObjectBusId" type="xsd:int"/> <variable name="ObjectClientId" type="xsd:string"/> <variable name="ReplyStatus" type="dt:statusType"/> @@ -110,16 +113,23 @@ <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> + <!-- Init constants (better alternatives?) --> + <copy> + <from>'SUCCESS'</from> + <to>$STATUS_SUCCESS</to> + </copy> + <copy> + <from>'FAILURE'</from> + <to>$STATUS_FAILURE</to> + </copy> </assign> <!-- Branch on different events --> @@ -154,6 +164,32 @@ portType="tns:AddCoursePortType" inputVariable="AddCourseIn" outputVariable="AddCourseOut"/> + + <assign name="saveCourseId"> + <copy> + <from>string($AddCourseOut.courseId)</from> + <to>$ObjectClientId</to> + </copy> + </assign> + + <if> + <condition>$AddCourseOut.courseId != 0</condition> + <assign name="addCourseSuccess"> + <copy> + <from>$STATUS_SUCCESS</from> + <to>$ReplyStatus</to> + </copy> + </assign> + <else> + <assign name="addCourseFailure"> + <copy> + <from>$STATUS_FAILURE</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </else> + </if> + </sequence> <elseif> <!-- Event == "UPDATE" --> @@ -180,6 +216,24 @@ portType="tns:UpdateCoursePortType" inputVariable="UpdateCourseIn" outputVariable="UpdateCourseOut"/> + + <if> + <condition>$UpdateCourseOut.success</condition> + <assign name="updateCourseSuccess"> + <copy> + <from>$STATUS_SUCCESS</from> + <to>$ReplyStatus</to> + </copy> + </assign> + <else> + <assign name="updateCourseFailure"> + <copy> + <from>$STATUS_FAILURE</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </else> + </if> </sequence> </elseif> <elseif> @@ -207,6 +261,24 @@ portType="tns:DeleteCoursePortType" inputVariable="DeleteCourseIn" outputVariable="DeleteCourseOut"/> + + <if> + <condition>$DeleteCourseOut.success</condition> + <assign name="deleteCourseSuccess"> + <copy> + <from>$STATUS_SUCCESS</from> + <to>$ReplyStatus</to> + </copy> + </assign> + <else> + <assign name="deleteCourseFailure"> + <copy> + <from>$STATUS_FAILURE</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </else> + </if> </sequence> </elseif> <else> @@ -239,11 +311,29 @@ portType="tns:LoginPortType" inputVariable="LoginIn" outputVariable="LoginOut"/> - <assign name="saveSIDForCategories"> + + <assign name="initCategoryProcessing"> <copy> <from variable="LoginOut" part="SID"/> <to variable="SID"/> </copy> + <copy> + <from>$ProcessCategoryOperationIn.categoryMessage/category/busId</from> + <to>$ObjectBusId</to> + </copy> + <copy ignoreMissingFromData="yes"> + <from>$ProcessCategoryOperationIn.categoryMessage/category/attribute[name = 'clientId']/value</from> + <to>$ObjectClientId</to> + </copy> + <!-- Init constants (better alternatives?) --> + <copy> + <from>'SUCCESS'</from> + <to>$STATUS_SUCCESS</to> + </copy> + <copy> + <from>'FAILURE'</from> + <to>$STATUS_FAILURE</to> + </copy> </assign> <!-- Branch on different events --> @@ -277,6 +367,31 @@ portType="tns:AddCategoryPortType" inputVariable="AddCategoryIn" outputVariable="AddCategoryOut"/> + + <assign name="saveCategoryId"> + <copy> + <from>string($AddCategoryOut.categoryId)</from> + <to>$ObjectClientId</to> + </copy> + </assign> + + <if> + <condition>$AddCategoryOut.categoryId != 0</condition> + <assign name="addCategorySuccess"> + <copy> + <from>$STATUS_SUCCESS</from> + <to>$ReplyStatus</to> + </copy> + </assign> + <else> + <assign name="addCategoryFailure"> + <copy> + <from>$STATUS_FAILURE</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </else> + </if> </sequence> <elseif> <!-- Event == "UPDATE" --> @@ -297,11 +412,31 @@ <to>$UpdateCategoryIn.SID</to> </copy> </assign> + <invoke name="updateCategory" partnerLink="UpdateCategory" operation="updateCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" portType="tns:UpdateCategoryPortType" inputVariable="UpdateCategoryIn" outputVariable="UpdateCategoryOut"/> + + <if> + <condition>$UpdateCategoryOut.success</condition> + <assign name="updateCategorySuccess"> + <copy> + <from>$STATUS_SUCCESS</from> + <to>$ReplyStatus</to> + </copy> + </assign> + <else> + <assign name="updateCategoryFailure"> + <copy> + <from>$STATUS_FAILURE</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </else> + </if> + </sequence> </elseif> <elseif> @@ -328,6 +463,25 @@ portType="tns:DeleteCategoryPortType" inputVariable="DeleteCategoryIn" outputVariable="DeleteCategoryOut"/> + + <if> + <condition>$DeleteCategoryOut.success</condition> + <assign name="deleteCategorySuccess"> + <copy> + <from>$STATUS_SUCCESS</from> + <to>$ReplyStatus</to> + </copy> + </assign> + <else> + <assign name="deleteCategoryFailure"> + <copy> + <from>$STATUS_FAILURE</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </else> + </if> + </sequence> </elseif> <else> @@ -366,6 +520,11 @@ <!-- Generate reply(s) --> <assign name="prepareReply"> + <sxt:trace> + <sxt:log level="info" location="onComplete"> + <from>concat('*** Reply: ', $ProcessReplyIn.reply, 'END')</from> + </sxt:log> + </sxt:trace> <copy> <from> <literal> @@ -382,9 +541,32 @@ </copy> </assign> +<!-- + <assign> + <copy> + <from>$ObjectBusId</from> + <to>$ProcessReplyIn.reply/objectBusId</to> + </copy> + + <copy> + <from>$ObjectClientId</from> + <to>$ProcessReplyIn.reply/objectClientId</to> + </copy> + <copy> + <from>$ReplyStatus</from> + <to>$ProcessReplyIn.reply/replyStatus</to> + </copy> + <copy> + <from>sxxf:current-time()</from> + <to>$ProcessReplyIn.reply/replyTime</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. |
From: <pka...@us...> - 2009-06-09 07:41:20
|
Revision: 242 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=242&view=rev Author: pkasprzak Date: 2009-06-09 07:41:17 +0000 (Tue, 09 Jun 2009) Log Message: ----------- * Generate replies 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-06-09 07:39:56 UTC (rev 241) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-06-09 07:41:17 UTC (rev 242) @@ -7,6 +7,7 @@ xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace" xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor" + xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2" xmlns:sxat="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Attachment" xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling" xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" @@ -87,6 +88,9 @@ <variable name="ObjectClientId" type="xsd:string"/> <variable name="ReplyStatus" type="dt:statusType"/> + <!-- For testing --> + <variable name="ReplyXML" type="xsd:string"/> + </variables> <sequence> @@ -114,11 +118,11 @@ <to variable="SID"/> </copy> <copy> - <from>$ProcessCourseOperationIn.courseMessage/course/busId</from> + <from>$ProcessCourseOperationIn.courseMessage/dt:course/dt:busId</from> <to>$ObjectBusId</to> </copy> <copy ignoreMissingFromData="yes"> - <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'clientId']/value</from> + <from>$ProcessCourseOperationIn.courseMessage/dt:course/dt:attribute[dt:name = 'clientId']/dt:value</from> <to>$ObjectClientId</to> </copy> <!-- Init constants (better alternatives?) --> @@ -136,12 +140,12 @@ <if> <sxt:trace> <sxt:log level="info" location="onStart"> - <from>concat('*** Branching on course-event: ', $ProcessCourseOperationIn.courseMessage/event)</from> + <from>concat('*** Branching on course-event: ', $ProcessCourseOperationIn.courseMessage/dt:event)</from> </sxt:log> </sxt:trace> <!-- Event == "CREATE" --> - <condition>$ProcessCourseOperationIn.courseMessage/event = 'CREATE'</condition> + <condition>$ProcessCourseOperationIn.courseMessage/dt:event = 'CREATE'</condition> <sequence> <assign name="prepareAddCourse"> <sxt:trace> @@ -150,7 +154,7 @@ </sxt:log> </sxt:trace> <copy> - <from>$ProcessCourseOperationIn.courseMessage/course</from> + <from>$ProcessCourseOperationIn.courseMessage/dt:course</from> <to>$AddCourseIn.course</to> </copy> <copy> @@ -193,7 +197,7 @@ </sequence> <elseif> <!-- Event == "UPDATE" --> - <condition>$ProcessCourseOperationIn.courseMessage/event = 'UPDATE'</condition> + <condition>$ProcessCourseOperationIn.courseMessage/dt:event = 'UPDATE'</condition> <sequence> <assign name="prepareUpdateCourse"> <sxt:trace> @@ -202,7 +206,7 @@ </sxt:log> </sxt:trace> <copy> - <from>$ProcessCourseOperationIn.courseMessage/course</from> + <from>$ProcessCourseOperationIn.courseMessage/dt:course</from> <to>$UpdateCourseIn.course</to> </copy> <copy> @@ -238,7 +242,7 @@ </elseif> <elseif> <!-- Event == "DELETE" --> - <condition>$ProcessCourseOperationIn.courseMessage/event = 'DELETE'</condition> + <condition>$ProcessCourseOperationIn.courseMessage/dt:event = 'DELETE'</condition> <sequence> <assign name="prepareDeleteCourse"> <sxt:trace> @@ -247,7 +251,7 @@ </sxt:log> </sxt:trace> <copy> - <from>$ProcessCourseOperationIn.courseMessage/course</from> + <from>$ProcessCourseOperationIn.courseMessage/dt:course</from> <to>$DeleteCourseIn.course</to> </copy> <copy> @@ -318,11 +322,11 @@ <to variable="SID"/> </copy> <copy> - <from>$ProcessCategoryOperationIn.categoryMessage/category/busId</from> + <from>$ProcessCategoryOperationIn.categoryMessage/dt:category/dt:busId</from> <to>$ObjectBusId</to> </copy> <copy ignoreMissingFromData="yes"> - <from>$ProcessCategoryOperationIn.categoryMessage/category/attribute[name = 'clientId']/value</from> + <from>$ProcessCategoryOperationIn.categoryMessage/dt:category/dt:attribute[dt:name = 'clientId']/dt:value</from> <to>$ObjectClientId</to> </copy> <!-- Init constants (better alternatives?) --> @@ -340,12 +344,12 @@ <if> <sxt:trace> <sxt:log level="info" location="onStart"> - <from>concat('*** Branching on category-event: ', $ProcessCategoryOperationIn.categoryMessage/event)</from> + <from>concat('*** Branching on category-event: ', $ProcessCategoryOperationIn.categoryMessage/dt:event)</from> </sxt:log> </sxt:trace> <!-- Event == "CREATE" --> - <condition>$ProcessCategoryOperationIn.categoryMessage/event = 'CREATE'</condition> + <condition>$ProcessCategoryOperationIn.categoryMessage/dt:event = 'CREATE'</condition> <sequence> <assign name="prepareAddCategory"> <sxt:trace> @@ -354,7 +358,7 @@ </sxt:log> </sxt:trace> <copy> - <from>$ProcessCategoryOperationIn.categoryMessage/category</from> + <from>$ProcessCategoryOperationIn.categoryMessage/dt:category</from> <to>$AddCategoryIn.category</to> </copy> <copy> @@ -395,7 +399,7 @@ </sequence> <elseif> <!-- Event == "UPDATE" --> - <condition>$ProcessCategoryOperationIn.categoryMessage/event = 'UPDATE'</condition> + <condition>$ProcessCategoryOperationIn.categoryMessage/dt:event = 'UPDATE'</condition> <sequence> <assign name="prepareUpdateCategory"> <sxt:trace> @@ -404,7 +408,7 @@ </sxt:log> </sxt:trace> <copy> - <from>$ProcessCategoryOperationIn.categoryMessage/category</from> + <from>$ProcessCategoryOperationIn.categoryMessage/dt:category</from> <to>$UpdateCategoryIn.category</to> </copy> <copy> @@ -441,7 +445,7 @@ </elseif> <elseif> <!-- Event == "DELETE" --> - <condition>$ProcessCategoryOperationIn.categoryMessage/event = 'DELETE'</condition> + <condition>$ProcessCategoryOperationIn.categoryMessage/dt:event = 'DELETE'</condition> <sequence> <assign name="prepareDeleteCategory"> <sxt:trace> @@ -450,7 +454,7 @@ </sxt:log> </sxt:trace> <copy> - <from>$ProcessCategoryOperationIn.categoryMessage/category</from> + <from>$ProcessCategoryOperationIn.categoryMessage/dt:category</from> <to>$DeleteCategoryIn.category</to> </copy> <copy> @@ -520,53 +524,56 @@ <!-- Generate reply(s) --> <assign name="prepareReply"> - <sxt:trace> - <sxt:log level="info" location="onComplete"> - <from>concat('*** Reply: ', $ProcessReplyIn.reply, 'END')</from> - </sxt:log> - </sxt:trace> <copy> <from> <literal> - <reply xmlns="http://cse.campussource.de/schema/DataTypes"> - <objectBusId/> - <objectClientId/> + <eventReplyMessage xmlns="http://cse.campussource.de/schema/DataTypes"> + <objectBusId>4</objectBusId> + <objectClientId>client5</objectClientId> <replyTime/> - <replyStatus/> + <replyStatus>SUCCESS</replyStatus> <info/> - </reply> + </eventReplyMessage> </literal> </from> - <to>$ProcessReplyIn.reply</to> + <to>$ProcessReplyIn.eventReply</to> </copy> </assign> -<!-- <assign> <copy> - <from>$ObjectBusId</from> - <to>$ProcessReplyIn.reply/objectBusId</to> + <from variable="ObjectBusId"/> + <to>$ProcessReplyIn.eventReply/dt:objectBusId</to> </copy> - <copy> - <from>$ObjectClientId</from> - <to>$ProcessReplyIn.reply/objectClientId</to> + <from variable="ObjectClientId"/> + <to>$ProcessReplyIn.eventReply/dt:objectClientId</to> </copy> <copy> - <from>$ReplyStatus</from> - <to>$ProcessReplyIn.reply/replyStatus</to> + <from variable="ReplyStatus"/> + <to>$ProcessReplyIn.eventReply/dt:replyStatus</to> </copy> <copy> - <from>sxxf:current-time()</from> - <to>$ProcessReplyIn.reply/replyTime</to> + <from>sxxf:current-dateTime()</from> + <to>$ProcessReplyIn.eventReply/dt:replyTime</to> </copy> + </assign> + <assign name="debugReply"> + <sxt:trace> + <sxt:log level="info" location="onComplete"> + <from>concat('*** Reply: ', $ReplyXML, 'END')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>sxxf:doMarshal($ProcessReplyIn.eventReply)</from> + <to>$ReplyXML</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. |
From: <pka...@us...> - 2009-07-07 14:48:30
|
Revision: 322 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=322&view=rev Author: pkasprzak Date: 2009-07-07 14:25:10 +0000 (Tue, 07 Jul 2009) Log Message: ----------- * Support for add / delete accounts (untested) 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-07-07 14:22:44 UTC (rev 321) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-07-07 14:25:10 UTC (rev 322) @@ -38,7 +38,8 @@ <import namespace="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ReplyProcessor" location="ObjectProcessor/ReplyProcessor.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" location="faultHandlingMsg.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" location="ResolveEPR.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - + <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount" location="AddAccount.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" location="DeleteAccount.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <partnerLinks> <partnerLink name="ResolveEPR" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" partnerLinkType="tns:ResolveEPR" partnerRole="ResolveEPRPortTypeRole"/> @@ -56,6 +57,8 @@ partnerRole="UpdateCategoryPortTypeRole"/> <partnerLink name="DeleteCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" partnerLinkType="tns:DeleteCategory" partnerRole="DeleteCategoryPortTypeRole"/> + <partnerLink name="AddAccount" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount" partnerLinkType="tns:AddAccount" partnerRole="AddAccountPortTypeRole"/> + <partnerLink name="DeleteAccount" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" partnerLinkType="tns:DeleteAccount" partnerRole="DeleteAccountPortTypeRole"/> <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" @@ -66,6 +69,7 @@ <variables> <!-- Messages --> + <variable name="ProcessAccountIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" messageType="tns:ProcessAccountOperationRequest"/> <variable name="ResolveEPROut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" messageType="tns:resolveEPRResponse"/> <variable name="ResolveEPRIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" messageType="tns:resolveEPRRequest"/> <variable name="ProcessReplyIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ReplyProcessor" messageType="tns:processReplyRequest"/> @@ -178,6 +182,8 @@ </faultHandlers> <pick name="processObjects" createInstance="yes" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"> + + <!-- Process courses --> <onMessage partnerLink="ILIASAdapter" operation="processCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" portType="tns:ILIASClientAdapterPortType" variable="ProcessCourseOperationIn"> @@ -402,6 +408,8 @@ </scope> </onMessage> + + <!-- Process categories --> <onMessage partnerLink="ILIASAdapter" operation="processCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" portType="tns:ILIASClientAdapterPortType" variable="ProcessCategoryOperationIn"> @@ -428,7 +436,7 @@ </copy> </assign> - <assign name="prepareLoginForCourses"> + <assign name="prepareLoginForCategories"> <copy> <from>$ProcessCategoryOperationIn.categoryMessage/dt:target</from> <to>$LoginIn.system</to> @@ -622,6 +630,239 @@ </sequence> </scope> </onMessage> + + <!-- Process accounts --> + <onMessage partnerLink="ILIASAdapter" operation="processAccount" portType="tns:ILIASClientAdapterPortType" + variable="ProcessAccountIn"> + + <scope name="AccountScope"> + <variables> + <variable name="DeleteAccountOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" messageType="tns:deleteAccountResponse"/> + <variable name="DeleteAccountIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" messageType="tns:deleteAccountRequest"/> + <variable name="AddAccountOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount" messageType="tns:AddAccountResponse"/> + <variable name="AddAccountIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount" messageType="tns:AddAccountRequest"/> + </variables> + <sequence> + <assign name="setSystem"> + <copy> + <from>$ProcessAccountIn.accountMessage/dt:target</from> + <to>$ResolveEPRIn.system</to> + </copy> + </assign> + + <!-- Determine Ilias Endpoint --> + <invoke name="resolveEPR" partnerLink="ResolveEPR" operation="resolveEPR" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" + portType="tns:ResolveEPRPortType" + inputVariable="ResolveEPRIn" + outputVariable="ResolveEPROut"/> + + <assign name="saveIliasEPR"> + <copy> + <from>$ResolveEPROut.EPR</from> + <to>$IliasEPR</to> + </copy> + </assign> + + <assign name="prepareLoginForAccounts"> + <copy> + <from>$ProcessAccountIn.accountMessage/dt:target</from> + <to>$LoginIn.system</to> + </copy> + <copy> + <from>$IliasEPR</from> + <to>$LoginIn.EPR</to> + </copy> + </assign> + + <invoke name="loginForAccounts" partnerLink="Login" operation="login" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" + portType="tns:LoginPortType" + inputVariable="LoginIn" + outputVariable="LoginOut"/> + <assign name="initAccountProcessing"> + <copy> + <from variable="LoginOut" part="SID"/> + <to variable="SID"/> + </copy> + <copy> + <from>$ProcessAccountIn.accountMessage/dt:account/dt:busId</from> + <to>$ObjectBusId</to> + </copy> + <copy ignoreMissingFromData="yes"> + <from>$ProcessAccountIn.accountMessage/dt:account/dt:attribute[dt:name = 'clientId']/dt:value</from> + <to>$ObjectClientId</to> + </copy> + + <!-- Init constants (better alternatives?) --> + <copy> + <from>'SUCCESS'</from> + <to>$STATUS_SUCCESS</to> + </copy> + <copy> + <from>'FAILURE'</from> + <to>$STATUS_FAILURE</to> + </copy> + </assign> + + <!-- Branch on different events --> + <if> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Branching on account-event: ', $ProcessAccountIn.accountMessage/dt:event)</from> + </sxt:log> + </sxt:trace> + + <!-- Event == "CREATE" --> + <condition>$ProcessAccountIn.accountMessage/dt:event = 'CREATE'</condition> + <sequence> + <assign name="prepareAddAccount"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** addAccount()', '')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>$ProcessAccountIn.accountMessage/dt:account</from> + <to>$AddAccountIn.account</to> + </copy> + <copy> + <from>$SID</from> + <to>$AddAccountIn.SID</to> + </copy> + <copy> + <from>$IliasEPR</from> + <to>$AddAccountIn.EPR</to> + </copy> + </assign> + <invoke name="addAccount" partnerLink="AddAccount" operation="addAccount" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount" + portType="tns:AddAccountPortType" + inputVariable="AddAccountIn" + outputVariable="AddAccountOut"/> + <assign name="saveAccountId"> + <copy> + <from>string($AddAccountOut.accountId)</from> + <to>$ObjectClientId</to> + </copy> + </assign> + <assign name="addAccountSuccess"> + <copy> + <from>$STATUS_SUCCESS</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </sequence> +<!-- + <elseif> +--> + <!-- Event == "UPDATE" --> +<!-- + <condition>$ProcessCategoryOperationIn.categoryMessage/dt:event = 'UPDATE'</condition> + <sequence> + <assign name="prepareUpdateCategory"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** updateCategory()', '')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>$ProcessCategoryOperationIn.categoryMessage/dt:category</from> + <to>$UpdateCategoryIn.category</to> + </copy> + <copy> + <from>$SID</from> + <to>$UpdateCategoryIn.SID</to> + </copy> + <copy> + <from>$IliasEPR</from> + <to>$UpdateCategoryIn.EPR</to> + </copy> + </assign> + <invoke name="updateCategory" partnerLink="UpdateCategory" operation="updateCategory" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCategory" + portType="tns:UpdateCategoryPortType" + inputVariable="UpdateCategoryIn" + outputVariable="UpdateCategoryOut"/> + <assign name="updateCategorySuccess"> + <copy> + <from>$STATUS_SUCCESS</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </sequence> + </elseif> +--> + <elseif> + <!-- Event == "DELETE" --> + <condition>$ProcessAccountIn.accountMessage/dt:event = 'DELETE'</condition> + <sequence> + <assign name="prepareDeleteAccount"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** deleteAccount()', '')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>$ProcessAccountIn.accountMessage/dt:account</from> + <to>$DeleteAccountIn.account</to> + </copy> + <copy> + <from>$SID</from> + <to>$DeleteAccountIn.SID</to> + </copy> + <copy> + <from>$IliasEPR</from> + <to>$DeleteAccountIn.EPR</to> + </copy> + </assign> + <invoke name="deleteAccount" partnerLink="DeleteAccount" operation="deleteAccount" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" + portType="tns:DeleteAccountPortType" + inputVariable="DeleteAccountIn" + outputVariable="DeleteAccountOut"/> + + <assign name="deleteAccountSuccess"> + <copy> + <from>$STATUS_SUCCESS</from> + <to>$ReplyStatus</to> + </copy> + </assign> + + </sequence> + </elseif> + <else> + <!-- Unrecognized Operation: throw fault! --> + <sequence > + <!--Set Fault Data --> + <assign name="PrepareForThrowFaultOperationNotFounded"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Unknown event!', '')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>concat('This Operation is unknown: ', $ProcessAccountIn.accountMessage/dt:event)</from> + <to variable="SystemFaultOperationNotFounded" part="cause"/> + </copy> + <copy> + <from>'OutboundClientAdapter.bpel, AccountScope'</from> + <to variable="SystemFaultOperationNotFounded" part="process"/> + </copy> + <copy> + <from>sxxf:doMarshal($ProcessAccountIn.accountMessage)</from> + <to variable="SystemFaultOperationNotFounded" part="context"/> + </copy> + </assign> + <throw name="ThrowFaultOperationNotFounded" faultVariable="SystemFaultOperationNotFounded" + faultName="sxeh:systemFault"/> + </sequence> + </else> + </if> + </sequence> + </scope> + + </onMessage> </pick> </scope> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |