The Reactive Blocks SDK includes an animation feature that can show how the token flows through activity nodes and edges. You can control the animation by executing one activity step at a time. This feature is very useful to help you understand the behavior of a building block and also to find potential problems.
You can start the animation feature by choosing action Animate from the context menu.
Below is a figure showing how animating a block looks like.
A window titled Animation (1) is opened displaying keys that can be used to control animation.
The Animation window also shows issues with the activity step or state, if any.
We can also find out which transition is taken by every block in a chosen activity step. For example, in the figure above, let us find out the transition taken by the inner block Send Email in the highlighted activity step.
Just open the block contract by selecting Show Contract from the context menu of block Send Email (see the figure below). You will get window (1) displaying the contract with transition /ok highlighted.
Note that in any activity step, each inner block can participate by maximal one transition.
To exit the animation, close the window called “Animation”.