cancel
Showing results for 
Search instead for 
Did you mean: 

DEPLOYMENT_ID is null in ACT_RE_MODEL table (v5.16)

cold_gin
Champ in-the-making
Champ in-the-making
Hello. I would like to retrieve the process definition using deployment ID as per this api:

ProcessDefinition pd = processDefinitionQuery.deploymentId(respositoryService.getModel(myModelIdToLookup).getDeploymentId()).singleResult();

However, the deployment ID is not populated (null) in both the ACT_RE_MODEL or the ACT_RE_PROCDEF tables, and as a result, this portion of the call returns null:

respositoryService.getModel(myModelIdToLookup).getDeploymentId()

Is this a bug? If not, how can I lookup a ProcessDefintion object? I have not been able to determine another way to get this, other than with deployment ID.

Activiti version is 5.16.

Thanks.
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
How did you create this model? Using the API? If so, you'd need to set the deploymentId on the object itself.