Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
Replies
6 replies
Answers
1 answer
Subscribers
8 subscribers
Views
7185 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I am trying to find a way to select a constant by expression for the Increment C
Bob
over 9 years ago
I am trying to find a way to select a constant by expression for the Increment Constant Smart Service (7.10). I need to be able to pick a specific constant based on another variable but I keep getting type mismatch errors. I have this working fine in an old Increment Constant Activity node from a plugin but was hoping to be able get rid of the plugin.
The constant needs to be type '(Content Constant)' but looks like my expressions are returning the integer value from the constant rather than the constant itself. Is there any function that can be used to return a constant type?
OriginalPostID-158696
OriginalPostID-158696
Discussion posts and replies are publicly visible
0
sikhivahans
over 9 years ago
@rrobins Hope I understood your question correctly, to the best of my knowledge, currently this isn't possible with the OOTB functionalities. As long as we are using the 'Increment Constant Smart Service' OOTB smart service, we are forced to use picker or autocomplete to select the constant. Still if you want to go with expression editor for selecting a constant, I guess this could be possible only with the shared plugin namely 'Get Constants By Name' at https://forum.appian.com/suite/tempo/records/type/components/item/i4BCLGOdlMUpdGVqT-RV7oRg74uEGJO5CX7OVw4rz1Bgd7Ltg6J2duTyqw2fy87/view/summary.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Bob
over 9 years ago
looks like that plugin will just return the value of the constant. Sounds like the OOB smart service really doesn't provide any useful expression option for the constant input so I guess I am stuck with with the old plugin smart service for now.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
@rrobins Did you try testing the plugin? Afaik, it contains a function that returns the constant type which can be directly used in the expression editor. True, unfortunately there isn't an OOTB utility as of now.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Bob
over 9 years ago
Didn't actually try the plugin but looked at the documentation included, which describes the output of the expressions as either text or integer and says "the value of the constant will be returned".
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Robert Shankin
Appian Employee
over 9 years ago
Hi Bob -
Perhaps the Appian informational functions fn!typeof() & fn!typename() will help with your objective?
forum.appian.com/.../Informational_Functions.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jim Schweitzer
Certified Lead Developer
over 7 years ago
This plugin is made for this case:
forum.appian.com/.../summary
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel