I had a hernia repaired years ago. I wasn't doing triathlon at the time, but I was rock climbing. I definitely had to take it easy for a while when I got back on the rock. I think you will need to expect some loss in fitness. Maybe you can do some easy pedaling on the trainer and some deep water running after the incision heals (about 2 weeks probably).
Good luck.