From: <pka...@us...> - 2009-07-07 10:18:31
|
Revision: 314 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=314&view=rev Author: pkasprzak Date: 2009-07-07 10:01:35 +0000 (Tue, 07 Jul 2009) Log Message: ----------- * initial version of DeleteAccount.bpel Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.wsdl Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.bpel (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.bpel 2009-07-07 10:01:35 UTC (rev 314) @@ -0,0 +1,198 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process name="DeleteAccount" + targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/DeleteAccount" + xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable" + 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: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" + xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" + xmlns:ns0="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" + xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/DeleteAccount"> + + <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" location="DeleteAccount.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.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/"/> + + <partnerLinks> + <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://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" partnerLinkType="tns:DeleteAccount" + myRole="DeleteAccountPortTypeRole"/> + </partnerLinks> + + <variables> + <variable name="DeleteAccountOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" messageType="tns:deleteAccountResponse"/> + <variable name="DeleteUserOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteUserResponse"/> + <variable name="DeleteUserIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteUserRequest"/> + <variable name="DeleteAccountIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" messageType="tns:deleteAccountRequest"/> + + <!-- FaultHandling Variables --> + + <variable name="SystemFault" messageType="fltns:systemFaultMessage"/> + <variable name="UnknownFault" messageType="fltns:unknownFaultMessage"/> + <variable name="IliasFault" messageType="fltns:iliasFaultMessage"/> + </variables> + + <sequence> + <scope name="deleteAccountScope"> + <faultHandlers> + + <!-- Handling SystemFault --> + <catch faultName="sxeh:systemFault"> + <sequence> + <assign name="prepareSystemFaultReply"> + <!-- Set Fault Data--> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** System Fault occured in deleteAccount()!', ' ')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>false()</from> + <to variable="DeleteAccountOut" part="success"/> + </copy> + <copy> + <from>'DeleteAccount failed with a SystemFault!'</from> + <to variable="SystemFault" part="cause"/> + </copy> + <copy> + <from>sxxf:doMarshal($DeleteAccountIn.account)</from> + <to variable="SystemFault" part="context"/> + </copy> + <copy> + <from>'DeleteAccount.bpel'</from> + <to variable="SystemFault" part="process"/> + </copy> + </assign> + <reply name="ReplyWithSystemFault" partnerLink="IliasAdapter" operation="deleteAccount" + portType="ns0:DeleteAccountPortType" + faultName="ns0:systemFault" + variable="SystemFault"/> + </sequence> + </catch> + + <!--Handling unspecific Faults --> + <catchAll> + + <sequence> + <assign name="prepareUnknownFaultReply"> + <!-- Set Fault Data--> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** System Fault occured in deleteAccount()!', ' ')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>false()</from> + <to variable="DeleteAccountOut" part="success"/> + </copy> + <copy> + <from>'DeleteAccount failed with an UnknownFault'</from> + <to variable="UnknownFault" part="cause"/> + </copy> + <copy> + <from>sxxf:doMarshal($DeleteAccountIn.account)</from> + <to variable="UnknownFault" part="context"/> + </copy> + <copy> + <from>'DeleteAccount.bpel'</from> + <to variable="UnknownFault" part="process"/> + </copy> + </assign> + <reply name="ReplyWithUnknownFault" partnerLink="IliasAdapter" operation="deleteAccount" + portType="ns0:DeleteAccountPortType" + faultName="ns0:UnknownFault" + variable="UnknownFault"/> + </sequence> + </catchAll> + </faultHandlers> + + <sequence> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="deleteAccount" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteAccount" + portType="ns0:DeleteAccountPortType" + variable="DeleteAccountIn"/> + <!-- Set Ilias EPR --> + <assign name="setIliasEPR"> + <copy> + <from>$DeleteAccountIn.EPR</from> + <to partnerLink="ILIAS"/> + </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> + <to variable="DeleteUserIn" part="user_id"/> + </copy> + </assign> + <invoke name="deleteAccount" partnerLink="ILIAS" operation="deleteUser" + xmlns:tns="urn:ilUserAdministration" + portType="tns:ILIASSoapWebservicePortType" + inputVariable="DeleteUserIn" + outputVariable="DeleteUserOut"/> + + <!-- Send a normal reply if DeleteCourse succeeded, otherwise reply with an Ilias Fault --> + <if name="IfDeleteAccountSucceeded"> + <condition>$DeleteAccountOut.success</condition> + <sequence> + <assign name="prepareReply"> + <copy> + <from variable="DeleteUserOut" part="success"/> + <to variable="DeleteAccountOut" part="success"/> + </copy> + </assign> + <reply name="reply" partnerLink="IliasAdapter" operation="deleteAccount" + portType="ns0:DeleteAccountPortType" + variable="DeleteAccountOut" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteAccount"/> + </sequence> + + <else> + <!--Reply with an Ilias Fault --> + <sequence> + <!-- Set Fault Data--> + <assign name="prepareIliasFaultReply"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** IliasFault occured in deleteAccount()!', ' ')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>false()</from> + <to variable="DeleteAccountOut" part="success"/> + </copy> + <copy> + <from>'Ilias returned failed.'</from> + <to variable="IliasFault" part="cause"/> + </copy> + <copy> + <from>sxxf:doMarshal($DeleteAccountIn.account)</from> + <to variable="IliasFault" part="context"/> + </copy> + <copy> + <from>'DeleteAccount.bpel'</from> + <to variable="IliasFault" part="process"/> + </copy> + </assign> + <reply name="ReplyWithIliasFault" partnerLink="IliasAdapter" operation="deleteAccount" + portType="ns0:DeleteAccountPortType" + faultName="ns0:IliasFault" + variable="IliasFault"/> + </sequence> + </else> + </if> + + </sequence> + </scope> + </sequence> +</process> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.wsdl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.wsdl 2009-07-07 10:01:35 UTC (rev 314) @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="DeleteAccount" + targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" + xmlns:ns1="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" + xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/serviceref" + xmlns:ns="http://cse.campussource.de/schema/DataTypes" + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> + + <import location="faultHandlingMsg.wsdl" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"/> + <types> + <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteAccount"> + <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + <xsd:import namespace="http://docs.oasis-open.org/wsbpel/2.0/serviceref" schemaLocation="Common/serviceref.xsd"/> + </xsd:schema> + </types> + <message name="deleteAccountRequest"> + <part name="SID" type="xsd:string"/> + <part name="account" type="ns:accountType"/> + <part name="EPR" element="ns0:service-ref"/> + </message> + <message name="deleteAccountResponse"> + <part name="success" type="xsd:boolean"/> + </message> + <portType name="DeleteAccountPortType"> + <operation name="deleteAccount"> + <input name="input1" message="tns:deleteAccountRequest"/> + <output name="output1" message="tns:deleteAccountResponse"/> + <fault name="SystemFault" message="ns1:systemFaultMessage"/> + <fault name="UnknownFault" message="ns1:unknownFaultMessage"/> + <fault name="IliasFault" message="ns1:iliasFaultMessage"/> + </operation> + </portType> + <plnk:partnerLinkType name="DeleteAccount"> + <plnk:role name="DeleteAccountPortTypeRole" portType="tns:DeleteAccountPortType"/> + </plnk:partnerLinkType> +</definitions> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |