How to Extract process variables info from Process model when Instance id is given. how to get the keyvalue pairs of processvariables (pvname:value)

I would like to extract process variables info from an existing process instance with out using using a a!startprocess() function.. Is there any solution for this usecase.

input: processid

output: list of key value pairs of process variables. 

  Discussion posts and replies are publicly visible