ANNEXE
PRÉSENTATION DU CONTENU DES
FICHIERS GÉNÉRÉS PAR LSAWFP
EDITOR
Dans cette annexe, nous présentons des extraits de
fichiers générés par notre outil. Nous commençons
par le contenu du fichier de sauvegarde graphique (.ggmawfp) de notre
exemple courant. Nous présentons par la suite, le DSEL JSON que
nous avons proposé pour la sauvegarde des spécifications dans un
format interopérable, pour l'ensemble des outils du projet. À
titre illustratif, nous présentons le fichier de sauvegarde
interopérable (.gmawfp) de notre exemple courant. Nous
terminons par la présentation d'un extrait du fichier BPMN XML 2.0
de cet exemple, généré après export sur LSAWfP
Editor.
Extrait du fichier de sauvegarde graphique
|
1
2
3
|
"scenarios": [
{
"id": 1,
|
|
|
|
|
|
|
4
|
"name": "scen-min",
|
|
|
|
|
|
|
5
|
"beingEditedNode": {
|
|
|
|
|
|
|
6
|
"task": {
|
|
|
|
|
|
|
7
|
"symbol": "D",
|
|
|
|
|
|
|
8
9
|
"desc": "Redaction
renvoi a l' ED",
"type": "Classic"
|
du
|
motif
|
de
|
rejet
|
et
|
|
10
|
},
|
|
|
|
|
|
|
11
|
"status": "Closed",
|
|
|
|
|
|
|
12
|
"production": {
|
|
|
|
|
|
MÉMOIRE - TONLE NOUMBO FRANCK BRUNO
URIFIA
13
|
14
15
|
PRESENTATION DU DSEL JSON
|
|
68
|
|
|
|
|
"prodName": "",
"prodLhs": "S2",
"prodRhs": {
|
|
|
|
16
|
"rhsType": "Sequential",
|
|
|
|
17
|
"rhsSymbols": [1
|
|
|
|
18
|
}
|
|
|
|
19
|
},
|
|
|
|
20
|
"sons": [1
|
|
|
|
21
|
},
|
|
|
|
22
|
"task": {
|
|
|
|
23
|
"symbol": "A",
|
|
|
|
24
25
|
"desc": "Constitution et soumission
de presoutenance a l' ED",
"type": "Classic"
|
du
|
dossier
|
|
26
|
},
|
|
|
|
27
|
"status": "Closed",
|
|
|
|
28
|
"production": {
|
|
|
|
29
|
"prodName": "",
|
|
|
|
30
|
"prodLhs": "S0",
|
|
|
|
31
|
"prodRhs": {
|
|
|
|
32
|
"rhsType": "Sequential",
|
|
|
|
33
|
"rhsSymbols": [1
|
|
|
|
34
|
}
|
|
|
|
35
|
},
|
|
|
Dans ce fichier, on remarque la présence
d'éléments tels que "scenarios", "beignEditedNode" et
"sons" qui n'appartiennent pas aux éléments constituant
un GMAWfP. Ils ont pour rôle de restituer les éléments
graphiques (artefacts représentatifs, noeuds édités, etc.)
lors de l'ouverture du fichier.
Presentation du DSEL JSON
|
1
|
enum
|
TaskType {
|
|
|
|
2
|
|
TASK_TYPE_CLASSIC
|
=
|
"Classic",
|
|
3
|
|
TASK_TYPE_VIRTUAL
|
=
|
"Virtual"
|
|
4
|
}
|
|
|
|
|
5
|
|
|
|
|
PRESENTATION DU DSEL JSON 69
MÉMOIRE - TONLE NOUMBO FRANCK BRUNO
URIFIA
6 enum ProductionType {
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
PRODUCTION_TYPE_ SEQ = "Sequential",
|
|
PRODUCTION_TYPE_ PAR = "Parallel", PRODUCTION_TYPE_ NONE =
"None", PRODUCTION_TYPE_ EPS = "Epsilon"
}
interface PeerToPeerWorkflow { grammaticalModelOfWorkflow:
GrammaticalModelOfWorkflow , accreditations?: Map<String ,
Accreditation>, stakeholders?: Stakeholder[]
}
interface GrammaticalModelOfWorkflow { tasks: Task[],
axioms: String[],
productions: Production[]
}
interface Accreditation { readable: String[], writable: String[],
executable: String[]
}
interface Stakeholder { id: String,
desc?: String
}
interface Task { symbol: String, desc?: String, status?: String,
type: TaskType
}
|
|
EXTRAIT DU FICHIER .GMWAFP DE NOTRE EXEMPLE 70
MÉMOIRE - TONLE NOUMBO FRANCK BRUNO URIFIA
interface Production { prodName: String, prodLhs: String,
prodRhs: ProductionRhs
}
interface ProductionRhs {
rhsType: ProductionType ,
rhsSymbols?: String[]
}
42
43
44
45
46
47
48
49
50
51
52
Ce DSEL contient uniquement l'ensemble des
éléments requis pour une spécification LSAWfP, et il les
matérialise à l'aide des types offerts par le TypeScript. Avec ce
dernier, l'on dispose d'une syntaxe claire et précise, nous
fournissant tous les éléments nécessaires pour
spécifier un processus avec LSAWfP. Le format .gmwafp
(basé sur ce DSEL) est donc parfaitement approprié pour
assurer l'interopérabilité entre les différents outils du
projet, sachant que contrairement au format .ggmawfp, il embarque
uniquement en son sein les éléments propres au GMAWfP.

{
"grammaticalModelOfWorkflow":{
"tasks":[
{
"symbol":"A",
"desc":"",
"type":"Classic"
},
{
"symbol":"B",
"desc":"",
"type":"Classic"
},
{
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Extrait du fichier .gmwafp de notre exemple
EXTRAIT DU FICHIER BPMN XML 2.0
GÉNÉRÉ 71
MÉMOIRE - TONLE NOUMBO FRANCK BRUNO
URIFIA
"symbol":"C", "desc":"",
"type":"Classic"
},
{
"symbol":"D",
15
16
17
18
19
20
Comme le DSEL, ce fichier se divise en 3 principaux
éléments : le "grammaticalModelOfWorkflow", les
"accreditations" et les "stakeholders".
Extrait du fichier BPMN XML 2.0
généré
|
<?xml version="1.0" encoding="UTF -8"?>
<bpmn:definitions xmlns:bpmn="
http://www.omg.org/spec/
BPMN/20100524/MODEL" xmlns:bpmndi="http ://
www.omg.
org/spec/BPMN/20100524/DI" xmlns:dc="http ://
www.omg.
org/spec/DD/20100524/DC" xmlns:di="http ://
www.omg.
org/spec/DD/20100524/DI" xmlns:xsd="http ://
www.w3.
org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org /2001/XMLSchema
-instance" targetNamespace=" LSAWfPEditor"
id="LSAWfP_Process_1621779960435_6"> <bpmn:process
id="ProcessId_1621779960435_1" name=" null">
<bpmn:documentation>null</bpmn:documentation>
<bpmn:startEvent id="StartEvent_945944692_7"> <bpmn:outgoing>
SequenceFlow_945944692618756840_8</bpmn: outgoing>
</bpmn:startEvent>
<bpmn:task id="Activity_618756840_1_9" name="A">
<bpmn:documentation />
<bpmn:incoming>
SequenceFlow_945944692618756840_8 </bpmn: incoming>
<bpmn:outgoing>
SequenceFlow_618756840889417478_10 </bpmn: outgoing>
|
MÉMOIRE - TONLE NOUMBO FRANCK BRUNO URIFIA
72
|
</bpmn:task>
<bpmn:exclusiveGateway id=" ExclusiveGateway_889417478_11"
gatewayDirection="Diverging">
<bpmn:incoming>
SequenceFlow_618756840889417478_10</bpmn: incoming>
<bpmn:outgoing>
SequenceFlow_8894174781239211939_12</bpmn: outgoing>
<bpmn:outgoing>
SequenceFlow_8894174782118728884_13</bpmn: outgoing>
</bpmn:exclusiveGateway>
<bpmn:task id="Activity_1239211939_1.1.1_14" name="B">
<bpmn:documentation />
<bpmn:incoming>
SequenceFlow_8894174781239211939_12 </bpmn: incoming>
<bpmn:outgoing>
SequenceFlow_12392119391372598191_15 </bpmn: outgoing>
</bpmn:task>
<bpmn:task id="Activity_1372598191_1 .1.2_16" name="C">
<bpmn:documentation />
<bpmn:incoming>
SequenceFlow_12392119391372598191_15 </bpmn: incoming>
<bpmn:outgoing>
SequenceFlow_13725981912139423180_17 </bpmn: outgoing>
</bpmn:task>
<bpmn:task id="Activity_2139423180_1.1.3_18" name="D">
|
|