blob: 5b0cd9d482418de2a8abde32d6191af8c8f22818 [file] [log] [blame]
{
"jcr:primaryType":"nt:unstructured",
"dummyTree": {
"jcr:primaryType":"nt:unstructured",
"jcr:description":"2 parents, 2 kids, 1 grand kid: we expect exactly 4 outputs",
"sling:resourceType":"slingPipes/container",
"conf":{
"jcr:primaryType":"sling:OrderedFolder",
"dummyParent":{
"sling:resourceType":"slingPipes/dummySearch",
"conf":{
"jcr:primaryType":"nt:unstructured",
"apple":{"jcr:primaryType":"nt:unstructured","color":"green", "name":"apple"},
"banana":{"jcr:primaryType":"nt:unstructured", "color":"yellow", "name":"banana"}
}
},
"dummyChild":{
"sling:resourceType":"slingPipes/dummySearch",
"conf":{
"jcr:primaryType":"nt:unstructured",
"pea":{"jcr:primaryType":"nt:unstructured","color":"green", "name":"pea"},
"carrot":{"jcr:primaryType":"nt:unstructured", "color":"orange", "name":"carrot"}
}
},
"dummyGrandChild": {
"sling:resourceType":"slingPipes/base",
"path":"/content/fruits/${dummyParent.name}/isnota/${dummyChild.name}/${(dummyParent.color == dummyChild.color ? '/buttheyhavesamecolor' : '/andtheircolorisdifferent')}"
}
}
},
"otherTree": {
"jcr:primaryType":"nt:unstructured",
"sling:resourceType":"slingPipes/container",
"jcr:description":"2 parents, 1 kid, 1 grand kid: we expect exactly 2 outputs",
"conf":{
"jcr:primaryType":"sling:OrderedFolder",
"dummyParent":{
"sling:resourceType":"slingPipes/dummySearch",
"conf":{
"jcr:primaryType":"nt:unstructured",
"apple":{"jcr:primaryType":"nt:unstructured","color":"green", "name":"apple"},
"banana":{"jcr:primaryType":"nt:unstructured", "color":"yellow", "name":"banana"}
}
},
"dummyChild":{
"sling:resourceType":"slingPipes/dummySearch",
"conf":{
"jcr:primaryType":"nt:unstructured",
"pea":{"jcr:primaryType":"nt:unstructured","color":"green", "name":"pea"}
}
},
"dummyGrandChild": {
"sling:resourceType":"slingPipes/base",
"path":"/content/fruits/${dummyParent.name}/isnota/${dummyChild.name}/${(dummyParent.color == dummyChild.color ? '/buttheyhavesamecolor' : '/andtheircolorisdifferent')}"
}
}
},
"rottenTree": {
"jcr:primaryType":"nt:unstructured",
"sling:resourceType":"slingPipes/container",
"jcr:description":"2 parents, 1 null, 1 grand kid: we expect nothing, but no failure!",
"conf":{
"jcr:primaryType":"sling:OrderedFolder",
"dummyParent":{
"sling:resourceType":"slingPipes/dummySearch",
"conf":{
"jcr:primaryType":"nt:unstructured",
"apple":{"jcr:primaryType":"nt:unstructured","color":"green", "name":"apple"},
"banana":{"jcr:primaryType":"nt:unstructured", "color":"yellow", "name":"banana"}
}
},
"dummyNull":{
"sling:resourceType":"slingPipes/dummyNull"
},
"dummyGrandChild": {
"sling:resourceType":"slingPipes/base",
"path":"/content/fruits/${dummyParent.name}/isnota/${dummyChild.name }/${(dummyParent.color == dummyChild.color ? '/buttheyhavesamecolor' : '/andtheircolorisdifferent')}"
}
}
},
"moreBindings": {
"jcr:primaryType":"nt:unstructured",
"sling:resourceType":"slingPipes/container",
"engine": "nashorn",
"jcr:description":"1 parent, additional bindings",
"conf":{
"jcr:primaryType":"sling:OrderedFolder",
"dummyParent":{
"sling:resourceType":"slingPipes/dummySearch",
"conf":{
"jcr:primaryType":"nt:unstructured",
"apple":{"jcr:primaryType":"nt:unstructured","color":"green", "name":"apple"},
"banana":{"jcr:primaryType":"nt:unstructured", "color":"yellow", "name":"banana"}
}
}
},
"additionalBindings": {
"jcr:primaryType": "sling:Folder",
"three": "3"
},
"additionalScripts": ["/content/test/testSum.js"]
},
"onePipeContainer": {
"jcr:primaryType": "nt:unstructured",
"jcr:description": "one pipe only",
"sling:resourceType": "slingPipes/container",
"conf": {
"jcr:primaryType": "sling:OrderedFolder",
"dummyParent": {
"sling:resourceType": "slingPipes/dummySearch",
"conf": {
"jcr:primaryType": "nt:unstructured",
"apple": {
"jcr:primaryType": "nt:unstructured",
"color": "green",
"name": "apple"
},
"banana": {
"jcr:primaryType": "nt:unstructured",
"color": "yellow",
"name": "banana"
}
}
}
}
},
"resourceBinding": {
"jcr:primaryType": "nt:unstructured",
"jcr:description": "one pipe only, returning test value in the binding (expected to be valuemap) 'resourceUtil'",
"sling:resourceType": "slingPipes/base",
"path":"${currentResource.test}"
}
}