I have an activity(say actN) that is dependent on N number of activities. All the N activities are executed in parallel. After the completion of all the activities i want to execute activity actN. I want to do this without using any @Asynchronous annotation as @Asynchronous tag is not working for me.
public Promise<Integer> executeLastactivity(List<Promise<Integer>> prm){
//TODO
}