protected override void LoadFormData() { var travelDetail = _travelDetailRepository.GetByRequestHeader(RequestHeader.Id); var destinations = _destinationRepository.GetMany(p => p.RequestHeaderId == RequestHeader.Id); var flightDetails = _flightDetailRepository.GetMany(p => p.RequestHeaderId == RequestHeader.Id); if (travelDetail != null) { WorkflowInstance.TravelDetail = travelDetail; } if (destinations != null) { WorkflowInstance.Destinations = destinations; } if (flightDetails != null) { WorkflowInstance.FlightDetails = flightDetails; } }