Getting the variables state of a specific historical activity?

Hello all,

Is there a way to query for the complete set of variables that existed (And they values) during a specific activity’s execution?

Example, say we have 4 tasks, 3 have been completed, and the fourth is waiting to be completed. If i wanted to query for “What did the variables look like during the specific execution of task 1?”, what query(ies) would be made?