Competence and candidate
Represent separately the authorized person and the equipment assessed for an activity.
Model
The relations have different targets: one relates the person to the activity; the other identifies the assessment of an equipment for that activity. The authorization and admission judgments use the corresponding bases.
module exemplos::competencias {
type Pessoa
type Equipamento
type Atividade
type Avaliacao
relation CompetenciaParaAtividade {
role pessoa: Pessoa
role atividade: Atividade
}
relation AvaliacaoDoCandidato {
role avaliacao: Avaliacao
role equipamento: Equipamento
role atividade: Atividade
}
}
Verification
Formation keeps the categories distinct. The execution scenario must admit combinations in which only one of the requirements is satisfied.
The complete source is at exemplos/04-competencias/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.