Peel the tomatoes and cut into slices approx. 5 mm thick. Drain the artichoke hearts and, depending on the size, quarter or eighth, remove the stalk if necessary. Steam the shallots and garlic in the oil until translucent, add the ham and roast briefly.
Mix the pasta with the ham and shallot mixture, seasoning well with oregano, pepper and salt. Put half of it in a greased baking dish. Spread the artichoke hearts on top and pour the rest of the pasta on top. Whisk egg and cream and pour over. Finally, top with the tomato slices and sprinkle with the cheese.
Baked in a preheated oven at 200 ° C top and bottom heat for approx. 20 - 30 minutes until the cheese has melted and has taken on the desired color.
Sprinkle with freshly chopped basil before serving.