Added getting the predecessors of an activity.