Interface KafkaEventWriter

  • All Known Implementing Classes:
    RawJsonEventWriter

    public interface KafkaEventWriter
    Implements the logic to convert an object into the byte[] being published into a Kafka Record
    • Method Detail

      • writeEvent

        byte[] writeEvent​(org.kie.api.runtime.process.ProcessInstance processInstance,
                          Object value)
                   throws IOException
        Converts from object to byte[]
        Parameters:
        processInstance - Contains process instance information that might be needed when building the event
        value - object to be converted into byte[]
        Returns:
        byte[] generated from object
        Throws:
        IOException - if any input output exception occurs