Skip to content

Commit

Permalink
feat(editor): remove iteration, move declarations to parameters, chan…
Browse files Browse the repository at this point in the history
…ge content path
  • Loading branch information
marcofra committed Dec 17, 2024
1 parent 36f8219 commit bb19828
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions src/main/frontend/model/samples/add-or-replace-property.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,31 @@
"logLevel": "info",
"hops": [
{
"type": "declare",
"declarations": {
"propertyName": "\"pName\"",
"propertyValue": "\"pValue\""
}
},
{
"type": "each",
"expression": "['de', 'fr', 'it', 'en']",
"type": "nodeQuery",
"query": "SELECT * FROM [nt:unstructured] AS s WHERE ISDESCENDANTNODE([/content/project/language])",
"queryType": "JCR-SQL2",
"hops": [
{
"type": "nodeQuery",
"query": "SELECT * FROM [nt:unstructured] AS s WHERE ISDESCENDANTNODE([/content/swisscom/${lang}])",
"queryType": "JCR-SQL2",
"hops": [
{
"type": "setProperty",
"conflict": "force",
"propertyName": "${propertyName}",
"value": "propertyValue"
}
]
"type": "setProperty",
"conflict": "force",
"propertyName": "${args.propertyName}",
"value": "args.propertyValue"
}
],
"iterator": "lang"
]
}
],
"parameters": []
"parameters": [
{
"name": "propertyName",
"defaultValue": "pName",
"type": "text",
"evaluation": "STRING"
},
{
"name": "propertyValue",
"defaultValue": "pValue",
"type": "text",
"evaluation": "STRING"
}
]
}

0 comments on commit bb19828

Please sign in to comment.