he signature phase for an event is made by the following process :
Then, the signature transaction in the proper sense is carried out :
When a user signs a receipt, the available variables in the context are as follows :
CHRONO | chrono for the event in which a signature has been carried out. |
USRDES | user code for the recipient. |
USRSIG | User code for signatory. |
USRMAIL | email address for the signatory, when the signature is made by an external http link. |
NUMORG | Chrono for the original event in which the first signature is carried out. |
USRORG | Recipient for this event. |
LEVSIG | Level of the signature (the original event carries the number 0, the events that carry on from this carries the successive numbers from 1). |
USRTOP | Principal recipient (the others are delegates). |
NUMGRP | Group of the event to be signed. |
CTX(1..15) | Variables for the context. |
S_USER | Recipient having triggered the original Workflow. |
S_CLEOBJ | Key for the triggering (object or regrouping). |
S_ABREV | Abbreviation of the object for the original Workflow. |
S_NBRUSR | Number of users defined in the original Workflow rule. |
The variables grid REPCHR is used to identify if other recipients for the same event have already signed. The number of groups is counted (a group is equal to a line in the signatory grid, once a delegate has signed, the event is signed and cannot be signed a second tome by another member of the group).
The situation is then :
REPCHR(0) = number of responses that remain to be carried out : if for example if there are 4 lines of signatories in the event description and that only one has signed, this value is equal to 3.
REPCHR(NO), where NO can be a value between 1 and 10, gives the number of signatories that have responded with the response placed in the line number NO in the responses grid.
These variables are then notably used to condition the follow on stages by the fact that the last signature is waiting a response or to work on the majority logic for the signature.