Updating queue transaction with processed status

I have a need to update a queue transaction with a processing status. In both cases the transaction is successful but I want to identify which processing path the transaction took in my IF statement. So if certain conditions are met it is considered processed, the other processed with PDF output. Thinking I can use the Set Transaction Status activity in each path of the IF statement but since I am running in the framework this does not seem to work. Any ideas are helpful.

So you are following like in this guide and the status dont change as you wish?