Search in sources :

Example 1 with DefaultCallableElementTenantIdProvider

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);
}
Also used : ExpressionManager(org.camunda.bpm.engine.impl.el.ExpressionManager) ParameterValueProvider(org.camunda.bpm.engine.impl.core.variable.mapping.value.ParameterValueProvider) DefaultCallableElementTenantIdProvider(org.camunda.bpm.engine.impl.core.model.DefaultCallableElementTenantIdProvider)

Aggregations

DefaultCallableElementTenantIdProvider (org.camunda.bpm.engine.impl.core.model.DefaultCallableElementTenantIdProvider)1 ParameterValueProvider (org.camunda.bpm.engine.impl.core.variable.mapping.value.ParameterValueProvider)1 ExpressionManager (org.camunda.bpm.engine.impl.el.ExpressionManager)1