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
7 replies
Subscribers
5 subscribers
Views
3311 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Hi I need to evaluate an expression rule from my smart service. I cou
sivananthag
over 10 years ago
Hi
I need to evaluate an expression rule from my smart service. I could able to get the expression rule id through ContentService.searchByRoot(rulesRootId, ruleName, filter)
and I got an object of type FreeformRule and i can get the expression rule id from that object.
I need to evaluate this rule and get the results which return a custom data type.
I tried to use ExpressionService.evaluateExpression, but it is deprecated method. In processDesignService.evaluateExpression takes java.lang.String Expression as parameter, not expression rule id.
Please suggest me with suitable api that takes expression rule id as parameter and return results
Thanks
Jhothi
OriginalPostID-141185
OriginalPostID-141185
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 10 years ago
There are a lot of examples in the Shared Components of custom functions and smart services that use Complex Data Types, you don't need to evaluate an expression, you simply import the complex data type as a POJO into your Appian Java Project and you build the instance of the data type as any Java object.
Useful links:
forum.appian.com/.../Defining_a_Custom_Data_Type.html
forum.appian.com/.../summary
forum.appian.com/.../summary
As you can see in those examples there is no need to evaluate an expression to build your Complex Data Type.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 10 years ago
There are a lot of examples in the Shared Components of custom functions and smart services that use Complex Data Types, you don't need to evaluate an expression, you simply import the complex data type as a POJO into your Appian Java Project and you build the instance of the data type as any Java object.
Useful links:
forum.appian.com/.../Defining_a_Custom_Data_Type.html
forum.appian.com/.../summary
forum.appian.com/.../summary
As you can see in those examples there is no need to evaluate an expression to build your Complex Data Type.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data