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
Sometimes, you want to populate a property value with a static value. This value could be the same for every object instance, but it could also be different. For example a "domain" attribute with a static value, which may differ based on the type of the source root.
Proposal
Introduce a static property for a PropertyMapping containing 1 or more static values
For every individual value, optionally provide a matching condition using ifMatchType.
During processing, apply the first value where the matching condition evaluates to true or no matching condition is set.
The static and pathMappings properties are mutually exclusive.
Sometimes, you want to populate a property value with a static value. This value could be the same for every object instance, but it could also be different. For example a "domain" attribute with a static value, which may differ based on the type of the source root.
Proposal
static
property for aPropertyMapping
containing 1 or more static valuesifMatchType
.true
or no matching condition is set.static
andpathMappings
properties are mutually exclusive.Example
When the value is conditional for a single type, a compact notation could be used:
Which is basically the shorthand equivalent for:
When the value is not conditional, a compact notation could be used:
The text was updated successfully, but these errors were encountered: