A flow diagram box is a box which includes a script and a flow diagram.
Thanks to its flow diagram, a flow diagram box may contain boxes which in turn may also contain boxes if they are flow diagram boxes. And all these boxes can be connected to each other, thus creating a complex and structured behavior.
This enables you to easily organize your behavior with several levels of flow diagram, each level corresponding to the diagram of a box.
Creating a flow diagram box can be useful to encapsulate other boxes into a unique behavior.
To create flow diagram box:
Right click on your diagram wherever you want to create the box.
Click on Add a new Box in the context menu.
The Create a new box menu is displayed.
Add a name and a tooltip for your box.
Optional: set the picture to recognize it among other boxes in your diagram.
Optional: set parameters, inputs and outputs that can be manipulated by the box. For further details about parameters, see How to add/remove inputs, outputs, parameters in a box section.
In the box type part, select Flow diagram.
Click on Ok.
The created Flow box is displayed on the diagram.
If you double click on your box to get into it you will see another diagram.
A flow diagram is a diagram containing boxes linked to each other.
In a flow diagram, you can access to most I/O of the box (or the behavior). Accessible inputs are at top-left of the flow diagram and outputs are at top-right.
To see which natures of I/O are accessible, see the sections: Input of a box and Output of a box.
The parent box of a box is the box which flow diagram directly contains this other box.
A child box (or a sub-box) of an other box is then a box which is contained in the flow diagram of this other box.
For example we have two boxes: A and B. A is a flow diagram box. B is one of the boxes contained in the diagram of A. Then A is B’s parent box. And B is one of A’s child boxes (or sub-boxes)
Note
In this case B is one of A’s child boxes.
You can also say that a box is a parent box of another if it is its indirect parent (for example if it is the parent of its parent box or the parent of the parent of its parent box).