setContextNodeIdToParentNodeOfContextNode

Type: Transform step

Deprecated!

This is deprecated.

Set contextNodeId to the nodeId of the parentNode of the node referenced with contextNodeId.

This transform is deprecated - use inline XPath in operations instead.

Instead of:

JSON

"do-something": {
  "steps": [
    {
      "type": "transform/setContextNodeIdToParentNodeOfContextNode",
      "data": { "contextNodeId": "{{contextNodeId}}" }
    },
    // (some step that uses contextNodeId, now set to the parent)
  ]
}

Use:

JSON

"do-something": {
  "steps": [
    {
      "type": "(some step that uses contextNodeId of the parent)",
      "data": {
        "contextNodeId": "x__$data?contextNode/parent::node()"
      }
    }
  ]
}

Imported operation data

  1. contextNodeId

    Type: NodeId

    The nodeId of the node to start the query from