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
3 replies
Subscribers
5 subscribers
Views
1205 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Hi Everyone, Is there any smart service that can be used to get the process
bharathc
over 9 years ago
Hi Everyone,
Is there any smart service that can be used to get the process variable names by process id? If that is possible, In case of CDT type variable, how can we get each field name in that CDT?
Thanks in Advance
OriginalPostID-150485
OriginalPostID-150485
Discussion posts and replies are publicly visible
0
Josh
Certified Lead Developer
over 9 years ago
For your second question you can do =split(stripwith(tostring(type!cdtName()), "=[] "), ",") to get a text array of field names.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
akshayan
Certified Lead Developer
over 9 years ago
I am not sure if there's any shared component available. You can build a plugin using the public API - getRecursiveProcessVariables function in ProcessExecutionService.
forum.appian.com/.../ProcessExecutionService.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
bharathc
over 9 years ago
Hi,
Thank you all for your reply.
I have built smart service to get process variable details belongs to perticular process. I am getting process variable names, types and values in the below format
ProcessVariableInstance[runningType=3020,runningValue=<null>,name=CDT,it=3020,v=<null>],
ProcessVariableInstance[runningType=1,runningValue=1,name=firstvalue,it=1,v=1],
Here I am able to get only CDT names but not its field names. Here how can I get fields of that CDT based on its name dynamically?
Any thoughts?
Thanks in advance.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel