Activity: Add callbacks to generate next activities and reschedule on failure

[Finishes #65687704]