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
+1
person also asked this
people also asked this
Replies
7 replies
Subscribers
8 subscribers
Views
2974 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Need to understand how this rule is defined in the attachment. Does the item[ ]
nikhilh0001
over 9 years ago
Need to understand how this rule is defined in the attachment. Does the item[ ] refer to ri!item or is it some array object?
OriginalPostID-146357
OriginalPostID-146357
Discussion posts and replies are publicly visible
Parents
0
Mike Schmitt
Certified Lead Developer
over 9 years ago
The answer to your original question, I think, is Yes - the first instance of "item" should actually be called as "ri!item" in the rule. But i think it'll work without that, confusion aside.
The simplest way to demonstrate this rule would be to call it from another expression rule. Since ri!item is of "Any Type" type, you can't actually force in an array when you use the "Test" functionality in the expression editor. But if you create a new / unsaved expression, you can pass in an array. Such as:
rule!CASE_APP_randomItemFromArray(
{ "first", "second", "third", "fourth" }
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Mike Schmitt
Certified Lead Developer
over 9 years ago
The answer to your original question, I think, is Yes - the first instance of "item" should actually be called as "ri!item" in the rule. But i think it'll work without that, confusion aside.
The simplest way to demonstrate this rule would be to call it from another expression rule. Since ri!item is of "Any Type" type, you can't actually force in an array when you use the "Test" functionality in the expression editor. But if you create a new / unsaved expression, you can pass in an array. Such as:
rule!CASE_APP_randomItemFromArray(
{ "first", "second", "third", "fourth" }
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data