How to check the field is empty or not in workflow

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 10:00 AM
Hi All,
how to check the field (owner) is empty or not when the approver approves the RITM, If the field is empty then stop the form submission and show pop up message in workflow using which activity.
How can we achieve this
Anyone please help.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 10:03 AM
You can use any of the following ways.
if(owner)
or
if(owner!='')
or
if(!gs.nil(owner))
However, you will not be able to show an alert or stop the form submission via workflow script

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 10:16 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 11:03 AM
You can try creating an onBefore update business rule on sysapproval_approver table and in the business rule script check if the owner field is empty for the RITM. if yes then show error using gs.addErrorMessage and use current.setAbortAction(true); to abort the transaction.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 12:06 AM
Hi Sandeep,
Can we achieve this in catalog client script because writing business rule on sysapproval_approver will cause performance issue
I want to restrict the approval when the approver approve the RITM but I a not able define this condition in catalog script or workflow
Is there any other possible way to do this or BR is the only way to implement this?
Can you please help
Thanks