From: <pka...@us...> - 2009-07-08 11:04:25
|
Revision: 325 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=325&view=rev Author: pkasprzak Date: 2009-07-08 11:04:16 +0000 (Wed, 08 Jul 2009) Log Message: ----------- * Fix string -> number conversion on clientIds * Fix uninitialized access on DeleteAccountOut Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.bpel 2009-07-08 10:44:27 UTC (rev 324) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.bpel 2009-07-08 11:04:16 UTC (rev 325) @@ -9,6 +9,7 @@ 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" xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" + xmlns:dt="http://cse.campussource.de/schema/DataTypes" xmlns:ns0="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/DeleteAccount"> @@ -124,17 +125,17 @@ </copy> </assign> - <!-- TODO set the course Id--> <assign name="prepareDeleteAccount"> <copy> <from variable="DeleteAccountIn" part="SID"/> <to variable="DeleteUserIn" part="sid"/> </copy> <copy> - <from>177</from> + <from>number($DeleteAccountIn.account/dt:attribute[dt:name = 'clientId']/dt:value)</from> <to variable="DeleteUserIn" part="user_id"/> </copy> </assign> + <invoke name="deleteAccount" partnerLink="ILIAS" operation="deleteUser" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" @@ -143,12 +144,12 @@ <!-- Send a normal reply if DeleteCourse succeeded, otherwise reply with an Ilias Fault --> <if name="IfDeleteAccountSucceeded"> - <condition>$DeleteAccountOut.success</condition> + <condition>$DeleteUserOut.success</condition> <sequence> <assign name="prepareReply"> <copy> - <from variable="DeleteUserOut" part="success"/> - <to variable="DeleteAccountOut" part="success"/> + <from>$DeleteUserOut.success</from> + <to>$DeleteAccountOut.success</to> </copy> </assign> <reply name="reply" partnerLink="IliasAdapter" operation="deleteAccount" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |