actual Joint position via process executor

I am working on visual components since a few weeks. Now I have a question for a statement!? in the process executor. I would like to get the actual position of a Joint as a variabel. I hope someone could help me.
I want to interrupt the simulation until a defined position of a joint is reached.