Remote entities

In the business model definitions, you define whether an entity is related to another entity. You can then refer to this remote entity in the rule.

The following example shows a rule for an agent that is related to a flight and that processes rerouted flight events. The airport entity is a remote entity from the point of view of this agent because it is not the bound entity of the agent. In the definitions part of the rule, the variable 'the original destination' is computed from the remote airport entity, which is referenced by the bound entity 'the flight'. This definition has no error because read access is allowed on remote entities.

The second statement in the then part of the rule aims at removing the flight entity. The editor displays an error for this statement because modifying a remote entity is not allowed.

Example that shows how to use remote entities