Enhancement
There should be a consumer for messages from Apache Kafka that can be configured in-app using a TL script.
Application
The complete documentation can be found in the application under: TopLogic Developer Manual > TL-Script > Miscellaneous > Send messages to Apache Kafka (Only in applications that also integrate Kafka.)
Sending via TL script
- Configure a "Kafka String Producer" in the "Kafka Producer Service" in the Service Editor.
- Send message via TL script: kafkaSend($producer, $message, $key, $headers, $topic, $timeout)
Receive via TL script
- Configure a "Receiver" with a "Message processor by expression" in the "Kafka Receiver Service" in the Service Editor.
- Configure a suitable TL script expression. Details can be found in its tooltips.
Test
TestKafkaByExpression.script.xml