Application flow
A typical application starts with a login page that will automatically redirect us to the application home page upon successful login. In the case of a public application (no login required), we also need to start from a "first page". This home page can be the only page in our application, or the first of many. In a multi-page application we naturally have multiple options of branching. However, as was mentioned before, every application page must include at least one valid branch option, and our single application page is no exception. In this case, we'll define a self branch a page that branches to itself.
Note
Self branching branching to the same page is a legitimate and valid branch.
If, for any reason, the APEX engine is not able to detect a valid Branch to use at the end of the ACCEPT
procedure, then it will issue a runtime error. This runtime error will be displayed as an error page, which can be seen in the following screenshot: