Skip to content

Commit e09be14

Browse files
Agen update to documentation examples (#205)
* Update documentation
1 parent 4c23f02 commit e09be14

File tree

4 files changed

+11
-35
lines changed

4 files changed

+11
-35
lines changed

src/main/docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ services:
108108
- mongodb.collection=events
109109
- mongodb.user
110110
- mongodb.password
111-
- mongodb.indexes=meta.id,links.target,links.type,meta.time,data.gav.groupId,data.gav.artifactId
111+
- mongodb.indexes=meta.id,links.target,links.type,meta.time,data.identity
112112
- mongodb.externalERs
113113
- search.limit=100
114114
- search.levels=10

wiki/markdown/curl-examples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ The back-end used is running on localhost and port 8080. EI front-end forwards t
374374
{
375375
"conditions":[
376376
{
377-
"jmespath":"gav.groupId=='com.othercompany.library'"
377+
"jmespath":"identity=='pkg:maven/com.mycompany.myproduct/artifact-name@1.0.0'"
378378
}
379379
]
380380
}
@@ -406,7 +406,7 @@ The back-end used is running on localhost and port 8080. EI front-end forwards t
406406
{
407407
"conditions":[
408408
{
409-
"jmespath":"gav.groupId=='com.othercompany.library'"
409+
"jmespath":"identity=='pkg:maven/com.mycompany.myproduct/artifact-name@1.0.0'"
410410
}
411411
]
412412
}
@@ -437,7 +437,7 @@ The back-end used is running on localhost and port 8080. EI front-end forwards t
437437
{
438438
"conditions":[
439439
{
440-
"jmespath":"gav.groupId=='com.othercompany.library'"
440+
"jmespath":"identity=='pkg:maven/com.mycompany.myproduct/artifact-name@1.0.0'"
441441
}
442442
]
443443
}
Loading

wiki/markdown/test-rules.md

Lines changed: 7 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,8 @@ contains 3 events.
6262
"IdRule": "meta.id",
6363
"StartEvent": "YES",
6464
"IdentifyRules": "[meta.id]",
65-
"MatchIdRules": {
66-
"_id": "%IdentifyRules_objid%"
67-
},
68-
"ExtractionRules": "{ id : meta.id, type : meta.type, time : meta.time, gav : data.gav, fileInformation : data.fileInformation, buildCommand : data.buildCommand }",
65+
"MatchIdRules": {"_id": "%IdentifyRules_objid%"},
66+
"ExtractionRules": "{ id : meta.id, type : meta.type, time : meta.time, identity : data.identity, fileInformation : data.fileInformation, buildCommand : data.buildCommand }",
6967
"DownstreamIdentifyRules": "links | [?type=='COMPOSITION'].target",
7068
"DownstreamMergeRules": "{\"externalComposition\":{\"eventId\":%IdentifyRules%}}",
7169
"DownstreamExtractionRules": "{artifacts: [{id : meta.id}]}",
@@ -127,11 +125,7 @@ contains 3 events.
127125
"domainId": "someDomain",
128126
"host": "someHost",
129127
"name": "someName",
130-
"serializer": {
131-
"groupId": "com.github.Ericsson",
132-
"artifactId": "eiffel-remrem-semantics",
133-
"version": "0.0.10"
134-
},
128+
"serializer": "pkg:maven/com.mycompany.tools/eiffel-serializer@1.0.3",
135129
"uri": "http://host:port/path"
136130
},
137131
"security": {
@@ -142,11 +136,7 @@ contains 3 events.
142136
}
143137
},
144138
"data": {
145-
"gav": {
146-
"groupId": "someGroup",
147-
"artifactId": "someArtifact",
148-
"version": "someVersion"
149-
},
139+
"identity": "pkg:maven/com.mycompany.myproduct/artifact-name@2.1.7",
150140
"fileInformation": [
151141
{
152142
"classifier": "",
@@ -155,13 +145,7 @@ contains 3 events.
155145
],
156146
"buildCommand": "trigger",
157147
"requiresImplementation": "NONE",
158-
"dependsOn": [
159-
{
160-
"groupId": "",
161-
"artifactId": "",
162-
"version": ""
163-
}
164-
],
148+
"dependsOn": ["pkg:maven/com.mycompany.myproduct/my-interface@%5B1.0%2C2.0%29"],
165149
"implements": [],
166150
"name": "event",
167151
"customData": []
@@ -184,11 +168,7 @@ contains 3 events.
184168
"domainId": "someDomain",
185169
"host": "someHost",
186170
"name": "someName",
187-
"serializer": {
188-
"groupId": "com.github.Ericsson",
189-
"artifactId": "eiffel-remrem-semantics",
190-
"version": "0.0.10"
191-
},
171+
"serializer": "pkg:maven/com.mycompany.tools/eiffel-serializer@1.0.3",
192172
"uri": "http://host:port/path"
193173
},
194174
"security": {
@@ -226,11 +206,7 @@ contains 3 events.
226206
"source": {
227207
"domainId": "someDomain",
228208
"name": "someName",
229-
"serializer": {
230-
"groupId": "com.github.Ericsson",
231-
"artifactId": "eiffel-remrem-semantics",
232-
"version": "0.0.10"
233-
}
209+
"serializer": "pkg:maven/com.mycompany.tools/eiffel-serializer@1.0.3"
234210
}
235211
},
236212
"data": {

0 commit comments

Comments
 (0)