Async activities in workflow

Use the loop:

        for(Promise p: listOfPromise) {
            try {
                p.get();
            } catch (Exception e) {
                // handle error
            }
        }