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
4 replies
Subscribers
5 subscribers
Views
3583 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Process Model UUID Capture
yagyadeepk
over 7 years ago
I want to capture the process model UUID at run time via only the out of the box functionalities. The Process Model properties expose the pm!id which is the numeric id specific to the environment and not the universal 32 bit UUID. Any suggestions to capture the UUID at run time?
Thanks in advance
OriginalPostID-257283
Discussion posts and replies are publicly visible
0
raghunandanj3904
Certified Senior Developer
over 7 years ago
There is an OOTB function called getprocessmodeldetailsbyuuid(). You can pass the PM!ID as well to this and this returns the details of the process model as a string. And you can split the string with "," and then pull the 4th element in the array which is UUID.
split(getprocessmodeldetailsbyuuid("yourPmIDGoesHere"),",")[4]
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Rama
over 7 years ago
Hi,
I am not sure about your requirement(on run time process model UUID capturing) because It's unique forever.
However, At the time of object creation you can save UUID into constant and use it.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
reginaldm377
over 7 years ago
I did something like this in an expression rule. The stripwith() function was used to literally removed "UUID:" if it wasn't necessary. Hope this helps.
with(
local!processDetails:todatasubset(split(getprocessmodeldetailsbyuuid(161), ",")),
stripwith(local!processDetails.data[4],"UUID:")
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Schmitt
Certified Lead Developer
over 7 years ago
As far as I can tell, pm!uuid is a valid process model property despite not being listed with the others. You might have luck just using that.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel