How to Resubmit a Catalog request

nandithaparuchu
Kilo Contributor

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 )

6 REPLIES 6

staceyrocheleau
Kilo Guru

I know for requested items I can get around this type of issue by deleting their workflow context and setting their approval field so that the workflow gets kicked off again like the record was just approved and ready to run. For requests, it could be the same deal where you delete the workflow context perhaps but not sure how that would work for a request.



If you want to keep your workflow, you could set a field on workflows that allows multiple runs and then set the condition to be approval is requested on a request and it's active--kick off the workflow. Or you could have your script kick it off. The issue is that running a new workflow will generate new approval records. You would not re-use old ones.



The issue is that normally when a request is rejected, the workflow completes and the request is inactive. You'd be reopening it, resetting the stage, kicking off a new workflow or restarting the old one. It can be messy.



Run multiple option that is not normally visible on workflows can be added by going to your workflow version and adding the field. Please note that this will allow many versions of a workflow to run on one record so in this case, more than one workflow to run on that request record.


run multiple.PNG


Hi Stacey,


Thanks for your reply.
You have mentioned in your answer like you have an idea how to do this for item right?




could you please tell me how to do for a RITM?


Honestly, it gets really complicated because the request and items are connected. You could be dealing with everything being cancelled. I'd recommend doing wait for event and timer as I detailed below. That way your workflow doesn't end and cancel everything else but it doesn't hang around indefinitely either.