About Kafka Topics for Plant Applications

Plant Applications services publish messages to the kafka topics when the following events occur:

  • An operation is complete.
  • A serial/lot is clocked on for an operation.
  • A serial/lot is clocked off for an operation.
  • A material lot is accepted in the Receiving Inspection application.
  • A route is released.
  • A process/work order is created, updated, completed, or deleted. When a process order is complete, information about the quantity of the product that is produced is included as well.
  • An event fails.
  • A new comment thread is created, updated, deleted, or comment count changes.
  • A workflow changes.

When one of these events occur, the Plant Applications services perform the following operations:

  • Insert a message in a JSON format.
  • Publish an event to the Kafka topic associated with the event.

These Plant Applications services publish messages to the following kafka topics:

Service Name Kafka Topic Events
ERP Export
  • mes.erp.outbound.messages.laborVouchering
  • mes.erp.outbound.messages
See ERP Export Service Kafka Topics.
Clock-on, Clock-Off, Operation Complete, Material Scrap, Release Route, Process/Work Order Created/Updated/Completed/Deleted
ERP Import
  • mes.erp.inbound.messages

See ERP Import Service Kafka Topics

Inbound Request processes
Route
  • mes.route.releasedRoutes
  • mes.apc.workflows

See Route Service Kafka Topics.

Release Route
MES
  • mes.plantapps.messages
  • mes.failedevents
  • mes.apc.workflows
See MES Service Kafka Topics.
Production Plan, Workflow Changes, Failed Event
Comment mes.comment.commentThreads

See Comment Service Kafka Topics.

Comment Thread Created, Updated, Deleted, Count Change
Product mes.product.materialLots

See Product Service Kafka Topics.

Material Lot Accepted
Approval Cockpit mes.apc.workflows

See Approval Cockpit Service Kafka Topics.

Workflow Change
Labor
  • mes.failedevents
See Labor Service Kafka Topics.
Failed Event
Work Order
  • mes.workorder.workorders
See Work Order Service Kafka Topics
Work Order Changes

To view a list of kafka topics, type the following command in the command prompt:

kafka-topics.bat --list --zookeeper <hostname>:2185

kafka-topics.bat --bootstrap-server <hostname>:9095 –describe

In the Enterprise Plant Applications Web Client installation the port is static but in the Standard Plant Applications Web Client, the user can select the ports on the screen during installation, then configure the port as a dynamic parameter. The hostname and port information can be viewed in a common-service prop properties file.