I have a process Id in my plugin, How to read the PV of type CDT of that process

I have a process Id in my plugin, How to read the PV of type CDT of that process instance using API?

I have used the below code to fetch the CDT, But it is returning me an object. But the expectation is to fetch the CDT(of type multiple) values.

ServiceContext sc = WebServiceContextFactory.getServiceContext(req);
ProcessExecutionService pes = ServiceLocator.getProcessExecutionService(sc);
ProcessVariableInstance pv1 = pes.getProcessVariable(processId, "PVName");
System.out.println("PV1 name: " + pv1.getName() + " Value: " + pv1.getRunningValue());
-------------------
Output
-------------------
PV1 name: PVName Value: [[Ljava.lang.Object;@6502ee80

Any suggestions ?

OriginalPostID-194325

OriginalPostID-194325

  Discussion posts and replies are publicly visible