Links
In J-Graph, links are the lines which visualize the possible transitions between the bot script states. Depending on where the transition begins and ends, links can be incoming and outgoing.
All links are clickable. By clicking any link on the canvas, you can:
- See the state which the link comes from and goes to, and also navigate to them quickly.
- Break the link by clicking the icon.
Triggers and expected paths
If you create a new trigger with the Expect trigger from state parameter filled, a link between the state passed as the parameter value and the current one appears automatically on the canvas.
In the same fashion, when creating a new expected path, a link is created from the current state to the one passed as the value of the Go to state parameter.
If you break such a link, the corresponding trigger will also be deleted.
Reactions
Links also appear when the following reaction blocks are saved in one of the states:
- Buttons with Go to state as the select reaction.
- Transitions between states.
- When the transition is deferred, the link is displayed as a dashed line.
- When it is immediate, the line is solid.
If a link caused by a reaction is broken, the corresponding block will not get deleted. Instead, the area where the link used to come from will now appear empty.
Place the cursor in this area, click the left mouse button or double-tap the touchpad, then drag to create a new link directly on the canvas.
There are several ways you can set the target state:
- Drag the new link to the necessary state.
- Drag it to one of the states listed in Outgoing links when inside a group.
- Drop it on any unoccupied space to create the state on the fly.
Actions
If you use actions, you can configure transitions to other states on either of the two conditions: Sent successfully and Error. This works in the same fashion by dragging the cursor from the empty area to the target state.