Async processing in Flows for APEX 26.1
In my previous post , I showcased adhoc sub processes with my demo app "IT-Support". What I didn't mention is that this app also uses another feature of 26.1: Async processing*. The task "Search Knowledge Base" calls a LLM that returns a decision used by the exclusive gateway. With "async before" turned off, the end user would have to wait until the LLM has returned with a response. This might take longer then 3 seconds, after which the user starts to suspect the app isn't working correctly. After submitting a ticket to the IT help desk, we need to immediately return control to the user again. This is exactly what happens when "async before" is turned on. Technically, the LLM call is now handled by a database job. Turning this feature on might require you to handle a new state the application is in. Before async processing, there was "before the LLM gets called" and "after the LLM returned a response", now you have ...