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
2403 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi Guys, I have in my application two kinds of users that belongs to the sa
ederm160
over 9 years ago
Hi Guys,
I have in my application two kinds of users that belongs to the same GROUP(OU-ABC):
1. Actived users (VISIBLE)
2. Deactived Users (NOT VISIBLE)
The problem is that i have a rule that assign tasks to users in the aplication using the internal Id created by default when a user is created in appian plataform. But the application is assigning tasks also to DEACTIVED USERS, is this behaviour correct ???
OriginalPostID-199817
OriginalPostID-199817
Discussion posts and replies are publicly visible
Parents
0
siddharthg837
over 9 years ago
This is one of the common scenario wherein the deactivated/invalid users needs to be handled.
How are you managing the users to whom tasks are getting assigned ?
Essentially before the task gets assigned the system should be checking weather th the user is an active/valid user or not. If yes its only then the task gets assigned - else for inactive users your exception workflow gets triggered wherein you do the required business logic as required.
The expression to check the valid users looks something like:
= if(
rule!Utils_CheckIsNull(
ri!user
),
null,
if(
IsUsernameTaken(
ri!user
),
user(
ri!user,
"firstName"
) & " " & user(
ri!user,
"lastName"
),
ri!user
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
siddharthg837
over 9 years ago
This is one of the common scenario wherein the deactivated/invalid users needs to be handled.
How are you managing the users to whom tasks are getting assigned ?
Essentially before the task gets assigned the system should be checking weather th the user is an active/valid user or not. If yes its only then the task gets assigned - else for inactive users your exception workflow gets triggered wherein you do the required business logic as required.
The expression to check the valid users looks something like:
= if(
rule!Utils_CheckIsNull(
ri!user
),
null,
if(
IsUsernameTaken(
ri!user
),
user(
ri!user,
"firstName"
) & " " & user(
ri!user,
"lastName"
),
ri!user
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data