108: IF l_approver_table.COUNT <> 0 then
109: -- Check if the ADHOC role already exists
110: IF l_role_exists = 'Y' THEN
111: -- If the role exists, then empty the existing role list
112: wf_directory.RemoveUsersFromAdHocRole
113: (role_name => l_role_name,
114: role_users => NULL);
115:
116: -- Add the users we have identified to the role list.
113: (role_name => l_role_name,
114: role_users => NULL);
115:
116: -- Add the users we have identified to the role list.
117: wf_directory.AddUsersToAdHocRole
118: (role_name => l_role_name,
119: role_users => l_users);
120: ELSE
121: -- Create an ADHOC role for the approver list and add the
119: role_users => l_users);
120: ELSE
121: -- Create an ADHOC role for the approver list and add the
122: -- users.
123: wf_directory.CreateAdHocRole
124: (role_name => l_role_name,
125: role_display_name => l_role_display,
126: role_users => l_users,
127: expiration_date => NULL);