Policy Workflow Step 21

Upon completion, we click back on the ā€œapprove_pageā€ field and add an approval action step by clicking on the ā€œActionā€ button in the top navigation bar.

Again we add a tag and permission. Note that we choose the action type of ā€œselector.ā€ This allows us to add Options as fields to the UI for different types of selections – approval/rejection.

Note that for the approve option we are binding the action to the ā€œupdate_approve_document_statusā€ we defined before.

Note that for the reject option we are binding the action to the ā€œinstaller_rejectedā€ action we previously defined.

Next, we return to the ā€œapprove_documents_gridā€ step and add the ā€œapprove_documents_btnā€ action as a binding block to Field 4 since Field 4 captures the approval or rejection of the document. Note, the choice of block for Field 4 makes sense now, because the bound action is a block itself.

Programmatically this workflow step looks like this:

This completes the definition of the approval page.