Description

The SourceRelation component is used to define the possibility of a relation between a source and another component. SourceRelation is informative and is used in views.

It must be added in a Node and applies to all sources that are assigned to that Node.


Implementation

  • Add a SourceRelation in a Node
    • The name of the SourceRelation is the name of the relation that can be created. Ensure it is given a correct format (e.g.: b:tenantOf)
    • It is possible to enter a relation for any dictionary
    • If no dictionary is entered, the relation will be created in the BtibDictionary (and will thus add a b:)


Properties

  • Status: Status of the SourceRelation. Can be {ok}, {fault}, {disabled} or {null}. See the corresponding actions
  • FaultCause: Message that complements the state of the SourceRelation (generally used to explain the reason for an initialization failure)
  • Tip: Description of the relation. Used in views (in particular AssignmentView on the InfoSource)
  • RelateHints: Allows selection of the components with which the source can be linked
  • AllowMultiRelations: Allows link to multiple components
  • Direction {In, Out}: Direction of the relation to be created with respect to the source. In: from the component to the source, Out: from the source to the component


Actions

  • Initialize: Initializes the SourceRelation and changes its state to {ok} or {fault}. Does not add a relation. (It plays an informative role for views)
  • Disable: Disables the SourceRelation and changes its state to {disabled}. Does not change relations but disables the views
  • Clean: Clears the SourceRelation and changes its state to {null}. Deletes the relations matching its configuration in the sources. This action is not reversible and must be performed before the permanent deletion of the SourceRelation