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
9 subscribers
Views
2913 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hello All, How can we use like java reflexion in SAIL to can call dyn
alexis gutierrez
over 9 years ago
Hello All,
How can we use like java reflexion in SAIL to can call dynamically a rule expression or function from a rule expression?
For example something like that: invoke("rule!name",{param1;param2})
If it´s not ootb is there any plugin to do that?
thank you in advance for you answer,
Best regards.
Alex
OriginalPostID-183169
OriginalPostID-183169
Discussion posts and replies are publicly visible
Parents
0
chetany
A Score Level 1
over 9 years ago
Hi Alex, I now understand what you meant. You want to pass the function name rather than a reference to the function. As far as I know, there is no OOTB solution for this. But, it can be done via creating custom Appian plugin code. In your Java method you need to take the rule or function name as input and then get the actual function or rule name. There are APIs for getting a rule or constant by name. Refer ContentService class in Appian's Java API. There are some methods which can return you the rule or function by name. Once you get that function or rule, you can then pass the parameters to it and evaluate it in Java code and return the result.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
chetany
A Score Level 1
over 9 years ago
Hi Alex, I now understand what you meant. You want to pass the function name rather than a reference to the function. As far as I know, there is no OOTB solution for this. But, it can be done via creating custom Appian plugin code. In your Java method you need to take the rule or function name as input and then get the actual function or rule name. There are APIs for getting a rule or constant by name. Refer ContentService class in Appian's Java API. There are some methods which can return you the rule or function by name. Once you get that function or rule, you can then pass the parameters to it and evaluate it in Java code and return the result.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data