On Demand processes
As we saw in this chapter, APEX supports on-demand processes at the application and page levels. We saw that we could invoke an on-demand Application Process by using a page level On Demand process. However, there are two more options we can use to invoke on-demand processes.
The first option is to use the f?p
URL syntax. We can use the keyword APPLICATION_PROCESS=
in the fourth segment (the REQUEST
segment) to invoke an on-demand process. The keyword value can be the application process ID or name. As the process ID might change when we deploy the application into a new APEX instance, it seems safer and simpler to use the process name (just remember that the name is case-sensitive). For example, the following will invoke an on-demand application process called check_status:
f?p=&APP_ID.:2:&SESSION.:APPLICATION_PROCESS=check_status
In this case, the page number is meaningless but still mandatory. If, for any reason, the check_status
process does not end successfully...