What i’m trying to do :
Instanciate a caseDefinition that already has a tenantId, and an automatic started task.
using : processEngine.getCaseService().createCaseInstanceById(caseDefinitionId, businessKey, variables)
When i’m looking for tasks with this caseInstanceId, there is not tenantId.
Curious, cause it is working fine with a process.
Thanks for the help.
how did you set the tenant id to the case definition?
I’m using the below code:
Note that the exact same code works well with new ProcessDefinitions
I looked into your problem and it seems like this is not expected behavior.
The tenant id is not propagated to the Task. Therefore I created a Bug Report.