Add function processTasks to LuaAddon class. This function receives the array of tasks and passes it to the lua function ProcessTasks.