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
11 replies
Subscribers
5 subscribers
Views
4648 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
How can we get the system icons like "Timer event", "Script task&
Vinod Bongoni
Certified Lead Developer
over 9 years ago
How can we get the system icons like "Timer event", "Script task", "XOR" nodes? I have got the icon id from the process node(Using API) but I'm unable to access the icon in any ways. Please suggest me the way to get the icons of a nodes. or Where can I get those icons?
OriginalPostID-156588
OriginalPostID-156588
Discussion posts and replies are publicly visible
0
Eduardo Fuentes
Appian Employee
over 9 years ago
Why do you need the icons? Is it to use them in your plug-in?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Vinod Bongoni
Certified Lead Developer
over 9 years ago
Yes Eduardo, I need to use those icons in my plug-in.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 9 years ago
Icons for smart services are under <APPIAN_HOME>\\web.war\\process\\designer\\img\\smartnodes\\canvas\\ and <APPIAN_HOME>\\web.war\\process\\designer\\img\\smartnodes\\palette
Smart services on Forum also come with the icons inside the JAR if you need to re-use some of them.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Vinod Bongoni
Certified Lead Developer
over 9 years ago
Thank you Edurado. I already got the icons from this location. From this, I can get the static icons only, but how can I map to the specific node of the process.
I need to get the icon, which is specific to the node in the process at the execution of my plug-in.
In plug-in code, I got the "processNodes" object, which is a object of "RuntimeProcessNode" class. So I need the icon from this "processNodes" object. I can get the icon id from "processNodes.getIcon()". But I can't able to send this as a document to the output of plug-in.
I tried to cast Icon id to document type, tried to save the Icon content, tried to get the icon from Icon's UUID by using content service and content classes. But it is not worked in any ways.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 9 years ago
I am not sure why you need to retrieve the icon of the node. If you just need to assign an icon to your smart service you just need to put it in the JAR
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Vinod Bongoni
Certified Lead Developer
over 9 years ago
Edurado,
My intention is not to set an icon to my plug-in. The requirement is to get the process node details.
Let say, We can get the "User input task" node of the process in the plug-in code, by using API. I can able to fetch the details of "User input task" node like id, name, UUID, description...etc. Along with these details, I need to get the Icon as well. And, all these details should be output of my plug-in. So how can I achieve this?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 9 years ago
The getIcon() method returns the canvas icon (<id>.gif) and getPaletteIcon() returns the palette icon (<id>.gif). You cannot map the to Appian documents because they are not. These icons are retrieved from the server as a file on disk rather than as a logical document in the Collaboration Engine.
You might need to actually do a GET to bring the icon into a document in Appian, probably doable with
forum.appian.com/.../HTTP_File_Download_Smart_Service.html
/suite/process/designer/img/smartnodes/canvas/<ID>.gif
/suite/process/designer/img/smartnodes/palette/<ID>.gif
but to be honest I think this is more cumbersome for something that is not as relevant as the rest of the node information. The icon shouldn't matter as long as you can get its name, type, uuid, etc.
If you're interested in this level of detail then the Process Model Documentation is a better approach in my personal opinion
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Vinod Bongoni
Certified Lead Developer
over 9 years ago
Thank you Eduardo.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sachin Pandey
A Score Level 1
over 9 years ago
do you know where are the news event icons are stored in the local install ...looking for the directory location.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 9 years ago
<APPIAN_HOME>\\_admin\\accdocs1\\0
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>