-
Bug
-
Resolution: Done
-
Major
-
0.15.0
-
None
-
False
-
False
-
Undefined
-
---
-
---
-
-
2020 Week 37-39 (from Sep 7)
On SW engine, we are using the source field from the event definition to be the Message listener.
Source in the CloudEvents specification is an URI, we should parse this name to a safe variable name when generating code for the CloudEventListenerResource, otherwise we might face errors like this:
[ERROR] src/main/java/org/kie/kogito/app/CloudEventListenerResource.java (34:29) : ';' expectedsrc/main/java/org/kie/kogito/app/CloudEventListenerResource.java (34:40) : <identifier> expectedsrc/main/java/org/kie/kogito/app/CloudEventListenerResource.java (34:54) : <identifier> expectedsrc/main/java/org/kie/kogito/app/CloudEventListenerResource.java (34:61) : <identifier> expectedsrc/main/java/org/kie/kogito/app/CloudEventListenerResource.java (34:64) : <identifier> expectedsrc/main/java/org/kie/kogito/app/CloudEventListenerResource.java (34:69) : <identifier> expected
- causes
-
KOGITO-3447 Knative addon emitter variable in CloudEventsResourceListener cannot be random
- Closed