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
10 replies
Subscribers
5 subscribers
Views
8179 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Trying to invoke an expression rule with input parameter from my java plugin.
girikumard
over 9 years ago
Trying to invoke an expression rule with input parameter from my java plugin.
Tried using evaluateExpression(java.lang.String expression, NamedTypedValue[] variableValues) method in ProcessDesignService Interface.But not able to construct variableValues of type NamedTypedValue[].
Do we have any sample code to pass a parameter to an expression rule from java ?
Thanks in Advance.
OriginalPostID-197077
OriginalPostID-197077
Discussion posts and replies are publicly visible
Parents
0
sayedh
over 9 years ago
I think evaluateExpression should work. How are you constructing the NamedTypedValue? You should use the below constructor. Be sure to pass the parameter name and type. To determine type for an associated parameter, use the constants from AppianTypeLong.* (e.g. AppianTypeLong.STRING).
NamedTypedValue(java.lang.String name, java.lang.Long instanceType)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sayedh
over 9 years ago
I think evaluateExpression should work. How are you constructing the NamedTypedValue? You should use the below constructor. Be sure to pass the parameter name and type. To determine type for an associated parameter, use the constants from AppianTypeLong.* (e.g. AppianTypeLong.STRING).
NamedTypedValue(java.lang.String name, java.lang.Long instanceType)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data