Move Node
Type: moveNode
This handler moves nodes that are part of a workflow's payload to a target container. The target container can be identified either by a node ID or a node path.
The config
for this handler is as follows:
{
"targetNodeId": "<target node id>",
"targetOffsetPath": "<target path>"
}
If targetOffsetPath
is specified, then targetNodeId
is the root node to calculate the offset against. If targetNodeId
is not provided, the default repository root is used.
Here is an example where we move a node to the /Content/Published
folder.
{
"targetOffsetPath": "/Content/Published"
}
This is equivalent to:
{
"targetNodeId": "root",
"targetOffsetPath": "/Content/Published"
}
We can also move to a specific node identified by it's node ID or it's QName:
{
"targetNodeId": "ABCDEFGH123456"
}
Or:
{
"targetNodeId": "custom:content_published"
}
Finally, you can do relative offsets. Suppose the /Content
folder has node ID XYZABC1234987
:
{
"targetNodeId": "XYZABC1234987",
"targetOffsetPath": "/Published"
}