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

Use the current node as trigger node by default

This is closer to the previous behavior.
parent 79702551
Pipeline #55450 passed with stages
in 12 minutes and 51 seconds
......@@ -64,7 +64,34 @@
]
},
{
"data": [],
"barcode": "#UT010080000020,\u0002\u0014\u001a绥\u0005��\u001e\r\bh�p���;�\u001bb\u0002\u0014i�ӈ|\u0003W������������\u001f",
"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"
}
}
],
"objectName": "",
"pdfPageNumber": 0,
"senderDate": "Fri Feb 17 15:18:00 2012 GMT+0100"
......
......@@ -60,7 +60,39 @@
]
},
{
"data": [],
"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"
}
}
],
"objectName": "",
"pdfPageNumber": 0,
"senderDate": "Invalid Date"
......
......@@ -13,6 +13,7 @@
]
},
{
"barcode": "Hello World!\n",
"data": [
],
"objectName": "",
......
......@@ -173,7 +173,7 @@ ExtractorResult ScriptExtractor::extract(const ExtractorDocumentNode &node, cons
}
if (triggerNodes.empty()) {
return engine->scriptEngine()->execute(this, node, {});
return engine->scriptEngine()->execute(this, node, node);
} else {
ExtractorResult result;
for (const auto &triggerNode : triggerNodes) {
......
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