- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2020 09:49 AM
Hello Guys,
Is it possible to reopen the catalog task after it is closed completed, if so please let me know how this functionality should be achieved( SC task should be reopened and put to work in progress and corresponding Requested item and request also should be put to work in progress)
Or else can anyone give me more ideas on how this process works i am new to snow and scratching my head to understand what is the best way to handle this reopening process of SC Task.
Please provide your valuable suggestions and any suggestions will be most welcome
Many thanks in advance!!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2021 12:46 PM
Here is the code we used to restart the workflow:
var ritm = current;
new Workflow().restartWorkflow(ritm, false);
ritm.update();
current.work_notes = "RITM workflow restarted";
current.update();
action.setRedirectURL(ritm);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2020 09:59 AM
Generally this is not a good idea. The workflow would also need to be restarted. In instances of a single task workflow, it may be OK, but what about more complex workflows? Do you restart the entire workflow? There isn't a way to restart the workflow in a particular activity. So you can see where this would add alot of complexity to account for.
If my reply has helped in any way, kindly mark it helpful/correct. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2020 10:14 AM
We have a single task workflow and the client is asking what if the end user asks to reopen the request.
Can you please give me more ideas on this part.
I am open to any suggestions:)
Thank you!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2020 02:31 PM
The method I used in a previous implementation was to put a true/false field on the catalog item called "Allow re-open". If true, a UI Action for "Re-open" was displayed on the task (or RITM). When clicked, the record was re-opened and workflow restarted. Hope this helps.
If my reply has helped in any way, kindly mark it helpful/correct. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2020 09:30 PM
I am really very thankful for providing me ideas on this, could you please share the script if possible and i have one more question regarding the workflow restart ( i am newbie and scratching my head to understand the process, could you please give some more thoughts on how to restart the workflow).
I am really very open to any suggestions and Thank you so much!!!
Thanks,