Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
2 replies
Subscribers
5 subscribers
Views
2155 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
I have a process Id in my plugin, How to read the PV of type CDT of that process
ramajayama0001
over 9 years ago
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
Parents
0
James Carter
Appian Employee
over 9 years ago
The Type Transformer library can help read CDTs in Java. It can be downloaded from shared components and has examples in the Java docs.
forum.appian.com/.../summary
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
James Carter
Appian Employee
over 9 years ago
The Type Transformer library can help read CDTs in Java. It can be downloaded from shared components and has examples in the Java docs.
forum.appian.com/.../summary
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data