From: <pka...@us...> - 2009-05-28 06:09:03
|
Revision: 218 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=218&view=rev Author: pkasprzak Date: 2009-05-28 06:08:59 +0000 (Thu, 28 May 2009) Log Message: ----------- * Restructure Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.wsdl Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,92 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process + name="AddCategory" + targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCategory" + 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:il_objs="http://cse.campussource.de/schema/ilias/objects" + xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCategory"> + + <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://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/AddCategory" location="AddCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <partnerLinks> + <partnerLink name="IliasAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" partnerLinkType="tns:AddCategory" myRole="AddCategoryPortTypeRole"/> + <partnerLink name="ILIAS" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" partnerLinkType="tns:ILIASSoapWebserviceLinkType" partnerRole="ILIASSoapWebserviceRole"/> + </partnerLinks> + + <variables> + <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="AddObjectOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:addObjectResponse"/> + <variable name="AddObjectIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:addObjectRequest"/> + + <!-- Category description as object in Ilias-Format --> + <variable name="CategoryXML" element="il_objs:Object"/> + </variables> + + <sequence> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="addCategory" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" + portType="tns:AddCategoryPortType" + variable="AddCategoryIn"/> + <assign name="prepareAddCategory"> + <copy> + <from>$AddCategoryIn.SID</from> + <to>$AddObjectIn.sid</to> + </copy> + <copy> + <from>1</from> + <to>$AddObjectIn.target_id</to> + </copy> + <copy> + <from> + <literal> + <Object xmlns="http://cse.campussource.de/schema/ilias/objects" type="cat"> + <Title>category1</Title> + <Description>test category</Description> + </Object> + </literal> + </from> + <to variable="CategoryXML"/> + </copy> + </assign> + + <!-- Render XML to string --> + <assign name="marshalCategoryXML"> + <copy> + <from>sxxf:doMarshal($CategoryXML)</from> + <to>$AddObjectIn.object_xml</to> + </copy> + </assign> + + <invoke name="addCategory" partnerLink="ILIAS" operation="addObject" xmlns:tns="urn:ilUserAdministration" + portType="tns:ILIASSoapWebservicePortType" + inputVariable="AddObjectIn" + outputVariable="AddObjectOut"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Adding Category: ', $AddObjectIn.object_xml)</from> + </sxt:log> + </sxt:trace> + </invoke> + + <assign name="prepareReply"> + <copy> + <from>$AddObjectOut.ref_id</from> + <to>$AddCategoryOut.categoryId</to> + </copy> + </assign> + + <reply name="returnCategoryId" partnerLink="IliasAdapter" operation="addCategory" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" + portType="tns:AddCategoryPortType" + variable="AddCategoryOut"/> + </sequence> +</process> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="AddCategory" targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" xmlns:ns="http://cse.campussource.de/schema/DataTypes" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> + <types> + <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory"> + <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + </xsd:schema> + </types> + <message name="AddCategoryRequest"> + <part name="SID" type="xsd:string"/> + <part name="category" type="ns:categoryType"/> + </message> + <message name="AddCategoryResponse"> + <part name="categoryId" type="xsd:int"/> + </message> + <portType name="AddCategoryPortType"> + <operation name="addCategory"> + <input name="input1" message="tns:AddCategoryRequest"/> + <output name="output1" message="tns:AddCategoryResponse"/> + </operation> + </portType> + <plnk:partnerLinkType name="AddCategory"> + <!-- A partner link type is automatically generated when a new port type is added. Partner link types are used by BPEL processes. +In a BPEL process, a partner link represents the interaction between the BPEL process and a partner service. Each partner link is associated with a partner link type. +A partner link type characterizes the conversational relationship between two services. The partner link type can have one or two roles.--> + <plnk:role name="AddCategoryPortTypeRole" portType="tns:AddCategoryPortType"/> + </plnk:partnerLinkType> +</definitions> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,297 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process + name="AddCourse" + targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCourse" + 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:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" + xmlns:il_crs="http://cse.campussource.de/schema/ilias/course" + xmlns:il_objs="http://cse.campussource.de/schema/ilias/objects" + xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCourse"> + + <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://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/AddCourse" location="AddCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + + <partnerLinks> + <partnerLink name="IliasAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" partnerLinkType="tns:AddCourse" myRole="AddCoursePortTypeRole"/> + <partnerLink name="ILIAS" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" partnerLinkType="tns:ILIASSoapWebserviceLinkType" partnerRole="ILIASSoapWebserviceRole"/> + </partnerLinks> + + <variables> + <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="IliasAddCourseOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:addCourseResponse"/> + <variable name="IliasAddCourseIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:addCourseRequest"/> + + <variable name="AddObjectOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:addObjectResponse"/> + <variable name="AddObjectIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:addObjectRequest"/> + + <variable name="GetObjectsByTitleOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:getObjectsByTitleResponse"/> + <variable name="GetObjectsByTitleIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:getObjectsByTitleRequest"/> + + <!-- Category description as object in Ilias-Format --> + <variable name="CategoryXML" element="il_objs:Object"/> + + <!-- Result of object search for title --> + <variable name="ObjectsRawXML" element="il_objs:Objects"/> + <variable name="ObjectsXML" element="il_objs:Objects"/> + + <!-- RefId of the category used adding courses to --> + <variable name="CategoryRefId" type="xsd:integer"/> + + <!-- Course description in Ilias-Format --> + <variable name="CourseXML" element="il_crs:Course"/> + + </variables> + + <sequence> + + <!-- Init variables --> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="addCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" portType="tns:AddCoursePortType" variable="AddCourseIn"/> + <assign name="init"> + <copy> + <from>0</from> + <to variable="CategoryRefId"/> + </copy> + </assign> + + <!-- Prepeare search by title --> + <assign name="prepareGetObjectsByTitle"> + <copy> + <from>$AddCourseIn.SID</from> + <to>$GetObjectsByTitleIn.sid</to> + </copy> + <copy> + <from>'test'</from> + <to>$GetObjectsByTitleIn.title</to> + </copy> + <copy> + <from>0</from> + <to>$GetObjectsByTitleIn.user_id</to> + </copy> + </assign> + + <!-- Do search --> + <invoke name="getObjectsByTitle" partnerLink="ILIAS" operation="getObjectsByTitle" xmlns:tns="urn:ilUserAdministration" + portType="tns:ILIASSoapWebservicePortType" + inputVariable="GetObjectsByTitleIn" + outputVariable="GetObjectsByTitleOut"> +<!-- + BUG: java.util.logging.ErrorManager: 5: Error in extracting Name Value Pairs + java.lang.NullPointerException + <sxt:trace> + <sxt:log level="info" location="onComplete"> + <from>concat('*** ObjectsXML: ', $GetObjectsByTitleOut.object_xml)</from> + </sxt:log> + </sxt:trace> +--> + </invoke> + + <!-- Don't try to unmarshal empty string (i.e. no objects found) --> + <if> + <condition>$GetObjectsByTitleOut.object_xml != ''</condition> + <sequence name="processObjectsXML"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>'*** Processing ObjectsXML...'</from> + </sxt:log> + </sxt:trace> + + <!-- Convert to XML structure --> + <assign name="unmarshalResult" > + <copy> + <from>sxxf:doUnMarshal($GetObjectsByTitleOut.object_xml)</from> + <to variable="ObjectsRawXML"/> + </copy> + </assign> + + <assign> +<!-- + BUG: java.util.logging.ErrorManager: 5: Error in extracting Name Value Pairs + java.lang.NullPointerException + <sxt:trace> + <sxt:log level="info" location="onComplete"> + <from>concat('*** ObjectsXML (after xslt): ', sxxf:doMarshal($ObjectsXML))</from> + </sxt:log> + </sxt:trace> +--> + <copy> + <from>ns0:doXslTransform('urn:stylesheets:setObjectsNS.xsl', $ObjectsRawXML)</from> + <to variable="ObjectsXML"/> + </copy> + </assign> + + <!-- Determine, if there is a category in the result (Object/@type = "cat") and get it's refId for later --> + <assign name="checkForCategories"> + +<!-- + BUG: java.util.logging.ErrorManager: 5: Error in extracting Name Value Pairs + java.lang.NullPointerException + + <sxt:trace> + <sxt:log level="info" location="onComplete"> + <from>concat('*** CategoryRefId: ', string($CategoryRefId))</from> + </sxt:log> + </sxt:trace> +--> + <!-- Note: if an empty node is return below, it is converted by number() to "NaN" --> + <copy> + <from>number($ObjectsXML/il_objs:Object[@il_objs:type = 'cat']/il_objs:References/@il_objs:ref_id)</from> + <to variable="CategoryRefId"/> + </copy> + </assign> + </sequence> + </if> + + <!-- If no appropriate catgeory was found, create one --> + <if> + <condition>string($CategoryRefId) = 'NaN' or $CategoryRefId = 0</condition> + <sequence name="addTestCategory"> + <assign name="prepareAddCategory"> + <copy> + <from>$AddCourseIn.SID"</from> + <to>$AddObjectIn.sid</to> + </copy> + <copy> + <from>1</from> + <to>$AddObjectIn.target_id</to> + </copy> + <copy> + <from> + <literal> + <Object xmlns="http://cse.campussource.de/schema/ilias/objects" type="cat"> + <Title>test</Title> + <Description>test category</Description> + </Object> + </literal> + </from> + <to variable="CategoryXML"/> + </copy> + </assign> + + <!-- Render XML to string --> + <assign name="marshalCategoryXML"> + <copy> + <from>sxxf:doMarshal($CategoryXML)</from> + <to>$AddObjectIn.object_xml</to> + </copy> + </assign> + + <invoke name="addCategory" partnerLink="ILIAS" operation="addObject" xmlns:tns="urn:ilUserAdministration" + portType="tns:ILIASSoapWebservicePortType" + inputVariable="AddObjectIn" + outputVariable="AddObjectOut"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Adding Category: ', $AddObjectIn.object_xml)</from> + </sxt:log> + </sxt:trace> + </invoke> + + <!-- Set RefId --> + <assign name="setRefId"> + <copy> + <from>$AddObjectOut.ref_id</from> + <to variable="CategoryRefId"/> + </copy> + </assign> + </sequence> + </if> + + <!-- Initialize course xml skeleton --> + <assign name="initializeCourseXML"> + <copy> + <from> + <literal> + <Course xmlns="http://cse.campussource.de/schema/ilias/course"> + <MetaData xmlns="http://cse.campussource.de/schema/ilias/course"> + <General> + <Title Language="en">test3</Title> + <Language Language="en">en</Language> + <Description Language="en">bpel test2</Description> + </General> + </MetaData> + </Course> + </literal> + </from> + <to>$CourseXML</to> + </copy> + </assign> + + <!-- Set relevant course data --> + <assign name="setCourseData"> + <copy> +<!-- + <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'title']/value</from> +--> + <from>'test6'</from> + <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title/text()</to> + </copy> +<!-- + <copy> + <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'languageISO']/value</from> + <to>$CourseXML/MetaData/General/Title/@Language</to> + </copy> + <copy> + <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'languageISO']/value</from> + <to>$CourseXML/MetaData/General/Language[0]/@Language</to> + </copy> +--> + </assign> + + <!-- Set all parts for addCourse call --> + <assign name="prepareAddCourse"> + <!-- Set SID --> + <copy> + <from>$AddCourseIn.SID</from> + <to variable="IliasAddCourseIn" part="sid"/> + </copy> + <!-- Set targetRefId with defaut value (= catgeory-root hopefully...) --> + <copy> + <from variable="CategoryRefId"/> + <to variable="IliasAddCourseIn" part="target_id"/> + </copy> + <!-- Set CourseXML (as string) --> + <copy> + <from>sxxf:doMarshal($CourseXML)</from> + <to variable="IliasAddCourseIn" part="crs_xml"/> + </copy> + </assign> + + <invoke name="createLecture" partnerLink="ILIAS" operation="addCourse" xmlns:tns="urn:ilUserAdministration" + portType="tns:ILIASSoapWebservicePortType" + inputVariable="IliasAddCourseIn" + outputVariable="IliasAddCourseOut"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Adding Course (refId: ', $IliasAddCourseIn.target_id, ', xml: ', $IliasAddCourseIn.crs_xml, ')')</from> + </sxt:log> + + <sxt:log level="info" location="onComplete"> + <from>concat('*** Result of addCourse: ', $IliasAddCourseOut.course_id)</from> + </sxt:log> + </sxt:trace> + </invoke> + + <assign name="prepeareReply"> + <copy> + <from>$IliasAddCourseOut.course_id</from> + <to>$AddCourseOut.courseId</to> + </copy> + </assign> + + <reply name="returnCourseId" partnerLink="IliasAdapter" operation="addCourse" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" + portType="tns:AddCoursePortType" + variable="AddCourseOut"/> + </sequence> +</process> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="AddCourse" targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" xmlns:ns="http://cse.campussource.de/schema/DataTypes" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> + <types> + <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse"> + <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + </xsd:schema> + </types> + <message name="AddCourseRequest"> + <part name="SID" type="xsd:string"/> + <part name="course" type="ns:courseType"/> + </message> + <message name="AddCourseResponse"> + <part name="courseId" type="xsd:int"/> + </message> + <portType name="AddCoursePortType"> + <operation name="addCourse"> + <input name="input1" message="tns:AddCourseRequest"/> + <output name="output1" message="tns:AddCourseResponse"/> + </operation> + </portType> + <plnk:partnerLinkType name="AddCourse"> + <!-- A partner link type is automatically generated when a new port type is added. Partner link types are used by BPEL processes. +In a BPEL process, a partner link represents the interaction between the BPEL process and a partner service. Each partner link is associated with a partner link type. +A partner link type characterizes the conversational relationship between two services. The partner link type can have one or two roles.--> + <plnk:role name="AddCoursePortTypeRole" portType="tns:AddCoursePortType"/> + </plnk:partnerLinkType> +</definitions> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process + name="DeleteCategory" + targetNamespace="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCategory" + 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:tns="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCategory"> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" location="DeleteCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <partnerLinks> + <partnerLink name="IliasAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" partnerLinkType="tns:DeleteCategory" myRole="DeleteCategoryPortTypeRole"/> + </partnerLinks> + <variables> + <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"/> + </variables> + <sequence> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="deleteCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" portType="tns:DeleteCategoryPortType" variable="DeleteCategoryIn"/> + <reply name="return" partnerLink="IliasAdapter" operation="deleteCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" portType="tns:DeleteCategoryPortType" variable="DeleteCategoryOut"/> + </sequence> +</process> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="DeleteCategory" targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" xmlns:ns="http://cse.campussource.de/schema/DataTypes" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> + <types> + <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory"> + <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + </xsd:schema> + </types> + <message name="deleteCategoryRequest"> + <part name="SID" type="xsd:string"/> + <part name="category" type="ns:categoryType"/> + </message> + <message name="deleteCategoryResponse"> + <part name="success" type="xsd:boolean"/> + </message> + <portType name="DeleteCategoryPortType"> + <operation name="deleteCategory"> + <input name="input1" message="tns:deleteCategoryRequest"/> + <output name="output1" message="tns:deleteCategoryResponse"/> + </operation> + </portType> + <plnk:partnerLinkType name="DeleteCategory"> + <!-- A partner link type is automatically generated when a new port type is added. Partner link types are used by BPEL processes. +In a BPEL process, a partner link represents the interaction between the BPEL process and a partner service. Each partner link is associated with a partner link type. +A partner link type characterizes the conversational relationship between two services. The partner link type can have one or two roles.--> + <plnk:role name="DeleteCategoryPortTypeRole" portType="tns:DeleteCategoryPortType"/> + </plnk:partnerLinkType> +</definitions> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process + name="DeleteCourse" + targetNamespace="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCourse" + 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:tns="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCourse"> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" location="DeleteCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <partnerLinks> + <partnerLink name="IliasAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" partnerLinkType="tns:DeleteCourse" myRole="DeleteCoursePortTypeRole"/> + </partnerLinks> + <variables> + <variable name="DeleteCourseOperationOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseResponse"/> + <variable name="DeleteCourseOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseRequest"/> + </variables> + <sequence> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="deleteCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" portType="tns:DeleteCoursePortType" variable="DeleteCourseOperationIn"/> + <reply name="reply" partnerLink="IliasAdapter" operation="deleteCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" portType="tns:DeleteCoursePortType" variable="DeleteCourseOperationOut"/> + </sequence> +</process> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="DeleteCourse" targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" xmlns:ns="http://cse.campussource.de/schema/DataTypes" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> + <types> + <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse"> + <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + </xsd:schema> + </types> + <message name="DeleteCourseRequest"> + <part name="SID" type="xsd:string"/> + <part name="course" type="ns:courseType"/> + </message> + <message name="DeleteCourseResponse"> + <part name="success" type="xsd:boolean"/> + </message> + <portType name="DeleteCoursePortType"> + <operation name="deleteCourse"> + <input name="input1" message="tns:DeleteCourseRequest"/> + <output name="output1" message="tns:DeleteCourseResponse"/> + </operation> + </portType> + <plnk:partnerLinkType name="DeleteCourse"> + <!-- A partner link type is automatically generated when a new port type is added. Partner link types are used by BPEL processes. +In a BPEL process, a partner link represents the interaction between the BPEL process and a partner service. Each partner link is associated with a partner link type. +A partner link type characterizes the conversational relationship between two services. The partner link type can have one or two roles.--> + <plnk:role name="DeleteCoursePortTypeRole" portType="tns:DeleteCoursePortType"/> + </plnk:partnerLinkType> +</definitions> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl 2009-05-28 06:08:30 UTC (rev 217) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl 2009-05-28 06:08:59 UTC (rev 218) @@ -15,22 +15,22 @@ <part name="categoryMessage" type="ns:categoryMessageType"/> </message> <portType name="ILIASClientAdapterPortType"> - <operation name="ProcessCourseOperation"> + <operation name="processCourse"> <input name="input1" message="tns:ProcessCourseOperationRequest"/> </operation> - <operation name="ProcessCategoryOperation"> + <operation name="processCategory"> <input name="input2" message="tns:ProcessCategoryOperationRequest"/> </operation> </portType> <binding name="ILIASClientAdapterBinding" type="tns:ILIASClientAdapterPortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> - <operation name="ProcessCourseOperation"> + <operation name="processCourse"> <soap:operation/> <input name="input1"> <soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"/> </input> </operation> - <operation name="ProcessCategoryOperation"> + <operation name="processCategory"> <soap:operation/> <input name="input2"> <soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"/> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process + name="Login" + targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/Login" + 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:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/Login"> + + <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/Login" location="Login.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + + <partnerLinks> + <partnerLink name="IliasAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" partnerLinkType="tns:Login" myRole="LoginPortTypeRole"/> + <partnerLink name="ILIAS" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" partnerLinkType="tns:ILIASSoapWebserviceLinkType" partnerRole="ILIASSoapWebserviceRole"/> + </partnerLinks> + + <variables> + <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="IliasLoginOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:loginResponse"/> + <variable name="IliasLoginIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:loginRequest"/> + </variables> + + <sequence> + + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="login" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" + portType="tns:LoginPortType" + variable="LoginIn"/> + + <assign name="prepareLogin"> + <copy> + <from>'test'</from> + <to variable="IliasLoginIn" part="client"/> + </copy> + <copy> + <from>'root'</from> + <to variable="IliasLoginIn" part="username"/> + </copy> + <copy> + <from>'homer'</from> + <to variable="IliasLoginIn" part="password"/> + </copy> + </assign> + + <invoke name="login" partnerLink="ILIAS" operation="login" xmlns:tns="urn:ilUserAdministration" + portType="tns:ILIASSoapWebservicePortType" + inputVariable="IliasLoginIn" + outputVariable="IliasLoginOut"> + <sxt:trace> + <sxt:log level="info" location="onComplete"> + <from>concat('*** SID: ', $IliasLoginOut.sid)</from> + </sxt:log> + </sxt:trace> + </invoke> + + <assign name="prepareReply"> + <copy> + <from>$IliasLoginOut.sid</from> + <to>$LoginOut.SID</to> + </copy> + </assign> + + <reply name="replyWithSID" partnerLink="IliasAdapter" operation="login" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" + portType="tns:LoginPortType" + variable="LoginOut"/> + </sequence> +</process> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.wsdl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.wsdl 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="Login" targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> + <types/> + <message name="loginRequest"> + <part name="dummy" type="xsd:string"/> + </message> + <message name="loginResponse"> + <part name="SID" type="xsd:string"/> + </message> + <portType name="LoginPortType"> + <operation name="login"> + <input name="input1" message="tns:loginRequest"/> + <output name="output1" message="tns:loginResponse"/> + </operation> + </portType> + <plnk:partnerLinkType name="Login"> + <!-- A partner link type is automatically generated when a new port type is added. Partner link types are used by BPEL processes. +In a BPEL process, a partner link represents the interaction between the BPEL process and a partner service. Each partner link is associated with a partner link type. +A partner link type characterizes the conversational relationship between two services. The partner link type can have one or two roles.--> + <plnk:role name="LoginPortTypeRole" portType="tns:LoginPortType"/> + </plnk:partnerLinkType> +</definitions> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-05-28 06:08:30 UTC (rev 217) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-05-28 06:08:59 UTC (rev 218) @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <process name="OutboundClientAdapter" - targetNamespace="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/newProcess" + targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/OutboundClientAdapter" xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:xsd="http://www.w3.org/2001/XMLSchema" @@ -12,412 +12,236 @@ 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:tns="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/newProcess"> + 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/"/> <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"/> </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="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"/> <variable name="ProcessCourseOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" messageType="tns:ProcessCourseOperationRequest"/> - <variable name="AddObjectOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:addObjectResponse"/> - <variable name="AddObjectIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:addObjectRequest"/> - <variable name="GetObjectsByTitleOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:getObjectsByTitleResponse"/> - <variable name="GetObjectsByTitleIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:getObjectsByTitleRequest"/> - <variable name="AddCourseOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:addCourseResponse"/> - <variable name="AddCourseIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:addCourseRequest"/> <variable name="LogoutOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:logoutResponse"/> <variable name="LogoutIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:logoutRequest"/> - <variable name="LoginOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:loginResponse"/> - <variable name="LoginIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:loginRequest"/> <!-- Ilias --> <!-- Ilias session id --> <variable name="SID" type="xsd:string"/> - <!-- Course description in Ilias-Format --> - <variable name="CourseXML" element="il_crs:Course"/> - - <!-- RefId of the category used adding courses to --> - <variable name="CategoryRefId" type="xsd:integer"/> - - </variables> <sequence> <pick name="processObjects" createInstance="yes"> - <onMessage partnerLink="ILIASAdapter" operation="ProcessCourseOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" portType="tns:ILIASClientAdapterPortType" variable="ProcessCourseOperationIn"> + <onMessage partnerLink="ILIASAdapter" operation="processCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" + portType="tns:ILIASClientAdapterPortType" + variable="ProcessCourseOperationIn"> <sequence> - <assign name="prepareLogin"> + + <assign name="prepareLoginForCourses"> <copy> - <from>'test'</from> - <to variable="LoginIn" part="client"/> + <from>'dummy'</from> + <to>$LoginIn.dummy</to> </copy> - <copy> - <from>'root'</from> - <to variable="LoginIn" part="username"/> - </copy> - <copy> - <from>'homer'</from> - <to variable="LoginIn" part="password"/> - </copy> </assign> - <invoke name="login" partnerLink="ILIAS" operation="login" xmlns:tns="urn:ilUserAdministration" - portType="tns:ILIASSoapWebservicePortType" - inputVariable="LoginIn" - outputVariable="LoginOut"> - <sxt:trace> - <sxt:log level="info" location="onComplete"> - <from>concat('*** SID: ', $LoginOut.sid)</from> - </sxt:log> - </sxt:trace> - </invoke> - - <assign name="saveSID"> + <invoke name="loginForCourses" partnerLink="Login" operation="login" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" + portType="tns:LoginPortType" + inputVariable="LoginIn" + outputVariable="LoginOut"/> + <assign name="saveSIDForCourses"> <copy> - <from variable="LoginOut" part="sid"/> + <from variable="LoginOut" part="SID"/> <to variable="SID"/> </copy> </assign> - <!-- Check if "test" category exists and if not add it --> - <scope name="CheckAndCreateTestCategory"> - - <variables> - <!-- Category description as object in Ilias-Format --> - <variable name="CategoryXML" element="il_objs:Object"/> - - <!-- Result of object search for title --> - <variable name="ObjectsRawXML" element="il_objs:Objects"/> - <variable name="ObjectsXML" element="il_objs:Objects"/> - - </variables> - - <sequence name="CheckForTestCategory"> - <!-- Init variables --> - <assign name="init"> + <!-- Branch on different events --> + <if> + <!-- Event == "CREATE" --> + <condition>$ProcessCourseOperationIn.courseMessage/event = 'CREATE'</condition> + <sequence> + <assign name="prepareAddCourse"> <copy> - <from>0</from> - <to variable="CategoryRefId"/> + <from>$ProcessCourseOperationIn.courseMessage/course</from> + <to>$AddCourseIn.course</to> </copy> - </assign> - - <!-- Prepeare search by title --> - <assign name="prepareGetObjectsByTitle"> <copy> - <from variable="SID"/> - <to>$GetObjectsByTitleIn.sid</to> + <from>$SID</from> + <to>$AddCourseIn.SID</to> </copy> - <copy> - <from>'test'</from> ... [truncated message content] |