use of org.camunda.bpm.engine.impl.core.model.DefaultCallableElementTenantIdProvider in project camunda-bpm-platform by camunda.
the class CallingTaskItemHandler method initializeTenantId.
protected void initializeTenantId(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, BaseCallableElement callableElement) {
ParameterValueProvider tenantIdProvider;
ExpressionManager expressionManager = context.getExpressionManager();
String tenantId = getTenantId(element, activity, context);
if (tenantId != null && tenantId.length() > 0) {
tenantIdProvider = createParameterValueProvider(tenantId, expressionManager);
} else {
tenantIdProvider = new DefaultCallableElementTenantIdProvider();
}
callableElement.setTenantIdProvider(tenantIdProvider);
}
Aggregations