Very basic versioning transformer

5 views
Skip to first unread message

Duncan Dickinson

unread,
Feb 12, 2013, 12:54:56 AM2/12/13
to ReDBox Developer List, The Fascinator group
Hi All,

I got a little sidetracked and opened Eclipse today over lunch. I was thinking about an extremely basic versioning transformer and came up with https://github.com/dedickinson/plugin-transformer-basicVersioning

It's been (rightly) pointed out that it's copying more than versioning but it might be of interest to some. 

In ReDBox you get something like the snapshot below - where each version_ file is a copy made each time the form is saved.

Inline images 1

To be really clear - this is just me having a play. The code is not core to ReDBox, Mint or Fascinator. There's no warranty, guarantee or golfing tee.

To use in ReDBOX:

In order to use it you'll need to clone the code and mvn install it. This will deploy it to your local mvn repo.

In your ReDBox build pom, add

<dependency>
<groupId>com.googlecode.the-fascinator.plugins</groupId>
<artifactId>plugin-transformer-basicVersioning</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>

In your system-config.json, add this to transformerDefaults:
"basicVersioning": {
            "id": "basicVersioning",
            "sourcePayload": ".tfpackage"
        }

In dataset.json harvest config, configure:
"transformer": {
        "curation": ["local"],
        "metadata": ["jsonVelocity", "basicVersioning"]
    },


--
Cheers,


Duncan


Duncan Dickinson
QCIF Project Manager 
Central Queensland University

Contact me:
monday to thursday
ph: 07 3138 2084
m: 0432 402 511
skype: de.dickinson

website | calendar | LinkedIn
image.png
Reply all
Reply to author
Forward
0 new messages