About Specifying Test Order
There is always the possibility that two different tests will result in opposite outcomes, leaving doubt about whether or not the trip should be allowed.
- The eligibility condition matches.
- The client ID matches or there is no client ID, meaning that the test applies to all clients with this eligibility condition.
- Outcome if no conditions
- Used for clients with no eligibility conditions.
If set to Allow, then if the client for whom the trip is being booked has no eligibility condition, the trip should be allowed.
If set to Deny, the trip would be denied.
The default is Allow, which means that the trip will be allowed.
- Outcome if no perform
- Used if an eligibility condition is set to do not perform tests.
- Outcome if no tests
- Used for testable conditions that have no associated tests.
If set to Allow, then if an eligibility condition has Perform Tests selected, but has no relevant test associated with it, the trip should be allowed.
If set to Deny, the trip would be denied.
The default is Allow, which means the trip will be allowed.
In most cases, there will be one or more relevant tests. To handle the variations in local methods, the order of precedence of evaluating the tests can be defined using the Test Order system property so that the outcomes as defined below are ranked in their order of priority. If there are no test outcomes matching the criterion, the logic goes to the next test evaluation in the list.
- All required tests match
- Not all required tests match
- At least one sufficient test matches
- No sufficient test matches
- At least one deny test matches
- No deny test matches
- If there are no conditions for the client, then the outcome is determined based on Outcome if no conditions property.
- If there are conditions but Perform Tests is not selected on all of them, then the outcome is determined based on Outcome if no perform property.
- If there are performable conditions but no tests associated with those conditions, then the outcome is determined based on Outcome if no tests property.
- If there are performable conditions with tests, then outcome is based on the Test Order hierarchy.
| Test | Outcome | |
|---|---|---|
| A | Not all required tests match | Trip is denied |
| E | No sufficient test matches | Trip is denied |
| F | All required tests match | Trip is allowed |
| B | At least one sufficient test matches | Trip is allowed |
| C | At least one deny test matches | Trip is denied |
| D | No deny test matches | Trip is allowed |
| Test | Outcome | |
|---|---|---|
| C | At least one deny test matches | Trip is denied |
| A | Not all required tests match | Trip is denied |
| E | No sufficient test matches | Trip is denied |
| F | All required tests match | Trip is allowed |
| B | At least one sufficient test matches | Trip is allowed |
| D | No deny test matches | Trip is allowed |
| Test | Outcome | |
|---|---|---|
| A | Not all required tests match | Trip is denied |
| B | At least one sufficient test matches | Trip is allowed |
| C | At least one deny test matches | Trip is denied |
| D | No deny test matches | Trip is allowed |
| E | No sufficient test matches | Trip is denied |
| F | All required tests match | Trip is allowed |