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
3 replies
Subscribers
7 subscribers
Views
1109 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Example: We are assigning resources to a ticket. The project manager goes into
mikec
over 10 years ago
Example: We are assigning resources to a ticket. The project manager goes into the ticket, clicks a button that says "assign resources" and is then taken to a form that contains a pre-defined list of resources at his disposal based on what group he belongs to. The PM selects 5 resources and the values saved off are 1,2,3,4,5 along with the ticket ID for association into a multi-value pv. Now some time later resource 5 is moved off of that ticket. So the PM goes into that ticket and deselects employee with the id 5. The multti-value field now contains the ids 1,2,3,4. I want to be able to send an email notice to employee 5 that they are no longer assigned to that ticket.
In the flow prior to editing the resources I capture in a script task the values (in this case 1,2,3,4,5) that are in the pv. Upon exiting the form I check the newly updated pv against the preedit pv (this is a Boolean that says TRUE a change has been detected)...
OriginalPostID-106380
OriginalPostID-106380
Discussion posts and replies are publicly visible
0
mikec
over 10 years ago
.... Anyway to use this or is there a better way to say "hey employee 5 is now not assigned to this ticket so send him an email that says you are no longer assigned to ticket id X")
Thanks!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Bishnu Panigrahi
Appian Employee
over 10 years ago
You can try the symmetricDifference function. symmetricDifference({1,2,3,4,5},{1,2,3,4}) results in 5. So you know exactly which user has been removed.
forum.appian.com/.../Set_Functions
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mikec
over 10 years ago
Thanks Bishnu! I'll take a look at that.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel