How to Resubmit a Catalog request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2016 09:31 PM
Hi All,
We got a requirement that when a request is rejected at any level (either at the request level or requested item level) i need a RESUBMIT button on the RITM form so that the end user should be able to resubmit the request if required.
I am able to develop a RESUBMIT button but my issue is once the user click this RESUBMIT button the request and RITM workflows should get restart i.e again the request should go to approval and once it is approved the RITM should go for it's approval etc...
(Note: Here i don't want to create new approval records but the existing approval record should get update as requested and similar for the RITM )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2016 11:17 PM
Hi Kalaiarasan,
Thanks for the reply.
Actually i have tried using rollback .
But with that I am facing an Issue.
Actually in my case the restart of workflow should happen on click of a button called "RESUBMIT" and this button will be visible only when an item is rejected by the approver.
Onclick of this button i am setting a flag on RITM.
And in RITM workflow I kept a wait for activity which should wait for the flag set to true and then i am using a ROLLBACK .
But i don't know why the wait for activity is getting cancelled.
could you please help with this if you have an idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2016 06:44 AM
Workflows get cancelled if the request is cancelled/complete, it will go and cancel the open items along with their workflows. You wouldn't want to put a wait there because what if it is rejected and shouldn't be re-opened? Then you will have your workflows all hanging out waiting indefinitely.
What you could do at the request and requested item level, put a timer in place. When the item or request is rejected, wait a certain period of time before going ahead and cancelling everything. The workflow could do a wait for an event. If the resubmit is clicked, it submits the event to the workflow (look up the broadcast event in the workflow scripting page) and that triggers the rollback.
At the same time you could have a timer activity that allows x days or whatever you decide and if the item is still rejected, the item gets cancelled. Something along those lines. This would prevent it from waiting indefinitely.