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
12 replies
Subscribers
8 subscribers
Views
7934 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi All , Do we have any functions to retrieve UUID of the process mod
bhargavie
over 8 years ago
Hi All ,
Do we have any functions to retrieve UUID of the process model through process id and client IP Address in Appian .
Thanks in Advance
OriginalPostID-213910
OriginalPostID-213910
Discussion posts and replies are publicly visible
0
sikhivahans
over 8 years ago
@bhargavie Hi, would you please be able to let us know the significance of Client's IP address here?
If you want to obtain a process model uuid from process id, if you aren't aware of any approach, here goes one such:
1. Create a Process Report that holds process id (pp!id) and process model id(pm!id) columns.
2. Use fn!getProcessModelDetailsByUUID() from 'Content Details by UUID' plugin and the input to this function is the id (Use a!queryProcessAnalytics() to get the results) derived from the above step.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
samiullahm
over 8 years ago
With JAVA API functions/methods we can get UUID of a process model through Process Id. Try with ProcessDesignService API like
ProcessDesignService pds = ServiceLocator.getProcessDesignService(context);
ProcessModel pm=pds.getProcessModel(processId);
String uuid=pm.getUuid();
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sagarl511
A Score Level 2
over 8 years ago
@bhargavie - On top of @Sikhi's comments - As per my understandingThe function fn!getProcessModelDetailsByUUID() requires designer/administrator access to be called. Please keep security in mind if you are planning to use it on interface.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 8 years ago
@bhargavie you can retrieve UUID of the Process Model using tp!uuid where tp means Task Properties
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
Just in case, if security is a concern, Eduardo has made few suggestions (such as enhancing Plugin when the environment is On-Premise) at
forum.appian.com/.../e-104224.
Else we may also write a rule that derives the uuid from the process model id as follows and I believe that in this case there isn't a need to worry about security. This would be helpful when we are not in the context of a process (If the context of process is available, then we can make the query under Designer privileges)
fn!displayvalue(ri!processModelId,{cons!MY_PROCESS_MODEL_1},{<UUID of Process Model 1>},null)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 8 years ago
I'll have to jump in on this conversation to clarify some items that are currently being discussed:
1. This statement is NOT correct "You can retrieve UUID of the Process Model using tp!uuid where tp means Task Properties". This property gives you the UUID of the node not the uuid of the model.
pm!uuid is the property that gives the UUID for the current model where this expression is invoked.
2. Version 2.5.1 of Content Details by UUID no longer requires Designer access for getProcessModelDetailsByUUID() to run
3. It's correct that getProcessModelDetailsByUUID() can take either an ID or a UUID and will return the data for that model
4. Client IP Address in Appian is only logged during the login attempt in login-audit.csv
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@Eduardo Out of curiosity, did you update the point 2 in the Summary Dashboard of the 'Content Details by UUID' Shared Component Record? I believe that it's not present till last day. Anyhow that's really good to know that designer access in't required anymore.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 8 years ago
I did but I put the wrong date. Now it has the right date:
UPDATED 05.25.2016
-getProcessModelDetailsByUUID no longer requires the user to be a designer.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@Eduardo Ah that clarifies things. Due to the very in-existence of the update, we missed the Designer Access point and thanks for pitching in.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 8 years ago
I actually made the change to the code today too. I apologize if my post made it sound like the update was done a long time ago, it's actually new updated from today.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>