@wmfs/tymly-etl-plugin
Version:
A collection of states for helping with Extract, Transform and Load tasks.
27 lines (26 loc) • 692 B
JSON
{
"Comment": "Flatten a Simpsons XML to CSV.",
"version": "1.0",
"StartAt": "FlattenXmlFile",
"instigators": [
"user"
],
"States": {
"FlattenXmlFile": {
"Type": "Task",
"Resource": "module:flattenXmlFiles",
"ResourceConfig": {
"rootXMLElement": "Episode",
"pivotPath": "$.People.Person",
"xmllang": "wrap",
"headerMap": [
["$.Title.en", "title", "string"],
["@.Name", "name", "string"],
[{"test": "@.Age<=16", "value": "yes"}, "child", "string"],
[{"test": "@.Age>16", "select": "@.Age"}, "age", "integer"]
]
},
"End": true
}
}
}