Unable to commit an entity that includes ProcInstance

Caused by: com.haulmont.cuba.core.global.RemoteException: During synchronization a new object was found through a relationship that was not marked cascade PERSIST: com.haulmont.bpm.entity.ProcInstance-941cec4a-35f3-7317-2529-1189ff59213f [new,managed,detached].

why?
i just dataManager.commit(entity);

i konw why, because the entity incloud the entity ProcInstance-941cec4a-35f3-7317-2529-1189ff59213f ,
but the ProcInstance entity is no PERSIST,
but why is no PERSIST?
i start a service task ,it will return ProcInstance,why the ProcInstance is no PERSIST?

how can i start bpm only use java in cuba6.10?
%E4%BC%81%E4%B8%9A%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20190301154013
this is my method, but the procInstance is not PERSIST

before ,i used cuba6.8,and it’s ok,but now ,i update 6.10, it’s fail

Hi,

Unfortunately, it is not that easy to reproduce your problem with only text description. We will be able to help you if you send us a small sample project along with reproduction scenario that demonstrates the issue.

you can test it that creat a bpm project whit mysql, then start it ,you will get a error

you can see it also
i created a demo at there