-
Notifications
You must be signed in to change notification settings - Fork 0
/
autobot.jh
61 lines (47 loc) · 1.3 KB
/
autobot.jh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
enum Status {
SUCESSO, FALHA, FALHA_TEMPORARIA
}
enum TipoPlano {
UNITARIO, SEGURANCA, SISTEMA, AMBIENTE,INTEGRACAO,DESEMPENHO
}
entity Atividade {
nome String required maxlength(80),
comando String required maxlength(100),
pararNaFalha Boolean
}
entity Plugin {
nome String required maxlength(80),
comando String required maxlength(100)
}
entity Projeto {
descricao String required maxlength(80),
detalhes String maxlength(80)
}
entity Plano {
descricao String required maxlength(80),
detalhes String maxlength(80),
tipo TipoPlano
}
entity Script {
descricao String required maxlength(100),
path String required maxlength(500)
}
entity ExecutarPlano {
descricao String required maxlength(80),
detalhes String maxlength(80),
pararNaFalha Boolean
}
entity LogExecutarPlano {
criado LocalDate required,
finalizado LocalDate,
mensagem String maxlength(8000),
status Status
}
relationship OneToMany {
Projeto to Plano{projetos(descricao)},
Plano to Atividade{plano(descricao)},
Script to Plano{scripts(descricao)},
Plugin to Script{plugin(nome)},
Plano to ExecutarPlano{plano(descricao)},
ExecutarPlano to LogExecutarPlano{execucao(descricao)}
}