ProcessInstance ID generated is not UUID

String processInstanceId = execution.getProcessInstanceId();

	System.out.println("Entering HelloWorldTask.execute (processInstanceId=" + processInstanceId + ")");

	ProcessInstanceQuery query = ProcessEngines.getDefaultProcessEngine().getRuntimeService().createProcessInstanceQuery().processInstanceId(processInstanceId);
	ProcessInstance pi = query.singleResult();

	if (pi == null) {
		System.out.println("WARN - No process instance with id " + processInstanceId + " found!");
	} else {
		System.out.println("Hello World!");
	}

	System.out.println("Exiting HelloWorldTask.execute (processInstanceId=" + processInstanceId + ")");

Entering HelloWorldTask.execute (processInstanceId=1511)
Hello World!
Exiting HelloWorldTask.execute (processInstanceId=1511)

I want the UUID which is shown in cockpit. Could you please help me out?

Please refer

https://docs.camunda.org/manual/latest/user-guide/process-engine/id-generator/