As explained in the previous section, any visitor who enters a fork enters all branches. As soon as a visitor completes one branch in the fork, he or she progresses to the next element in the scenario (the first element after the fork). However, it is important to note that the visitor is not prevented from completing the other branches; the system keeps waiting for him or her to do so for as long as the scenario is active. Consider the example below:
A visitor logs in and enters both branches of the fork. She visits the page bargains.jhtml
, and the system displays the specified content items in a slot on the page. Later in the same session the visitor visits the page whatsnew.jhtml
, thus completing the second branch. The next element is triggered again, and the system displays the specified items in the slot.
If necessary you can change this behavior so that only one branch in any fork can succeed. If a visitor completes the elements in one branch, he is automatically removed from the other branches. To use this feature, do the following:
Select the whole Fork element by clicking its left side. The left side turns blue and the fork turns yellow.
Right-click the left side of the fork (the blue line) and select Allow Only One Branch to Succeed from the menu that appears. Note that you cannot select this option if you have already selected Require All Branches to Succeed.
The system displays a blue circle at the beginning of each branch to show that only one branch can succeed.