Skip to content

Commit 4280498

Browse files
fix for template rules (#443)
* fix for template rules
1 parent 6d3701f commit 4280498

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/resources/templates/rules.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"IdRule": "meta.id",
77
"StartEvent": "YES",
88
"IdentifyRules": "[meta.id]",
9-
"MatchIdRules": {"_id": "%IdentifyRules_objid%"},
9+
"MatchIdRules": {"_id": "%IdentifyRulesEventId%"},
1010
"ExtractionRules": "{ id : meta.id, type : meta.type, time : meta.time, identity : data.identity, fileInformation : data.fileInformation, buildCommand : data.buildCommand }",
1111
"DownstreamIdentifyRules": "links | [?type=='COMPOSITION'].target",
12-
"DownstreamMergeRules": "{\"externalComposition\":{\"eventId\":%IdentifyRules%}}",
12+
"DownstreamMergeRules": "{\"externalComposition\":{\"eventId\":%IdentifyRulesEventId%}}",
1313
"DownstreamExtractionRules": "{artifacts: [{id : meta.id}]}",
1414
"ArrayMergeOptions": "",
1515
"HistoryIdentifyRules": "links | [?type=='COMPOSITION'].target",
@@ -25,7 +25,7 @@
2525
"IdRule": "meta.id",
2626
"StartEvent": "NO",
2727
"IdentifyRules": "links | [?type=='ARTIFACT'].target",
28-
"MatchIdRules": {"_id": "%IdentifyRules_objid%"},
28+
"MatchIdRules": {"_id": "%IdentifyRulesEventId%"},
2929
"ExtractionRules": "{ publications :[ { eventId : meta.id, time : meta.time, locations : data.locations }] }",
3030
"ArrayMergeOptions": "",
3131
"HistoryIdentifyRules": "",
@@ -40,7 +40,7 @@
4040
"IdRule": "meta.id",
4141
"StartEvent": "NO",
4242
"IdentifyRules": "links | [?type=='SUBJECT'].target",
43-
"MatchIdRules": {"_id": "%IdentifyRules_objid%"},
43+
"MatchIdRules": {"_id": "%IdentifyRulesEventId%"},
4444
"ExtractionRules": "{confidenceLevels :[{ eventId:meta.id, time:meta.time, name:data.name, value:data.value}]}",
4545
"ArrayMergeOptions": "",
4646
"HistoryIdentifyRules": "",

0 commit comments

Comments
 (0)