Denis
12/11/2024, 11:29 AMDenis
12/11/2024, 11:37 AM{
"actual_quantity": 0,
"asset_id": 1,
"created_at": "2024-12-11T10:22:14.441Z",
"end_time": "2024-12-11T10:22:14.441Z",
"operation_id": 6660,
"order_id": 5550,
"scrap_quantity": 0,
"sequence_number": 1,
"start_time": "2024-12-11T10:22:14.441Z",
"target_quantity": 100,
"metadata": {
"kafka_topic": "umh.v1.Belgium",
"kafka_partition": 2,
"kafka_offset": 10,
"kafka_key": "Antwerp.Kalmthout.Heide.Begonia._mes.operation",
"bridged_by": "[\"mqtt_to_kafka_bridge_mes_default\"]",
"parsing_failure": "false"
}
}
However, in the subsequent node, the kafka_topic cannot be extracted:
let kafka_topic = meta("kafka_topic") returns null, crashing the pipeline.
Essentially, I'm looking for a way to log I/O and variables to the console for debugging. Has anyone found a way to do this?Denis
12/11/2024, 11:45 AMDanielH
12/11/2024, 3:12 PMDenis
12/11/2024, 3:13 PMstdout: {} before. Let me try thatDenis
12/11/2024, 3:15 PMDanielH
12/11/2024, 5:10 PMDenis
12/12/2024, 9:17 AMDenis
12/12/2024, 2:51 PMDenis
12/12/2024, 3:30 PMDenis
12/12/2024, 3:31 PM