Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket)
Perform message correlation with resultEnabled and expected resultType: Execution
The resultType isn't considered, always the processInstance entity is returned.
Environment (Required on creation)
REST API 7.21.0+
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket)
Perform message correlation with
resultEnabled
and expectedresultType: Execution
TheresultType
isn't considered, always theprocessInstance
entity is returned.Steps to reproduce (Required on creation)
Get the example from here: https://jira.camunda.com/browse/SUPPORT-21725?focusedCommentId=347192&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-347192
mvn spring-boot:run
Observed Behavior (Required on creation)
The response contains
resultType: Execution
andexecution: null
.Expected behavior (Required on creation)
The response contains
resultType: Execution
and the execution dto is populated.(created with 7.20)
Root Cause (Required on prioritization)
Since 7.21.0 the process instance is populated in the result all the time so it can be used in the user operation logs. The REST API, doesn't consider the
returnType
but checks if the process instance is present: https://github.com/camunda/camunda-bpm-platform/blob/master/engine-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/dto/message/MessageCorrelationResultDto.java#L41-L44 (even thought the execution is also present)Solution Ideas
resultType
.Hints
Links
Breakdown
Dev2QA handover