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
6 replies
Subscribers
4 subscribers
Views
2818 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Retrieve Process Model Folder Id
santiagov
over 7 years ago
Is there any way to get the ProcessModelFolder id from uuid in java API?.
OriginalPostID-237484
Discussion posts and replies are publicly visible
0
chetany
A Score Level 1
over 7 years ago
I think you are trying to get the folderId of the folder in which a process model is saved based on its UUID. The ProcessModel class has a inherited method - getFolderId(). You can use it. Before that, get an instance of ProcessModel by uuid - For eg:
ProcessModel pm = ProcessDesignService.getProcessModelByUuid(uuidOfPM);
Long folderId = pm.getFolderId();
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
santiagov
over 7 years ago
Thanks chetany,
This solution is not valid for us, we are analyzing a export patch. In our case we only have a processModelFolder but don't have the processModel.
Is any way?.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chetany
A Score Level 1
over 7 years ago
if you have only the uuid of the process model folder, you can find its id easily.
You will need to use ContentService.
ContentService.getIdByUuid(yourUUID) will return you the Id of that folder
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
santiagov
over 7 years ago
I've used that function but give me as result null.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chetany
A Score Level 1
over 7 years ago
If it is returning null, then it probably means that the folder does not exist. Can you try using the "Content details by UUID" plugin and check what output it gives for your uuid?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
santiagov
over 7 years ago
Folder exists inside a application and I can export patch with it.
I've used Content details by UUID plugin and get null too.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel