Custody of a load
Identify a custody transfer with its participants and roles.
Model
A transfer relates the load, the two organizations, the place and the moment. The unity of the relation makes it possible to query the same transfer by any of those roles.
module exemplos::custodia {
type Carga
type Organizacao
type Local
type Instante
relation TransferenciaCustodia {
role carga: Carga
role cedente: Organizacao
role recebedor: Organizacao
role local: Local
role momento: Instante
}
}
Verification
Formation accepts the relation with five typed roles. The execution scenario must keep the unity of the transfer when querying transferor and transferee.
The complete source is at exemplos/01-custodia/modelo.fsl in the package. The script verificacao/verificar_exemplos.py runs the formation with the indicated binary and records the result. Formation and the execution of applications are separate gates in the report.