The CreatorCon Call for Content is officially open! Get started here.

How to add manual approver on the fly

jt110
Kilo Contributor

Hi,

I want to add manual approver on the fly, means if any workflow approver want to add a new approver in between, then he should be able to add. and after approving from the manually added approver, the request should move to further activity in the workflow.

please help.

5 REPLIES 5

conmic
Mega Guru

Hello Jeetendra,



I have never done this, however have a look at the "Managed Documents" application. There is something out-of-the-box that might fit your needs, you could adapt it to your purposes:



  1. On the table "dms_document" you can find a UI Action called "Add Approver". Clicking on that UI Action will pop up a form that allows you to add approves to an existing dms_document record.

    You could just copy the logic of that button and the UI page that is rendered and adapt it to your needs.

  2. Then take the workflow "Document Management Default" assigned to the "dms_document_revision" table. You can just copy the logic that handles the added approvers and adapt it to your needs in your own workflow.

larstange
Mega Sage

Hi,



I dont think that will work with the normal approval workflow activities. They will not be aware of the additional approvers added and will just continue when answers have been given by the approvers added by the workflow.



You will probably have to add your own logic in the workflow after the approval (on the approved output) activity where you check if there are still any open approvals on the record and then you have to monitor this and wait for it to be approved or rejected.


Hope it can help you.




I've configured once a manual approval.


The only thing is that this approval will be "independant" of the other activities.



1/ Create a subworkflow like the following


You may not do the same as me and reject the request in case your approval is rejected. It's up to you.


On my workflow a manual approval will never close the request.


manual_sub_workflow.JPG



2/ The tricky part


Insert this subworkflow on your workflow.


I will let you decide this part.


Thank you everyone, in the next couple of days I will implement these suggested solutions and come back to you.