Commit d4a21b6e authored by Volker Krause's avatar Volker Krause
Browse files

Restore Context.data semantics

This contains the result of the extraction of the filter matching node,
not the accumulated result of the current node.
parent 297c9de9
Pipeline #55369 passed with stages
in 13 minutes and 24 seconds
......@@ -64,33 +64,7 @@
]
},
{
"data": [
{
"@type": "TrainReservation",
"reservationFor": {
"@type": "TrainTrip",
"provider": {
"@type": "Organization",
"identifier": "uic:0080"
}
},
"reservationNumber": "9E8DXL",
"reservedTicket": {
"@type": "Ticket",
"ticketToken": "aztecbin:I1VUMDEwMDgwMDAwMDIwLAIUGue7pQWksx4NCGj9cJzioDvHG2ICFGnc04h8A1eHmpP6hrOkqvuyoaofAAAAADAzNzR4nH2Rv07CUBTGkUFdXHyCJi5QqZ57+p8NbCsNFJMWCMhAiGhsQDSlkuiTsLk4ysqig0lfwEE3H8Zz5Y+YGDvcfvc7v/vd09N6p2QXLGAAqgxggGkbVrMi6am1h+mACAyZygywbMvmoGsBApBhMpQV7hQr5CjMBIVoX3Fa1qnaWg/CRQ4a87eBqmpq5KNvOdis1sveX7QG8oqmOKYFwPtlrHodXXUHN9F5OCKLuiGKhMxFgYSyFCYJDSUmMTMghttAgtcxoCNMJaWWk9lgSBuNZzlRd9i/uI3ijNcNh9n9ozC+o5r+T81YC0HG+2i4hbxQ809cMXCPi6JXEyuemHFKh47jOVmiqFVUL5PHZJa8RIJP4kHoJ9Ozfkfq5A8I0HiL/Kvw+2bqG5mp82krNBONj55qdLOMP+dyozh5Fvy938H8UKPOJ2fMf0o6Tcv7JN56m4xz7dRGrv26GP3T9ufmzmR8vxvS5mNB9IjoLYnpivgC6qKSSw==",
"ticketedSeat": {
"@type": "Seat",
"seatingType": "2"
}
},
"underName": {
"@context": "http://schema.org",
"@type": "Person",
"familyName": "häöür Räß",
"givenName": "kíck_-_:.,stû R"
}
}
],
"data": [],
"objectName": "",
"pdfPageNumber": 0,
"senderDate": "Fri Feb 17 15:18:00 2012 GMT+0100"
......
......@@ -60,39 +60,7 @@
]
},
{
"data": [
{
"@context": "http://schema.org",
"@type": "FlightReservation",
"reservationFor": {
"@type": "Flight",
"airline": {
"@type": "Airline",
"iataCode": "UA",
"name": "United"
},
"arrivalAirport": {
"@type": "Airport",
"iataCode": "JFK",
"name": "John F. Kennedy International Airport"
},
"arrivalTime": "2027-03-05T06:30:00-05:00",
"departureAirport": {
"@type": "Airport",
"iataCode": "SFO",
"name": "San Francisco Airport"
},
"departureTime": "2027-03-04T20:15:00-08:00",
"flightNumber": "110"
},
"reservationNumber": "RXJ34P",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "Eva Green"
}
}
],
"data": [],
"objectName": "",
"pdfPageNumber": 0,
"senderDate": "Invalid Date"
......
......@@ -107,7 +107,7 @@ ExtractorResult ExtractorScriptEngine::execute(const ScriptExtractor *extractor,
node.setScriptEngine(&d->m_engine);
const auto engineReset = qScopeGuard([&node]{ node.setScriptEngine(nullptr); });
d->m_context->m_data = d->m_engine.toScriptValue(node.result().jsonLdResult());
d->m_context->m_data = d->m_engine.toScriptValue(triggerNode.result().jsonLdResult());
d->m_context->m_barcode = triggerNode.content();
d->m_context->m_pdfPageNum = triggerNode.location().toInt();
d->m_context->m_senderDate = node.contextDateTime();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment