- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2019 07:22 AM
Hi folks,
Is there a way to mark all rejected hr cases in a single script? I am thinking to create a True/False field which will turn to true when a user clicks on ˇreject completionˇ or no in the HR portal.
I wanted to write a business rule on sn_hr_core_case table, but since so many tables are inherited from it, I guess that it will not work.
Any pointers on how to achieve this?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2019 09:31 AM
Hey Lemajeur,
So for the Business Rule way, I don't see why you could not use that with a true/false field. When Case is rejected in HR, it typically goes from Awaiting Acceptance State to WIP State (for us it does anyway).
I built a BR and True/False field on the HR Case Core Table (then within the other tables you would be using this for, you just need to configure the layout for their form to add the new field where you want it).
Here is what I did, and it works each time any case changes from Awaiting Acceptance to WIP (which constitutes as a "case being rejected for completion"):
However, if you are looking to report off of something like this, you may want to build something additional to move this field back to false when the Case is moved into Awaiting Acceptance again (or just have the Assigned To trained to uncheck the box when they attempt to resolve again).
Hope this helps - Let me know if it does or does not work for you. Maybe we can brainstorm more or another option.
Cheers!
-Rob

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2019 08:48 AM
Yes, you can create a background script for marking all the existing Rejected HR Cases one go. Another thing you can do is
1. Create a True/False field on the HR Case table.
2. Modify UI Page: HR Comment Dialog & look for Processing script that has rejectCompletion() method used. Add line task.u_yourfield_name=true; below task.state=8;
3. Update the script.
This would imply that any HR Case that has Reject Completion clicked will set the True/False field that you would be creating update accordingly.
Thanks,
Jaspal Singh
Hit Helpful or Correct on the impact of response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2019 02:03 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2019 09:31 AM
Hey Lemajeur,
So for the Business Rule way, I don't see why you could not use that with a true/false field. When Case is rejected in HR, it typically goes from Awaiting Acceptance State to WIP State (for us it does anyway).
I built a BR and True/False field on the HR Case Core Table (then within the other tables you would be using this for, you just need to configure the layout for their form to add the new field where you want it).
Here is what I did, and it works each time any case changes from Awaiting Acceptance to WIP (which constitutes as a "case being rejected for completion"):
However, if you are looking to report off of something like this, you may want to build something additional to move this field back to false when the Case is moved into Awaiting Acceptance again (or just have the Assigned To trained to uncheck the box when they attempt to resolve again).
Hope this helps - Let me know if it does or does not work for you. Maybe we can brainstorm more or another option.
Cheers!
-Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2020 08:39 PM
Hmm, for a business rule report, is this a Performance Analytics product (we do not have this).
I just don't see any option for a Business Rule report or anything related in the Filter Nav.