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
5 replies
Subscribers
5 subscribers
Views
1812 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Hi, I am implementing a custom servlet plug-in where I need to access few c
indrajita
Certified Associate Developer
over 10 years ago
Hi,
I am implementing a custom servlet plug-in where I need to access few constants declared in Appian KDB.
Is there any API for this purpose? could you please share example?
Thanks.
...
OriginalPostID-85168
OriginalPostID-85168
Discussion posts and replies are publicly visible
0
Eduardo Fuentes
Appian Employee
over 10 years ago
This is an example that retrieves a constant and checks the constant is of type group. More information at
forum.appian.com/.../ProcessDesignService.html
ProcessDesignService pds = ServiceLocator.getProcessDesignService(sc);
TypedValue expressionResult = pds.evaluateExpression("cons!CUSTOM_DESIGNERS_GROUP");
if (expressionResult.getInstanceType() != AppianType.GROUP) {
throw new Exception(
"CUSTOM_DESIGNERS_GROUP is not of the correct data type (Expecting a Group type).");
}
....
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
indrajita
Certified Associate Developer
over 10 years ago
Thanks, evaluateExpression worked great for the purpose.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
prestonb
over 10 years ago
So I tried this out and Eclipse is complaining that:
"The method evaluateExpression(String) from the type ProcessDesignService refers to the missing type ExpressionEvaluationException"
What .jar file do I need on my build path to resolve that? Or is this just an error I can safely ignore?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
You need appian-process.jar in your build path for compilation ONLY. DO NOT include it in the final plug-in JAR
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
prestonb
over 10 years ago
That did it! Thanks very much!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel