Closed ThorbenLindhauer closed 1 year ago
This comment was imported from JIRA and written by user @ThorbenLindhauer
Hi wg1RpX,
Thanks for reporting this bug. Due to other priorities, we are currently not able to fix it but would appreciate a contribution. I think org.camunda.bpm.engine.impl.history.producer.DefaultHistoryEventProducer.initActivityInstanceEvent(HistoricActivityInstanceEventEntity, ExecutionEntity, PvmScope, String, String, HistoryEventType)
is the place to start looking. If you are interested in contributing, please let me know in case of questions.
Cheers, Thorben
Any updates on this issue? We are facing the same issue. processDefinitionVersion is null for all HistoryEvents!
Hi, we are currently not planning to work on this, but you could make a code contribution if you like.
Sure, I can share an MR for that.
I created an MR for this https://github.com/camunda/camunda-bpm-platform/pull/3592
@ThorbenLindhauer Please review & let me know if I need to make any changes
Closing due to inactivity.
This issue was imported from JIRA:
What is this name?
This pseudonym name was generated based on the user name in JIRA to protect the personal data of our JIRA users. You can use this identifier to search for issues by the same reporter.Environment (Required on creation):
Spring boot starter 7.14.0
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
HistoricActivityInstanceEventEntity in implemented Event Listener returns null ProcessDefinitionVersion, despite returning correct ProcessDefinitionKey, ProcessDefinitionId and despite correct ProcessDefinitionVersion being returned when querying Process Instances from REST API History endpoint (GET /history/process-instance) and from REST API process-definition endpoint (GET /process-definition).
Steps to reproduce (Required on creation):
@Component class HistoryListener { @EventListener public void onHistoryEvent(HistoricActivityInstanceEventEntity historyEvent)
{ Integer processDefinitionVersion = historyEvent.getProcessDefinitionVersion(); // processDefinitionVersion is null }
}
Deploy and instantiate some Process Definition
Observe data in raised event
Observed Behavior (Required on creation):
getProcessDefinitionVersion() on HistoricActivityInstanceEventEntity returns null
Expected behavior (Required on creation):
getProcessDefinitionVersion() on HistoricActivityInstanceEventEntity should return correct Process Definition Version number.
Links: