caseInstance not holding tenantId

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.

Hi,

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

Cheers,
Tassilo

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,

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

1 Like