Both ReDBox and Mint utilise the JSON Velocity Transformer to render their data into pre-determined metadata formats in preparation for export. This is a fairly standard process in line with how the the Transformer is intended to function (see the Transformer doco for further details). This page highlights how the configuration in Mint and ReDBox is setup. ReDBox - System ConfigurationReDBox only has one Transformer installed, so this is fairly simple: "transformerDefaults": { "jsonVelocity": { "id": "jsonVelocity", "sourcePayload": ".tfpackage", "templatesPath": "${fascinator.home}/templates" } },As per the Transformer's documentation ' Tool ChainThere is one complicating factor with ReDBox, but it relates more to the VITAL Integration. Because a) ReDBox is transforming form data from the workflow, rather then object data from a data source and b) VITAL integration requires certain events to occur in sequence we couldn't make use of The Fascinator's normal transformer tool chain. After each workflow save event the core Fascinator platform would typically trigger a re-index of the item, but not a re-transformation. This could possibly be rectified by sending a message to one of the tool chain queues (like the render queue), but this is an asynchronous event, and we would have no knowledge of the process finishing to then notify the VITAL subscriber. In response, there are two solutions available:
Mint - System ConfigurationMint is a slightly different beast, because it has more then one type of object ('Parties - People', 'Parties - Groups' and 'Activities') and they each require different templates. That being said, the first place to look is still the system configuration file: "transformerDefaults": { ... "jsonVelocity": { "id" : "jsonVelocity", "sourcePayload" : "metadata.json", "templatesPath" : "${fascinator.home}/templates", "portalId": "default" } },Although keep in mind that the ' Data Source ConfigurationIn order to configure each data source you need to edit the harvester configuration file for that source. For example, 'Parties - People' has a file in ' "transformer": { "harvestQueue": ["handle"], "indexOnHarvest": "false", "renderQueue": ["jsonVelocity"] }, "transformerOverrides": { "handle": { ... }, "jsonVelocity": { "templatesPath" : "${fascinator.home}/templates/people", "portalId": "Parties_People" } },There are two areas of significance highlighted above, firstly that we've configured the tool chaing to run our ' |


