- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2024 11:54 AM
Hi,
I created a scheduled job to auto close the resolved RITMs. PFB the script. But when this script was executed it triggered the workflow again for most of the resolved RITMs and because of that all the related task are created again. Please let me know what i did wrong.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2024 12:39 PM
Hi @Sarabjeet1 ,
Try gr.setWorkflow(false) before gr.update() line.
This will stop any workflow or BR to execute when u r executing ur script.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2024 12:33 PM
@Ankur Bawiskar Please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2024 12:39 PM
Hi @Sarabjeet1 ,
Try gr.setWorkflow(false) before gr.update() line.
This will stop any workflow or BR to execute when u r executing ur script.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2024 10:39 PM
Hi @Sarabjeet1,
What is the label of the state where the value = 50?
A few things to check:
- Use an integer for setting the 'state'. i.e. gr.state = 50;
- Is '50' part of the RITM's 'state' close_states attribute?
- Are you saying it's only a few RITMs that are triggered again? If so, how are they different from those who didn't? e.g. check the fields' values such as the 'active', 'state', and etc
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2024 11:49 PM
Hi James,
1. The label for 50 is closed.
2. yes it is part of RITM's 'state' attributes.
3. I found no difference or change . These workflow are not new and were perfectly fine.