How are actions executed internally

Problem statement

How are actions executed internally? Rules (for example) are concatenated into an async.waterfall call. Is this the same with Actions?

Solution

While Actions also run under Webtask, they are executed in a very different manner compared to Rules. There is no single build file. Instead, the workflow is stored in a database. We retrieve the workflow and execute the tasks sequentially according to the order defined.