Skip to content

Commit 6d6d6ac

Browse files
Update documentation (#270)
1 parent cb70f4b commit 6d6d6ac

14 files changed

+264
-515
lines changed

wiki/markdown/artifact-created-event-aggregation.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ message bus.
1111
},
1212
"type": "EiffelArtifactCreatedEvent",
1313
"id": "ccce572c-c364-441e-abc9-b62fed080ca2",
14-
"version": "1.0.0"
14+
"version": "3.0.0"
1515
},
1616
"links": [{
1717
"target": "23df3bd2-c620-42ce-80ba-b7ba6551c9f9",
@@ -53,11 +53,7 @@ message bus.
5353
"classifier": ""
5454
}
5555
],
56-
"gav": {
57-
"version": "1.53.0",
58-
"artifactId": "sub-system",
59-
"groupId": "com.mycompany.myproduct"
60-
}
56+
"identity": "pkg:maven/com.mycompany.myproduct/sub-system@1.53.0"
6157
}
6258
}
6359

@@ -84,12 +80,12 @@ application.properties file as “rules.path”.
8480
"MatchIdRules": {
8581
"_id": "%IdentifyRules_objid%"
8682
},
87-
"ExtractionRules": "{ id : meta.id, type : meta.type, time : meta.time, gav : data.gav, fileInformation : data.fileInformation, buildCommand : data.buildCommand }",
83+
"ExtractionRules": "{ id : meta.id, type : meta.type, time : meta.time, identity : data.identity, fileInformation : data.fileInformation, buildCommand : data.buildCommand }",
8884
"DownstreamIdentifyRules": "links | [?type=='COMPOSITION'].target",
8985
"DownstreamMergeRules": "{\"externalComposition\":{\"eventId\":%IdentifyRules%}}",
9086
"DownstreamExtractionRules": "{artifacts: [{id : meta.id}]}",
9187
"HistoryIdentifyRules": "links | [?type=='COMPOSITION'].target",
92-
"HistoryExtractionRules": "{id : meta.id, gav : data.gav, fileInformation : data.fileInformation}",
88+
"HistoryExtractionRules": "{id : meta.id, identity : data.identity, fileInformation : data.fileInformation}",
9389
"HistoryPathRules": "{artifacts: [{id: meta.id}]}",
9490
"ProcessRules": null,
9591
"ProcessFunction": null
@@ -124,11 +120,7 @@ following information will be extracted:
124120
"id": "ccce572c-c364-441e-abc9-b62fed080ca2",
125121
"type": "EiffelArtifactCreatedEvent",
126122
"time": 1473177136433,
127-
"gav": {
128-
"version": "1.53.0",
129-
"artifactId": "sub-system",
130-
"groupId": "com.mycompany.myproduct"
131-
},
123+
"identity": "pkg:maven/com.mycompany.myproduct/sub-system@1.53.0",
132124
"fileInformation": [{
133125
"extension": "jar",
134126
"classifier": "debug"

wiki/markdown/artifact-published-event-aggregation.md

Lines changed: 10 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ generated as follow:
2121
},
2222
"time":1481875921763,
2323
"type":"EiffelArtifactPublishedEvent",
24-
"version":"1.0.0"
24+
"version":"3.0.0"
2525
},
2626
"data":{
2727
"customData":[
@@ -53,7 +53,7 @@ In the next step rules for this event are extracted:
5353
"StartEvent":"NO",
5454
"IdentifyRules":"links | [?type=='ARTIFACT'].target",
5555
"MatchIdRules":{
56-
"_id":"%IdentifyRules_objid%"
56+
"_id":"%IdentifyRules_objid%"
5757
},
5858
"ExtractionRules":"{ eventId : meta.id, time : meta.time, locations : data.locations }",
5959
"MergeResolverRules":"[ {NONEPATH:NONE}, {publications: [{ eventId: meta.id }]} ]",
@@ -155,11 +155,7 @@ Following aggregated object is extracted by using the identify rules:
155155
]
156156
},
157157
"id":"1100572b-c3j4-441e-abc9-b62f48080011",
158-
"gav":{
159-
"groupId":"com.othercompany.otherproduct",
160-
"artifactId":"other-system",
161-
"version":"1.33.0"
162-
}
158+
"identity": "pkg:maven/com.mycompany.otherproduct/other-system@1.33.0"
163159
},
164160
{
165161
"fileInformation":[
@@ -169,11 +165,7 @@ Following aggregated object is extracted by using the identify rules:
169165
}
170166
],
171167
"id":"4400572b-c3j4-441e-abc9-b62f48080033",
172-
"gav":{
173-
"groupId":"com.internalcompany.internalproduct",
174-
"artifactId":"internal-system",
175-
"version":"1.99.0"
176-
}
168+
"identity": "pkg:maven/com.internalcompany.internalproduct/internal-system@1.99.0"
177169
}
178170
]
179171
}
@@ -207,11 +199,7 @@ Following aggregated object is extracted by using the identify rules:
207199
"id":"6acc3c87-75e0-4b6d-88f5-b1a5d4e62b43",
208200
"time":1481875891763,
209201
"type":"EiffelArtifactCreatedEvent",
210-
"gav":{
211-
"groupId":"com.mycompany.myproduct",
212-
"artifactId":"sub-system",
213-
"version":"1.1.0"
214-
},
202+
"identity": "pkg:maven/com.mycompany.myproduct/sub-system@1.1.0",
215203
"artifacts":[
216204
{
217205
"fileInformation":[
@@ -221,11 +209,7 @@ Following aggregated object is extracted by using the identify rules:
221209
}
222210
],
223211
"id":"1100572b-c3b4-461e-abc9-b62f48087011",
224-
"gav":{
225-
"groupId":"com.othercompany.secondproduct",
226-
"artifactId":"other-system",
227-
"version":"1.33.0"
228-
}
212+
"identity": "pkg:maven/com.othercompany.secondproduct/other-system@1.33.0"
229213
}
230214
]
231215
}
@@ -370,11 +354,7 @@ Finally, after merging the content, the merged object looks like this:
370354
]
371355
},
372356
"id":"1100572b-c3j4-441e-abc9-b62f48080011",
373-
"gav":{
374-
"groupId":"com.othercompany.otherproduct",
375-
"artifactId":"other-system",
376-
"version":"1.33.0"
377-
}
357+
"identity": "pkg:maven/com.othercompany.otherproduct/other-system@1.33.0"
378358
},
379359
{
380360
"fileInformation":[
@@ -384,11 +364,7 @@ Finally, after merging the content, the merged object looks like this:
384364
}
385365
],
386366
"id":"4400572b-c3j4-441e-abc9-b62f48080033",
387-
"gav":{
388-
"groupId":"com.internalcompany.internalproduct",
389-
"artifactId":"internal-system",
390-
"version":"1.99.0"
391-
}
367+
"identity": "pkg:maven/com.internalcompany.internalproduct/internal-system@1.99.0"
392368
}
393369
]
394370
}
@@ -422,11 +398,7 @@ Finally, after merging the content, the merged object looks like this:
422398
"id":"6acc3c87-75e0-4b6d-88f5-b1a5d4e62b43",
423399
"time":1481875891763,
424400
"type":"EiffelArtifactCreatedEvent",
425-
"gav":{
426-
"groupId":"com.mycompany.myproduct",
427-
"artifactId":"sub-system",
428-
"version":"1.1.0"
429-
},
401+
"identity": "pkg:maven/com.mycompany.myproduct/sub-system@1.1.0",
430402
"artifacts":[
431403
{
432404
"fileInformation":[
@@ -436,11 +408,7 @@ Finally, after merging the content, the merged object looks like this:
436408
}
437409
],
438410
"id":"1100572b-c3b4-461e-abc9-b62f48087011",
439-
"gav":{
440-
"groupId":"com.othercompany.secondproduct",
441-
"artifactId":"other-system",
442-
"version":"1.33.0"
443-
}
411+
"identity": "pkg:maven/com.othercompany.secondproduct/other-system@1.33.0"
444412
}
445413
],
446414
"publications":[

0 commit comments

Comments
 (0)