In 1627 he removed to Leipzig, where he was permitted to lecture. In 1629 he was appointed professor at Wittenberg, where he achieved an authoritative position. In 1630 he was sent to Leipzig as a delegate to a convention in behalf of the Augsburg Confession, and in 1645 he took a leading position at the colloquy of Thorn. In 1646 he became professor at Leipzig, and while there he also served as pastor of St. Nicholas Church and as superintendent from 1657. He wrote Calvinisimus irreconciliabilis  as the counterpart to Bishop Joseph Hall's Roma irreconciliabilis, adding an appendix Quae dogmata sint ad salutem creditu necessaria, which is somewhat conciliatory towards the Reformed doctrine of the Lord's Supper and the personal union. In his later years he denied his appendix and asked for it to be considered an immature writing of his youth. Though Hülsemann had been friends with Calixtus before Thorn, he became his declared opponent. In the years following Thorn, he became one of the most prominent adversaries of Calixtus, and though Abraham Calovius is more remembered today, many of his contemporaries considered him the leader of German Lutheranism. According to Ingetraut Ludolphy, he was a born systematician, whose attacks on Calixtus and the other Helmstedt theologians are far superior to most other anti-Helmstedt polemics.
Question: Which happened first, serving as pastor of St. Nicholas Church or being a professor at Wittenberg?
Answer: professor at Wittenberg