Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-3724

CloudEventConsumer throws upon receiving a message of an unhandled type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • Core Engine
    • 3
    • False
    • False
    • Will be done by KOGITO-5094
    • ---
    • ---

      Because we are currently "broadcasting" messages and filtering them out on the receiving end (CloudEventConsumer) depending on the cloud event type, the unmarshaller of this class throws when that consumer is not supposed to be handling that type of message

      see https://github.com/kiegroup/kogito-runtimes/blob/c486771087ce4931237e2ca3b2c6bb10b2c8c0c2/jbpm/jbpm-flow/src/main/java/org/kie/kogito/event/impl/CloudEventConsumer.java#L51

      Instead, we should be able to unmarshall only the CloudEvent envelope, check the type and discard it without errors.

            ftirados Francisco Javier Tirado Sarti
            evacchi Edoardo Vacchi (Inactive)
            Marian Macik Marian Macik
            Marian Macik Marian Macik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: