Affects Version/s: 7.0.0 DXP SP2
Uploading a workflow definition fails, when trying to deploy a new workflow definition from a PortalInstanceLifecycleListener.
Service used : WorkflowDefinitionManager
Method used : deployWorkflowDefinition(long companyId, long userId, String title, byte bytes)
Following is the error :
_Caused by: java.lang.NullPointerException
This is possibly happening as the reference to WorkflowEngine is not satisfied yet, because of the optional caridinality.
Above piece of code was originally added to resolve circular dependency between the spring bean and the osgi module - (70d491d0f4a92de031ab554c3b58c64a628602cc)