Message start event in event sub process incorrectly completes the process instance's history.

Description

If execution reach Message start event in event sub process, there are cases when the process instance's history incorrectly is completed.

Reproducibility conditions

The issue is reproduced only in case when scope execution(ex message catching event) exists in addition to process instance's execution.

Test Case

https://github.com/Activiti/Activiti/files/656041/incorrect_history_by_message_start_event.zip

Environment

None

Status

Assignee

Ravi kumar Tadela

Reporter

imd

Labels

None

Sprint

Affects versions

5.22

Priority

High
Configure