From: <pka...@us...> - 2009-03-25 09:39:46
|
Revision: 108 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=108&view=rev Author: pkasprzak Date: 2009-03-25 09:39:33 +0000 (Wed, 25 Mar 2009) Log Message: ----------- Import Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/build.xml trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/catalog.xml trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/project.properties trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/project.xml trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/retrieved/ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/retrieved/src/ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/DataTypes.xsd trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundClientAdapter.bpel trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundTransformation.xsl trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/LSFClientAdapter.wsdl trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/XSLTTransform.wsdl trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-full.xml trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-small.xml trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-test.xml trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-test_output.xml Added: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/build.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/build.xml (rev 0) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/build.xml 2009-03-25 09:39:33 UTC (rev 108) @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- You may freely edit this file. See commented blocks below for --> +<!-- some examples of how to customize the build. --> +<!-- (If you delete it and reopen the project it will be recreated.) --> +<project name="" default="default" basedir="." xmlns:web="http://www.netbeans.org/ns/j2ee-ejbjarproject/1"> + <description>Builds, tests, and runs the project .</description> + <import file="nbproject/build-impl.xml"/> + <!-- + There exist several targets which are by default empty and which can be + used for execution of your tasks. These targets are usually executed + before and after some main targets. They are: + + -pre-init called before initialization of project properties + -post-init called after initialization of project properties + -pre-compile called before javac compilation + -post-compile called after javac compilation + -pre-compile-single called before javac compilation of single file + -post-compile-single called after javac compilation of single file + -pre-dist called before jar building + -post-dist called after jar building + -post-clean called after cleaning build products + + Example of pluging an obfuscator after the compilation could look like + + <target name="post-compile"> + <obfuscate> + <fileset dir="${build.classes.dir}"/> + </obfuscate> + </target> + + For list of available properties check the imported + nbproject/build-impl.xml file. + + Other way how to customize the build is by overriding existing main targets. + The target of interest are: + + init-macrodef-javac defines macro for javac compilation + init-macrodef-debug defines macro for class debugging + do-dist jar archive building + run execution of project + javadoc-build javadoc generation + + Example of overriding the target for project execution could look like + + <target name="run" depends="<PROJNAME>-impl.jar"> + <exec dir="bin" executable="launcher.exe"> + <arg file="${dist.jar}"/> + </exec> + </target> + + Notice that overridden target depends on jar target and not only on + compile target as regular run target does. Again, for list of available + properties which you can use check the target you are overriding in + nbproject/build-impl.xml file. + --> + <target name="-check-netbeans-home"> + <condition property="no.netbeans.home"> + <not> + <isset property="netbeans.home"/> + </not> + </condition> + </target> + <target name="-init-caps" if="no.netbeans.home"> + <property file="${basedir}/nbproject/private/private.properties"/> + <property name="netbeans.home" value="${caps.netbeans.home}/platform9"/> + <property name="netbeans.user" value="${caps.netbeans.user}"/> + <property name="from.commandline" value="true"/> + </target> + <target name="-pre-init" depends="-check-netbeans-home,-init-caps"/> +</project> Added: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/catalog.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/catalog.xml (rev 0) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/catalog.xml 2009-03-25 09:39:33 UTC (rev 108) @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system"> + <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/> + <system systemId="ObjectProcessor/ObjectProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ObjectProcessor.wsdl"/> +</catalog> Property changes on: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject ___________________________________________________________________ Added: svn:ignore + private Added: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml (rev 0) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml 2009-03-25 09:39:33 UTC (rev 108) @@ -0,0 +1,155 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + *** GENERATED FROM project.xml - DO NOT EDIT *** + *** EDIT ../build.xml INSTEAD *** + + For the purpose of easier reading the script + is divided into following sections: + + - initialization + - dist + - cleanup +--> +<project name="LSFClientAdapter-impl" default="default" basedir=".."> + <target name="default" depends="dist_se" description="Build whole project."/> + <!-- + ====================== + INITIALIZATION SECTION + ====================== + --> + <target name="-pre-init"> + <!-- Empty placeholder for easier customization. --> + <!-- You can override this target in the ../build.xml file. --> + </target> + <target name="-init-private" depends="-pre-init"> + <property file="nbproject/private/private.properties"/> + </target> + <target name="-init-userdir" depends="-pre-init,-init-private"> + <property name="user.properties.file" location="${netbeans.user}/build.properties"/> + </target> + <target name="-init-user" depends="-pre-init,-init-private,-init-userdir"> + <property file="${user.properties.file}"/> + </target> + <target name="-init-project" depends="-pre-init,-init-private,-init-userdir,-init-user"> + <property file="nbproject/project.properties"/> + </target> + <target name="-do-init" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project"> + <available file="${src.dir}/../retrieved" property="retrieved.exists"/> + </target> + <target name="-post-init"> + <!-- Empty placeholder for easier customization. --> + <!-- You can override this target in the ../build.xml file. --> + </target> + <target name="-init-check" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init"> + <fail unless="src.dir">Must set src.dir</fail> + <fail unless="build.dir">Must set build.dir</fail> + <fail unless="dist.dir">Must set dist.dir</fail> + <fail unless="dist.jar">Must set dist.jar</fail> + </target> + <target name="-init-taskdefs" if="from.commandline"> + <path id="ant.task.classpath"> + <pathelement location="${netbeans.home}/../ide10/modules/ext/resolver-1.2.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-apache-xml-resolver.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-project-ant.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-project-libraries.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-projectapi.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-projectuiapi.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-catalog.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-xam.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-schema-model.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-wsdl-model.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-retriever.jar"/> + <pathelement location="${netbeans.home}/../platform9/core/core.jar"/> + <pathelement location="${netbeans.home}/../platform9/core/org-openide-filesystems.jar"/> + <pathelement location="${netbeans.home}/../platform9/lib/boot.jar"/> + <pathelement location="${netbeans.home}/../platform9/lib/org-openide-modules.jar"/> + <pathelement location="${netbeans.home}/../platform9/lib/org-openide-util.jar"/> + <pathelement location="${netbeans.home}/../platform9/modules/org-openide-dialogs.jar"/> + <pathelement location="${netbeans.home}/../platform9/modules/org-openide-loaders.jar"/> + <pathelement location="${netbeans.home}/../platform9/modules/org-openide-nodes.jar"/> + <pathelement location="${netbeans.home}/../platform9/modules/org-openide-text.jar"/> + <pathelement location="${netbeans.home}/../platform9/modules/org-netbeans-modules-masterfs.jar"/> + <pathelement location="${netbeans.home}/../platform9/modules/org-netbeans-modules-queries.jar"/> + <pathelement location="${netbeans.home}/../soa2/ant/nblib/org-netbeans-modules-bpel-project.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-debugger-api.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-model.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-project.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-validation.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-soa-ui.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-soa-validation.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-compapp-projects-base.jar"/> + <pathelement location="${netbeans.home}/../xml2/modules/ext/jxpath/jxpath1.1.jar"/> + <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-catalogsupport.jar"/> + <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-search.jar"/> + <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-wsdl-extensions.jar"/> + <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-xpath.jar"/> + <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-xpath-ext.jar"/> + </path> + <taskdef name="validate-project" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliValidateBpelProjectTask"> + <classpath refid="ant.task.classpath"/> + </taskdef> + <taskdef name="generate-catalog-xml" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliGenerateCatalogTask"> + <classpath refid="ant.task.classpath"/> + </taskdef> + <taskdef name="generate-jbi-xml" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliGenerateJbiDescriptorTask"> + <classpath refid="ant.task.classpath"/> + </taskdef> + </target> + <target name="init" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init,-post-init,-init-check,-init-taskdefs"/> + <!-- + ===================== + DIST BUILDING SECTION + ===================== + --> + <target name="-pre-dist"> + <!-- Empty placeholder for easier customization. --> + <!-- You can override this target in the ../build.xml file. --> + </target> + <target name="-deps-jar-dist" depends="init" unless="${no.dependencies}"> + <ant target="dist_se" inheritall="false" dir="${project.ObjectProcessor}"/> + </target> + <target name="-do-dist" depends="init,-pre-dist"> + <mkdir dir="${build.dir}"/> + <!--validation--> + <validate-project buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" buildDependentProjectDir="${basedir}/${build.dir}/dependentProjectFiles" classpathRef="ant.task.classpath" allowBuildWithError="${allow.build.with.error}" validation="${validation}"/> + <!-- copy all files from project source directory to build directory. --> + <copy todir="${build.dir}" preservelastmodified="true"> + <fileset includes="**/*.bpel,**/*.wsdl,**/*.xsd, **/*.xsl, **/*.xslt, **/*.jar" dir="${src.dir}"/> + </copy> + <generate-catalog-xml buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" classpathRef="ant.task.classpath"/> + <generate-jbi-xml buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" classpathRef="ant.task.classpath"/> + <jar compress="${jar.compress}" jarfile="${build.dir}/SEDeployment.jar"> + <fileset includes="**/*.bpel,**/*.wsdl,**/*.xsd, **/*.xsl, **/*.xslt, **/*.jar" excludes="SEDeployment.jar" dir="${basedir}/${build.dir}"/> + <fileset dir="${basedir}/${build.dir}"> + <include name="**/jbi.xml"/> + <include name="**/catalog.xml"/> + </fileset> + </jar> + </target> + <target name="-post-dist"> + <!-- Empty placeholder for easier customization. --> + <!-- You can override this target in the ../build.xml file. --> + </target> + <target name="dist_se" depends="init,-pre-dist,-deps-jar-dist,-do-dist,-post-dist" description="Build distribution."/> + <!-- + =============== + CLEANUP SECTION + =============== + --> + <target name="-pre-clean"> + <!-- Empty placeholder for easier customization. --> + <!-- You can override this target in the ../build.xml file. --> + </target> + <target name="-deps-clean" depends="init" unless="${no.dependencies}"> + <ant target="clean" inheritall="false" dir="${project.ObjectProcessor}"/> + </target> + <target name="-do-clean" depends="init,-pre-clean"> + <delete dir="${build.dir}"/> + <delete dir="${dist.dir}"/> + </target> + <target name="-post-clean"> + <!-- Empty placeholder for easier customization. --> + <!-- You can override this target in the ../build.xml file. --> + </target> + <target name="clean" depends="init,-pre-clean,-deps-clean,-do-clean,-post-clean" description="Clean build products."/> +</project> Added: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties (rev 0) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties 2009-03-25 09:39:33 UTC (rev 108) @@ -0,0 +1,8 @@ +build.xml.data.CRC32=bd17bc39 +build.xml.script.CRC32=3d3dbc12 +build.xml.stylesheet.CRC32=1947459d +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=bd17bc39 +nbproject/build-impl.xml.script.CRC32=5594df24 +nbproject/build-impl.xml.stylesheet.CRC32=749ec361 Added: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/project.properties =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/project.properties (rev 0) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/project.properties 2009-03-25 09:39:33 UTC (rev 108) @@ -0,0 +1,30 @@ +allow.build.with.error=false +bcdeployment.jar=${build.dir}/BCDeployment.jar +build.classes.dir=${build.dir}/jar +build.classes.excludes=**/*.java,**/*.form,**/.nbattrs +build.dir=build +build.generated.dir=${build.dir}/generated +com.sun.jbi.ui.devtool.jbi.description.application-sub-assembly=Represents this Service Unit +com.sun.jbi.ui.devtool.jbi.setype.prefix=sun-bpel-engine +debug.classpath=${javac.classpath}:${build.classes.dir} +dist.dir=dist +dist.jar=${dist.dir}/LSFClientAdapter.zip +dist.javadoc.dir=${dist.dir}/javadoc +jar.compress=false +jar.name=LSFClientAdapter.jar +javac.debug=true +javac.deprecation=false +javac.source=1.4 +javac.target=1.4 +jbi.se.type=sun-bpel-engine +jbi.service-unit.description=Represents this Service Unit +meta.inf=${source.root}/conf +platform.active=default_platform +project.ObjectProcessor=../ObjectProcessor +reference.ObjectProcessor.dist_se=${project.ObjectProcessor}/build/SEDeployment.jar +resource.dir=setup +sedeployment.jar=${build.dir}/SEDeployment.jar +source.encoding=UTF-8 +source.root=src +src.dir=${source.root} +wsdl.classpath= Added: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/project.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/project.xml (rev 0) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/project.xml 2009-03-25 09:39:33 UTC (rev 108) @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://www.netbeans.org/ns/project/1"> + <type>org.netbeans.modules.bpel.project</type> + <configuration> + <data xmlns="http://www.netbeans.org/ns/j2ee-bpelpro/1"> + <name>LSFClientAdapter</name> + <minimum-ant-version>1.6</minimum-ant-version> + </data> + <references xmlns="http://www.netbeans.org/ns/ant-project-references/1"> + <reference> + <foreign-project>ObjectProcessor</foreign-project> + <artifact-type>jar</artifact-type> + <script>build.xml</script> + <target>dist_se</target> + <clean-target>clean</clean-target> + <id>dist_se</id> + </reference> + </references> + </configuration> +</project> Added: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/DataTypes.xsd =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/DataTypes.xsd (rev 0) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/DataTypes.xsd 2009-03-25 09:39:33 UTC (rev 108) @@ -0,0 +1,264 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://cse.campussource.de/schema/DataTypes" + xmlns:tns="http://cse.campussource.de/schema/DataTypes"> + + <xs:complexType name="synchronizationMessageType"> + <xs:sequence> + <xs:element name="isDebug" type="xs:boolean"/> + <xs:element name="isSyncMessage" type="xs:boolean"/> + <xs:element name="semesterName" type="xs:string" minOccurs="0"/> + <xs:element name="semesterLsfId" type="xs:string" minOccurs="0"/> + <xs:element name="rootCategoryId" type="xs:string" minOccurs="0"/> + <xs:element name="accounts" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="account" type="tns:accountType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="courseTypes" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="courseType" type="tns:courseTypeType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="courses" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="course" type="tns:courseType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="workgroups" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="workgroup" type="tns:workgroupType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="categories" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="category" type="tns:categoryType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="relations" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="relation" type="tns:mappedRelationType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="roles" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="role" type="tns:roleType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="lecturesToDelete" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="lsfId" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="accountsToDelete" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="lsfId" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="lectureTypesToDelete" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="lsfId" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="accountType"> + <xs:complexContent> + <xs:extension base="tns:mappedEntityType"> + <xs:sequence> + <xs:element name="lsfId" type="xs:string"/> + <xs:element name="surname" type="xs:string"/> + <xs:element name="firstName" type="xs:string"/> + <xs:element name="emailAddress" type="xs:string"/> + <xs:element name="login" type="xs:string"/> + <xs:element name="password" type="xs:string"/> + <xs:element name="globalRole" type="xs:string" minOccurs="0"/> + <xs:element name="degree" type="xs:string" minOccurs="0"/> + <xs:element name="academicTitle" type="xs:string" minOccurs="0"/> + <xs:element name="gender" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="mappedEntityType" abstract="true"> + <xs:complexContent> + <xs:extension base="tns:mappedObjectType"> + <xs:sequence/> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="mappedObjectType" abstract="true"> + <xs:sequence> + <xs:element name="busId" type="xs:int"/> + <xs:element name="clientId" type="xs:string" minOccurs="0"/> + <xs:element name="operation" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="courseTypeType"> + <xs:complexContent> + <xs:extension base="tns:mappedEntityType"> + <xs:sequence> + <xs:element name="lsfId" type="xs:int"/> + <xs:element name="name" type="xs:string"/> + <xs:element name="shortDescription" type="xs:string" minOccurs="0"/> + <xs:element name="longDescription" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="courseType"> + <xs:complexContent> + <xs:extension base="tns:mappedEntityType"> + <xs:sequence> + <xs:element name="dates" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="date" type="tns:dateType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="active" type="xs:string" minOccurs="0"/> + <xs:element name="abbreviation" type="xs:string" minOccurs="0"/> + <xs:element name="lsfId" type="xs:string"/> + <xs:element name="logicalNumber" type="xs:int"/> + <xs:element name="type" type="xs:string" minOccurs="0"/> + <xs:element name="title" type="xs:string"/> + <xs:element name="semesterId" type="xs:string"/> + <xs:element name="clientTitle" type="xs:string" minOccurs="0"/> + <xs:element name="shortDescription" type="xs:string" minOccurs="0"/> + <xs:element name="prerequisites" type="xs:string" minOccurs="0"/> + <xs:element name="necessaryAssignment" type="xs:string" minOccurs="0"/> + <xs:element name="languageISO" type="xs:string" minOccurs="0"/> + <xs:element name="languageFull" type="xs:string" minOccurs="0"/> + <xs:element name="hyperlink" type="xs:string" minOccurs="0"/> + <xs:element name="hyperlinkname" type="xs:string" minOccurs="0"/> + <xs:element name="note" type="xs:string" minOccurs="0"/> + <xs:element name="comment" type="xs:string" minOccurs="0"/> + <xs:element name="semesterAsInt" type="xs:short"/> + <xs:element name="semesterAbbr" type="xs:string" minOccurs="0"/> + <xs:element name="semesterFull" type="xs:string" minOccurs="0"/> + <xs:element name="semesterPeriodsPerWeek" type="xs:int"/> + <xs:element name="expectedRegistrations" type="xs:int"/> + <xs:element name="maximumRegistrations" type="xs:int"/> + <xs:element name="activityConfirmation" type="xs:string" minOccurs="0"/> + <xs:element name="literature" type="xs:string" minOccurs="0"/> + <xs:element name="startDate" type="xs:string" minOccurs="0"/> + <xs:element name="endDate" type="xs:string" minOccurs="0"/> + <xs:element name="superRoleBusId" type="xs:int"/> + <xs:element name="assignmentManagement" type="xs:string" minOccurs="0"/> + <xs:element name="leadingSystemForAssigments" type="xs:string" minOccurs="0"/> + <xs:element name="bookingType" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="dateType"> + <xs:sequence> + <xs:element name="dateId" type="xs:int"/> + <xs:element name="startdate" type="xs:string" minOccurs="0"/> + <xs:element name="enddate" type="xs:string" minOccurs="0"/> + <xs:element name="starttime" type="xs:string" minOccurs="0"/> + <xs:element name="endtime" type="xs:string" minOccurs="0"/> + <xs:element name="stct" type="xs:string" minOccurs="0"/> + <xs:element name="dayofweek" type="xs:string" minOccurs="0"/> + <xs:element name="rythm" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="workgroupType"> + <xs:complexContent> + <xs:extension base="tns:mappedEntityType"> + <xs:sequence> + <xs:element name="lsfId" type="xs:string"/> + <xs:element name="name" type="xs:string"/> + <xs:element name="room" type="xs:string" minOccurs="0"/> + <xs:element name="semesterId" type="xs:string"/> + <xs:element name="clientTitle" type="xs:string" minOccurs="0"/> + <xs:element name="shortDescription" type="xs:string" minOccurs="0"/> + <xs:element name="languageISO" type="xs:string" minOccurs="0"/> + <xs:element name="maximumRegistrations" type="xs:int"/> + <xs:element name="startDate" type="xs:string" minOccurs="0"/> + <xs:element name="endDate" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="categoryType"> + <xs:complexContent> + <xs:extension base="tns:mappedEntityType"> + <xs:sequence> + <xs:element name="name" type="xs:string"/> + <xs:element name="lsfId" type="xs:string"/> + <xs:element name="sort" type="xs:int"/> + <xs:element name="semesterId" type="xs:string"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="mappedRelationType"> + <xs:complexContent> + <xs:extension base="tns:mappedObjectType"> + <xs:sequence> + <xs:element name="busParentId" type="xs:int"/> + <xs:element name="busChildId" type="xs:int"/> + <xs:element name="clientChildId" type="xs:string" minOccurs="0"/> + <xs:element name="clientParentId" type="xs:string" minOccurs="0"/> + <xs:element name="relationType" type="xs:string" minOccurs="0"/> + <xs:element name="childSort" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="roleType"> + <xs:complexContent> + <xs:extension base="tns:mappedObjectType"> + <xs:sequence> + <xs:element name="name" type="xs:string"/> + <xs:element name="clientAccountId" type="xs:string" minOccurs="0"/> + <xs:element name="clientObjectId" type="xs:string" minOccurs="0"/> + <xs:element name="busAccountId" type="xs:int"/> + <xs:element name="busObjectId" type="xs:int"/> + <xs:element name="roleStatus" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + <xs:complexType name="resultType"> + <xs:sequence> + <xs:element name="clientId" type="xs:string"/> + <xs:element name="status" type="xs:string"/> + <xs:element name="reason" type="xs:string"/> + </xs:sequence> + </xs:complexType> + <xs:element name="synchronizationMessage" type="tns:synchronizationMessageType"/> +</xs:schema> \ No newline at end of file Added: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundClientAdapter.bpel (rev 0) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundClientAdapter.bpel 2009-03-25 09:39:33 UTC (rev 108) @@ -0,0 +1,94 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process + name="InboundClientAdapter" + targetNamespace="http://enterprise.netbeans.org/bpel/LSFClientAdapter/InboundClientAdapter" + 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:dt="http://cse.campussource.de/schema/DataTypes" + xmlns:tns="http://enterprise.netbeans.org/bpel/LSFClientAdapter/InboundClientAdapter" xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" xmlns:ns1="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor"> + + <import namespace="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" location="LSFClientAdapter.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://cse.campussource.de/schema/DataTypes" location="DataTypes.xsd" importType="http://www.w3.org/2001/XMLSchema"/> + <import namespace="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" location="XSLTTransform.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" location="ObjectProcessor/ObjectProcessor.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <partnerLinks> + <partnerLink name="XSLTTransform" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" partnerLinkType="tns:XSLTTransform" partnerRole="XSLTTransformPortTypeRole"/> + <partnerLink name="ObjectProcessor" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" partnerLinkType="tns:ObjectProcessor" partnerRole="ObjectProcessorPortTypeRole"/> + <partnerLink name="LSF" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" partnerLinkType="tns:LSFClientAdapter" myRole="LSFClientAdapterPortTypeRole"/> + </partnerLinks> + <variables> + <variable name="XSLTTransformOperationOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" messageType="tns:XSLTTransformOperationResponse"/> + <variable name="XSLTTransformOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" messageType="tns:XSLTTransformOperationRequest"/> + <variable name="ReceiveIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" messageType="tns:receiveRequest"/> + <variable name="synchronizationMessage" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" element="dt:synchronizationMessage"/> + </variables> + <sequence> + <receive name="receive" createInstance="yes" partnerLink="LSF" operation="receive" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" portType="tns:LSFClientAdapterPortType" variable="ReceiveIn"/> + <assign name="prepareXSLTTransform"> + <copy> + <from variable="ReceiveIn" part="InputData"/> + <to variable="XSLTTransformOperationIn" part="inputXML"/> + </copy> + </assign> + <invoke name="doXSLTTransform" partnerLink="XSLTTransform" operation="XSLTTransformOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" portType="tns:XSLTTransformPortType" inputVariable="XSLTTransformOperationIn" outputVariable="XSLTTransformOperationOut"/> + <assign name="convertResult"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <ns0:from>concat('XSLT-Transofmation-Output: ', $XSLTTransformOperationOut.result)</ns0:from> + </sxt:log> + <sxt:log level="info" location="onComplete"> + <ns0:from>concat('Variable.SemesterName: ', $synchronizationMessage/semesterName)</ns0:from> + </sxt:log> + </sxt:trace> + <copy> + <from>sxxf:doUnMarshal($XSLTTransformOperationOut.result)</from> + <to variable="synchronizationMessage"/> + </copy> + </assign> + <empty name="XSLTTransformToGenericMessageModel"/> + <forEach name="ObjectSplitter" parallel="no" counterName="ObjectCounter"> + <sxt:trace> + <sxt:log level="fine" location="onStart"> + <ns0:from>'ForEach before start'</ns0:from> + </sxt:log> + </sxt:trace> + <startCounterValue>1</startCounterValue> + <finalCounterValue>count($synchronizationMessage/courses/course[.])</finalCounterValue> + <scope name="ObjectProcessor"> + <variables> + <variable name="ProcessObjectOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" messageType="tns:ProcessObjectOperationRequest"/> + </variables> + <sequence name="Sequence1"> + <assign name="prepareProcessObject"> + <copy> + <from variable="synchronizationMessage"/> + <to variable="ProcessObjectOperationIn" part="objectMessage"/> + </copy> + </assign> + <assign name="setObject"> + <sxt:trace> + <sxt:log level="fine" location="onStart"> + <ns0:from variable="ObjectCounter"/> + </sxt:log> + </sxt:trace> +<!-- + <copy> + <from>$synchronizationMessage/courses/course[$ObjectCounter]</from> + <to>$ProcessObjectOperationIn.objectMessage/courses/course[1]</to> + </copy> +--> + <copy> + <from>1</from> + <to variable="ProcessObjectOperationIn" part="clientInstanceId"/> + </copy> + </assign> + <invoke name="processObject" partnerLink="ObjectProcessor" operation="ProcessObjectOperation" portType="ns1:ObjectProcessorPortType" inputVariable="ProcessObjectOperationIn"/> + </sequence> + </scope> + </forEach> + </sequence> +</process> Added: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundTransformation.xsl =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundTransformation.xsl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundTransformation.xsl 2009-03-25 09:39:33 UTC (rev 108) @@ -0,0 +1,661 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://cse.campussource.de/schema/DataTypes"> + +<xsl:output method="xml" + media-type="text/xml" + indent="yes" + encoding="UTF-8" + omit-xml-declaration="no" +/> + +<!-- Leave empty to disable output of debug information --> +<xsl:variable name="DEBUG">1</xsl:variable> + +<!-- Lecture related (NOT workgroup related) roles get this prefix, so that they are distinguishable later on --> +<xsl:variable name="LECTURE_ROLE_PREFIX" select="'lecture:'"/> + +<!-- Relation types --> +<xsl:variable name="RELATION_TYPE_LECTURE_TO_WORKGROUPS" select="'lecture_to_workgroups'"/> +<xsl:variable name="RELATION_TYPE_LECTURETYPE_TO_LECTURES" select="'lecturetype_to_lectures'"/> +<xsl:variable name="RELATION_TYPE_CATEGORY_TO_CATEGORIES" select="'category_to_categories'"/> +<xsl:variable name="RELATION_TYPE_CATEGORY_TO_LECTURES" select="'category_to_lectures'"/> + +<!-- ################################################################################################################## --> + +<!-- [SYNCHRONIZATIONMESSAGE] --> + +<xsl:template match="/synchronizationMessage"> + + <xsl:element name="synchronizationMessage"> + + <xsl:copy-of select="isSyncMessage"/> + <xsl:copy-of select="isDebug"/> + + <xsl:element name="semesterName"> + <xsl:value-of select="semester/data/shortName"/> + </xsl:element> + + <xsl:element name="semesterLsfId"> + <xsl:value-of select="semester/data/lsfId"/> + </xsl:element> + + <xsl:element name="rootCategoryId"> + <xsl:if test="vvz/@rootKategorieId"> + <xsl:text>category:</xsl:text><xsl:value-of select="vvz/@rootKategorieId"/> + </xsl:if> + + </xsl:element> + + <!-- Generate "accounts" --> + + <!-- [ACCOUNTS] --> + + <!-- Create unified "accounts" by copying original "accounts" && merging "accounts2" --> + + <xsl:if test="$DEBUG"> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:comment># Generating "accounts" (merging "accounts" and "accounts2") #</xsl:comment><xsl:text> </xsl:text> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:text> </xsl:text> + </xsl:if> + + <xsl:element name="accounts"> + <xsl:for-each select="/synchronizationMessage/child::*[self::accounts or self::accounts2]/account"> + <xsl:element name="account"> + + <xsl:element name="clientId"> + <xsl:text>account:</xsl:text><xsl:value-of select="lsfId"/> + </xsl:element> + + <xsl:element name="globalRole"> + <xsl:choose> + <xsl:when test="name(..) = 'accounts2'"> + <xsl:text>User</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>Tutor</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:element> + + <xsl:for-each select="./*"> + <xsl:copy-of select="."/> + <xsl:text> </xsl:text> + </xsl:for-each> + + </xsl:element> + </xsl:for-each> + </xsl:element> + + <!-- Generate lectureTypes --> + + <xsl:if test="$DEBUG"> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:comment># Generating "lectureType" #</xsl:comment><xsl:text> </xsl:text> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:text> </xsl:text> + </xsl:if> + + <xsl:element name="lectureTypes"> + <xsl:for-each select="/synchronizationMessage/lectureTypes/*"> + <xsl:element name="lectureType"> + + <xsl:element name="clientId"> + <xsl:text>lecturetype:</xsl:text><xsl:value-of select="lsfId"/> + </xsl:element> + + <xsl:for-each select="./*"> + <xsl:copy-of select="."/> + <xsl:text> </xsl:text> + </xsl:for-each> + + </xsl:element> + </xsl:for-each> + </xsl:element> + + <!-- Generate "lectures" --> + + <xsl:if test="$DEBUG"> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:comment># Generating "lectures" #</xsl:comment><xsl:text> </xsl:text> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:text> </xsl:text> + </xsl:if> + + <xsl:element name="lectures"> + <xsl:for-each select="/synchronizationMessage/lectures/*"> + <xsl:element name="lecture"> + + <!-- Copy everything except "groups", "accounts", "categories"-elements (these will be transformed to relations) --> + <xsl:for-each select="*"> + <xsl:if test="not(name() = 'groups') and not(name() = 'accounts') and not(name() = 'categories')"> + <xsl:copy-of select="."/> + <xsl:text> </xsl:text> + </xsl:if> + </xsl:for-each> + + <!-- Generate clientId --> + <xsl:element name="clientId"> + <xsl:text>lecture:</xsl:text><xsl:value-of select="lsfId"/> + </xsl:element> + + <!-- Generate semesterId --> + <xsl:element name="semesterId"> + <xsl:value-of select="/synchronizationMessage/semester/data/lsfId"/> + </xsl:element> + + <!-- Get start date from 'semester'-element --> + <xsl:element name="startDate"> + <xsl:value-of select="/synchronizationMessage/semester/data/lectureStart"/> + </xsl:element> + + <!-- Get end date from 'semester'-element --> + <xsl:element name="endDate"> + <xsl:value-of select="/synchronizationMessage/semester/data/lectureEnd"/> + </xsl:element> + + </xsl:element> + </xsl:for-each> + </xsl:element> + + <!-- Generate "workgroups" --> + + <xsl:if test="$DEBUG"> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:comment># Generating "workgroups" #</xsl:comment><xsl:text> </xsl:text> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:text> </xsl:text> + </xsl:if> + + <xsl:element name="workgroups"> + <xsl:for-each select="lectures/*"> + + <xsl:if test="$DEBUG"> + <xsl:comment>### Processing groups from (<xsl:value-of select="title"/>) ###</xsl:comment> + <xsl:text> </xsl:text> + </xsl:if> + + <xsl:for-each select="groups/group"> + <xsl:sort select="lsfId" data-type="number"/> + <xsl:if test="position() = 1"> + <xsl:call-template name="generate-workgroup"> + </xsl:call-template> + </xsl:if> + </xsl:for-each> + + </xsl:for-each> + </xsl:element> + + <!-- Generate "categories" --> + + <xsl:if test="$DEBUG"> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:comment># Generating "categories" #</xsl:comment><xsl:text> </xsl:text> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:text> </xsl:text> + </xsl:if> + + <xsl:element name="categories"> + <xsl:for-each select="/synchronizationMessage/vvz/*"> + <xsl:element name="category"> + + <!-- Generate clientId --> + <xsl:element name="clientId"> + <xsl:text>category:</xsl:text><xsl:value-of select="lsfId"/> + </xsl:element> + + <!-- Generate semesterId --> + <xsl:element name="semesterId"> + <xsl:value-of select="/synchronizationMessage/semester/data/lsfId"/> + </xsl:element> + + <!-- Copy everything except "children" and 'sort' --> + <xsl:for-each select="*"> + <xsl:if test="not(name() = 'children') and not(name() = 'sort')"> + <xsl:copy-of select="."/> + <xsl:text> </xsl:text> + </xsl:if> + </xsl:for-each> + + <!-- Check, if sort was set; if not, set it to MAX_INT --> + <xsl:choose> + <xsl:when test="normalize-space(sort)"> + <xsl:copy-of select="sort"/> + <xsl:text> </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:comment>### Setting 'sort' to MAX_INT ###</xsl:comment><xsl:text> </xsl:text> + <xsl:element name="sort"> + <!-- Set to MAX_INT --> + <xsl:text>2147483647</xsl:text> + </xsl:element> + </xsl:otherwise> + </xsl:choose> + </xsl:element> + </xsl:for-each> + </xsl:element> + + <!-- Generate relations --> + + <xsl:element name="relations"> + + <!-- Generate lecture -> workgroup relations --> + + <xsl:if test="$DEBUG"> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:comment># Generating lecture -> workgroup relations #</xsl:comment><xsl:text> </xsl:text> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:text> </xsl:text> + </xsl:if> + + <xsl:for-each select="lectures/*"> + + <xsl:if test="$DEBUG"> + <xsl:comment>### Processing lecture (<xsl:value-of select="title"/>) ###</xsl:comment> + <xsl:text> </xsl:text> + </xsl:if> + + <xsl:for-each select="groups/group"> + <xsl:sort select="lsfId" data-type="number"/> + <xsl:if test="position() = 1"> + <xsl:call-template name="generate-lectureToWorkgroupRelation"> + </xsl:call-template> + </xsl:if> + </xsl:for-each> + + </xsl:for-each> + + <!-- Generate category -> lecture relations --> + + <xsl:if test="$DEBUG"> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:comment># Generating category -> lecture relations #</xsl:comment><xsl:text> </xsl:text> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:text> </xsl:text> + </xsl:if> + + <xsl:for-each select="lectures/*"> + + <xsl:if test="$DEBUG"> + <xsl:comment>### Processing lecture (<xsl:value-of select="title"/>) ###</xsl:comment> + <xsl:text> </xsl:text> + </xsl:if> + + <xsl:for-each select="categories/*"> + + <xsl:variable name="clientParentId"> + <xsl:text>category:</xsl:text> + <xsl:value-of select="lsfId"/> + </xsl:variable> + + <xsl:variable name="clientChildId"> + <xsl:text>lecture:</xsl:text> + <xsl:value-of select="../../lsfId"/> + </xsl:variable> + + <xsl:call-template name="generate-relation"> + <xsl:with-param name="type" select="$RELATION_TYPE_CATEGORY_TO_LECTURES"/> + <xsl:with-param name="clientChildId" select="$clientChildId"/> + <xsl:with-param name="clientParentId" select="$clientParentId"/> + <xsl:with-param name="sort" select="sort"/> + </xsl:call-template> + </xsl:for-each> + + </xsl:for-each> + + <!-- Generate lectureType -> lectures relations --> + + <xsl:if test="$DEBUG"> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:comment># Generating lectureType -> lecture relations #</xsl:comment><xsl:text> </xsl:text> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:text> </xsl:text> + </xsl:if> + + <xsl:for-each select="lectures/*"> + + <xsl:if test="$DEBUG"> + <xsl:comment>### Processing lecture (<xsl:value-of select="title"/>) ###</xsl:comment> + <xsl:text> </xsl:text> + </xsl:if> + + <xsl:variable name="clientChildId"> + <xsl:text>lecture:</xsl:text> + <xsl:value-of select="lsfId"/> + </xsl:variable> + + <xsl:variable name="clientParentId"> + <xsl:text>lecturetype:</xsl:text> + <xsl:value-of select="lectureTypeId"/> + </xsl:variable> + + <xsl:call-template name="generate-relation"> + <xsl:with-param name="type" select="$RELATION_TYPE_LECTURETYPE_TO_LECTURES"/> + <xsl:with-param name="clientChildId" select="$clientChildId"/> + <xsl:with-param name="clientParentId" select="$clientParentId"/> + </xsl:call-template> + + </xsl:for-each> + + <!-- Generate lectureType -> lectures relations --> + + <xsl:if test="$DEBUG"> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:comment># Generating Category -> category relations #</xsl:comment><xsl:text> </xsl:text> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:text> </xsl:text> + </xsl:if> + + <xsl:for-each select="vvz/*"> + + <xsl:if test="$DEBUG"> + <xsl:comment>### Processing children of category (<xsl:value-of select="name"/>) ###</xsl:comment> + <xsl:text> </xsl:text> + </xsl:if> + + <xsl:for-each select="children/*"> + + <xsl:variable name="clientChildId"> + <xsl:text>category:</xsl:text> + <xsl:value-of select="."/> + </xsl:variable> + + <xsl:variable name="clientParentId"> + <xsl:text>category:</xsl:text> + <xsl:value-of select="../../lsfId"/> + </xsl:variable> + + <xsl:call-template name="generate-relation"> + <xsl:with-param name="type" select="$RELATION_TYPE_CATEGORY_TO_CATEGORIES"/> + <xsl:with-param name="clientChildId" select="$clientChildId"/> + <xsl:with-param name="clientParentId" select="$clientParentId"/> + </xsl:call-template> + + </xsl:for-each> + + </xsl:for-each> + + </xsl:element> + + <!-- Generate "roles" --> + + <xsl:if test="$DEBUG"> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:comment># Generating "roles" #</xsl:comment><xsl:text> </xsl:text> + <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> + <xsl:text> </xsl:text> + </xsl:if> + + <xsl:element name="roles"> + <xsl:for-each select="lectures/*"> + + <xsl:if test="$DEBUG"> + <xsl:comment>### Processing roles defined in lecture (<xsl:value-of select="title"/>) ###</xsl:comment> + <xsl:text> </xsl:text> + </xsl:if> + + <!-- Generate default roles from "accounts"-tag of "lecture" --> + <!-- (only if there are no groups) --> + + <xsl:if test="$DEBUG"> + <xsl:comment>### --> lecture roles ###</xsl:comment> + <xsl:text> </xsl:text> + </xsl:if> + + <xsl:if test="count(groups/group) = 0"> + <xsl:for-each select="accounts/account"> + <xsl:call-template name="generate-role"> + <xsl:with-param name="name" select="concat($LECTURE_ROLE_PREFIX, roleName)"/> + <xsl:with-param name="clientObjectId" select="concat('lecture:', ../../lsfId)"/> + <xsl:with-param name="clientAccountId" select="concat('account:', lsfId)"/> + <xsl:with-param name="roleStatus" select="roleStatus"/> + </xsl:call-template> + </xsl:for-each> + </xsl:if> + + <!-- Generate roles from "groups"-tag of "lecture" --> + + <xsl:if test="$DEBUG"> + <xsl:comment>### --> group roles ###</xsl:comment> + <xsl:text> </xsl:text> + </xsl:if> + + <xsl:for-each select="groups/group"> + + <xsl:variable name="clientObjectId"> + <xsl:text>workgroup:</xsl:text><xsl:value-of select="../../lsfId"/> + <xsl:text>:</xsl:text><xsl:value-of select="lsfId"/> + </xsl:variable> + + <xsl:for-each select="accounts/account"> + + <xsl:variable name="clientAccountId"> + <xsl:text>account:</xsl:text> + <xsl:value-of select="lsfId"/> + </xsl:variable> + + <xsl:call-template name="generate-role"> + <xsl:with-param name="name" select="roleName"/> + <xsl:with-param name="clientObjectId" select="$clientObjectId"/> + <xsl:with-param name="clientAccountId" select="$clientAccountId"/> + <xsl:with-param name="roleStatus" select="roleStatus"/> + </xsl:call-template> + + </xsl:for-each> + + </xsl:for-each> + + </xsl:for-each> + </xsl:element> + + <!-- Copy / adapt "lecturesToDelete" --> + + <xsl:element name="lecturesToDelete"> + <xsl:for-each select="lecturesToDelete/*"> + <xsl:element name="lsfId"> + <xsl:text>lecture:</xsl:text><xsl:value-of select="lsfId"/> + </xsl:element> + </xsl:for-each> + </xsl:element> + + <!-- Copy / adapt "accountsToDelete" --> + + <xsl:element name="accountsToDelete"> + <xsl:for-each select="accountsToDelete/*"> + <xsl:element name="lsfId"> + <xsl:text>account:</xsl:text><xsl:value-of select="lsfId"/> + </xsl:element> + </xsl:for-each> + </xsl:element> + + <!-- Copy / adapt "lectureTypesToDelete" --> + + <xsl:element name="lectureTypesToDelete"> + <xsl:for-each select="lectureTypesToDelete/*"> + <xsl:element name="lsfId"> + <xsl:text>lecturetype:</xsl:text><xsl:value-of select="lsfId"/> + </xsl:element> + </xsl:for-each> + </xsl:element> + + </xsl:element> + +</xsl:template> + +<!-- ################################################################################################################## --> + +<!-- [GENERATE WORKGROUP] --> + +<xsl:template name="generate-workgroup"> + + <xsl:variable name="currentLsfId" select="lsfId"/> + + <xsl:element name="workgroup"> + <xsl:copy-of select="lsfId|name|room"/> + + <!-- Generate clientId --> + <xsl:element name="clientId"> + <xsl:text>workgroup:</xsl:text><xsl:value-of select="../../lsfId"/>:<xsl:value-of select="lsfId"/> + </xsl:element> + + <!-- Generate semesterId --> + <xsl:element name="semesterId"> + <xsl:value-of select="/synchronizationMessage/semester/data/lsfId"/> + </xsl:element> + + <!-- Get start date from 'semester'-element --> + <xsl:element name="startDate"> + <xsl:value-of select="/synchronizationMessage/semester/data/lectureStart"/> + </xsl:element> + + <!-- Get end date from 'semester'-element --> + <xsl:element name="endDate"> + <xsl:value-of select="/synchronizationMessage/semester/data/lectureEnd"/> + </xsl:element> + + <xsl:text> </xsl:text> + </xsl:element> + + <xsl:for-each select="../child::group[number(child::lsfId) > number($currentLsfId)]"> + <xsl:sort select="lsfId" data-type="number"/> + <xsl:if test="position() = 1"> + <xsl:call-template name="generate-workgroup"> + </xsl:call-template> + </xsl:if> + </xsl:for-each> + +</xsl:template> + +<!-- ################################################################################################################## --> + +<!-- [GENERATE LECTURETOWORKGROUPRELATION] --> + +<xsl:template name="generate-lectureToWorkgroupRelation"> + + <xsl:variable name="workgroupLsfId" select="lsfId"/> + <xsl:variable name="lectureLsfId" select="../../lsfId"/> + + <xsl:variable name="clientChildId"> + <xsl:text>workgroup:</xsl:text> + <xsl:value-of select="$lectureLsfId"/><xsl:text>:</xsl:text><xsl:value-of select="$workgroupLsfId"/> + </xsl:variable> + + <xsl:variable name="clientParentId"> + <xsl:text>lecture:</xsl:text> + <xsl:value-of select="$lectureLsfId"/> + </xsl:variable> + + <xsl:element name="relation"> + + <xsl:element name="clientId"> + <xsl:text>relation:</xsl:text> + <xsl:value-of select="$clientParentId"/> + <xsl:text>:</xsl:text> + <xsl:value-of select="$clientChildId"/> + </xsl:element> + + <xsl:element name="relationType"> + <xsl:value-of select="$RELATION_TYPE_LECTURE_TO_WORKGROUPS"/> + </xsl:element> + + <xsl:element name="clientParentId"> + <xsl:value-of select="$clientParentId"/> + </xsl:element> + + <xsl:element name="clientChildId"> + <xsl:value-of select="$clientChildId"/> + </xsl:element> + + </xsl:element> + + <xsl:for-each select="../child::group[number(child::lsfId) > number($workgroupLsfId)]"> + <xsl:sort select="lsfId" data-type="number"/> + <xsl:if test="position() = 1"> + <xsl:call-template name="generate-lectureToWorkgroupRelation"> + </xsl:call-template> + </xsl:if> + </xsl:for-each> + +</xsl:template> + +<!-- ################################################################################################################## --> + +<xsl:template name="generate-relation"> + + <xsl:param name="type"/> + <xsl:param name="clientChildId"/> + <xsl:param name="clientParentId"/> + <xsl:param name="sort"/> + + <xsl:element name="relation"> + + <xsl:element name="clientId"> + <xsl:text>relation:</xsl:text> + <xsl:value-of select="$cli... [truncated message content] |
From: <pka...@us...> - 2009-04-16 21:46:25
|
Revision: 120 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=120&view=rev Author: pkasprzak Date: 2009-04-16 21:46:18 +0000 (Thu, 16 Apr 2009) Log Message: ----------- * Adapted messages / variables to new datamodel (CDDM.xsd) * Course attributes are filled via xslt * Reorganized project-dependencies: common files are kept in the "Common"-Project * Cleanups Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/catalog.xml trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/project.properties trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/project.xml trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundClientAdapter.bpel trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundTransformation.xsl trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/XSLTTransform.wsdl trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-test_output.xml Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/LSFDataTypes.xsd trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-test_output2.xml trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/toCDDM.xsl Removed Paths: ------------- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/DataTypes.xsd Property Changed: ---------------- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/ Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/catalog.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/catalog.xml 2009-04-16 21:45:49 UTC (rev 119) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/catalog.xml 2009-04-16 21:46:18 UTC (rev 120) @@ -2,4 +2,5 @@ <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system"> <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/> <system systemId="ObjectProcessor/ObjectProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ObjectProcessor.wsdl"/> + <system systemId="Common/CDDM.xsd" uri="nb-uri:Common#src/CDDM.xsd"/> </catalog> Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml 2009-04-16 21:45:49 UTC (rev 119) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml 2009-04-16 21:46:18 UTC (rev 120) @@ -106,6 +106,7 @@ <!-- You can override this target in the ../build.xml file. --> </target> <target name="-deps-jar-dist" depends="init" unless="${no.dependencies}"> + <ant target="dist_se" inheritall="false" dir="${project.Common}"/> <ant target="dist_se" inheritall="false" dir="${project.ObjectProcessor}"/> </target> <target name="-do-dist" depends="init,-pre-dist"> @@ -141,6 +142,7 @@ <!-- You can override this target in the ../build.xml file. --> </target> <target name="-deps-clean" depends="init" unless="${no.dependencies}"> + <ant target="clean" inheritall="false" dir="${project.Common}"/> <ant target="clean" inheritall="false" dir="${project.ObjectProcessor}"/> </target> <target name="-do-clean" depends="init,-pre-clean"> Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties 2009-04-16 21:45:49 UTC (rev 119) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties 2009-04-16 21:46:18 UTC (rev 120) @@ -1,8 +1,8 @@ -build.xml.data.CRC32=bd17bc39 +build.xml.data.CRC32=2842e5db build.xml.script.CRC32=3d3dbc12 build.xml.stylesheet.CRC32=1947459d # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=bd17bc39 -nbproject/build-impl.xml.script.CRC32=5594df24 +nbproject/build-impl.xml.data.CRC32=2842e5db +nbproject/build-impl.xml.script.CRC32=272d045c nbproject/build-impl.xml.stylesheet.CRC32=749ec361 Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/project.properties =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/project.properties 2009-04-16 21:45:49 UTC (rev 119) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/project.properties 2009-04-16 21:46:18 UTC (rev 120) @@ -20,7 +20,9 @@ jbi.service-unit.description=Represents this Service Unit meta.inf=${source.root}/conf platform.active=default_platform +project.Common=../Common project.ObjectProcessor=../ObjectProcessor +reference.Common.dist_se=${project.Common}/build/SEDeployment.jar reference.ObjectProcessor.dist_se=${project.ObjectProcessor}/build/SEDeployment.jar resource.dir=setup sedeployment.jar=${build.dir}/SEDeployment.jar Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/project.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/project.xml 2009-04-16 21:45:49 UTC (rev 119) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/project.xml 2009-04-16 21:46:18 UTC (rev 120) @@ -8,6 +8,14 @@ </data> <references xmlns="http://www.netbeans.org/ns/ant-project-references/1"> <reference> + <foreign-project>Common</foreign-project> + <artifact-type>jar</artifact-type> + <script>build.xml</script> + <target>dist_se</target> + <clean-target>clean</clean-target> + <id>dist_se</id> + </reference> + <reference> <foreign-project>ObjectProcessor</foreign-project> <artifact-type>jar</artifact-type> <script>build.xml</script> Property changes on: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src ___________________________________________________________________ Added: svn:ignore + .hack_for_issue_144110 Deleted: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/DataTypes.xsd =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/DataTypes.xsd 2009-04-16 21:45:49 UTC (rev 119) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/DataTypes.xsd 2009-04-16 21:46:18 UTC (rev 120) @@ -1,264 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://cse.campussource.de/schema/DataTypes" - xmlns:tns="http://cse.campussource.de/schema/DataTypes"> - - <xs:complexType name="synchronizationMessageType"> - <xs:sequence> - <xs:element name="isDebug" type="xs:boolean"/> - <xs:element name="isSyncMessage" type="xs:boolean"/> - <xs:element name="semesterName" type="xs:string" minOccurs="0"/> - <xs:element name="semesterLsfId" type="xs:string" minOccurs="0"/> - <xs:element name="rootCategoryId" type="xs:string" minOccurs="0"/> - <xs:element name="accounts" minOccurs="0"> - <xs:complexType> - <xs:sequence> - <xs:element name="account" type="tns:accountType" minOccurs="0" maxOccurs="unbounded"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="courseTypes" minOccurs="0"> - <xs:complexType> - <xs:sequence> - <xs:element name="courseType" type="tns:courseTypeType" minOccurs="0" maxOccurs="unbounded"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="courses" minOccurs="0"> - <xs:complexType> - <xs:sequence> - <xs:element name="course" type="tns:courseType" minOccurs="0" maxOccurs="unbounded"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="workgroups" minOccurs="0"> - <xs:complexType> - <xs:sequence> - <xs:element name="workgroup" type="tns:workgroupType" minOccurs="0" maxOccurs="unbounded"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="categories" minOccurs="0"> - <xs:complexType> - <xs:sequence> - <xs:element name="category" type="tns:categoryType" minOccurs="0" maxOccurs="unbounded"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="relations" minOccurs="0"> - <xs:complexType> - <xs:sequence> - <xs:element name="relation" type="tns:mappedRelationType" minOccurs="0" maxOccurs="unbounded"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="roles" minOccurs="0"> - <xs:complexType> - <xs:sequence> - <xs:element name="role" type="tns:roleType" minOccurs="0" maxOccurs="unbounded"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="lecturesToDelete" minOccurs="0"> - <xs:complexType> - <xs:sequence> - <xs:element name="lsfId" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="accountsToDelete" minOccurs="0"> - <xs:complexType> - <xs:sequence> - <xs:element name="lsfId" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="lectureTypesToDelete" minOccurs="0"> - <xs:complexType> - <xs:sequence> - <xs:element name="lsfId" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> - </xs:sequence> - </xs:complexType> - </xs:element> - </xs:sequence> - </xs:complexType> - - <xs:complexType name="accountType"> - <xs:complexContent> - <xs:extension base="tns:mappedEntityType"> - <xs:sequence> - <xs:element name="lsfId" type="xs:string"/> - <xs:element name="surname" type="xs:string"/> - <xs:element name="firstName" type="xs:string"/> - <xs:element name="emailAddress" type="xs:string"/> - <xs:element name="login" type="xs:string"/> - <xs:element name="password" type="xs:string"/> - <xs:element name="globalRole" type="xs:string" minOccurs="0"/> - <xs:element name="degree" type="xs:string" minOccurs="0"/> - <xs:element name="academicTitle" type="xs:string" minOccurs="0"/> - <xs:element name="gender" type="xs:string" minOccurs="0"/> - </xs:sequence> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - <xs:complexType name="mappedEntityType" abstract="true"> - <xs:complexContent> - <xs:extension base="tns:mappedObjectType"> - <xs:sequence/> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - <xs:complexType name="mappedObjectType" abstract="true"> - <xs:sequence> - <xs:element name="busId" type="xs:int"/> - <xs:element name="clientId" type="xs:string" minOccurs="0"/> - <xs:element name="operation" type="xs:string" minOccurs="0"/> - </xs:sequence> - </xs:complexType> - - <xs:complexType name="courseTypeType"> - <xs:complexContent> - <xs:extension base="tns:mappedEntityType"> - <xs:sequence> - <xs:element name="lsfId" type="xs:int"/> - <xs:element name="name" type="xs:string"/> - <xs:element name="shortDescription" type="xs:string" minOccurs="0"/> - <xs:element name="longDescription" type="xs:string" minOccurs="0"/> - </xs:sequence> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - <xs:complexType name="courseType"> - <xs:complexContent> - <xs:extension base="tns:mappedEntityType"> - <xs:sequence> - <xs:element name="dates" minOccurs="0"> - <xs:complexType> - <xs:sequence> - <xs:element name="date" type="tns:dateType" minOccurs="0" maxOccurs="unbounded"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="active" type="xs:string" minOccurs="0"/> - <xs:element name="abbreviation" type="xs:string" minOccurs="0"/> - <xs:element name="lsfId" type="xs:string"/> - <xs:element name="logicalNumber" type="xs:int"/> - <xs:element name="type" type="xs:string" minOccurs="0"/> - <xs:element name="title" type="xs:string"/> - <xs:element name="semesterId" type="xs:string"/> - <xs:element name="clientTitle" type="xs:string" minOccurs="0"/> - <xs:element name="shortDescription" type="xs:string" minOccurs="0"/> - <xs:element name="prerequisites" type="xs:string" minOccurs="0"/> - <xs:element name="necessaryAssignment" type="xs:string" minOccurs="0"/> - <xs:element name="languageISO" type="xs:string" minOccurs="0"/> - <xs:element name="languageFull" type="xs:string" minOccurs="0"/> - <xs:element name="hyperlink" type="xs:string" minOccurs="0"/> - <xs:element name="hyperlinkname" type="xs:string" minOccurs="0"/> - <xs:element name="note" type="xs:string" minOccurs="0"/> - <xs:element name="comment" type="xs:string" minOccurs="0"/> - <xs:element name="semesterAsInt" type="xs:short"/> - <xs:element name="semesterAbbr" type="xs:string" minOccurs="0"/> - <xs:element name="semesterFull" type="xs:string" minOccurs="0"/> - <xs:element name="semesterPeriodsPerWeek" type="xs:int"/> - <xs:element name="expectedRegistrations" type="xs:int"/> - <xs:element name="maximumRegistrations" type="xs:int"/> - <xs:element name="activityConfirmation" type="xs:string" minOccurs="0"/> - <xs:element name="literature" type="xs:string" minOccurs="0"/> - <xs:element name="startDate" type="xs:string" minOccurs="0"/> - <xs:element name="endDate" type="xs:string" minOccurs="0"/> - <xs:element name="superRoleBusId" type="xs:int"/> - <xs:element name="assignmentManagement" type="xs:string" minOccurs="0"/> - <xs:element name="leadingSystemForAssigments" type="xs:string" minOccurs="0"/> - <xs:element name="bookingType" type="xs:string" minOccurs="0"/> - </xs:sequence> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - <xs:complexType name="dateType"> - <xs:sequence> - <xs:element name="dateId" type="xs:int"/> - <xs:element name="startdate" type="xs:string" minOccurs="0"/> - <xs:element name="enddate" type="xs:string" minOccurs="0"/> - <xs:element name="starttime" type="xs:string" minOccurs="0"/> - <xs:element name="endtime" type="xs:string" minOccurs="0"/> - <xs:element name="stct" type="xs:string" minOccurs="0"/> - <xs:element name="dayofweek" type="xs:string" minOccurs="0"/> - <xs:element name="rythm" type="xs:string" minOccurs="0"/> - </xs:sequence> - </xs:complexType> - - <xs:complexType name="workgroupType"> - <xs:complexContent> - <xs:extension base="tns:mappedEntityType"> - <xs:sequence> - <xs:element name="lsfId" type="xs:string"/> - <xs:element name="name" type="xs:string"/> - <xs:element name="room" type="xs:string" minOccurs="0"/> - <xs:element name="semesterId" type="xs:string"/> - <xs:element name="clientTitle" type="xs:string" minOccurs="0"/> - <xs:element name="shortDescription" type="xs:string" minOccurs="0"/> - <xs:element name="languageISO" type="xs:string" minOccurs="0"/> - <xs:element name="maximumRegistrations" type="xs:int"/> - <xs:element name="startDate" type="xs:string" minOccurs="0"/> - <xs:element name="endDate" type="xs:string" minOccurs="0"/> - </xs:sequence> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - <xs:complexType name="categoryType"> - <xs:complexContent> - <xs:extension base="tns:mappedEntityType"> - <xs:sequence> - <xs:element name="name" type="xs:string"/> - <xs:element name="lsfId" type="xs:string"/> - <xs:element name="sort" type="xs:int"/> - <xs:element name="semesterId" type="xs:string"/> - </xs:sequence> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - <xs:complexType name="mappedRelationType"> - <xs:complexContent> - <xs:extension base="tns:mappedObjectType"> - <xs:sequence> - <xs:element name="busParentId" type="xs:int"/> - <xs:element name="busChildId" type="xs:int"/> - <xs:element name="clientChildId" type="xs:string" minOccurs="0"/> - <xs:element name="clientParentId" type="xs:string" minOccurs="0"/> - <xs:element name="relationType" type="xs:string" minOccurs="0"/> - <xs:element name="childSort" type="xs:string" minOccurs="0"/> - </xs:sequence> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - <xs:complexType name="roleType"> - <xs:complexContent> - <xs:extension base="tns:mappedObjectType"> - <xs:sequence> - <xs:element name="name" type="xs:string"/> - <xs:element name="clientAccountId" type="xs:string" minOccurs="0"/> - <xs:element name="clientObjectId" type="xs:string" minOccurs="0"/> - <xs:element name="busAccountId" type="xs:int"/> - <xs:element name="busObjectId" type="xs:int"/> - <xs:element name="roleStatus" type="xs:string" minOccurs="0"/> - </xs:sequence> - </xs:extension> - </xs:complexContent> - </xs:complexType> - <xs:complexType name="resultType"> - <xs:sequence> - <xs:element name="clientId" type="xs:string"/> - <xs:element name="status" type="xs:string"/> - <xs:element name="reason" type="xs:string"/> - </xs:sequence> - </xs:complexType> - <xs:element name="synchronizationMessage" type="tns:synchronizationMessageType"/> -</xs:schema> \ No newline at end of file Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundClientAdapter.bpel 2009-04-16 21:45:49 UTC (rev 119) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundClientAdapter.bpel 2009-04-16 21:46:18 UTC (rev 120) @@ -8,23 +8,29 @@ 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:lsfdt="http://cse.campussource.de/schema/LSFDataTypes" xmlns:dt="http://cse.campussource.de/schema/DataTypes" - xmlns:tns="http://enterprise.netbeans.org/bpel/LSFClientAdapter/InboundClientAdapter" xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" xmlns:ns1="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor"> + xmlns:tns="http://enterprise.netbeans.org/bpel/LSFClientAdapter/InboundClientAdapter" + xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" + xmlns:ns1="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor"> - <import namespace="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" location="LSFClientAdapter.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://cse.campussource.de/schema/DataTypes" location="DataTypes.xsd" importType="http://www.w3.org/2001/XMLSchema"/> - <import namespace="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" location="XSLTTransform.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" location="ObjectProcessor/ObjectProcessor.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" location="LSFClientAdapter.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://cse.campussource.de/schema/LSFDataTypes" location="LSFDataTypes.xsd" importType="http://www.w3.org/2001/XMLSchema"/> + <import namespace="http://cse.campussource.de/schema/DataTypes" location="Common/CDDM.xsd" importType="http://www.w3.org/2001/XMLSchema"/> + <import namespace="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" location="XSLTTransform.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" location="ObjectProcessor/ObjectProcessor.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <partnerLinks> - <partnerLink name="XSLTTransform" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" partnerLinkType="tns:XSLTTransform" partnerRole="XSLTTransformPortTypeRole"/> - <partnerLink name="ObjectProcessor" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" partnerLinkType="tns:ObjectProcessor" partnerRole="ObjectProcessorPortTypeRole"/> - <partnerLink name="LSF" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" partnerLinkType="tns:LSFClientAdapter" myRole="LSFClientAdapterPortTypeRole"/> + <partnerLink name="XSLTTransform" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" partnerLinkType="tns:XSLTTransform" partnerRole="XSLTTransformPortTypeRole"/> + <partnerLink name="ObjectProcessor" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" partnerLinkType="tns:ObjectProcessor" partnerRole="ObjectProcessorPortTypeRole"/> + <partnerLink name="LSF" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" partnerLinkType="tns:LSFClientAdapter" myRole="LSFClientAdapterPortTypeRole"/> </partnerLinks> <variables> - <variable name="XSLTTransformOperationOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" messageType="tns:XSLTTransformOperationResponse"/> - <variable name="XSLTTransformOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" messageType="tns:XSLTTransformOperationRequest"/> - <variable name="ReceiveIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" messageType="tns:receiveRequest"/> - <variable name="synchronizationMessage" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" element="dt:synchronizationMessage"/> + <variable name="XSLTTransformOperationOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" messageType="tns:XSLTTransformOperationResponse"/> + <variable name="XSLTTransformOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" messageType="tns:XSLTTransformOperationRequest"/> + <variable name="ReceiveIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" messageType="tns:receiveRequest"/> + <variable name="synchronizationMessage" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" element="lsfdt:synchronizationMessage"/> </variables> <sequence> <receive name="receive" createInstance="yes" partnerLink="LSF" operation="receive" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" portType="tns:LSFClientAdapterPortType" variable="ReceiveIn"/> @@ -37,9 +43,11 @@ <invoke name="doXSLTTransform" partnerLink="XSLTTransform" operation="XSLTTransformOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" portType="tns:XSLTTransformPortType" inputVariable="XSLTTransformOperationIn" outputVariable="XSLTTransformOperationOut"/> <assign name="convertResult"> <sxt:trace> +<!-- <sxt:log level="info" location="onStart"> <ns0:from>concat('XSLT-Transofmation-Output: ', $XSLTTransformOperationOut.result)</ns0:from> </sxt:log> +--> <sxt:log level="info" location="onComplete"> <ns0:from>concat('Variable.SemesterName: ', $synchronizationMessage/semesterName)</ns0:from> </sxt:log> @@ -49,46 +57,88 @@ <to variable="synchronizationMessage"/> </copy> </assign> - <empty name="XSLTTransformToGenericMessageModel"/> - <forEach name="ObjectSplitter" parallel="no" counterName="ObjectCounter"> + <forEach name="CourseSplitter" parallel="no" counterName="CourseCounter"> <sxt:trace> - <sxt:log level="fine" location="onStart"> - <ns0:from>'ForEach before start'</ns0:from> + <sxt:log level="info" location="onStart"> + <ns0:from>'*** ForEach before start'</ns0:from> </sxt:log> </sxt:trace> <startCounterValue>1</startCounterValue> <finalCounterValue>count($synchronizationMessage/courses/course[.])</finalCounterValue> - <scope name="ObjectProcessor"> + <scope name="ObjectProcessor"> <variables> - <variable name="ProcessObjectOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" messageType="tns:ProcessObjectOperationRequest"/> + <variable name="ProcessCourseOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" messageType="tns:ProcessCourseOperationRequest"/> </variables> - <sequence name="Sequence1"> - <assign name="prepareProcessObject"> - <copy> - <from variable="synchronizationMessage"/> - <to variable="ProcessObjectOperationIn" part="objectMessage"/> - </copy> - </assign> - <assign name="setObject"> - <sxt:trace> - <sxt:log level="fine" location="onStart"> - <ns0:from variable="ObjectCounter"/> - </sxt:log> - </sxt:trace> + <sequence name="CourseSplitSequence"> + <!-- Init courseMessage part of ProcessCourseOperationIn --> + <assign name="initCourseMessagePartStructure"> + <copy> + <from> + <literal> + <courseMessage xmlns="http://cse.campussource.de/schema/DataTypes"> + <course> + <busId/> + <eventTime>2000-01-20T12:00:00</eventTime> + <attribute> + <name/> + <value/> + <transient/> + </attribute> + <categories/> + <workgroups/> + </course> + <eventTime>2000-01-20T12:00:00</eventTime> + <inputEvent>CREATE_UPDATE</inputEvent> + </courseMessage> + </literal> + </from> + <to variable="ProcessCourseOperationIn" part="courseMessage"/> + </copy> + <copy> + <from>1</from> + <to variable="ProcessCourseOperationIn" part="clientInstanceId"/> + </copy> + <copy> + <from>'lsf-id-1'</from> + <to variable="ProcessCourseOperationIn" part="clientObjectId"/> + </copy> + </assign> + <!-- Copy relevant attributes --> + <assign name="transformToCDDM"> + <copy> + <from>ns0:doXslTransform('urn:stylesheets:toCDDM.xsl', $synchronizationMessage/courses/course[1])</from> + <to>$ProcessCourseOperationIn.courseMessage</to> + </copy> + </assign> <!-- + <assign name="prepareProcessCourse"> + <copy> + <from variable="synchronizationMessage"/> + <to variable="ProcessCourseOperationIn" part="courseMessage"/> + </copy> + </assign> +--> +<!-- + <assign name="setObject"> + <sxt:trace> + <sxt:log level="fine" location="onStart"> + <ns0:from variable="CourseCounter"/> + </sxt:log> + </sxt:trace> + <copy> <from>$synchronizationMessage/courses/course[$ObjectCounter]</from> <to>$ProcessObjectOperationIn.objectMessage/courses/course[1]</to> </copy> + <copy> + <from>1</from> + <to variable="ProcessCourseOperationIn" part="clientInstanceId"/> + </copy> + </assign> --> - <copy> - <from>1</from> - <to variable="ProcessObjectOperationIn" part="clientInstanceId"/> - </copy> - </assign> - <invoke name="processObject" partnerLink="ObjectProcessor" operation="ProcessObjectOperation" portType="ns1:ObjectProcessorPortType" inputVariable="ProcessObjectOperationIn"/> + <invoke name="processObject" partnerLink="ObjectProcessor" operation="ProcessCourseOperation" portType="ns1:ObjectProcessorPortType" inputVariable="ProcessCourseOperationIn"/> </sequence> - </scope> + </scope> </forEach> </sequence> </process> Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundTransformation.xsl =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundTransformation.xsl 2009-04-16 21:45:49 UTC (rev 119) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundTransformation.xsl 2009-04-16 21:46:18 UTC (rev 120) @@ -117,14 +117,14 @@ <xsl:if test="$DEBUG"> <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> - <xsl:comment># Generating "lectures" #</xsl:comment><xsl:text> </xsl:text> + <xsl:comment># Generating "courses" #</xsl:comment><xsl:text> </xsl:text> <xsl:comment>##################################################################</xsl:comment><xsl:text> </xsl:text> <xsl:text> </xsl:text> </xsl:if> - <xsl:element name="lectures"> + <xsl:element name="courses"> <xsl:for-each select="/synchronizationMessage/lectures/*"> - <xsl:element name="lecture"> + <xsl:element name="course"> <!-- Copy everything except "groups", "accounts", "categories"-elements (these will be transformed to relations) --> <xsl:for-each select="*"> Copied: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/LSFDataTypes.xsd (from rev 108, trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/DataTypes.xsd) =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/LSFDataTypes.xsd (rev 0) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/LSFDataTypes.xsd 2009-04-16 21:46:18 UTC (rev 120) @@ -0,0 +1,264 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://cse.campussource.de/schema/LSFDataTypes" + xmlns:tns="http://cse.campussource.de/schema/LSFDataTypes"> + + <xs:complexType name="synchronizationMessageType"> + <xs:sequence> + <xs:element name="isDebug" type="xs:boolean"/> + <xs:element name="isSyncMessage" type="xs:boolean"/> + <xs:element name="semesterName" type="xs:string" minOccurs="0"/> + <xs:element name="semesterLsfId" type="xs:string" minOccurs="0"/> + <xs:element name="rootCategoryId" type="xs:string" minOccurs="0"/> + <xs:element name="accounts" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="account" type="tns:accountType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="courseTypes" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="courseType" type="tns:courseTypeType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="courses" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="course" type="tns:courseType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="workgroups" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="workgroup" type="tns:workgroupType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="categories" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="category" type="tns:categoryType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="relations" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="relation" type="tns:mappedRelationType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="roles" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="role" type="tns:roleType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="lecturesToDelete" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="lsfId" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="accountsToDelete" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="lsfId" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="lectureTypesToDelete" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="lsfId" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="accountType"> + <xs:complexContent> + <xs:extension base="tns:mappedEntityType"> + <xs:sequence> + <xs:element name="lsfId" type="xs:string"/> + <xs:element name="surname" type="xs:string"/> + <xs:element name="firstName" type="xs:string"/> + <xs:element name="emailAddress" type="xs:string"/> + <xs:element name="login" type="xs:string"/> + <xs:element name="password" type="xs:string"/> + <xs:element name="globalRole" type="xs:string" minOccurs="0"/> + <xs:element name="degree" type="xs:string" minOccurs="0"/> + <xs:element name="academicTitle" type="xs:string" minOccurs="0"/> + <xs:element name="gender" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="mappedEntityType" abstract="true"> + <xs:complexContent> + <xs:extension base="tns:mappedObjectType"> + <xs:sequence/> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="mappedObjectType" abstract="true"> + <xs:sequence> + <xs:element name="busId" type="xs:int"/> + <xs:element name="clientId" type="xs:string" minOccurs="0"/> + <xs:element name="operation" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="courseTypeType"> + <xs:complexContent> + <xs:extension base="tns:mappedEntityType"> + <xs:sequence> + <xs:element name="lsfId" type="xs:int"/> + <xs:element name="name" type="xs:string"/> + <xs:element name="shortDescription" type="xs:string" minOccurs="0"/> + <xs:element name="longDescription" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="courseType"> + <xs:complexContent> + <xs:extension base="tns:mappedEntityType"> + <xs:sequence> + <xs:element name="dates" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="date" type="tns:dateType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="active" type="xs:string" minOccurs="0"/> + <xs:element name="abbreviation" type="xs:string" minOccurs="0"/> + <xs:element name="lsfId" type="xs:string"/> + <xs:element name="logicalNumber" type="xs:int"/> + <xs:element name="type" type="xs:string" minOccurs="0"/> + <xs:element name="title" type="xs:string"/> + <xs:element name="semesterId" type="xs:string"/> + <xs:element name="clientTitle" type="xs:string" minOccurs="0"/> + <xs:element name="shortDescription" type="xs:string" minOccurs="0"/> + <xs:element name="prerequisites" type="xs:string" minOccurs="0"/> + <xs:element name="necessaryAssignment" type="xs:string" minOccurs="0"/> + <xs:element name="languageISO" type="xs:string" minOccurs="0"/> + <xs:element name="languageFull" type="xs:string" minOccurs="0"/> + <xs:element name="hyperlink" type="xs:string" minOccurs="0"/> + <xs:element name="hyperlinkname" type="xs:string" minOccurs="0"/> + <xs:element name="note" type="xs:string" minOccurs="0"/> + <xs:element name="comment" type="xs:string" minOccurs="0"/> + <xs:element name="semesterAsInt" type="xs:short"/> + <xs:element name="semesterAbbr" type="xs:string" minOccurs="0"/> + <xs:element name="semesterFull" type="xs:string" minOccurs="0"/> + <xs:element name="semesterPeriodsPerWeek" type="xs:int"/> + <xs:element name="expectedRegistrations" type="xs:int"/> + <xs:element name="maximumRegistrations" type="xs:int"/> + <xs:element name="activityConfirmation" type="xs:string" minOccurs="0"/> + <xs:element name="literature" type="xs:string" minOccurs="0"/> + <xs:element name="startDate" type="xs:string" minOccurs="0"/> + <xs:element name="endDate" type="xs:string" minOccurs="0"/> + <xs:element name="superRoleBusId" type="xs:int"/> + <xs:element name="assignmentManagement" type="xs:string" minOccurs="0"/> + <xs:element name="leadingSystemForAssigments" type="xs:string" minOccurs="0"/> + <xs:element name="bookingType" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="dateType"> + <xs:sequence> + <xs:element name="dateId" type="xs:int"/> + <xs:element name="startdate" type="xs:string" minOccurs="0"/> + <xs:element name="enddate" type="xs:string" minOccurs="0"/> + <xs:element name="starttime" type="xs:string" minOccurs="0"/> + <xs:element name="endtime" type="xs:string" minOccurs="0"/> + <xs:element name="stct" type="xs:string" minOccurs="0"/> + <xs:element name="dayofweek" type="xs:string" minOccurs="0"/> + <xs:element name="rythm" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="workgroupType"> + <xs:complexContent> + <xs:extension base="tns:mappedEntityType"> + <xs:sequence> + <xs:element name="lsfId" type="xs:string"/> + <xs:element name="name" type="xs:string"/> + <xs:element name="room" type="xs:string" minOccurs="0"/> + <xs:element name="semesterId" type="xs:string"/> + <xs:element name="clientTitle" type="xs:string" minOccurs="0"/> + <xs:element name="shortDescription" type="xs:string" minOccurs="0"/> + <xs:element name="languageISO" type="xs:string" minOccurs="0"/> + <xs:element name="maximumRegistrations" type="xs:int"/> + <xs:element name="startDate" type="xs:string" minOccurs="0"/> + <xs:element name="endDate" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="categoryType"> + <xs:complexContent> + <xs:extension base="tns:mappedEntityType"> + <xs:sequence> + <xs:element name="name" type="xs:string"/> + <xs:element name="lsfId" type="xs:string"/> + <xs:element name="sort" type="xs:int"/> + <xs:element name="semesterId" type="xs:string"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="mappedRelationType"> + <xs:complexContent> + <xs:extension base="tns:mappedObjectType"> + <xs:sequence> + <xs:element name="busParentId" type="xs:int"/> + <xs:element name="busChildId" type="xs:int"/> + <xs:element name="clientChildId" type="xs:string" minOccurs="0"/> + <xs:element name="clientParentId" type="xs:string" minOccurs="0"/> + <xs:element name="relationType" type="xs:string" minOccurs="0"/> + <xs:element name="childSort" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="roleType"> + <xs:complexContent> + <xs:extension base="tns:mappedObjectType"> + <xs:sequence> + <xs:element name="name" type="xs:string"/> + <xs:element name="clientAccountId" type="xs:string" minOccurs="0"/> + <xs:element name="clientObjectId" type="xs:string" minOccurs="0"/> + <xs:element name="busAccountId" type="xs:int"/> + <xs:element name="busObjectId" type="xs:int"/> + <xs:element name="roleStatus" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + <xs:complexType name="resultType"> + <xs:sequence> + <xs:element name="clientId" type="xs:string"/> + <xs:element name="status" type="xs:string"/> + <xs:element name="reason" type="xs:string"/> + </xs:sequence> + </xs:complexType> + <xs:element name="synchronizationMessage" type="tns:synchronizationMessageType"/> +</xs:schema> \ No newline at end of file Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/XSLTTransform.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/XSLTTransform.wsdl 2009-04-16 21:45:49 UTC (rev 119) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/XSLTTransform.wsdl 2009-04-16 21:46:18 UTC (rev 120) @@ -1,23 +1,23 @@ <?xml version="1.0" encoding="UTF-8"?> -<definitions name="XSLTTransform" targetNamespace="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" - 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/LSFClientAdapter/XSLTTransform" xmlns:ns="http://cse.campussource.de/schema/DataTypes" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> +<definitions name="XSLTTransform" targetNamespace="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" + 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/LSFClientAdapter/XSLTTransform" + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" + xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> <types> - <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform"> - <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="DataTypes.xsd"/> - </xsd:schema> </types> <message name="XSLTTransformOperationRequest"> - <part name="inputXML" type="xsd:string"/> + <part name="inputXML" type="xsd:string"/> </message> <message name="XSLTTransformOperationResponse"> - <part name="result" type="xsd:string"/> + <part name="result" type="xsd:string"/> </message> <portType name="XSLTTransformPortType"> <operation name="XSLTTransformOperation"> - <input name="input1" message="tns:XSLTTransformOperationRequest"/> - <output name="output1" message="tns:XSLTTransformOperationResponse"/> + <input name="input1" message="tns:XSLTTransformOperationRequest"/> + <output name="output1" message="tns:XSLTTransformOperationResponse"/> </operation> </portType> <binding name="XSLTTransformBinding" type="tns:XSLTTransformPortType"> Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-test_output.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-test_output.xml 2009-04-16 21:45:49 UTC (rev 119) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-test_output.xml 2009-04-16 21:46:18 UTC (rev 120) @@ -46,11 +46,11 @@ <lectureTypes/> <!--##################################################################--> -<!--# Generating "lectures" #--> +<!--# Generating "courses" #--> <!--##################################################################--> -<lectures> -<lecture> +<courses> +<course> <lsfId>32350</lsfId> <logicalNumber/> <type>Tutorium</type> @@ -95,8 +95,8 @@ <semesterId>20081</semesterId> <startDate>14.04.2008</startDate> <endDate>18.07.2008</endDate> -</lecture> -<lecture> +</course> +<course> <lsfId>28232</lsfId> <logicalNumber>28232</logicalNumber> <type>Hauptseminar</type> @@ -133,8 +133,8 @@ <semesterId>20081</semesterId> <startDate>14.04.2008</startDate> <endDate>18.07.2008</endDate> -</lecture> -<lecture> +</course> +<course> <lsfId>28481</lsfId> <logicalNumber>28481</logicalNumber> <type>Weiterführende Vorlesung</type> @@ -171,8 +171,8 @@ <semesterId>20081</semesterId> <startDate>14.04.2008</startDate> <endDate>18.07.2008</endDate> -</lecture> -</lectures> +</course> +</courses> <!--##################################################################--> <!--# Generating "workgroups" #--> <!--##################################################################--> Added: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-test_output2.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-test_output2.xml (rev 0) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-test_output2.xml 2009-04-16 21:46:18 UTC (rev 120) @@ -0,0 +1,497 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!--##### Creating course (Tutorium-Test) #####--> +<course xmlns="http://cse.campussource.de/schema/DataTypes"> +<busId/> +<eventTime/> +<!--- - - - - Attribute: lsfId - - - - - --> +<attribute> +<name>lsfId</name> +<value>32350</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: logicalNumber - - - - - --> +<attribute> +<name>logicalNumber</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: type - - - - - --> +<attribute> +<name>type</name> +<value>Tutorium</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: title - - - - - --> +<attribute> +<name>title</name> +<value>Tutorium-Test</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: shortDescription - - - - - --> +<attribute> +<name>shortDescription</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: abbreviation - - - - - --> +<attribute> +<name>abbreviation</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: necessaryAssignment - - - - - --> +<attribute> +<name>necessaryAssignment</name> +<value>J</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: note - - - - - --> +<attribute> +<name>note</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: comment - - - - - --> +<attribute> +<name>comment</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: semesterAsInt - - - - - --> +<attribute> +<name>semesterAsInt</name> +<value>20081</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: semesterPeriodsPerWeek - - - - - --> +<attribute> +<name>semesterPeriodsPerWeek</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: expectedRegistrations - - - - - --> +<attribute> +<name>expectedRegistrations</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: maximumRegistrations - - - - - --> +<attribute> +<name>maximumRegistrations</name> +<value>20</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: activityConfirmation - - - - - --> +<attribute> +<name>activityConfirmation</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: lectureTypeId - - - - - --> +<attribute> +<name>lectureTypeId</name> +<value>40</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: active - - - - - --> +<attribute> +<name>active</name> +<value>A</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: semesterAbbr - - - - - --> +<attribute> +<name>semesterAbbr</name> +<value>SS 2008</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: semesterFull - - - - - --> +<attribute> +<name>semesterFull</name> +<value>SS 2008</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: dates - - - - - --> +<attribute> +<name>dates</name> +<value> + + + + 14:00 + 16:00 + + + Montag + wöchentlich + + + + + 14:00 + 15:00 + + + Mittwoch + wöchentlich + + </value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: clientId - - - - - --> +<attribute> +<name>clientId</name> +<value>lecture:32350</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: semesterId - - - - - --> +<attribute> +<name>semesterId</name> +<value>20081</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: startDate - - - - - --> +<attribute> +<name>startDate</name> +<value>14.04.2008</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: endDate - - - - - --> +<attribute> +<name>endDate</name> +<value>18.07.2008</value> +<transient>false</transient> +</attribute> +</course> +<!--##### Creating course (Phonetische Aspekte des Sorbischen) #####--> +<course xmlns="http://cse.campussource.de/schema/DataTypes"> +<busId/> +<eventTime/> +<!--- - - - - Attribute: lsfId - - - - - --> +<attribute> +<name>lsfId</name> +<value>28232</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: logicalNumber - - - - - --> +<attribute> +<name>logicalNumber</name> +<value>28232</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: type - - - - - --> +<attribute> +<name>type</name> +<value>Hauptseminar</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: title - - - - - --> +<attribute> +<name>title</name> +<value>Phonetische Aspekte des Sorbischen</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: shortDescription - - - - - --> +<attribute> +<name>shortDescription</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: abbreviation - - - - - --> +<attribute> +<name>abbreviation</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: necessaryAssignment - - - - - --> +<attribute> +<name>necessaryAssignment</name> +<value>N</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: note - - - - - --> +<attribute> +<name>note</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: comment - - - - - --> +<attribute> +<name>comment</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: semesterAsInt - - - - - --> +<attribute> +<name>semesterAsInt</name> +<value>20081</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: semesterPeriodsPerWeek - - - - - --> +<attribute> +<name>semesterPeriodsPerWeek</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: expectedRegistrations - - - - - --> +<attribute> +<name>expectedRegistrations</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: maximumRegistrations - - - - - --> +<attribute> +<name>maximumRegistrations</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: activityConfirmation - - - - - --> +<attribute> +<name>activityConfirmation</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: lectureTypeId - - - - - --> +<attribute> +<name>lectureTypeId</name> +<value>98</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: active - - - - - --> +<attribute> +<name>active</name> +<value>A</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: languageISO - - - - - --> +<attribute> +<name>languageISO</name> +<value>de</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: languageFull - - - - - --> +<attribute> +<name>languageFull</name> +<value>deutsch</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: semesterAbbr - - - - - --> +<attribute> +<name>semesterAbbr</name> +<value>SS 2008</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: semesterFull - - - - - --> +<attribute> +<name>semesterFull</name> +<value>SS 2008</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: dates - - - - - --> +<attribute> +<name>dates</name> +<value> + + + + 10:00 + 12:00 + + + Freitag + wöchentlich + + </value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: clientId - - - - - --> +<attribute> +<name>clientId</name> +<value>lecture:28232</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: semesterId - - - - - --> +<attribute> +<name>semesterId</name> +<value>20081</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: startDate - - - - - --> +<attribute> +<name>startDate</name> +<value>14.04.2008</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: endDate - - - - - --> +<attribute> +<name>endDate</name> +<value>18.07.2008</value> +<transient>false</transient> +</attribute> +</course> +<!--##### Creating course (Numerical Algorithms for Visual Computing I) #####--> +<course xmlns="http://cse.campussource.de/schema/DataTypes"> +<busId/> +<eventTime/> +<!--- - - - - Attribute: lsfId - - - - - --> +<attribute> +<name>lsfId</name> +<value>28481</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: logicalNumber - - - - - --> +<attribute> +<name>logicalNumber</name> +<value>28481</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: type - - - - - --> +<attribute> +<name>type</name> +<value>Weiterführende Vorlesung</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: title - - - - - --> +<attribute> +<name>title</name> +<value>Numerical Algorithms for Visual Computing I</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: shortDescription - - - - - --> +<attribute> +<name>shortDescription</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: abbreviation - - - - - --> +<attribute> +<name>abbreviation</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: necessaryAssignment - - - - - --> +<attribute> +<name>necessaryAssignment</name> +<value>N</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: note - - - - - --> +<attribute> +<name>note</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: comment - - - - - --> +<attribute> +<name>comment</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: semesterAsInt - - - - - --> +<attribute> +<name>semesterAsInt</name> +<value>20081</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: semesterPeriodsPerWeek - - - - - --> +<attribute> +<name>semesterPeriodsPerWeek</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: expectedRegistrations - - - - - --> +<attribute> +<name>expectedRegistrations</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: maximumRegistrations - - - - - --> +<attribute> +<name>maximumRegistrations</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: activityConfirmation - - - - - --> +<attribute> +<name>activityConfirmation</name> +<value/> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: lectureTypeId - - - - - --> +<attribute> +<name>lectureTypeId</name> +<value>147</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: active - - - - - --> +<attribute> +<name>active</name> +<value>A</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: languageISO - - - - - --> +<attribute> +<name>languageISO</name> +<value>en</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: languageFull - - - - - --> +<attribute> +<name>languageFull</name> +<value>englisch</value> +<transient>false</transient> +</attribute> +<!--- - - - - Attribute: semesterAbbr - - - - - --> +<attribute> +<name>semesterAbbr</name> +<value>SS 2008</value> +<transien... [truncated message content] |
From: <pka...@us...> - 2009-05-04 13:17:25
|
Revision: 205 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=205&view=rev Author: pkasprzak Date: 2009-05-04 13:17:19 +0000 (Mon, 04 May 2009) Log Message: ----------- * Support for categories (mostly copy + paste of courses; consolidation into one xslt follows in the next few days) * Cleanup Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/build.xml trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundClientAdapter.bpel trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-test_output2.xml Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/CategoryToCDDMCategoryMessage.xsl trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/CourseToCDDMCourseMessage.xsl Removed Paths: ------------- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/toCDDM.xsl Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/build.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/build.xml 2009-05-04 13:13:47 UTC (rev 204) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/build.xml 2009-05-04 13:17:19 UTC (rev 205) @@ -53,18 +53,14 @@ properties which you can use check the target you are overriding in nbproject/build-impl.xml file. --> - <target name="-check-netbeans-home"> - <condition property="no.netbeans.home"> - <not> - <isset property="netbeans.home"/> - </not> - </condition> + <target name="-init-esb-ide" if="netbeans.home"> + <property name="esb.netbeans.platform" value="${netbeans.home}"/> </target> - <target name="-init-caps" if="no.netbeans.home"> + <target name="-init-esb-cmdline" unless="netbeans.home"> <property file="${basedir}/nbproject/private/private.properties"/> - <property name="netbeans.home" value="${caps.netbeans.home}/platform9"/> - <property name="netbeans.user" value="${caps.netbeans.user}"/> + <property name="esb.netbeans.platform" value="${esb.netbeans.home}/platform9"/> + <property name="netbeans.user" value="${esb.netbeans.user}"/> <property name="from.commandline" value="true"/> </target> - <target name="-pre-init" depends="-check-netbeans-home,-init-caps"/> + <target name="-pre-init" depends="-init-esb-ide,-init-esb-cmdline"/> </project> Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml 2009-05-04 13:13:47 UTC (rev 204) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml 2009-05-04 13:17:19 UTC (rev 205) @@ -48,42 +48,42 @@ </target> <target name="-init-taskdefs" if="from.commandline"> <path id="ant.task.classpath"> - <pathelement location="${netbeans.home}/../ide10/modules/ext/resolver-1.2.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-apache-xml-resolver.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-project-ant.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-project-libraries.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-projectapi.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-projectuiapi.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-catalog.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-xam.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-schema-model.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-wsdl-model.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-retriever.jar"/> - <pathelement location="${netbeans.home}/../platform9/core/core.jar"/> - <pathelement location="${netbeans.home}/../platform9/core/org-openide-filesystems.jar"/> - <pathelement location="${netbeans.home}/../platform9/lib/boot.jar"/> - <pathelement location="${netbeans.home}/../platform9/lib/org-openide-modules.jar"/> - <pathelement location="${netbeans.home}/../platform9/lib/org-openide-util.jar"/> - <pathelement location="${netbeans.home}/../platform9/modules/org-openide-dialogs.jar"/> - <pathelement location="${netbeans.home}/../platform9/modules/org-openide-loaders.jar"/> - <pathelement location="${netbeans.home}/../platform9/modules/org-openide-nodes.jar"/> - <pathelement location="${netbeans.home}/../platform9/modules/org-openide-text.jar"/> - <pathelement location="${netbeans.home}/../platform9/modules/org-netbeans-modules-masterfs.jar"/> - <pathelement location="${netbeans.home}/../platform9/modules/org-netbeans-modules-queries.jar"/> - <pathelement location="${netbeans.home}/../soa2/ant/nblib/org-netbeans-modules-bpel-project.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-debugger-api.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-model.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-project.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-validation.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-soa-ui.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-soa-validation.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-compapp-projects-base.jar"/> - <pathelement location="${netbeans.home}/../xml2/modules/ext/jxpath/jxpath1.1.jar"/> - <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-catalogsupport.jar"/> - <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-search.jar"/> - <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-wsdl-extensions.jar"/> - <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-xpath.jar"/> - <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-xpath-ext.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/ext/resolver-1.2.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-apache-xml-resolver.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-project-ant.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-project-libraries.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-projectapi.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-projectuiapi.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-xml-catalog.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-xml-xam.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-xml-schema-model.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-xml-wsdl-model.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-xml-retriever.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/core/core.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/core/org-openide-filesystems.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/lib/boot.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/lib/org-openide-modules.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/lib/org-openide-util.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/modules/org-openide-dialogs.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/modules/org-openide-loaders.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/modules/org-openide-nodes.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/modules/org-openide-text.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/modules/org-netbeans-modules-masterfs.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/modules/org-netbeans-modules-queries.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/ant/nblib/org-netbeans-modules-bpel-project.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-bpel-debugger-api.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-bpel-model.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-bpel-project.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-bpel-validation.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-soa-ui.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-soa-validation.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-compapp-projects-base.jar"/> + <pathelement location="${esb.netbeans.platform}/../xml2/modules/ext/jxpath/jxpath1.1.jar"/> + <pathelement location="${esb.netbeans.platform}/../xml2/modules/org-netbeans-modules-xml-catalogsupport.jar"/> + <pathelement location="${esb.netbeans.platform}/../xml2/modules/org-netbeans-modules-xml-search.jar"/> + <pathelement location="${esb.netbeans.platform}/../xml2/modules/org-netbeans-modules-xml-wsdl-extensions.jar"/> + <pathelement location="${esb.netbeans.platform}/../xml2/modules/org-netbeans-modules-xml-xpath.jar"/> + <pathelement location="${esb.netbeans.platform}/../xml2/modules/org-netbeans-modules-xml-xpath-ext.jar"/> </path> <taskdef name="validate-project" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliValidateBpelProjectTask"> <classpath refid="ant.task.classpath"/> Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties 2009-05-04 13:13:47 UTC (rev 204) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties 2009-05-04 13:17:19 UTC (rev 205) @@ -1,8 +1,8 @@ build.xml.data.CRC32=2842e5db -build.xml.script.CRC32=3d3dbc12 -build.xml.stylesheet.CRC32=1947459d +build.xml.script.CRC32=60b50638 +build.xml.stylesheet.CRC32=f35fd70d # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=2842e5db -nbproject/build-impl.xml.script.CRC32=272d045c -nbproject/build-impl.xml.stylesheet.CRC32=749ec361 +nbproject/build-impl.xml.script.CRC32=e5dd60c9 +nbproject/build-impl.xml.stylesheet.CRC32=5068533b Added: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/CategoryToCDDMCategoryMessage.xsl =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/CategoryToCDDMCategoryMessage.xsl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/CategoryToCDDMCategoryMessage.xsl 2009-05-04 13:17:19 UTC (rev 205) @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + Document : toCDDM.xsl.xsl + Created on : April 16, 2009, 10:18 PM + Author : pete + Description: Transform "old" CSE:Category -> CDDM:CategoryMessage + +--> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:dt="http://cse.campussource.de/schema/DataTypes" + xmlns="http://cse.campussource.de/schema/DataTypes" + version="1.0"> + + <xsl:output method="xml" + media-type="text/xml" + indent="yes" + encoding="UTF-8" + omit-xml-declaration="no"/> + + <xsl:template match="/dt:category"> +<!-- + <xsl:for-each select="/dt:synchronizationMessage/dt:courses/*"> +--> + <xsl:comment>##### Creating category (<xsl:value-of select="dt:name"/>) #####</xsl:comment> + <xsl:element name="categoryMessage"> + <xsl:element name="category"> + <xsl:element name="busId">1</xsl:element> + <xsl:element name="eventTime">2000-01-20T12:00:00</xsl:element> + <xsl:for-each select="*[position() < 6]"> + <xsl:comment>----- Attribute: <xsl:value-of select="local-name(.)"/> -----</xsl:comment> + <xsl:element name="attribute"> + <xsl:element name="name"> + <xsl:value-of select="local-name(.)"/> + </xsl:element> + <xsl:element name="value"> + <xsl:value-of select="."/> + </xsl:element> + <xsl:element name="transient"> + <xsl:text>false</xsl:text> + </xsl:element> + </xsl:element> + </xsl:for-each> + </xsl:element> + <xsl:element name="eventTime">2000-01-20T12:00:00</xsl:element> + <xsl:element name="inputEvent">CREATE_UPDATE</xsl:element> + </xsl:element> +<!-- + </xsl:for-each> +--> + </xsl:template> + +</xsl:stylesheet> Copied: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/CourseToCDDMCourseMessage.xsl (from rev 200, trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/toCDDM.xsl) =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/CourseToCDDMCourseMessage.xsl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/CourseToCDDMCourseMessage.xsl 2009-05-04 13:17:19 UTC (rev 205) @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + Document : CourseToCDDMCourseMessage.xsl + Created on : April 16, 2009, 10:18 PM + Author : pete + Description: Transform "old" CSE:Course -> CDDM:CourseMessage + +--> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:dt="http://cse.campussource.de/schema/DataTypes" + xmlns="http://cse.campussource.de/schema/DataTypes" + version="1.0"> + + <xsl:output method="xml" + media-type="text/xml" + indent="yes" + encoding="UTF-8" + omit-xml-declaration="no"/> + + <xsl:template match="/dt:course"> +<!-- + <xsl:for-each select="/dt:synchronizationMessage/dt:courses/*"> +--> + <xsl:comment>##### Creating course (<xsl:value-of select="dt:title"/>) #####</xsl:comment> + <xsl:element name="courseMessage"> + <xsl:element name="course"> + <xsl:element name="busId">1</xsl:element> + <xsl:element name="eventTime">2000-01-20T12:00:00</xsl:element> + <xsl:for-each select="*[position() < 6]"> + <xsl:comment>----- Attribute: <xsl:value-of select="local-name(.)"/> -----</xsl:comment> + <xsl:element name="attribute"> + <xsl:element name="name"> + <xsl:value-of select="local-name(.)"/> + </xsl:element> + <xsl:element name="value"> + <xsl:value-of select="."/> + </xsl:element> + <xsl:element name="transient"> + <xsl:text>false</xsl:text> + </xsl:element> + </xsl:element> + </xsl:for-each> + </xsl:element> + <xsl:element name="eventTime">2000-01-20T12:00:00</xsl:element> + <xsl:element name="inputEvent">CREATE_UPDATE</xsl:element> + </xsl:element> +<!-- + </xsl:for-each> +--> + </xsl:template> + +</xsl:stylesheet> Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundClientAdapter.bpel 2009-05-04 13:13:47 UTC (rev 204) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundClientAdapter.bpel 2009-05-04 13:17:19 UTC (rev 205) @@ -15,130 +15,128 @@ xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:ns1="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor"> - <import namespace="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" location="LSFClientAdapter.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://cse.campussource.de/schema/LSFDataTypes" location="LSFDataTypes.xsd" importType="http://www.w3.org/2001/XMLSchema"/> - <import namespace="http://cse.campussource.de/schema/DataTypes" location="Common/CDDM.xsd" importType="http://www.w3.org/2001/XMLSchema"/> - <import namespace="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" location="XSLTTransform.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" location="ObjectProcessor/ObjectProcessor.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" location="LSFClientAdapter.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://cse.campussource.de/schema/LSFDataTypes" location="LSFDataTypes.xsd" importType="http://www.w3.org/2001/XMLSchema"/> + <import namespace="http://cse.campussource.de/schema/DataTypes" location="Common/CDDM.xsd" importType="http://www.w3.org/2001/XMLSchema"/> + <import namespace="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" location="XSLTTransform.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" location="ObjectProcessor/ObjectProcessor.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <partnerLinks> - <partnerLink name="XSLTTransform" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" partnerLinkType="tns:XSLTTransform" partnerRole="XSLTTransformPortTypeRole"/> - <partnerLink name="ObjectProcessor" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" partnerLinkType="tns:ObjectProcessor" partnerRole="ObjectProcessorPortTypeRole"/> - <partnerLink name="LSF" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" partnerLinkType="tns:LSFClientAdapter" myRole="LSFClientAdapterPortTypeRole"/> - </partnerLinks> - <variables> - <variable name="XSLTTransformOperationOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" messageType="tns:XSLTTransformOperationResponse"/> - <variable name="XSLTTransformOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" messageType="tns:XSLTTransformOperationRequest"/> - <variable name="ReceiveIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" messageType="tns:receiveRequest"/> - <variable name="synchronizationMessage" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" element="lsfdt:synchronizationMessage"/> - </variables> - <sequence> - <receive name="receive" createInstance="yes" partnerLink="LSF" operation="receive" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" portType="tns:LSFClientAdapterPortType" variable="ReceiveIn"/> - <assign name="prepareXSLTTransform"> - <copy> - <from variable="ReceiveIn" part="InputData"/> - <to variable="XSLTTransformOperationIn" part="inputXML"/> - </copy> - </assign> - <invoke name="doXSLTTransform" partnerLink="XSLTTransform" operation="XSLTTransformOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" portType="tns:XSLTTransformPortType" inputVariable="XSLTTransformOperationIn" outputVariable="XSLTTransformOperationOut"/> - <assign name="convertResult"> - <sxt:trace> + <partnerLinks> + <partnerLink name="XSLTTransform" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" partnerLinkType="tns:XSLTTransform" partnerRole="XSLTTransformPortTypeRole"/> + <partnerLink name="ObjectProcessor" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" partnerLinkType="tns:ObjectProcessor" partnerRole="ObjectProcessorPortTypeRole"/> + <partnerLink name="LSF" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" partnerLinkType="tns:LSFClientAdapter" myRole="LSFClientAdapterPortTypeRole"/> + </partnerLinks> + <variables> + <variable name="XSLTTransformOperationOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" messageType="tns:XSLTTransformOperationResponse"/> + <variable name="XSLTTransformOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" messageType="tns:XSLTTransformOperationRequest"/> + <variable name="ReceiveIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" messageType="tns:receiveRequest"/> + <variable name="synchronizationMessage" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" element="lsfdt:synchronizationMessage"/> + </variables> + <sequence> + <receive name="receive" createInstance="yes" partnerLink="LSF" operation="receive" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" portType="tns:LSFClientAdapterPortType" variable="ReceiveIn"/> + <assign name="prepareXSLTTransform"> + <copy> + <from variable="ReceiveIn" part="InputData"/> + <to variable="XSLTTransformOperationIn" part="inputXML"/> + </copy> + </assign> + <invoke name="doXSLTTransform" partnerLink="XSLTTransform" operation="XSLTTransformOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" portType="tns:XSLTTransformPortType" inputVariable="XSLTTransformOperationIn" outputVariable="XSLTTransformOperationOut"/> + <assign name="convertResult"> + <sxt:trace> <!-- <sxt:log level="info" location="onStart"> <ns0:from>concat('XSLT-Transofmation-Output: ', $XSLTTransformOperationOut.result)</ns0:from> </sxt:log> --> - <sxt:log level="info" location="onComplete"> - <ns0:from>concat('Variable.SemesterName: ', $synchronizationMessage/semesterName)</ns0:from> - </sxt:log> - </sxt:trace> - <copy> - <from>sxxf:doUnMarshal($XSLTTransformOperationOut.result)</from> - <to variable="synchronizationMessage"/> - </copy> - </assign> - <forEach name="CourseSplitter" parallel="no" counterName="CourseCounter"> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <ns0:from>'*** ForEach before start'</ns0:from> - </sxt:log> - </sxt:trace> - <startCounterValue>1</startCounterValue> - <finalCounterValue>count($synchronizationMessage/courses/course[.])</finalCounterValue> - <scope name="ObjectProcessor"> - <variables> - <variable name="ProcessCourseOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" messageType="tns:ProcessCourseOperationRequest"/> - </variables> - <sequence name="CourseSplitSequence"> - <!-- Init courseMessage part of ProcessCourseOperationIn --> - <assign name="initCourseMessagePartStructure"> - <copy> - <from> - <literal> - <courseMessage xmlns="http://cse.campussource.de/schema/DataTypes"> - <course> - <busId/> - <eventTime>2000-01-20T12:00:00</eventTime> - <attribute> - <name/> - <value/> - <transient/> - </attribute> - <categories/> - <workgroups/> - </course> - <eventTime>2000-01-20T12:00:00</eventTime> - <inputEvent>CREATE_UPDATE</inputEvent> - </courseMessage> - </literal> - </from> - <to variable="ProcessCourseOperationIn" part="courseMessage"/> - </copy> - <copy> - <from>1</from> - <to variable="ProcessCourseOperationIn" part="clientInstanceId"/> - </copy> - <copy> - <from>'lsf-id-1'</from> - <to variable="ProcessCourseOperationIn" part="clientObjectId"/> - </copy> - </assign> - <!-- Copy relevant attributes --> - <assign name="transformToCDDM"> - <copy> - <from>ns0:doXslTransform('urn:stylesheets:toCDDM.xsl', $synchronizationMessage/courses/course[$CourseCounter])</from> - <to>$ProcessCourseOperationIn.courseMessage</to> - </copy> - </assign> -<!-- - <assign name="prepareProcessCourse"> - <copy> - <from variable="synchronizationMessage"/> - <to variable="ProcessCourseOperationIn" part="courseMessage"/> - </copy> - </assign> ---> -<!-- - <assign name="setObject"> - <sxt:trace> - <sxt:log level="fine" location="onStart"> - <ns0:from variable="CourseCounter"/> - </sxt:log> - </sxt:trace> + <sxt:log level="info" location="onComplete"> + <ns0:from>concat('Variable.SemesterName: ', $synchronizationMessage/semesterName)</ns0:from> + </sxt:log> + </sxt:trace> + <copy> + <from>sxxf:doUnMarshal($XSLTTransformOperationOut.result)</from> + <to variable="synchronizationMessage"/> + </copy> + </assign> - <copy> - <from>$synchronizationMessage/courses/course[$ObjectCounter]</from> - <to>$ProcessObjectOperationIn.objectMessage/courses/course[1]</to> - </copy> - <copy> - <from>1</from> - <to variable="ProcessCourseOperationIn" part="clientInstanceId"/> - </copy> - </assign> ---> - <invoke name="processObject" partnerLink="ObjectProcessor" operation="ProcessCourseOperation" portType="ns1:ObjectProcessorPortType" inputVariable="ProcessCourseOperationIn"/> - </sequence> - </scope> - </forEach> - </sequence> + <!-- Convert CSE:Courses -> CDDM:CourseMessages --> + <forEach name="CourseSplitter" parallel="no" counterName="CourseCounter"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <ns0:from>'*** CourseSplitter start'</ns0:from> + </sxt:log> + </sxt:trace> + <startCounterValue>1</startCounterValue> + <finalCounterValue>count($synchronizationMessage/courses/course[.])</finalCounterValue> + <scope name="invokeObjectProcessorForCourseMessages"> + <variables> + <variable name="ProcessCourseOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" messageType="tns:ProcessCourseOperationRequest"/> + </variables> + <sequence name="CourseSplitSequence"> + <!-- Init courseMessage part of ProcessCourseOperationIn --> + <assign name="initCourseMessagePartStructure"> + <copy> + <from>1</from> + <to variable="ProcessCourseOperationIn" part="clientInstanceId"/> + </copy> + <copy> + <from>'lsf-id-1'</from> + <to variable="ProcessCourseOperationIn" part="clientObjectId"/> + </copy> + </assign> + <!-- Copy relevant attributes --> + <assign name="transformCourseToCDDMCourseMessage"> + <copy> + <from>ns0:doXslTransform('urn:stylesheets:CourseToCDDMCourseMessage.xsl', $synchronizationMessage/courses/course[$CourseCounter])</from> + <to>$ProcessCourseOperationIn.courseMessage</to> + </copy> + </assign> + <invoke name="processCourseMessage" partnerLink="ObjectProcessor" operation="ProcessCourseOperation" portType="ns1:ObjectProcessorPortType" inputVariable="ProcessCourseOperationIn"/> + </sequence> + </scope> + </forEach> + + <!-- Convert CSE:category -> CDDM:categoryMessage --> + <forEach name="CategorySplitter" parallel="no" counterName="CategoryCounter"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <ns0:from>'*** CategorySplitter start'</ns0:from> + </sxt:log> + </sxt:trace> + <startCounterValue>1</startCounterValue> + <finalCounterValue>count($synchronizationMessage/categories/category[.])</finalCounterValue> + <scope name="invokeObjectProcessorForCategoryMessages"> + <variables> + <variable name="ProcessCategoryOperationIn" messageType="ns1:ProcessCategoryOperationRequest"/> + </variables> + <sequence name="CategorySplitSequence"> + <!-- Init courseMessage part of ProcessCourseOperationIn --> + <assign name="initCourseMessagePartStructure"> + <copy> + <from>1</from> + <to variable="ProcessCategoryOperationIn" part="clientInstanceId"/> + </copy> + <copy> + <from>'lsf-id-1'</from> + <to variable="ProcessCategoryOperationIn" part="clientObjectId"/> + </copy> + </assign> + <!-- Copy relevant attributes --> + <assign name="transformCategoryToCDDMCategoryMessage"> + <copy> + <from>ns0:doXslTransform('urn:stylesheets:CategoryToCDDMCategoryMessage.xsl', $synchronizationMessage/categories/category[$CategoryCounter])</from> + <to>$ProcessCategoryOperationIn.categoryMessage</to> + </copy> + </assign> + <invoke name="processCategoryMessage" partnerLink="ObjectProcessor" operation="ProcessCategoryOperation" portType="ns1:ObjectProcessorPortType" inputVariable="ProcessCategoryOperationIn"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <ns0:from>concat('*** Sending CategoryMessage: ', $ProcessCategoryOperationIn.categoryMessage)</ns0:from> + </sxt:log> + </sxt:trace> + </invoke> + </sequence> + </scope> + </forEach> + + </sequence> </process> Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-test_output2.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-test_output2.xml 2009-05-04 13:13:47 UTC (rev 204) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-test_output2.xml 2009-05-04 13:17:19 UTC (rev 205) @@ -1,120 +1,120 @@ <?xml version="1.0" encoding="UTF-8"?> <!--##### Creating course (Tutorium-Test) #####--> <course xmlns="http://cse.campussource.de/schema/DataTypes"> -<busId/> -<eventTime/> + <busId/> + <eventTime/> <!--- - - - - Attribute: lsfId - - - - - --> -<attribute> -<name>lsfId</name> -<value>32350</value> -<transient>false</transient> -</attribute> + <attribute> + <name>lsfId</name> + <value>32350</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: logicalNumber - - - - - --> -<attribute> -<name>logicalNumber</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>logicalNumber</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: type - - - - - --> -<attribute> -<name>type</name> -<value>Tutorium</value> -<transient>false</transient> -</attribute> + <attribute> + <name>type</name> + <value>Tutorium</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: title - - - - - --> -<attribute> -<name>title</name> -<value>Tutorium-Test</value> -<transient>false</transient> -</attribute> + <attribute> + <name>title</name> + <value>Tutorium-Test</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: shortDescription - - - - - --> -<attribute> -<name>shortDescription</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>shortDescription</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: abbreviation - - - - - --> -<attribute> -<name>abbreviation</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>abbreviation</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: necessaryAssignment - - - - - --> -<attribute> -<name>necessaryAssignment</name> -<value>J</value> -<transient>false</transient> -</attribute> + <attribute> + <name>necessaryAssignment</name> + <value>J</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: note - - - - - --> -<attribute> -<name>note</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>note</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: comment - - - - - --> -<attribute> -<name>comment</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>comment</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterAsInt - - - - - --> -<attribute> -<name>semesterAsInt</name> -<value>20081</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterAsInt</name> + <value>20081</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterPeriodsPerWeek - - - - - --> -<attribute> -<name>semesterPeriodsPerWeek</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterPeriodsPerWeek</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: expectedRegistrations - - - - - --> -<attribute> -<name>expectedRegistrations</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>expectedRegistrations</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: maximumRegistrations - - - - - --> -<attribute> -<name>maximumRegistrations</name> -<value>20</value> -<transient>false</transient> -</attribute> + <attribute> + <name>maximumRegistrations</name> + <value>20</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: activityConfirmation - - - - - --> -<attribute> -<name>activityConfirmation</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>activityConfirmation</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: lectureTypeId - - - - - --> -<attribute> -<name>lectureTypeId</name> -<value>40</value> -<transient>false</transient> -</attribute> + <attribute> + <name>lectureTypeId</name> + <value>40</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: active - - - - - --> -<attribute> -<name>active</name> -<value>A</value> -<transient>false</transient> -</attribute> + <attribute> + <name>active</name> + <value>A</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterAbbr - - - - - --> -<attribute> -<name>semesterAbbr</name> -<value>SS 2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterAbbr</name> + <value>SS 2008</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterFull - - - - - --> -<attribute> -<name>semesterFull</name> -<value>SS 2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterFull</name> + <value>SS 2008</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: dates - - - - - --> -<attribute> -<name>dates</name> -<value> + <attribute> + <name>dates</name> + <value> @@ -135,162 +135,164 @@ Mittwoch wöchentlich - </value> -<transient>false</transient> -</attribute> + </value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: clientId - - - - - --> -<attribute> -<name>clientId</name> -<value>lecture:32350</value> -<transient>false</transient> -</attribute> + <attribute> + <name>clientId</name> + <value>lecture:32350</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterId - - - - - --> -<attribute> -<name>semesterId</name> -<value>20081</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterId</name> + <value>20081</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: startDate - - - - - --> -<attribute> -<name>startDate</name> -<value>14.04.2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>startDate</name> + <value>14.04.2008</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: endDate - - - - - --> -<attribute> -<name>endDate</name> -<value>18.07.2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>endDate</name> + <value>18.07.2008</value> + <transient>false</transient> + </attribute> </course> + + <!--##### Creating course (Phonetische Aspekte des Sorbischen) #####--> <course xmlns="http://cse.campussource.de/schema/DataTypes"> -<busId/> -<eventTime/> + <busId/> + <eventTime/> <!--- - - - - Attribute: lsfId - - - - - --> -<attribute> -<name>lsfId</name> -<value>28232</value> -<transient>false</transient> -</attribute> + <attribute> + <name>lsfId</name> + <value>28232</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: logicalNumber - - - - - --> -<attribute> -<name>logicalNumber</name> -<value>28232</value> -<transient>false</transient> -</attribute> + <attribute> + <name>logicalNumber</name> + <value>28232</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: type - - - - - --> -<attribute> -<name>type</name> -<value>Hauptseminar</value> -<transient>false</transient> -</attribute> + <attribute> + <name>type</name> + <value>Hauptseminar</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: title - - - - - --> -<attribute> -<name>title</name> -<value>Phonetische Aspekte des Sorbischen</value> -<transient>false</transient> -</attribute> + <attribute> + <name>title</name> + <value>Phonetische Aspekte des Sorbischen</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: shortDescription - - - - - --> -<attribute> -<name>shortDescription</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>shortDescription</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: abbreviation - - - - - --> -<attribute> -<name>abbreviation</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>abbreviation</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: necessaryAssignment - - - - - --> -<attribute> -<name>necessaryAssignment</name> -<value>N</value> -<transient>false</transient> -</attribute> + <attribute> + <name>necessaryAssignment</name> + <value>N</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: note - - - - - --> -<attribute> -<name>note</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>note</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: comment - - - - - --> -<attribute> -<name>comment</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>comment</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterAsInt - - - - - --> -<attribute> -<name>semesterAsInt</name> -<value>20081</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterAsInt</name> + <value>20081</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterPeriodsPerWeek - - - - - --> -<attribute> -<name>semesterPeriodsPerWeek</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterPeriodsPerWeek</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: expectedRegistrations - - - - - --> -<attribute> -<name>expectedRegistrations</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>expectedRegistrations</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: maximumRegistrations - - - - - --> -<attribute> -<name>maximumRegistrations</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>maximumRegistrations</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: activityConfirmation - - - - - --> -<attribute> -<name>activityConfirmation</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>activityConfirmation</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: lectureTypeId - - - - - --> -<attribute> -<name>lectureTypeId</name> -<value>98</value> -<transient>false</transient> -</attribute> + <attribute> + <name>lectureTypeId</name> + <value>98</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: active - - - - - --> -<attribute> -<name>active</name> -<value>A</value> -<transient>false</transient> -</attribute> + <attribute> + <name>active</name> + <value>A</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: languageISO - - - - - --> -<attribute> -<name>languageISO</name> -<value>de</value> -<transient>false</transient> -</attribute> + <attribute> + <name>languageISO</name> + <value>de</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: languageFull - - - - - --> -<attribute> -<name>languageFull</name> -<value>deutsch</value> -<transient>false</transient> -</attribute> + <attribute> + <name>languageFull</name> + <value>deutsch</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterAbbr - - - - - --> -<attribute> -<name>semesterAbbr</name> -<value>SS 2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterAbbr</name> + <value>SS 2008</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterFull - - - - - --> -<attribute> -<name>semesterFull</name> -<value>SS 2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterFull</name> + <value>SS 2008</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: dates - - - - - --> -<attribute> -<name>dates</name> -<value> + <attribute> + <name>dates</name> + <value> @@ -301,162 +303,164 @@ Freitag wöchentlich - </value> -<transient>false</transient> -</attribute> + </value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: clientId - - - - - --> -<attribute> -<name>clientId</name> -<value>lecture:28232</value> -<transient>false</transient> -</attribute> + <attribute> + <name>clientId</name> + <value>lecture:28232</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterId - - - - - --> -<attribute> -<name>semesterId</name> -<value>20081</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterId</name> + <value>20081</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: startDate - - - - - --> -<attribute> -<name>startDate</name> -<value>14.04.2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>startDate</name> + <value>14.04.2008</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: endDate - - - - - --> -<attribute> -<name>endDate</name> -<value>18.07.2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>endDate</name> + <value>18.07.2008</value> + <transient>false</transient> + </attribute> </course> + + <!--##### Creating course (Numerical Algorithms for Visual Computing I) #####--> <course xmlns="http://cse.campussource.de/schema/DataTypes"> -<busId/> -<eventTime/> + <busId/> + <eventTime/> <!--- - - - - Attribute: lsfId - - - - - --> -<attribute> -<name>lsfId</name> -<value>28481</value> -<transient>false</transient> -</attribute> + <attribute> + <name>lsfId</name> + <value>28481</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: logicalNumber - - - - - --> -<attribute> -<name>logicalNumber</name> -<value>28481</value> -<transient>false</transient> -</attribute> + <attribute> + <name>logicalNumber</name> + <value>28481</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: type - - - - - --> -<attribute> -<name>type</name> -<value>Weiterführende Vorlesung</value> -<transient>false</transient> -</attribute> + <attribute> + <name>type</name> + <value>Weiterführende Vorlesung</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: title - - - - - --> -<attribute> -<name>title</name> -<value>Numerical Algorithms for Visual Computing I</value> -<transient>false</transient> -</attribute> + <attribute> + <name>title</name> + <value>Numerical Algorithms for Visual Computing I</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: shortDescription - - - - - --> -<attribute> -<name>shortDescription</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>shortDescription</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: abbreviation - - - - - --> -<attribute> -<name>abbreviation</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>abbreviation</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: necessaryAssignment - - - - - --> -<attribute> -<name>necessaryAssignment</name> -<value>N</value> -<transient>false</transient> -</attribute> + <attribute> + <name>necessaryAssignment</name> + <value>N</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: note - - - - - --> -<attribute> -<name>note</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>note</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: comment - - - - - --> -<attribute> -<name>comment</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>comment</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterAsInt - - - - - --> -<attribute> -<name>semesterAsInt</name> -<value>20081</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterAsInt</name> + <value>20081</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterPeriodsPerWeek - - - - - --> -<attribute> -<name>semesterPeriodsPerWeek</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterPeriodsPerWeek</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: expectedRegistrations - - - - - --> -<attribute> -<name>expectedRegistrations</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>expectedRegistrations</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: maximumRegistrations - - - - - --> -<attribute> -<name>maximumRegistrations</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>maximumRegistrations</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: activityConfirmation - - - - - --> -<attribute> -<name>activityConfirmation</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>activityConfirmation</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: lectureTypeId - - - - - --> -<attribute> -<name>lectureTypeId</name> -<value>147</value> -<transient>false</transient> -</attribute> + <attribute> + <name>lectureTypeId</name> + <value>147</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: active - - - - - --> -<attribute> -<name>active</name> -<value>A</value> -<transient>false</transient> -</attribute> + <attribute> + <name>active</name> + <value>A</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: languageISO - - - - - --> -<attribute> -<name>languageISO</name> -<value>en</value> -<transient>false</transient> -</attribute> + <attribute> + <name>languageISO</name> + <value>en</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: languageFull - - - - - --> -<attribute> -<name>languageFull</name> -<value>englisch</value> -<transient>false</transient> -</attribute> + <attribute> + <name>languageFull</name> + <value>englisch</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterAbbr - - - - - --> -<attribute> -<name>semesterAbbr</name> -<value>SS 2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterAbbr</name> + <value>SS 2008</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterFull - - - - - --> -<attribute> -<name>semesterFull</name> -<value>SS 2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterFull</name> + <value>SS 2008</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: dates - - - - - --> -<attribute> -<name>dates</name> -<value> + <attribute> + <name>dates</name> + <value> @@ -467,31 +471,31 @@ Montag wöchentlich - </value> -<transient>false</transient> -</attribute> + </value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: clientId - - - - - --> -<attribute> -<name>clientId</name> -<value>lecture:28481</value> -<transient>false</transient> -</attribute> + <attribute> + <name>clientId</name> + <value>lecture:28481</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterId - - - - - --> -<attribute> -<name>semesterId</name> -<value>20081</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterId</name> + <value>20081</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: startDate - - - - - --> -<attribute> -<name>startDate</name> -<value>14.04.2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>startDate</name> + <value>14.04.2008</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: endDate - - - - - --> -<attribute> -<name>endDate</name> -<value>18.07.2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>endDate</name> + <value>18.07.2008</value> + <transient>false</transient> + </attribute> </course> Deleted: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/toCDDM.xsl =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/toCDDM.xsl 2009-05-04 13:13:47 UTC (rev 204) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/toCDDM.xsl 2009-05-04 13:17:19 UTC (rev 205) @@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- - Document : toCDDM.xsl.xsl - Created on : April 16, 2009, 10:18 PM - Author : pete - Description: - Purpose of transformation follows. ---> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:dt="http://cse.campussource.de/schema/DataTypes" - xmlns="http://cse.campussource.de/schema/DataTypes" - version="1.0"> - - <xsl:output method="xml" - media-type="text/xml" - indent="yes" - encoding="UTF-8" - omit-xml-declaration="no"/> - - <xsl:template match="/dt:course"> -<!-- - <xsl:for-each select="/dt:synchronizationMessage/dt:courses/*"> ---> - <xsl:comment>##### Creating course (<xsl:value-of select="dt:title"/>) #####</xsl:comment> - <xsl:element name="courseMessage"> - <xsl:element name="course"> - <xsl:element name="busId">1</xsl:element> - <xsl:element name="eventTime">2000-01-20T12:00:00</xsl:element> - <xsl:for-each select="*[position() < 6]"> - <xsl:comment>----- Attribute: <xsl:value-of select="local-name(.)"/> -----</xsl:comment> - <xsl:element name="attribute"> - <xsl:element name="name"> - <xsl:value-of select="local-name(.)"/> - </xsl:element> - <xsl:element name="value"> - <xsl:value-of select="."/> - </xsl:element> - <xsl:element name="transient"> - <xsl:text>false</xsl:text> - </xsl:element> - </xsl:element> - </xsl:for-each> - </xsl:element> - <xsl:element name="eventTime">2000-01-20T12:00:00</xsl:element> - <xsl:element name="inputEvent">CREATE_UPDATE</xsl:element> - </xsl:element> -<!-- - </xsl:for-each> ---> - </xsl:template> - -</xsl:stylesheet> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pka...@us...> - 2009-06-09 08:01:15
|
Revision: 246 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=246&view=rev Author: pkasprzak Date: 2009-06-09 08:01:13 +0000 (Tue, 09 Jun 2009) Log Message: ----------- * Use only one XSLT to generate messages Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/build.xml trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/catalog.xml trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/build.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/build.xml 2009-06-09 07:59:24 UTC (rev 245) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/build.xml 2009-06-09 08:01:13 UTC (rev 246) @@ -1,66 +1,24 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- You may freely edit this file. See commented blocks below for --> -<!-- some examples of how to customize the build. --> -<!-- (If you delete it and reopen the project it will be recreated.) --> <project name="" default="default" basedir="." xmlns:web="http://www.netbeans.org/ns/j2ee-ejbjarproject/1"> - <description>Builds, tests, and runs the project .</description> <import file="nbproject/build-impl.xml"/> - <!-- - There exist several targets which are by default empty and which can be - used for execution of your tasks. These targets are usually executed - before and after some main targets. They are: - - -pre-init called before initialization of project properties - -post-init called after initialization of project properties - -pre-compile called before javac compilation - -post-compile called after javac compilation - -pre-compile-single called before javac compilation of single file - -post-compile-single called after javac compilation of single file - -pre-dist called before jar building - -post-dist called after jar building - -post-clean called after cleaning build products - - Example of pluging an obfuscator after the compilation could look like - - <target name="post-compile"> - <obfuscate> - <fileset dir="${build.classes.dir}"/> - </obfuscate> - </target> - - For list of available properties check the imported - nbproject/build-impl.xml file. - - Other way how to customize the build is by overriding existing main targets. - The target of interest are: - - init-macrodef-javac defines macro for javac compilation - init-macrodef-debug defines macro for class debugging - do-dist jar archive building - run execution of project - javadoc-build javadoc generation - - Example of overriding the target for project execution could look like - - <target name="run" depends="<PROJNAME>-impl.jar"> - <exec dir="bin" executable="launcher.exe"> - <arg file="${dist.jar}"/> - </exec> - </target> - - Notice that overridden target depends on jar target and not only on - compile target as regular run target does. Again, for list of available - properties which you can use check the target you are overriding in - nbproject/build-impl.xml file. - --> - <target name="-init-esb-ide" if="netbeans.home"> + <target name="init-esb-ide" if="netbeans.home"> <property name="esb.netbeans.platform" value="${netbeans.home}"/> </target> - <target name="-init-esb-cmdline" unless="netbeans.home"> + <target name="init-esb-cli" unless="netbeans.home"> <property file="${basedir}/nbproject/private/private.properties"/> <property name="esb.netbeans.platform" value="${esb.netbeans.home}/platform9"/> <property name="netbeans.user" value="${esb.netbeans.user}"/> <property name="from.commandline" value="true"/> </target> - <target name="-pre-init" depends="-init-esb-ide,-init-esb-cmdline"/> + <target name="check-catd-context"> + <condition property="no.catd.context"> + <not> + <isset property="org.netbeans.modules.compapp.catd.context"/> + </not> + </condition> + </target> + <target name="init-catd" if="no.catd.context"> + <property name="org.netbeans.modules.compapp.catd.context" value=""/> + </target> + <target name="pre-init" depends="init-esb-ide,init-esb-cli,check-catd-context,init-catd"/> </project> Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/catalog.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/catalog.xml 2009-06-09 07:59:24 UTC (rev 245) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/catalog.xml 2009-06-09 08:01:13 UTC (rev 246) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system"> <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/> - <system systemId="ObjectProcessor/ObjectProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ObjectProcessor.wsdl"/> <system systemId="Common/CDDM.xsd" uri="nb-uri:Common#src/CDDM.xsd"/> + <system systemId="ObjectProcessor/InboundObjectProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/InboundObjectProcessor.wsdl"/> </catalog> Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml 2009-06-09 07:59:24 UTC (rev 245) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml 2009-06-09 08:01:13 UTC (rev 246) @@ -1,52 +1,43 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- - *** GENERATED FROM project.xml - DO NOT EDIT *** - *** EDIT ../build.xml INSTEAD *** - - For the purpose of easier reading the script - is divided into following sections: - - - initialization - - dist - - cleanup + *** GENERATED FROM project.xml - DO NOT EDIT *** + *** EDIT ../build.xml INSTEAD *** --> <project name="LSFClientAdapter-impl" default="default" basedir=".."> - <target name="default" depends="dist_se" description="Build whole project."/> + <target name="default" depends="dist_se"/> <!-- - ====================== INITIALIZATION SECTION - ====================== --> - <target name="-pre-init"> + <target name="pre-init"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="-init-private" depends="-pre-init"> + <target name="init-private" depends="pre-init"> <property file="nbproject/private/private.properties"/> </target> - <target name="-init-userdir" depends="-pre-init,-init-private"> + <target name="init-userdir" depends="pre-init,init-private"> <property name="user.properties.file" location="${netbeans.user}/build.properties"/> </target> - <target name="-init-user" depends="-pre-init,-init-private,-init-userdir"> + <target name="init-user" depends="pre-init,init-private,init-userdir"> <property file="${user.properties.file}"/> </target> - <target name="-init-project" depends="-pre-init,-init-private,-init-userdir,-init-user"> + <target name="init-project" depends="pre-init,init-private,init-userdir,init-user"> <property file="nbproject/project.properties"/> </target> - <target name="-do-init" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project"> + <target name="do-init" depends="pre-init,init-private,init-userdir,init-user,init-project"> <available file="${src.dir}/../retrieved" property="retrieved.exists"/> </target> - <target name="-post-init"> + <target name="post-init"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="-init-check" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init"> + <target name="init-check" depends="pre-init,init-private,init-userdir,init-user,init-project,do-init"> <fail unless="src.dir">Must set src.dir</fail> <fail unless="build.dir">Must set build.dir</fail> <fail unless="dist.dir">Must set dist.dir</fail> <fail unless="dist.jar">Must set dist.jar</fail> </target> - <target name="-init-taskdefs" if="from.commandline"> + <target name="init-taskdefs" if="from.commandline"> <path id="ant.task.classpath"> <pathelement location="${esb.netbeans.platform}/../ide10/modules/ext/resolver-1.2.jar"/> <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-apache-xml-resolver.jar"/> @@ -95,25 +86,21 @@ <classpath refid="ant.task.classpath"/> </taskdef> </target> - <target name="init" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init,-post-init,-init-check,-init-taskdefs"/> + <target name="init" depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,init-taskdefs"/> <!-- - ===================== DIST BUILDING SECTION - ===================== --> - <target name="-pre-dist"> + <target name="pre-dist"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="-deps-jar-dist" depends="init" unless="${no.dependencies}"> + <target name="deps-jar-dist" depends="init" unless="${no.dependencies}"> <ant target="dist_se" inheritall="false" dir="${project.Common}"/> <ant target="dist_se" inheritall="false" dir="${project.ObjectProcessor}"/> </target> - <target name="-do-dist" depends="init,-pre-dist"> + <target name="do-dist" depends="init,pre-dist"> <mkdir dir="${build.dir}"/> - <!--validation--> <validate-project buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" buildDependentProjectDir="${basedir}/${build.dir}/dependentProjectFiles" classpathRef="ant.task.classpath" allowBuildWithError="${allow.build.with.error}" validation="${validation}"/> - <!-- copy all files from project source directory to build directory. --> <copy todir="${build.dir}" preservelastmodified="true"> <fileset includes="**/*.bpel,**/*.wsdl,**/*.xsd, **/*.xsl, **/*.xslt, **/*.jar" dir="${src.dir}"/> </copy> @@ -127,31 +114,29 @@ </fileset> </jar> </target> - <target name="-post-dist"> + <target name="post-dist"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="dist_se" depends="init,-pre-dist,-deps-jar-dist,-do-dist,-post-dist" description="Build distribution."/> + <target name="dist_se" depends="init,pre-dist,deps-jar-dist,do-dist,post-dist"/> <!-- - =============== CLEANUP SECTION - =============== --> - <target name="-pre-clean"> + <target name="pre-clean"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="-deps-clean" depends="init" unless="${no.dependencies}"> + <target name="deps-clean" depends="init" unless="${no.dependencies}"> <ant target="clean" inheritall="false" dir="${project.Common}"/> <ant target="clean" inheritall="false" dir="${project.ObjectProcessor}"/> </target> - <target name="-do-clean" depends="init,-pre-clean"> + <target name="do-clean" depends="init,pre-clean"> <delete dir="${build.dir}"/> <delete dir="${dist.dir}"/> </target> - <target name="-post-clean"> + <target name="post-clean"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="clean" depends="init,-pre-clean,-deps-clean,-do-clean,-post-clean" description="Clean build products."/> + <target name="clean" depends="init,pre-clean,deps-clean,do-clean,post-clean"/> </project> Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties 2009-06-09 07:59:24 UTC (rev 245) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties 2009-06-09 08:01:13 UTC (rev 246) @@ -1,8 +1,8 @@ build.xml.data.CRC32=2842e5db -build.xml.script.CRC32=60b50638 -build.xml.stylesheet.CRC32=f35fd70d +build.xml.script.CRC32=22f94a4b +build.xml.stylesheet.CRC32=b168c0ed # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=2842e5db -nbproject/build-impl.xml.script.CRC32=e5dd60c9 -nbproject/build-impl.xml.stylesheet.CRC32=5068533b +nbproject/build-impl.xml.script.CRC32=1e5564d2 +nbproject/build-impl.xml.stylesheet.CRC32=2e896532 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |