Skip to content

Commit

Permalink
Thing actions: Clarify use of ActionOutputs annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-h05 committed Oct 22, 2024
1 parent 0901b9c commit b550cdb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion developers/bindings/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,11 @@ This is to support the old DSL rules engine and make the action available there.

Each parameter of an action member method must be annotated with `@ActionInput`.

If you return values, you do so by returning a `Map<String,Object>` and annotate the method itself with as many `@ActionOutput`s as you will return map entries.
If you return values, you do so by returning a `Map<String,Object>` and annotate the method itself with `@ActionOutputs` containing as many `@ActionOutput`s as you will return map entries, e.g.

```java
@ActionOutputs({ @ActionOutput(name = "foo", label = "Foo", type = "java.lang.String"), @ActionOutput(name = "bar", label = "Bar", type = "java.lang.String") })
```

## Firmware information / Firmware update

Expand Down

0 comments on commit b550cdb

Please sign in to comment.