|
From: <ale...@us...> - 2009-07-01 13:23:03
|
Revision: 289
http://cse-ip.svn.sourceforge.net/cse-ip/?rev=289&view=rev
Author: alexloewen
Date: 2009-07-01 12:21:32 +0000 (Wed, 01 Jul 2009)
Log Message:
-----------
no changes, some doku changed, alignment
Modified Paths:
--------------
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel
Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel
===================================================================
--- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-07-01 11:44:30 UTC (rev 288)
+++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-07-01 12:21:32 UTC (rev 289)
@@ -98,7 +98,7 @@
</catch>
<catchAll>
- <!--Handling unspecific Faults -->
+ <!--Handling unspecific Faults -->
<sequence>
<!-- Set Fault Data-->
<assign name="prepareUnknownFaultReply">
@@ -138,7 +138,7 @@
</assign>
- <!-- Prepeare search by title -->
+ <!-- Prepeare search by title -->
<assign name="prepareGetObjectsByTitle">
<copy>
<from>$AddCourseIn.SID</from>
@@ -154,7 +154,7 @@
</copy>
</assign>
- <!-- Do search -->
+ <!-- Do search -->
<invoke name="getObjectsByTitle" partnerLink="ILIAS" operation="getObjectsByTitle" xmlns:tns="urn:ilUserAdministration"
portType="tns:ILIASSoapWebservicePortType"
inputVariable="GetObjectsByTitleIn"
@@ -170,7 +170,7 @@
-->
</invoke>
- <!-- Don't try to unmarshal empty string (i.e. no objects found) -->
+ <!-- Don't try to unmarshal empty string (i.e. no objects found) -->
<if>
<condition>$GetObjectsByTitleOut.object_xml != ''</condition>
<sequence name="processObjectsXML">
@@ -180,7 +180,7 @@
</sxt:log>
</sxt:trace>
- <!-- Convert to XML structure -->
+ <!-- Convert to XML structure -->
<assign name="unmarshalResult" >
<copy>
<from>sxxf:doUnMarshal($GetObjectsByTitleOut.object_xml)</from>
@@ -226,7 +226,7 @@
</sequence>
</if>
- <!-- If no appropriate catgeory was found, create one -->
+ <!-- If no appropriate catgeory was found, create one -->
<if>
<condition>string($CategoryRefId) = 'NaN' or $CategoryRefId = 0</condition>
<sequence name="addTestCategory">
@@ -252,7 +252,7 @@
</copy>
</assign>
- <!-- Render XML to string -->
+ <!-- Render XML to string -->
<assign name="marshalCategoryXML">
<copy>
<from>sxxf:doMarshal($CategoryXML)</from>
@@ -271,7 +271,7 @@
</sxt:trace>
</invoke>
- <!-- Set RefId -->
+ <!-- Set RefId -->
<assign name="setRefId">
<copy>
<from>$AddObjectOut.ref_id</from>
@@ -281,7 +281,7 @@
</sequence>
</if>
- <!-- Initialize course xml skeleton -->
+ <!-- Initialize course xml skeleton -->
<assign name="initializeCourseXML">
<copy>
<from>
@@ -301,22 +301,22 @@
</copy>
</assign>
- <!-- Set relevant course data -->
+ <!-- Set relevant course data -->
<assign name="setCourseData">
- <!-- Set title -->
+ <!-- Set title -->
<copy>
<from>$AddCourseIn.course/dt:attribute[dt:name = 'title']/dt:value</from>
<to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title/text()</to>
</copy>
- <!-- Set Description -->
+ <!-- Set Description -->
<copy ignoreMissingFromData="yes">
<from>$AddCourseIn.course/dt:attribute[dt:name = 'shortDescription']/dt:value</from>
<to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Description/text()</to>
</copy>
- <!-- Set Language: use init value as default -->
+ <!-- Set Language: use init value as default -->
<copy ignoreMissingFromData="yes">
<from>$AddCourseIn.course/dt:attribute[dt:name = 'languageISO']/dt:value</from>
<to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title/@il_crs:Language</to>
@@ -336,9 +336,9 @@
</assign>
- <!-- Set all parts for addCourse call -->
+ <!-- Set all parts for addCourse call -->
<assign name="prepareAddCourse">
- <!-- Set SID -->
+ <!-- Set SID -->
<copy>
<from>$AddCourseIn.SID</from>
<to variable="IliasAddCourseIn" part="sid"/>
Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel
===================================================================
--- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-07-01 11:44:30 UTC (rev 288)
+++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-07-01 12:21:32 UTC (rev 289)
@@ -34,14 +34,16 @@
<variable name="SystemFault" messageType="fltns:systemFaultMessage"/>
<variable name="UnknownFault" messageType="fltns:unknownFaultMessage"/>
<variable name="IliasFault" messageType="fltns:iliasFaultMessage"/>
+
</variables>
<sequence>
<scope name="deleteCourseScope">
<faultHandlers>
+
<!--Handling SystemFault -->
<catch faultName="sxeh:systemFault">
<sequence>
- <assign name="prepareSystemFaultReply">
+ <assign name="prepareSystemFaultReply">
<!-- Set Fault Data-->
<sxt:trace>
<sxt:log level="info" location="onStart">
@@ -60,11 +62,11 @@
<from>sxxf:doMarshal($DeleteCourseOperationIn.course)</from>
<to variable="SystemFault" part="context"/>
</copy>
- <copy>
- <from>'DeleteCourse.bpel'</from>
- <to variable="SystemFault" part="process"/>
- </copy>
- </assign>
+ <copy>
+ <from>'DeleteCourse.bpel'</from>
+ <to variable="SystemFault" part="process"/>
+ </copy>
+ </assign>
<reply name="ReplyWithSystemFault" partnerLink="IliasAdapter" operation="deleteCourse" portType="ns0:DeleteCoursePortType" faultName="ns0:SystemFault" variable="SystemFault"/>
</sequence>
</catch>
@@ -108,15 +110,15 @@
portType="tns:DeleteCoursePortType"
variable="DeleteCourseOperationIn"/>
<!-- TODO set the course Id-->
- <assign name="prepareForDeleteCourse">
+ <assign name="prepareForDeleteCourse">
<copy>
- <from variable="DeleteCourseOperationIn" part="SID"/>
- <to variable="DeleteCourseIn" part="sid"/>
- </copy>
- <copy>
- <from>177</from>
- <to variable="DeleteCourseIn" part="course_id"/>
- </copy>
+ <from variable="DeleteCourseOperationIn" part="SID"/>
+ <to variable="DeleteCourseIn" part="sid"/>
+ </copy>
+ <copy>
+ <from>177</from>
+ <to variable="DeleteCourseIn" part="course_id"/>
+ </copy>
</assign>
<invoke name="deleteCourseInvoke" partnerLink="ILIAS" operation="deleteCourse"
xmlns:tns="urn:ilUserAdministration"
@@ -129,9 +131,9 @@
<sequence name="Sequence1">
<assign name="prepareReply">
<copy>
- <from variable="DeleteCourseOut" part="success"/>
- <to variable="DeleteCourseOperationOut" part="success"/>
- </copy>
+ <from variable="DeleteCourseOut" part="success"/>
+ <to variable="DeleteCourseOperationOut" part="success"/>
+ </copy>
</assign>
<reply name="reply" partnerLink="IliasAdapter" operation="deleteCourse"
portType="ns0:DeleteCoursePortType"
@@ -142,29 +144,29 @@
<!--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 deleteCourse()!', ' ')</from>
- </sxt:log>
- </sxt:trace>
- <copy>
- <from>false()</from>
- <to variable="DeleteCourseOut" part="success"/>
- </copy>
- <copy>
- <from>'Ilias returned failed.'</from>
- <to variable="IliasFault" part="cause"/>
- </copy>
- <copy>
- <from>sxxf:doMarshal($DeleteCourseOperationIn.course)</from>
- <to variable="IliasFault" part="context"/>
- </copy>
- <copy>
- <from>'DeleteCourse.bpel'</from>
- <to variable="IliasFault" part="process"/>
- </copy>
- </assign>
+ <assign name="prepareIliasFaultReply">
+ <sxt:trace>
+ <sxt:log level="info" location="onStart">
+ <from>concat('*** IliasFault occured in deleteCourse()!', ' ')</from>
+ </sxt:log>
+ </sxt:trace>
+ <copy>
+ <from>false()</from>
+ <to variable="DeleteCourseOut" part="success"/>
+ </copy>
+ <copy>
+ <from>'Ilias returned failed.'</from>
+ <to variable="IliasFault" part="cause"/>
+ </copy>
+ <copy>
+ <from>sxxf:doMarshal($DeleteCourseOperationIn.course)</from>
+ <to variable="IliasFault" part="context"/>
+ </copy>
+ <copy>
+ <from>'DeleteCourse.bpel'</from>
+ <to variable="IliasFault" part="process"/>
+ </copy>
+ </assign>
<reply name="ReplyWithIliasFault" partnerLink="IliasAdapter" operation="deleteCourse" portType="ns0:DeleteCoursePortType" faultName="ns0:IliasFault" variable="IliasFault"/>
</sequence>
</else>
Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel
===================================================================
--- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-07-01 11:44:30 UTC (rev 288)
+++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-07-01 12:21:32 UTC (rev 289)
@@ -35,7 +35,7 @@
<import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCategory" location="UpdateCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<import namespace="http://cse.campussource.de/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/"/>
- <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" location="faultHandlingMsg.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="Login" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" partnerLinkType="tns:Login"
partnerRole="LoginPortTypeRole"/>
@@ -86,7 +86,7 @@
<variable name="SID" type="xsd:string"/>
<!-- Reply vars -->
- <variable name="STATUS_SUCCESS" type="xsd:string"/>
+ <variable name="STATUS_SUCCESS" type="xsd:string" />
<variable name="STATUS_FAILURE" type="xsd:string"/>
<variable name="ObjectBusId" type="xsd:int"/>
@@ -99,8 +99,7 @@
<!--Fault Variable, if Operation from inkoming msg is not supportet -->
<variable name="SystemFaultOperationNotFounded" messageType="fltns:systemFaultMessage"/>
-
-
+
</variables>
<sequence>
@@ -200,7 +199,8 @@
<from>$ProcessCourseOperationIn.courseMessage/dt:course/dt:attribute[dt:name = 'clientId']/dt:value</from>
<to>$ObjectClientId</to>
</copy>
- <!-- Init constants (better alternatives?) -->
+
+ <!-- Init constants (better alternatives?) -->
<copy>
<from>'SUCCESS'</from>
<to>$STATUS_SUCCESS</to>
@@ -210,14 +210,16 @@
<to>$STATUS_FAILURE</to>
</copy>
</assign>
- <!-- Branch on different events -->
+
+ <!-- Branch on different events -->
<if>
<sxt:trace>
<sxt:log level="info" location="onStart">
<from>concat('*** Branching on course-event: ', $ProcessCourseOperationIn.courseMessage/dt:event)</from>
</sxt:log>
</sxt:trace>
- <!-- Event == "CREATE" -->
+
+ <!-- Event == "CREATE" -->
<condition>$ProcessCourseOperationIn.courseMessage/dt:event = 'CREATE'</condition>
<sequence>
<assign name="prepareAddCourse">
@@ -324,7 +326,7 @@
<!-- Unrecognized Operation: throw fault! -->
<sequence >
- <!--Set Fault Data -->
+ <!--Set Fault Data -->
<assign name="PrepareForThrowFaultOperationNotFounded">
<sxt:trace>
<sxt:log level="info" location="onStart">
@@ -381,7 +383,8 @@
<from>$ProcessCategoryOperationIn.categoryMessage/dt:category/dt:attribute[dt:name = 'clientId']/dt:value</from>
<to>$ObjectClientId</to>
</copy>
- <!-- Init constants (better alternatives?) -->
+
+ <!-- Init constants (better alternatives?) -->
<copy>
<from>'SUCCESS'</from>
<to>$STATUS_SUCCESS</to>
@@ -391,14 +394,16 @@
<to>$STATUS_FAILURE</to>
</copy>
</assign>
- <!-- Branch on different events -->
+
+ <!-- Branch on different events -->
<if>
<sxt:trace>
<sxt:log level="info" location="onStart">
<from>concat('*** Branching on category-event: ', $ProcessCategoryOperationIn.categoryMessage/dt:event)</from>
</sxt:log>
</sxt:trace>
- <!-- Event == "CREATE" -->
+
+ <!-- Event == "CREATE" -->
<condition>$ProcessCategoryOperationIn.categoryMessage/dt:event = 'CREATE'</condition>
<sequence>
<assign name="prepareAddCategory">
@@ -435,7 +440,7 @@
</assign>
</sequence>
<elseif>
- <!-- Event == "UPDATE" -->
+ <!-- Event == "UPDATE" -->
<condition>$ProcessCategoryOperationIn.categoryMessage/dt:event = 'UPDATE'</condition>
<sequence>
<assign name="prepareUpdateCategory">
@@ -467,7 +472,7 @@
</sequence>
</elseif>
<elseif>
- <!-- Event == "DELETE" -->
+ <!-- Event == "DELETE" -->
<condition>$ProcessCategoryOperationIn.categoryMessage/dt:event = 'DELETE'</condition>
<sequence>
<assign name="prepareDeleteCategory">
@@ -501,7 +506,7 @@
</sequence>
</elseif>
<else>
- <!-- Unrecognized Operation: throw fault! -->
+ <!-- Unrecognized Operation: throw fault! -->
<sequence >
<!--Set Fault Data -->
<assign name="PrepareForThrowFaultOperationNotFounded">
Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel
===================================================================
--- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel 2009-07-01 11:44:30 UTC (rev 288)
+++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel 2009-07-01 12:21:32 UTC (rev 289)
@@ -108,7 +108,7 @@
portType="tns:UpdateCoursePortType"
variable="UpdateCourseIn"/>
- <!-- Initialize course xml skeleton -->
+ <!-- Initialize course xml skeleton -->
<assign name="initializeCourseXML">
<copy>
<from>
@@ -128,22 +128,22 @@
</copy>
</assign>
- <!-- Set relevant course data -->
+ <!-- Set relevant course data -->
<assign name="setCourseData">
- <!-- Set title -->
+ <!-- Set title -->
<copy>
<from>$UpdateCourseIn.course/dt:attribute[dt:name = 'title']/dt:value</from>
<to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title/text()</to>
</copy>
- <!-- Set Description -->
+ <!-- Set Description -->
<copy ignoreMissingFromData="yes">
<from>$UpdateCourseIn.course/dt:attribute[dt:name = 'shortDescription']/dt:value</from>
<to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Description/text()</to>
</copy>
- <!-- Set Language: use init value as default -->
+ <!-- Set Language: use init value as default -->
<copy ignoreMissingFromData="yes">
<from>$UpdateCourseIn.course/dt:attribute[dt:name = 'languageISO']/dt:value</from>
<to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title/@il_crs:Language</to>
@@ -166,7 +166,7 @@
<!-- Set all parts for UpdateCourse call -->
<assign name="PrepareUpdateCourse">
- <sxt:trace>
+ <sxt:trace>
<sxt:log level="info" location="onStart">
<ns0:from>concat('*** CourseXML: ', $CourseXML)</ns0:from>
</sxt:log>
@@ -183,7 +183,7 @@
<from>66</from>
<to variable="UpdateILIASCourseIn" part="course_id"/>
</copy>
- </assign>
+ </assign>
<invoke name="UpdateLectureInvoke" partnerLink="ILIAS" operation="updateCourse" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="UpdateILIASCourseIn" outputVariable="UpdateILIASCourseOut"/>
<!-- Normal reply if Update course succeed, otherwise reply with IliasFault -->
<if>
@@ -192,7 +192,7 @@
<assign name="prepareReply">
<copy>
<from variable="UpdateILIASCourseOut" part="success"/>
- <to variable="UpdateCourseOut" part="success"/>
+ <to variable="UpdateCourseOut" part="success"/>
</copy>
</assign>
<!-- normal Reply -->
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|