docs: public ProcessInstance getProcessInstance() {
      Execution execution = getExecution();
      if(execution != null && !(execution.getProcessInstanceId().equals(execution.getId()))){
        return processEngine
              .getRuntimeService()
              .createProcessInstanceQuery()
              .processInstanceId(execution.getProcessInstanceId())
              .singleResult();
      }
      return (ProcessInstance) execution;
    }