- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 06:45 AM
I have a requirement to close catalog task without filling in mandatory fields like assigned to/work notes which are set mandatory using data policy. I want this closure to happen in the workflow run script that is server side.
Is there any way to achieve this requirement?
Please provide your valuable inputs as I am struggling with this from many days.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 04:55 AM
I have used gr.setUseEngines(false) in my code. After my code runs i have used gr.setUseEngines(true), so that all other things will run fine.
And this has resolved my issue..

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 08:17 AM
If you remove data policies and replace them with UI Policies I believe you will be able to script the closer of the task.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 08:40 AM
Hello,
Thanks for your reply.
Is there any other way to do this? I am afraid if deactivating data policy will impact anywhere else.
I just want this to work for one workflow run script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 08:23 AM
Hi @Shruti Chelimel ,
I think you should go with UI Policy here.
g_form.checkMandatory = false;
Please mark this as helpful/correct for others to benefit from this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 04:55 AM
I have used gr.setUseEngines(false) in my code. After my code runs i have used gr.setUseEngines(true), so that all other things will run fine.
And this has resolved my issue..