[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue-integrator/samples sample.gmd Makefile sam...
From: |
Jan Ischebeck |
Subject: |
gnue-integrator/samples sample.gmd Makefile sam... |
Date: |
Wed, 08 Oct 2003 17:47:00 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue-integrator
Branch:
Changes by: Jan Ischebeck <address@hidden> 03/10/08 17:47:00
Modified files:
samples : sample.gmd
Added files:
samples : Makefile sample.gsd README
Log message:
- update gnue-integrator sample
- add schema definition with sample data
- add Makefile and README
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-integrator/samples/Makefile?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-integrator/samples/sample.gsd?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-integrator/samples/README?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-integrator/samples/sample.gmd.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: gnue-integrator/samples/sample.gmd
diff -c gnue-integrator/samples/sample.gmd:1.2
gnue-integrator/samples/sample.gmd:1.3
*** gnue-integrator/samples/sample.gmd:1.2 Sat Nov 30 18:25:32 2002
--- gnue-integrator/samples/sample.gmd Wed Oct 8 17:47:00 2003
***************
*** 2,37 ****
<mappings title="A first test">
<sources>
! <datasource name="in" table="buch" database="gnue"/>
! <datasource name="out" table="buchneu" database="gnue"/>
</sources>
! <mapping id="no" title="simple Mapping" source="in" destination="out">
! <action type="copy">
! <field type="src" name="author"/>
! <field type="dest" name="author"/>
! </action>
! <action type="merge" mergemask="@2 @1">
! <field type="src" name="title"/>
! <field type="src" name="year"/>
! <field type="dest" name="title"/>
! </action>
! <action type="split" splitmask="(.*):(.*)">
! <field type="src" name="year"/>
! <field type="dest" name="year"/>
! <field type="dest" name="year"/>
! </action>
! <trigger type="PRE-ROW">
! print "PRE-ROW"
! # print getField('author')
</trigger>
! <trigger type="POST-ROW">
! print "POST-ROW"
! # print getField("author")
! # setField("year","200")
! </trigger>
</mapping>
! <mapping title="XXX" id="ar" source="in" destination="out">
! <submapping>
</submapping>
! </mapping>
</mappings>
--- 2,63 ----
<mappings title="A first test">
<sources>
! <datasource name="in" table="book" database="gnue"/>
! <datasource name="out" table="book_new" database="gnue"/>
</sources>
! <mapping name="start" source="in" destination="out">
! <trigger type="PRE-ROW">
! print "\n_____________________________________ (Trigger Pre-Row)"
! # x=getField('author')
! </trigger>
! <action type="copy">
! <field type="src" name="id"/>
! <field type="dest" name="id"/>
! </action>
! <action type="copy">
! <field type="src" name="author"/>
! <field type="dest" name="author"/>
! </action>
! <action type="copy">
! <field type="src" name="title"/>
! <field type="dest" name="title"/>
! </action>
! <action type="merge" mergemask="@2: @1 @3">
! <field type="src" name="title"/>
! <field type="src" name="author"/>
! <field type="src" name="entry"/>
! <field type="dest" name="fullentry"/>
! </action>
! <action type="split" splitmask="^([^:]*):[^,]*,[ ]*([0123456789]*)">
! <trigger type="ON-FAIL">
! setField('publisher','unknown')
</trigger>
! <field type="src" name="entry"/>
! <field type="dest" name="publisher"/>
! <field type="dest" name="year"/>
! </action>
! <action type="split" splitmask="(.*) ISBN (.*)">
! <trigger type="ON-FAIL">
! print "Trigger On-Fail: Entry has no ISBN field. Setting ISBN to
'unknown'."
! setField('isbn','unknown')
! </trigger>
! <field type="src" name="entry"/>
! <field type="dest" name="isbn"/>
! <field type="dest" name="isbn"/>
! <trigger type="POST-ACTION">
! print 'Trigger Post-Action: Entry has ISBN field.'
! </trigger>
! </action>
! <trigger type="POST-ROW">
! print 'Processed Record of author %s' % getField("author")
! print "------------------------------------- (Trigger Post-Row)"
! </trigger>
</mapping>
!
! <!-- # submappings still have to be defined
! <mapping name="XXX" id="ar" source="in" destination="out">
! <submapping name='first'>
</submapping>
! </mapping>
! -->
</mappings>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue-integrator/samples sample.gmd Makefile sam...,
Jan Ischebeck <=