caseInstance not holding tenantId


#1

Hi everyone,

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.


#2

Hi,

how did you set the tenant id to the case definition?

Cheers,
Tassilo


#3

Hello,

I’m using the below code:

this.processEngine.getRepositoryService().createDeployment().addZipInputStream(document).tenantId(“tenantId”).deployWithResult()

Note that the exact same code works well with new ProcessDefinitions

Thanks,


#4

Hey,

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.

Thank you!

Cheers,
Tassilo