Refactor getAvailableTasks to getAvailableCapTasks. Replace binding to process with binding to task events.