Cartan decompositions and BGG-resolutions