How to get Process Instance in Camunda 8

Hello everyone,
I want to get process instance out of all deployed process how to do it in camunda 8.
Reason why i need it: I want to get access of extension elements in service task that’s having my custom extension elements like CustomNameSpace:myelement So if i have model instance i can do it