When deploying a process definition that has an embedded subprocess which has no start event, the engine throws an error when trying to start an instance of the process.
This is expected.
We should check this when deploying the process definition and prevent the deployment as it can never be executed.
Steps to reproduce:
- deploy attached bpmn 2 file -> no error
- start instance -> error
ENGINE-16004 Exception while closing command context: No initial activity found for subprocess Task_1l4wu5c: initialActivity is null