andleosab opened a new issue, #3282:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/3282
### Describe the bug
When sending a message for the intermediate message element to consume, the
event dispatcher can't match it:
2023-11-14 19:17:45.575 DEBUG 27935 --- [ntainer#0-0-C-1]
o.k.k.s.e.impl.DefaultEventUnmarshaller : Converting event with payload
{"id":"51e2b192-b4fe-46ab-8923-e506b65b9649","source":"notification-svc","type":"vendorFileLocationMessage","time":"2023-11-14T14:04:17.298369-08:00","data":{"location":"s3://bucket/file-832555"},"specversion":"1.0","**kogitobusinesskey":"order-832555",**"kogitoprocessinstanceid":"236945bc-6363-4eb5-86c4-9e6c2e7246dd"}
to class class org.kie.kogito.event.process.ProcessDataEvent
2023-11-14 19:17:45.576 INFO 27935 --- [ntainer#0-0-C-1]
o.k.k.s.e.impl.ProcessEventDispatcher : **No matches found f**or trigger
vendorFileLocationMessage in process sub-Process. Skipping consumed message
ProcessDataEvent{kogitoProcessInstanceVersion='null',
kogitoParentProcessInstanceId='null', kogitoProcessInstanceState='null',
kogitoReferenceId='null', kogitoStartFromNode='null',
kogitoBusinessKey='order-832555', kogitoProcessType='null'}
AbstractDataEvent{specVersion=1.0, id='51e2b192-b4fe-46ab-8923-e506b65b9649',
source=notification-svc, type='vendorFileLocationMessage',
time=2023-11-14T22:04:17.298369Z, subject='null', dataContentType='null',
dataSchema=null, data=VendorFileLocationEvent
[location=s3://bucket/file-832555], kogitoProcessInstanceId='null',
kogitoRootProcessInstanceId='null', kogitoProcessId='null',
kogitoRootProcessId='null', kogitoAddons='null',
extensionAttributes={kogitoprocessinstanceid=236945bc-6363-4eb5-86c4-9e6c2e7246dd}}
### Expected behavior
should be able to resume the process/subprocess using kogitobusinesskey
attribute in the cloud event.
Example:
{
"id": "51e2b192-b4fe-46ab-8923-e506b65b9649",
"source": "",
"type": "vendorFileLocationMessage",
"time": "2023-11-14T14:04:17.298369-08:00",
"data": {
"location": "s3://bucket/file-832555"
},
"specversion": "1.0",
"kogitobusinesskey": "order-832555"
}
### Actual behavior
event recognized but not dispatched to respective intermediate message
element in process or subprocess.
### How to Reproduce?
1. have a process (subprocess?) with intermediate message element:
2. Start process with a businessKey included
3. use that buisiness Key to resume the process by sending a message similar
to below through Kafka:
{
"id": "51e2b192-b4fe-46ab-8923-e506b65b9649",
"source": "",
"type": "vendorFileLocationMessage",
"time": "2023-11-14T14:04:17.298369-08:00",
"data": {
"location": "s3://bucket/file-832555"
},
"specversion": "1.0",
"kogitobusinesskey": "order-832555"
}
### Output of `uname -a` or `ver`
_No response_
### Output of `java -version`
_No response_
### GraalVM version (if different from Java)
_No response_
### Kogito version or git rev (or at least Quarkus version if you are using
Kogito via Quarkus platform BOM)
_No response_
### Build tool (ie. output of `mvnw --version` or `gradlew --version`)
_No response_
### Additional information
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]