User allocation rules
An allocation rule is associated with a Workflow rule. It is used to define the destination users by means of a value grid named [L]USER, with indices from 1 to a maximum value defined by the AWR activity code.
These destination users are specified in the form of users codes, entered in a screen intended for the person responsible for the defintion of the signature circuits, via the rule values entry function. Each list of destination users is drawn up using criteria that depend on the context. The user responsible for defining the signature circuit will then be in a position to enter the criteria value combinations and to assign them the corresponding destinations users.
This parameterization function is used to create and update the allocation rules, by defining the maximum number of signers returned by a rule, as well as the criteria whose combination defines the signers.
When executing the allocation rule:
- The criteria are calculated by simple evaluation or by aggregation on a group of lines by an operator such as sum, average, minimum, maximume etc. Each of the criteria thus calculated is compared (using an operator that can be freely defined) to the values entered in the rule.
- The result of the criteria evaluation is stored in a variable grid named VALEXP, the index ranging from 1 to the number of columns of criteria. Thus, they can be used in the rest of the Workflow rule. It should be noted that some criteria, whose values are interesting for the rest of the Workflow process, can be unable te determine the destination users (they will be given the Indifferent operator).
- Depending on the obtained combination, the [L]USER grid is transmitted and can be used by the Workflow rule.
Prerequisite
Refer to documentation Implementation
Screen management
Only one tab is necessary to manage the allocation rules.
Entry screen
It contains on the one hand the maximum number of destination users that can be entered, and, on the other hand, the criteria list and the associated rules that will enable the concerned destination users to be defined. It should be noted that the execution right related to the access code assigned to the rule controls the right to enter values for this rule.
Block number 1
Assignment rule (field REGLE) |
This code identifies the current record in a unique way. |
Company (field CPY) |
An allocation rule can be defined for specific companies (and in this case, a record will be ceated to mention the company code for each concerned company). It can also be defined for all the other companies (then, this code is empty). |
Description (field INTIT) |
Use this field to assign a description to each record. |
Characteristics
Access code (field ACS) |
This access code makes it possible to prohibit access to the current record for some users. If the field is populated, only users that have this access code with read access rights (and write access rights respectively) can view (or with write access rights, modify) the record. |
Data model (field MODELE) |
This compulsory field is used to define the data model whose tables are accessible when evaluating the allocation rule. This model must necessarily be the same as the one asociated with the Workflow rule using the allocation rule. |
Table line (field TABLIG) |
This field can only be entered if the data model contains line tables associated with a header. If one of the line tables is entered, this is the table that will be run through to determine the Workflow recipients. A Workflow using the corresponding allocation rule will necessarily be of Line type. |
Abbreviation line (field ABRLIG) |
Number of signatures (field NBRUSR) |
This field defines the maximum number of users returned by the rule in the USER grid. The screen generated by the validation of the rule will contain, in addition to the criteria columns, as many User columns as there are returned values. This number can range from 1 to a maximum value defined by the AWR activity code. |
Table to browse (field TABFLD) |
The table entered here is the table being run through to evaluate the line criterion. If this table is linked to the line table of the rule (or to the main table of the model, in the absence of the line table) by means of a (1,N) type link, a synthesis operator will be entered to specify how to aggregate the N values contained in the lines. |
Abbreviation (field ABRFLD) |
Synthesis operator (field SYNFLD) |
This field is entered when the field used as criterion is located in a table linked to the model main table a with a (1,N) link. In this case, the value obtained for the criterion corresponds to the aggregation of a group of lines, and the operator entered here is used to specify the calculation method. The Sum and Average aggregation operators can only be used if the criterion is a numerical one. The Minimum and Maximum operators can be used in all cases. |
Criteria (field EXPFLD) |
This expression is evaluated when using the allocation rules, and the resulting value (which may be aggregated on several lines depending on the following operator) is compared to the list of values entered in the rule, in order to determine which lines should be used (and hence which users must be returned by the rule). |
Operator (field OPEFLD) |
The operator entered here is used to compare the criterion value with the fields entered in the rule values. Beside the standard equality and inequality operators, the As operator is used, to allow character values to be entered with jokers, and the Indifferent operator is also used, to signify that the value is not used as a user allocation criterion but is transmitted to the calling Workflow rule to be used elsewhere. |
Description (field INTFLD) |
This expression is used to give a title to the entry column for the criterion corresponding to the operating rule. It is then evaluated when entering the rule values. If this field is empty, and the criterion is a field extracted from one of the database tables, the title of the dictionary is the one to be automatically used (in the user language connection). |
Data type (field TYPFLD) |
This field defines the data type associated with the criterion entry. When a field extracted from one of the tables in the database is chosen as a criterion, its type is proposed by default. |
Length (field LNGFLD) |
When the value to be entered in the criteria screen is of character string type, it is possible to specify the maximum field length. |
Local menu no. (field LIBFLD) |
When the value to be entered in the criteria screen is of Local menu type, it is possible to specify the number of the local menu to be used. |
Parameter (field PARFLD) |
When the field associated with the criterion is controlled by a table with a key subdivided into several parts (for instance, the miscellaneous tables, the translatable texts), the additional key component is entered here to establish a link with the table. |
Link (field LNKFLD) |
When the value to be entered in the criteria screen in controlled by another table, it is possible to display a title associated with the entered value: The possible choices are No (no display), Long (display of the long title), Short (display of the short title). |
Default value (field DEFFLD) |
This expression, if it exists, is evaluated when entering the allocation rules to give a default value to the field. |
Specific Buttons
Copy
This button is used to recopy an allocation rule to another folder. Block number 1
Block number 2
|
Block number 1
Assignment rule (field REGLE) |
It defines the rule code used to allocate users. This is the code that is referenced in the Workflow rule. |
Company (field CPY) |
An allocation rule can be defined for specific companies (and in this case, a record will be ceated to mention the company code for each concerned company). It can also be defined for all the other companies (then, this code is empty). |
Description (field INTIT) |
Use this field to assign a description to each record. |
Formula/user (field FLGFOR) |
This field is used to enter formulae on the "User" fields. |
Grid Default user
User code (field AUSDEF) |
Last name (field AUSNAM) |
The name of the recipeint is displayed opposite its code. |
Grid Values
Line no. (field NUMLIG) |
field VAL0 |
The criteria values used to find out the rule recipients are entered here. |
Description (field LNK0) |
If the criterion is controlled by a table, and if this is planned by the allocation rule parameterization, the long or short title of the linked record is displayed. |
field VAL1 |
The criteria values used to find out the rule recipients are entered here. |
Description (field LNK1) |
If the criterion is controlled by a table, and if this is planned by the allocation rule parameterization, the long or short title of the linked record is displayed. |
field VAL2 |
Description (field LNK2) |
field VAL3 |
Description (field LNK3) |
field VAL4 |
Description (field LNK4) |
field VAL5 |
Description (field LNK5) |
field VAL6 |
Description (field LNK6) |
field VAL7 |
Description (field LNK7) |
field VAL8 |
Description (field LNK8) |
field VAL9 |
Description (field LNK9) |
field USR0 |
The recipients corresponding to the line criteria combination are entered here. |
field USR1 |
field USR2 |
field USR3 |
field USR4 |
field USR5 |
field USR6 |
field USR7 |
field USR8 |
field USR9 |