public T findDeployedDefinitionByKeyVersionTagAndTenantId(final String definitionKey, final String definitionVersionTag, final String tenantId) { final CommandContext commandContext = Context.getCommandContext(); T definition = commandContext.runWithoutAuthorization(new Callable<T>() { public T call() throws Exception { return getManager().findDefinitionByKeyVersionTagAndTenantId(definitionKey, definitionVersionTag, tenantId); } }); checkInvalidDefinitionByKeyVersionTagAndTenantId(definitionKey, definitionVersionTag, tenantId, definition); definition = resolveDefinition(definition); return definition; }
public T findDeployedDefinitionByKeyVersionAndTenantId(final String definitionKey, final Integer definitionVersion, final String tenantId) { final CommandContext commandContext = Context.getCommandContext(); T definition = commandContext.runWithoutAuthorization(new Callable<T>() { public T call() throws Exception { return getManager().findDefinitionByKeyVersionAndTenantId(definitionKey, definitionVersion, tenantId); } }); checkInvalidDefinitionByKeyVersionAndTenantId(definitionKey, definitionVersion, tenantId, definition); definition = resolveDefinition(definition); return definition; }
public T findDeployedDefinitionByKeyVersionTagAndTenantId(final String definitionKey, final String definitionVersionTag, final String tenantId) { final CommandContext commandContext = Context.getCommandContext(); T definition = commandContext.runWithoutAuthorization(new Callable<T>() { public T call() throws Exception { return getManager().findDefinitionByKeyVersionTagAndTenantId(definitionKey, definitionVersionTag, tenantId); } }); checkInvalidDefinitionByKeyVersionTagAndTenantId(definitionKey, definitionVersionTag, tenantId, definition); definition = resolveDefinition(definition); return definition; }
/** * @return the latest version of the definition with the given key (from any tenant) * @throws ProcessEngineException if more than one tenant has a definition with the given key */ public T findDeployedLatestDefinitionByKey(String definitionKey) { T definition = getManager() .findLatestDefinitionByKey(definitionKey); checkInvalidDefinitionByKey(definitionKey, definition); definition = resolveDefinition(definition); return definition; }
public T findDeployedDefinitionByKeyVersionAndTenantId(final String definitionKey, final Integer definitionVersion, final String tenantId) { final CommandContext commandContext = Context.getCommandContext(); T definition = commandContext.runWithoutAuthorization(new Callable<T>() { public T call() throws Exception { return getManager().findDefinitionByKeyVersionAndTenantId(definitionKey, definitionVersion, tenantId); } }); checkInvalidDefinitionByKeyVersionAndTenantId(definitionKey, definitionVersion, tenantId, definition); definition = resolveDefinition(definition); return definition; }
public T findDeployedDefinitionByDeploymentAndKey(String deploymentId, String definitionKey) { T definition = getManager().findDefinitionByDeploymentAndKey(deploymentId, definitionKey); checkInvalidDefinitionByDeploymentAndKey(deploymentId, definitionKey, definition); definition = resolveDefinition(definition); return definition; }
public T findDeployedDefinitionByDeploymentAndKey(String deploymentId, String definitionKey) { T definition = getManager().findDefinitionByDeploymentAndKey(deploymentId, definitionKey); checkInvalidDefinitionByDeploymentAndKey(deploymentId, definitionKey, definition); definition = resolveDefinition(definition); return definition; }
public T findDeployedLatestDefinitionByKeyAndTenantId(String definitionKey, String tenantId) { T definition = getManager() .findLatestDefinitionByKeyAndTenantId(definitionKey, tenantId); checkInvalidDefinitionByKeyAndTenantId(definitionKey, tenantId, definition); definition = resolveDefinition(definition); return definition; }
/** * @return the latest version of the definition with the given key (from any tenant) * @throws ProcessEngineException if more than one tenant has a definition with the given key */ public T findDeployedLatestDefinitionByKey(String definitionKey) { T definition = getManager() .findLatestDefinitionByKey(definitionKey); checkInvalidDefinitionByKey(definitionKey, definition); definition = resolveDefinition(definition); return definition; }
public T findDeployedLatestDefinitionByKeyAndTenantId(String definitionKey, String tenantId) { T definition = getManager() .findLatestDefinitionByKeyAndTenantId(definitionKey, tenantId); checkInvalidDefinitionByKeyAndTenantId(definitionKey, tenantId, definition); definition = resolveDefinition(definition); return definition; }
public T findDeployedDefinitionById(String definitionId) { checkInvalidDefinitionId(definitionId); T definition = getManager().getCachedResourceDefinitionEntity(definitionId); if (definition == null) { definition = getManager() .findLatestDefinitionById(definitionId); } checkDefinitionFound(definitionId, definition); definition = resolveDefinition(definition); return definition; }
public T findDeployedDefinitionById(String definitionId) { checkInvalidDefinitionId(definitionId); T definition = getManager().getCachedResourceDefinitionEntity(definitionId); if (definition == null) { definition = getManager() .findLatestDefinitionById(definitionId); } checkDefinitionFound(definitionId, definition); definition = resolveDefinition(definition); return definition; }
public T findDeployedDefinitionByKeyVersionAndTenantId(final String definitionKey, final Integer definitionVersion, final String tenantId) { final CommandContext commandContext = Context.getCommandContext(); T definition = commandContext.runWithoutAuthorization(new Callable<T>() { public T call() throws Exception { return getManager().findDefinitionByKeyVersionAndTenantId(definitionKey, definitionVersion, tenantId); } }); checkInvalidDefinitionByKeyVersionAndTenantId(definitionKey, definitionVersion, tenantId, definition); definition = resolveDefinition(definition); return definition; }
public T findDeployedDefinitionByKeyVersionTagAndTenantId(final String definitionKey, final String definitionVersionTag, final String tenantId) { final CommandContext commandContext = Context.getCommandContext(); T definition = commandContext.runWithoutAuthorization(new Callable<T>() { public T call() throws Exception { return getManager().findDefinitionByKeyVersionTagAndTenantId(definitionKey, definitionVersionTag, tenantId); } }); checkInvalidDefinitionByKeyVersionTagAndTenantId(definitionKey, definitionVersionTag, tenantId, definition); definition = resolveDefinition(definition); return definition; }
public T findDeployedLatestDefinitionByKeyAndTenantId(String definitionKey, String tenantId) { T definition = getManager() .findLatestDefinitionByKeyAndTenantId(definitionKey, tenantId); checkInvalidDefinitionByKeyAndTenantId(definitionKey, tenantId, definition); definition = resolveDefinition(definition); return definition; }
public T findDeployedDefinitionByDeploymentAndKey(String deploymentId, String definitionKey) { T definition = getManager().findDefinitionByDeploymentAndKey(deploymentId, definitionKey); checkInvalidDefinitionByDeploymentAndKey(deploymentId, definitionKey, definition); definition = resolveDefinition(definition); return definition; }
/** * @return the latest version of the definition with the given key (from any tenant) * @throws ProcessEngineException if more than one tenant has a definition with the given key */ public T findDeployedLatestDefinitionByKey(String definitionKey) { T definition = getManager() .findLatestDefinitionByKey(definitionKey); checkInvalidDefinitionByKey(definitionKey, definition); definition = resolveDefinition(definition); return definition; }
public T findDeployedDefinitionById(String definitionId) { checkInvalidDefinitionId(definitionId); T definition = getManager().getCachedResourceDefinitionEntity(definitionId); if (definition == null) { definition = getManager() .findLatestDefinitionById(definitionId); } checkDefinitionFound(definitionId, definition); definition = resolveDefinition(definition); return definition; }