message
Output data to flowdata or blackboard.
Description
This node outputs data to flowdata or blackboard
Parameters
Parameter |
Type |
Required |
Default |
Comment |
---|---|---|---|---|
msg | any |
Yes |
- |
Output data. |
out_bb | bool |
No |
False |
If this parameter is set to True, the data is stored in the blackboard rather than in the flowdata. By default, the key in the blackboard is set to the node name. To customize the key, specify the out_field parameter. |
out_field | str |
No |
None |
The key for the data in the blackboard. If out_bb is set to False, this parameter is ignored. |
Examples
# Output "hello" to the flowdata["msg"]
- message:
name: "msg"
msg: "hello"
# Output the value of 'foo' field in the blackboard to the flowdata["msg"]
- message:
name: "msg"
msg: "{{ bb.foo }}"
# Output "hello" to the flowdata["field"]
- message:
name: "msg"
msg: "hello"
out_field: "field"
# Output "hello" to the blackboard["msg"]
- message:
name: "msg"
msg: "hello"
out_bb: yes