-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[KOGITO-5094] Allowing byte[] as serializer/deserializer for Quarkus #1823
Conversation
Can one of the admins verify this patch? |
3 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
The (build) kogito-examples check has failed. Please check the logs. |
The (build) optaplanner-quickstarts check has failed. Please check the logs. |
The (build) kogito-runtimes check has failed. Please check the logs. |
The (build) kogito-apps check has failed. Please check the logs. |
The (build) optaweb-employee-rostering check has failed. Please check the logs. |
The (build) optaweb-vehicle-routing check has failed. Please check the logs. |
d27cb3e
to
cbad17c
Compare
The (build) optaplanner-quickstarts check has failed. Please check the logs. |
The (build) kogito-apps check has failed. Please check the logs. |
The (build) optaweb-employee-rostering check has failed. Please check the logs. |
The (build) optaplanner check has failed. Please check the logs. |
The (build) kogito-examples check has failed. Please check the logs. |
The (build) optaweb-vehicle-routing check has failed. Please check the logs. |
cbad17c
to
44eea6b
Compare
The (build) kogito-runtimes check has failed. Please check the logs. |
@@ -31,7 +35,7 @@ | |||
ObjectMapper mapper; | |||
|
|||
@Bean | |||
public EventMarshaller eventMarshaller(){ | |||
return new DefaultEventMarshaller(mapper); | |||
public EventMarshaller<String> stringEventMarshaller(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For Spring, we keep just string event marshaller at the moment
@@ -32,7 +34,17 @@ | |||
ObjectMapper mapper; | |||
|
|||
@Produces | |||
public EventMarshaller eventMarshaller(){ | |||
return new DefaultEventMarshaller(mapper); | |||
public EventMarshaller<String> stringEventMarshaller(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quarkus will inject the proper marshaller depending on the generated emitter type
The (build) kogito-examples check has failed. Please check the logs. |
...en-processes/src/main/java/org/kie/kogito/codegen/process/DefaultChannelMappingStrategy.java
Outdated
Show resolved
Hide resolved
The (build) optaweb-vehicle-routing check has failed. Please check the logs. |
The (build) optaplanner-quickstarts check has failed. Please check the logs. |
The (build) optaplanner check has failed. Please check the logs. |
The (build) kogito-runtimes check has failed. Please check the logs. |
The (build) kogito-runtimes check has failed. Please check the logs. |
The (build) kogito-examples check has failed. Please check the logs. |
The (build) kogito-runtimes check has failed. Please check the logs. |
The (build) kogito-examples check has failed. Please check the logs. |
The (build) kogito-apps check has failed. Please check the logs. |
The (build) kogito-runtimes check has failed. Please check the logs. |
4b437e8
to
18e1cc7
Compare
The (build) kogito-examples check has failed. Please check the logs. |
The (build) kogito-examples check has failed. Please check the logs. |
The (build) kogito-examples check has failed. Please check the logs. |
The (build) kogito-apps check has failed. Please check the logs. |
The (build) kogito-examples check has failed. Please check the logs. |
@fjtirado |
Build is green now, after my lastest change, merging. |
The (build) optaweb-vehicle-routing check has failed. Please check the logs. |
The (build) optaweb-employee-rostering check has failed. Please check the logs. |
Kudos, SonarCloud Quality Gate passed! |
The (build) kogito-examples check has failed. Please check the logs. |
The (build) kogito-apps check has failed. Please check the logs. |
This JIRA is a first step to achieve integration with Apache Avro.
I have created two follow up JIRAS: one to replace DataEvent by CloudEvent https://issues.redhat.com/browse/KOGITO-6476 and another one to provide an example of overriding default marshaller to interact with Avro https://issues.redhat.com/browse/KOGITO-6521
The overall idea in this one is to infer the right marshaller from the channel property.
If StringSerializer or ByteSeralizer we use a default marshaller that converts the Json to byte[]/string (this keeps backward compatibility)
If different serializer we assume the serializer deals properly with the event object and we use a marshaller that keep the object intact
In addition to that, this PR fixes following issues: