flowable / flowable/flowable-engine
Changing state to a Call Activity has error when creating EntityLinks
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 7h 8m
- Merged PRs (30d)
- 2
Description
We have encountered an issue with changing process state to a Call Activity when "enableEntityLinks" is set to false. The error occurs at org.flowable.engine.impl.dynamic.AbstractDynamicStateManager:createCallActivityInstance line:969
`ExecutionEntity subProcessInstance = executionEntityManager.createSubprocessInstance(subProcessDefinition, parentExecution, businessKey, initialActivityId);
EntityLinkUtil.createEntityLinks(parentExecution.getProcessInstanceId(), parentExecution.getId(), callActivity.getId(),
subProcessInstance.getId(), ScopeTypes.BPMN);
CommandContextUtil.getActivityInstanceEntityManager(commandContext).recordSubProcessInstanceStart(parentExecution, subProcessInstance);
`
It appears that a check of "enableEntityLinks" is required before calling "createEntityLinks".
This issue affects version 6.8 of the Flowable engine.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.