org.flowable.common.engine.api.FlowableException: Could not find a dataSource for tenant null

When starting the process instance, do you set the current tenantId? The TenantAwareDataSource can’t know which tenant it needs to pick. It won’t pick it up from the .tenantId() in the start method.
See example here: https://github.com/flowable/flowable-engine/blob/master/modules/flowable-engine/src/test/java/org/flowable/engine/test/cfg/multitenant/MultiTenantProcessEngineTest.java#L152

1 Like