Skip to main content
Version: Next

Delete Relation

Deletes a relation between 2 objects

Description

Deletes a specified relation between 2 given objects. It is not necessary to check whether the two objects are related or not. In case no such relation exists between those two objects, the brick still returns successfully.

Let's take the following data model with two data types, and one relation between them:

Data type: Person

  • Attribute 1: name (string)
  • Relation 1: owns (Car)

Data type: Car

  • Attribute 1: brand (string)

Assuming that Person p owns Car c, the relation can be deleted by setting the following inputs:

  • origin: p
  • relation: Person -> owns
  • destination: c

Inputs

  • Control Flow (Control Flow)
  • origin (Object): The object from which the relation starts (as per the data model definition)
  • relation (Relation): The relation to be created from origin to destination
  • destination (Object): The object at the other side of the relation

Outputs

  • Control Flow (Control Flow)
  • origin (Object): The origin Object
  • Error Flow (Error Flow): Triggered if an error occurred