How to retrieve the process execution information?

Hello there,

I am currently trying to get some information about the current execution and for that, I am calling the following method:

 Context.getCoreExecutionContext();

And then I get an instance of CoreExecutionContext and then retrieve the execution. The execution itself is not null, but most of its fields are. Is this the right method to get the process execution information?

Thank you,

Best regards,