Skip to content

Shadow Class

A Shadow Class is a Class or an Enumeration that is defined in another business object. It is a read-only, unchangeable representation of the actual Class or Enumeration, presented in your opened Model so as to help your

  • See its definition, without having to navigate to its Model
  • Use it in an Association with another Class

New Shadow Class

To add a Shadow Class, click the + button at the bottom right of the canvas and choose New Shadow Class.

The add button menu, with New Shadow Class

Alternatively, you can right-click an empty part of the canvas and choose New Shadow Class from the menu.

The canvas menu, with New Shadow Class

Either way, a Select Class window opens. It lists the classes and enumerations that other business objects define, including the ones of the template, such as ApplicationUser:

The Select Class window

At this point, you can:

  • Filter by business object, or search by class name
  • Select the class or enumeration you wish to bring
  • Press Ok

The Shadow Class is shown in the editor straight away. It has a dashed border, and under its name it shows the business object that defines it. In the example, SupplierBO shows the Product class of ProductBO:

A Shadow Class, Product, in SupplierBO

Hint

A Shadow Class always shows the business object in which it is defined. Click the name of that business object to be taken to its editor.

A Shadow Class is read-only. To change Product, open ProductBO. To use it, draw an association from one of your own classes to it, as you would with any class.