public MultiSchemaMultiTenantProcessEngineConfiguration(TenantInfoHolder tenantInfoHolder) { this.tenantInfoHolder = tenantInfoHolder; // Using the UUID generator, as otherwise the ids are pulled from a global pool of ids, backed by // a database table. Which is impossible with a mult-database-schema setup. // Also: it avoids the need for having a process definition cache for each tenant this.idGenerator = new StrongUuidGenerator(); this.dataSource = new TenantAwareDataSource(tenantInfoHolder); }
public StrongUuidGenerator() { ensureGeneratorInitialized(); }
@Override public @ResponseBody ResultResponse startSimpleInstanceWithBussinessKey(String processKey, String currentUser) { String businessKey = strongUuidGenerator.getNextId(); return startInstanceWithBussinessKey(processKey, businessKey, currentUser); }
conf.setIdGenerator(new StrongUuidGenerator());
public StrongUuidGenerator() { ensureGeneratorInitialized(); }
public MultiSchemaMultiTenantProcessEngineConfiguration(TenantInfoHolder tenantInfoHolder) { this.tenantInfoHolder = tenantInfoHolder; // Using the UUID generator, as otherwise the ids are pulled from a global pool of ids, backed by // a database table. Which is impossible with a mult-database-schema setup. // Also: it avoids the need for having a process definition cache for each tenant this.idGenerator = new StrongUuidGenerator(); this.dataSource = new TenantAwareDataSource(tenantInfoHolder); }
public StrongUuidGenerator() { ensureGeneratorInitialized(); }
@Override protected void initIdGenerator() { if(idGenerator == null) { idGenerator = new StrongUuidGenerator(); } super.initIdGenerator(); }
public StrongUuidGenerator() { ensureGeneratorInitialized(); }
conf.setIdGenerator(new StrongUuidGenerator());