Fixed null/empty text for history module. Added schedule-id recording for execution flows.