- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 06:05 AM
Hi everyone, hope you are doing wonderful!
I have a Business rule that I need to change to meet some requirements but I am with some doubts on how to do it
The requirements are:
Run only for interactive sessions.
If conditions should be added to main Business rule condition.
The Business part that I need to change is the following:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 06:14 AM
so Your complete BR condition becomes
(gs.getUser().hasRole('admin') || gs.getUser().hasRole('sn_hr_core.basic')) && !gs.getUser().hasRole('itil') && gs.getSession().isInteractive()
Which is
Session is interaction
AND
User has admin or sn_hr_core.basic Role
AND
USer does not have ITIL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 06:10 AM
interactive session can be checked using this
gs.getSession().isInteractive();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 06:14 AM
so Your complete BR condition becomes
(gs.getUser().hasRole('admin') || gs.getUser().hasRole('sn_hr_core.basic')) && !gs.getUser().hasRole('itil') && gs.getSession().isInteractive()
Which is
Session is interaction
AND
User has admin or sn_hr_core.basic Role
AND
USer does not have ITIL