Class TenantAwareExecuteAsyncRunnable
java.lang.Object
org.activiti.engine.impl.asyncexecutor.ExecuteAsyncRunnable
org.activiti.engine.impl.asyncexecutor.multitenant.TenantAwareExecuteAsyncRunnable
- All Implemented Interfaces:
Runnable
Extends the default
ExecuteAsyncRunnable by setting the 'tenant' context before executing.-
Field Summary
FieldsFields inherited from class org.activiti.engine.impl.asyncexecutor.ExecuteAsyncRunnable
job, jobId, processEngineConfiguration -
Constructor Summary
ConstructorsConstructorDescriptionTenantAwareExecuteAsyncRunnable(Job job, ProcessEngineConfigurationImpl processEngineConfiguration, TenantInfoHolder tenantInfoHolder, String tenantId) -
Method Summary
Methods inherited from class org.activiti.engine.impl.asyncexecutor.ExecuteAsyncRunnable
executeJob, handleFailedJob, lockJobIfNeeded, runInternal, unacquireJob, unlockJobIfNeeded
-
Field Details
-
tenantInfoHolder
-
tenantId
-
-
Constructor Details
-
TenantAwareExecuteAsyncRunnable
public TenantAwareExecuteAsyncRunnable(Job job, ProcessEngineConfigurationImpl processEngineConfiguration, TenantInfoHolder tenantInfoHolder, String tenantId)
-
-
Method Details
-
run
public void run()- Specified by:
runin interfaceRunnable- Overrides:
runin classExecuteAsyncRunnable
-