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
2154 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
samiullahm
over 9 years ago
To get CDT values as a string you need to do the following..
TypeService ts=ServiceLocator.getTypeService(context);
AppianTypeFactory tf= AppianTypeFactory.newInstance(ts);
AppianElement ae=tf.toAppianElement(pv1);
return ae.toString();
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
samiullahm
over 9 years ago
To get CDT values as a string you need to do the following..
TypeService ts=ServiceLocator.getTypeService(context);
AppianTypeFactory tf= AppianTypeFactory.newInstance(ts);
AppianElement ae=tf.toAppianElement(pv1);
return ae.toString();
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data