From e2ce432ca9518e862c5c7840750e1071c67d2fec Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Mon, 7 Oct 2024 09:20:57 +0200 Subject: [PATCH] add missing variable available in workflow states Signed-off-by: Reuben Miller --- docs/src/references/agent/operation-workflow.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/references/agent/operation-workflow.md b/docs/src/references/agent/operation-workflow.md index 9ad9e8b1c1..b812ad393b 100644 --- a/docs/src/references/agent/operation-workflow.md +++ b/docs/src/references/agent/operation-workflow.md @@ -229,6 +229,7 @@ Data extracted from the command status topic and message payload can be passed a - Specific path expressions can be used to pass specific excerpts. - `${.}` is a json for the whole message including the `topic` and the `payload`. - `${.topic}` is the command request topic (*e.g.* `te/device/main/cmd///restart/c8y-mapper-123`) + - `${.topic.root_prefix}` is the command target root topic (*e.g.* `te`) - `${.topic.target}` is the command target identity (*e.g.* `device/main/cmd//`) - `${.topic.operation}` is the command operation (*e.g.* `restart`) - `${.topic.cmd_id}` is the command request unique identifier (*e.g.* `c8y-mapper-123`) @@ -523,6 +524,7 @@ The `await-operation-completion` action also tells how to inject the outcome of - Specific path expressions can be used to extract specific excerpts from the sub-operation final state. - `${.}` denotes the whole sub-operation final message including the `topic` and the `payload`. - `${.topic}` is the sub-operation request topic +- `${.topic.root_prefix}` is the command target root topic (*e.g.* `te`) - `${.topic.target}` is the sub command target identity - `${.topic.operation}` is the sub command operation - `${.topic.cmd_id}` is the sub command request unique identifier