fields
) along with their data types.User
class?" In rules term:getTypes()
method.WidgetsRuels.oss
) to describe, for instance, a mapping from field data type to UI component. Example: "If it's a Boolean (isAngularDeveloper
) and we're editing, use the Checkbox component."User.oss
). These are a convenient place to express presentation-oriented rules that really don't belong in (UI agnostic) domain classes.