Allowed Changes (TMF Tools) - Xyna-Factory/xyna GitHub Wiki
When using TMF Tools, AllowedChanges is a feature for validation of changes of TMF services.
Where Constraints are very generic and check for consistency of a service, allowed changes are effectively white lists of which service properties are allowed to be changed together. That means in contrast allowed changes are specific for the use case of modifications of services and look at the difference between the current and the newly planned properties of a service.
Allowed changes split into different lists. The list entries are to be provided as JsonPath expressions.
- allof: Set of lists where each list specifies the service properties that have to change together, i.e. no other changes are allowed, and all of the entries of the list have to be changed.
- anyof: Set of lists where each list specifies the service properties that may change together, i.e. no other changes are allowed, but is ok if only some (or none) of the specified properties change.
- ignored: Entries in here are ignored when checking the allof/anyof lists.
During validation all allof and anyof lists are checked against the modification set of the service. If at least one list is found to be applicable, the validation is successful.