You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user, in this case DAGL+REGNA+UTINN, fills out the form, signs it, and then another user, REVI, signs. This completes the process.
At each confirmation stage, there is choice between rejecting and signing the document.
If the user presses the sign button, then a signature is added.
If they press reject, then no signature is added.
In applicationmetadata.json both of the processes are defined with a minimum count of 1 for signature:
However, it is still possible to complete the process without all the signatures.
The logic for the first signature is seemingly good.
If DAGL first signs the form, it ends up in the inbox of REVI.
If DAGL rejects the form, it will not end up in the inbox of REVI
But for the second signature, the process is as follows:
If REVI signs the form, then the form is submitted with two signatures
If REVI rejects the form, then the form is submitted with one signature (DAGL)
This should not happen, as each of the Tasks have a minimum count of 1 on each of the signatures.
Steps To Reproduce
This can be reproduced with the existing signing-test app.
However, this app is created with minCount: 0, so this first needs to be changed to 1 for both signatures. Furthermore, REVI also has the opportunity to reject a form. As such the following code needs to be added:
In applicationmetadata.json minCount has to be increased to 1 for both signatures:
This turned out to be a local testing issue. When testing on test environment the form was not added to the inbox if the form-filler pressed reject instead of sign.
It seems it is not a local testing issue after all. After testing my own app in tt02, I noticed the form is still submitting even though there is a lack of signatures. I have edited the issue to reflect this change
Description of the bug
The app in the making follows this process:
The user, in this case DAGL+REGNA+UTINN, fills out the form, signs it, and then another user, REVI, signs. This completes the process.
At each confirmation stage, there is choice between rejecting and signing the document.
In applicationmetadata.json both of the processes are defined with a minimum count of 1 for signature:
However, it is still possible to complete the process without all the signatures.
The logic for the first signature is seemingly good.
But for the second signature, the process is as follows:
This should not happen, as each of the Tasks have a minimum count of 1 on each of the signatures.
Steps To Reproduce
This can be reproduced with the existing signing-test app.
However, this app is created with
minCount: 0
, so this first needs to be changed to1
for both signatures. Furthermore, REVI also has the opportunity to reject a form. As such the following code needs to be added:In
applicationmetadata.json
minCount has to be increased to 1 for both signatures:In
policy.xml
the follwing rule (Ruleid2) needs to be changed to:In
process.bpmn
the reject action needs to be added for Task_3 as well:Lastly, in
App/ui/confirm2/layouts/Confirm.json
add a button for Reject:Then complete the steps as followed:
Alternatively use the app I am currently working on (and where the issue was first noticed) here
Additional Information
The text was updated successfully, but these errors were encountered: