Can I ask the user to enter their credentials when they click an Approve button?

1
0
-1

I would like to have an Approve or Reject workflow that will force the participant to enter their password again when they select either Approve or Reject. This is a regulatory requirement for my industry. I am new to Bonita BPM and would like to know if this is possible. I have already search through the forums and Google with no luck.

Thank you in advance for any assistance on this subject.

1 answer

1
0
-1

Hi,

Basically, inside a form container, you will have two main containers. One that contains the normal form and one that contains the password confirmation.

The password confirmation container will be built as a modal as described in this tutorial and be displayed when you click either on Reject or Approve the initial form. The modal contains a input field for the password confirmation and a submit button to submit the form.

The button Reject and Approve will just add the info about the action in a "modal" collection. The modal collection will control the display of the modal AND carry the information about the reject or approval to the backend.

The initial container can be hidden when the modal is displayed by adding a condition like this on the hidden parameter of the container: modals.length > 0

Hope this helps.

Cheers

Comments

Submitted by brent.irwin on Thu, 08/03/2017 - 21:16

Thank you for the quick response. I am a little confused on your third paragraph. Without the password request, clicking the Approve or Reject button will trigger the next step in the process. What I want to do is intercept the next step with a password request and when a good password is provided, the next step is triggered. If a bad password is provided, the next step is not triggered.

Is that what you meant by "AND carry the information about the reject or approval to the backend."? If so, then I will mark your answer as correct.

I totally understand creating the hidden modal for the password form.

Yes, this helped very much.

Thank you.

Submitted by Lionel Palacin on Thu, 08/03/2017 - 21:21

In my example, the action on the buttons Reject and Approve won't be "Submit Task" but "Add to Collections". In that case, the click on either of these buttons won't submit the task but trigger the display of the modal as described in the documentation.

What differs with the documentation here is that instead of adding an empty object to the collection "modals", you can add "Reject" or "Approve" depends on the button clicked.

Notifications