|
8 | 8 | "IdentifyRules" : "[meta.id]", |
9 | 9 | "MatchIdRules": {"_id": "%IdentifyRules_objid%"}, |
10 | 10 | "ExtractionRules" : "{ id : meta.id, type : meta.type, time : meta.time, gav : data.gav, fileInformation : data.fileInformation, buildCommand : data.buildCommand }", |
11 | | - "MergeResolverRules" : "", |
| 11 | + "DownstreamIdentifyRules" : "links | [?type=='COMPOSITION'].target", |
| 12 | + "DownstreamMergeRules": "{\"externalComposition\":{\"eventId\":%IdentifyRules%}}", |
| 13 | + "DownstreamExtractionRules" : "{artifacts: [{id : meta.id}]}", |
12 | 14 | "ArrayMergeOptions": "", |
13 | 15 | "HistoryIdentifyRules":"links | [?type=='COMPOSITION'].target", |
14 | | - "HistoryExtractionRules":"{artifacts: [{id : meta.id}]}", |
| 16 | + "HistoryExtractionRules":"{internalComposition:{artifacts: [{id : meta.id}]}}", |
| 17 | + "HistoryPathRules": "{artifacts: {id: meta.id}}", |
15 | 18 | "ProcessRules" : null, |
16 | 19 | "ProcessFunction" : null |
17 | 20 | }, |
|
24 | 27 | "IdentifyRules" : "links | [?type=='ARTIFACT'].target", |
25 | 28 | "MatchIdRules": {"_id": "%IdentifyRules_objid%"}, |
26 | 29 | "ExtractionRules" : "{ publications :[ { eventId : meta.id, time : meta.time, locations : data.locations }] }", |
27 | | - "MergeResolverRules" : "", |
28 | 30 | "ArrayMergeOptions": "", |
29 | 31 | "HistoryIdentifyRules": "", |
30 | 32 | "HistoryExtractionRules": "", |
|
40 | 42 | "IdentifyRules" : "links | [?type=='SUBJECT'].target", |
41 | 43 | "MatchIdRules": {"_id": "%IdentifyRules_objid%"}, |
42 | 44 | "ExtractionRules" : "{confidenceLevels :[{ eventId:meta.id, time:meta.time, name:data.name, value:data.value}]}", |
43 | | - "MergeResolverRules" : "", |
44 | 45 | "ArrayMergeOptions": "", |
45 | 46 | "HistoryIdentifyRules": "", |
46 | 47 | "HistoryExtractionRules": "", |
|
49 | 50 | }, |
50 | 51 | { |
51 | 52 | "TemplateName":"ARTIFACT_1", |
52 | | - "Type":"EiffelTestCaseStartedEvent", |
| 53 | + "Type":"EiffelTestCaseTriggeredEvent", |
53 | 54 | "TypeRule": "meta.type", |
54 | 55 | "IdRule": "meta.id", |
55 | 56 | "StartEvent": "NO", |
56 | 57 | "IdentifyRules" : "links | [?type=='IUT'].target", |
57 | 58 | "MatchIdRules": {"_id": "%IdentifyRules_objid%"}, |
| 59 | + "ExtractionRules" : "{testCaseExecutions :[{ testCaseTrigeredEventId:meta.id, testCaseTrigeredTime:meta.time, testCase:data.testCase}]}", |
| 60 | + "ArrayOptions": "", |
| 61 | + "HistoryIdentifyRules": "", |
| 62 | + "HistoryExtractionRules": "", |
| 63 | + "ProcessRules":null, |
| 64 | + "ProcessFunction" : null |
| 65 | + }, |
| 66 | + { |
| 67 | + "TemplateName":"ARTIFACT_1", |
| 68 | + "Type":"EiffelTestCaseStartedEvent", |
| 69 | + "TypeRule": "meta.type", |
| 70 | + "IdRule": "meta.id", |
| 71 | + "StartEvent": "NO", |
| 72 | + "IdentifyRules" : "links | [?type=='TEST_CASE_EXECUTION'].target", |
| 73 | + "MatchIdRules": {"_id": "%IdentifyRules_objid%"}, |
58 | 74 | "ExtractionRules" : "{testCaseExecutions :[{ testCaseStartedEventId:meta.id, testCaseStartedTime:meta.time, testCase:data.testCase}]}", |
59 | | - "MergeResolverRules" : "", |
60 | | - "ArrayMergeOptions": "", |
| 75 | + "MergeResolverRules" : "{\"testCaseTrigeredEventId\":%IdentifyRules%}", |
| 76 | + "ArrayOptions": "", |
61 | 77 | "HistoryIdentifyRules": "", |
62 | 78 | "HistoryExtractionRules": "", |
63 | 79 | "ProcessRules":null, |
|
71 | 87 | "StartEvent": "NO", |
72 | 88 | "IdentifyRules" : "links | [?type=='TEST_CASE_EXECUTION'].target", |
73 | 89 | "MatchIdRules": { "$and": [{"aggregatedObject.testCaseExecutions.testCaseStartedEventId": "%IdentifyRules%"}]}, |
74 | | - "ExtractionRules" : "{testCaseExecutions :[{ testCaseFinishEventId:meta.id, testCaseFinishedTime:meta.time, testCase:data.outcome}]}", |
75 | | - "MergeResolverRules" : {"testCaseStartedEventId":"%IdentifyRules%"}, |
| 90 | + "ExtractionRules" : "{ testCaseFinishEventId:meta.id, testCaseFinishedTime:meta.time, testCase:data.outcome}", |
| 91 | + "MergeResolverRules" : "{\"testCaseStartedEventId\":%IdentifyRules%}", |
76 | 92 | "ArrayMergeOptions": "", |
77 | 93 | "HistoryIdentifyRules": "", |
78 | 94 | "HistoryExtractionRules": "", |
79 | | - "ProcessRules":"{testCaseExecutions :[{testCaseDuration : diff(testCaseExecutions[0].testCaseFinishedTime, testCaseExecutions[0].testCaseStartedTime)}]}", |
| 95 | + "ProcessRules":"{testCaseDuration : diff(testCaseExecutions[0].testCaseFinishedTime, testCaseExecutions[0].testCaseStartedTime)}", |
80 | 96 | "ProcessFunction" : "difference" |
81 | 97 | }, |
82 | 98 | { |
|
88 | 104 | "IdentifyRules" : "", |
89 | 105 | "MatchIdRules": { }, |
90 | 106 | "ExtractionRules" : "", |
91 | | - "MergeResolverRules" : "", |
92 | 107 | "ArrayMergeOptions": "", |
93 | | - "HistoryIdentifyRules":"links | [?type=='ELEMENT'].target", |
94 | | - "HistoryExtractionRules": "{internalComposition: {eventId: meta.id, time:meta.time, name:data.name}}", |
| 108 | + "DownstreamIdentifyRules":"links | [?type=='ELEMENT'].target", |
| 109 | + "DownstreamExtractionRules": "{externalComposition: {eventId: meta.id, time:meta.time, name:data.name}}", |
| 110 | + "DownstreamMergeRules": "{\"eventId\":%IdentifyRules%}", |
| 111 | + "HistoryExtractionRules": "{eventId: meta.id, time: meta.time, name: data.name}", |
| 112 | + "HistoryPathRules": "{internalComposition:{compositions: [{eventId: meta.id}]}}", |
95 | 113 | "ProcessRules":null, |
96 | 114 | "ProcessFunction" : null |
97 | 115 | }, |
|
104 | 122 | "IdentifyRules" : "", |
105 | 123 | "MatchIdRules": {}, |
106 | 124 | "ExtractionRules" : "", |
107 | | - "MergeResolverRules" : "", |
108 | 125 | "ArrayMergeOptions": "", |
109 | 126 | "HistoryIdentifyRules": "", |
110 | | - "HistoryExtractionRules": "{internalComposition: {sourceChanges :[{ author:data.author, issues:data.issues}]}}", |
| 127 | + "HistoryExtractionRules": "{SCCEventId: meta.id, author:data.author, issues:data.issues}", |
| 128 | + "HistoryPathRules": "{sourceCreations: [{SCCEventId: meta.id}]}", |
111 | 129 | "ProcessRules":null, |
112 | 130 | "ProcessFunction" : null |
113 | 131 | }, |
|
120 | 138 | "IdentifyRules" : "", |
121 | 139 | "MatchIdRules": {}, |
122 | 140 | "ExtractionRules" : "", |
123 | | - "MergeResolverRules" : "", |
124 | 141 | "ArrayMergeOptions": "", |
125 | 142 | "HistoryIdentifyRules":"links | [?type=='CHANGE'].target", |
126 | | - "HistoryExtractionRules": "{internalComposition: {sourceChanges :[{svnIdentifier:data.svnIdentifier, submitter:data.submitter}]}}", |
| 143 | + "HistoryExtractionRules": "{SCSEventId: meta.id,svnIdentifier:data.svnIdentifier, submitter:data.submitter}", |
| 144 | + "HistoryPathRules": "{sourceChanges: [{SCSEventId: meta.id}]}", |
127 | 145 | "ProcessRules":null, |
128 | 146 | "ProcessFunction" : null |
129 | 147 | } |
|
0 commit comments