code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
protected Collection<DefinitionEntity> transformResource(DeploymentEntity deployment, ResourceEntity resource, Properties properties) { String resourceName = resource.getName(); List<DefinitionEntity> definitions = transformDefinitions(deployment, resource, properties); for (DefinitionEntity definition : d...
@return the list of resource suffixes for this cacheDeployer
transformResource
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected String getDiagramResourceForDefinition(DeploymentEntity deployment, String resourceName, DefinitionEntity definition, Map<String, ResourceEntity> resources) { for (String diagramSuffix: getDiagramSuffixes()) { String definitionDiagramResource = getDefinitionDiagramResourceName(resourceName, definiti...
Returns the default name of the image resource for a certain definition. It will first look for an image resource which matches the definition specifically, before resorting to an image resource which matches the file containing the definition. Example: if the deployment contains a BPMN 2.0 xml resource called 'abc.b...
getDiagramResourceForDefinition
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected String getDefinitionDiagramResourceName(String resourceName, DefinitionEntity definition, String diagramSuffix) { String fileResourceBase = stripDefinitionFileSuffix(resourceName); String definitionKey = definition.getKey(); return fileResourceBase + definitionKey + "." + diagramSuffix; }
Returns the default name of the image resource for a certain definition. It will first look for an image resource which matches the definition specifically, before resorting to an image resource which matches the file containing the definition. Example: if the deployment contains a BPMN 2.0 xml resource called 'abc.b...
getDefinitionDiagramResourceName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected String getGeneralDiagramResourceName(String resourceName, DefinitionEntity definition, String diagramSuffix) { String fileResourceBase = stripDefinitionFileSuffix(resourceName); return fileResourceBase + diagramSuffix; }
Returns the default name of the image resource for a certain definition. It will first look for an image resource which matches the definition specifically, before resorting to an image resource which matches the file containing the definition. Example: if the deployment contains a BPMN 2.0 xml resource called 'abc.b...
getGeneralDiagramResourceName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected String stripDefinitionFileSuffix(String resourceName) { for (String suffix : getResourcesSuffixes()) { if(resourceName.endsWith(suffix)) { return resourceName.substring(0, resourceName.length() - suffix.length()); } } return resourceName; }
Returns the default name of the image resource for a certain definition. It will first look for an image resource which matches the definition specifically, before resorting to an image resource which matches the file containing the definition. Example: if the deployment contains a BPMN 2.0 xml resource called 'abc.b...
stripDefinitionFileSuffix
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected String[] getDiagramSuffixes() { return DIAGRAM_SUFFIXES; }
Returns the default name of the image resource for a certain definition. It will first look for an image resource which matches the definition specifically, before resorting to an image resource which matches the file containing the definition. Example: if the deployment contains a BPMN 2.0 xml resource called 'abc.b...
getDiagramSuffixes
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected void ensureNoDuplicateDefinitionKeys(List<DefinitionEntity> definitions) { Set<String> keys = new HashSet<String>(); for (DefinitionEntity definition : definitions) { String key = definition.getKey(); if (keys.contains(key)) { throw new ProcessEngineException("The deployment con...
Returns the default name of the image resource for a certain definition. It will first look for an image resource which matches the definition specifically, before resorting to an image resource which matches the file containing the definition. Example: if the deployment contains a BPMN 2.0 xml resource called 'abc.b...
ensureNoDuplicateDefinitionKeys
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected void postProcessDefinitions(DeploymentEntity deployment, List<DefinitionEntity> definitions, Properties properties) { if (deployment.isNew()) { // if the deployment is new persist the new definitions persistDefinitions(deployment, definitions, properties); } else { // if the current ...
Returns the default name of the image resource for a certain definition. It will first look for an image resource which matches the definition specifically, before resorting to an image resource which matches the file containing the definition. Example: if the deployment contains a BPMN 2.0 xml resource called 'abc.b...
postProcessDefinitions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected void persistDefinitions(DeploymentEntity deployment, List<DefinitionEntity> definitions, Properties properties) { for (DefinitionEntity definition : definitions) { String definitionKey = definition.getKey(); String tenantId = deployment.getTenantId(); DefinitionEntity latestDefinition =...
Returns the default name of the image resource for a certain definition. It will first look for an image resource which matches the definition specifically, before resorting to an image resource which matches the file containing the definition. Example: if the deployment contains a BPMN 2.0 xml resource called 'abc.b...
persistDefinitions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected void updateDefinitionByLatestDefinition(DeploymentEntity deployment, DefinitionEntity definition, DefinitionEntity latestDefinition) { definition.setVersion(getNextVersion(deployment, definition, latestDefinition)); definition.setId(generateDefinitionId(deployment, definition, latestDefinition)); ...
Returns the default name of the image resource for a certain definition. It will first look for an image resource which matches the definition specifically, before resorting to an image resource which matches the file containing the definition. Example: if the deployment contains a BPMN 2.0 xml resource called 'abc.b...
updateDefinitionByLatestDefinition
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected void loadDefinitions(DeploymentEntity deployment, List<DefinitionEntity> definitions, Properties properties) { for (DefinitionEntity definition : definitions) { String deploymentId = deployment.getId(); String definitionKey = definition.getKey(); DefinitionEntity persistedDefinition = f...
Returns the default name of the image resource for a certain definition. It will first look for an image resource which matches the definition specifically, before resorting to an image resource which matches the file containing the definition. Example: if the deployment contains a BPMN 2.0 xml resource called 'abc.b...
loadDefinitions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected void handlePersistedDefinition(DefinitionEntity definition, DefinitionEntity persistedDefinition, DeploymentEntity deployment, Properties properties) { persistedDefinitionLoaded(deployment, definition, persistedDefinition); updateDefinitionByPersistedDefinition(deployment, definition, pers...
Returns the default name of the image resource for a certain definition. It will first look for an image resource which matches the definition specifically, before resorting to an image resource which matches the file containing the definition. Example: if the deployment contains a BPMN 2.0 xml resource called 'abc.b...
handlePersistedDefinition
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected void updateDefinitionByPersistedDefinition(DeploymentEntity deployment, DefinitionEntity definition, DefinitionEntity persistedDefinition) { definition.setVersion(persistedDefinition.getVersion()); definition.setId(persistedDefinition.getId()); definition.setDeploymentId(deployment.getId()); d...
Returns the default name of the image resource for a certain definition. It will first look for an image resource which matches the definition specifically, before resorting to an image resource which matches the file containing the definition. Example: if the deployment contains a BPMN 2.0 xml resource called 'abc.b...
updateDefinitionByPersistedDefinition
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected void persistedDefinitionLoaded(DeploymentEntity deployment, DefinitionEntity definition, DefinitionEntity persistedDefinition) { // do nothing; }
Called when a previous version of a definition was loaded from the persistent store. @param deployment the deployment of the definition @param definition the definition entity @param persistedDefinition the loaded definition entity
persistedDefinitionLoaded
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected void registerDefinition(DeploymentEntity deployment, DefinitionEntity definition, Properties properties) { DeploymentCache deploymentCache = getDeploymentCache(); // Add to cache addDefinitionToDeploymentCache(deploymentCache, definition); definitionAddedToDeploymentCache(deployment, definit...
Persist definition entity into the database. @param definition the definition entity
registerDefinition
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected void definitionAddedToDeploymentCache(DeploymentEntity deployment, DefinitionEntity definition, Properties properties) { // do nothing }
Called after a definition was added to the deployment cache. @param deployment the deployment of the definition @param definition the definition entity
definitionAddedToDeploymentCache
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected int getNextVersion(DeploymentEntity deployment, DefinitionEntity newDefinition, DefinitionEntity latestDefinition) { int result = 1; if (latestDefinition != null) { int latestVersion = latestDefinition.getVersion(); result = latestVersion + 1; } return result; }
per default we increment the latest definition version by one - but you might want to hook in some own logic here, e.g. to align definition versions with deployment / build versions.
getNextVersion
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected String generateDefinitionId(DeploymentEntity deployment, DefinitionEntity newDefinition, DefinitionEntity latestDefinition) { String nextId = idGenerator.getNextId(); String definitionKey = newDefinition.getKey(); int definitionVersion = newDefinition.getVersion(); String definitionId = defi...
create an id for the definition. The default is to ask the {@link IdGenerator} and add the definition key and version if that does not exceed 64 characters. You might want to hook in your own implementation here.
generateDefinitionId
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected ProcessEngineConfigurationImpl getProcessEngineConfiguration() { return Context.getProcessEngineConfiguration(); }
create an id for the definition. The default is to ask the {@link IdGenerator} and add the definition key and version if that does not exceed 64 characters. You might want to hook in your own implementation here.
getProcessEngineConfiguration
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected CommandContext getCommandContext() { return Context.getCommandContext(); }
create an id for the definition. The default is to ask the {@link IdGenerator} and add the definition key and version if that does not exceed 64 characters. You might want to hook in your own implementation here.
getCommandContext
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
protected DeploymentCache getDeploymentCache() { return getProcessEngineConfiguration().getDeploymentCache(); }
create an id for the definition. The default is to ask the {@link IdGenerator} and add the definition key and version if that does not exceed 64 characters. You might want to hook in your own implementation here.
getDeploymentCache
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractDefinitionDeployer.java
Apache-2.0
public AbstractNativeQuery<T, U> setCommandExecutor(CommandExecutor commandExecutor) { this.commandExecutor = commandExecutor; return this; }
Abstract superclass for all native query types. @author Bernd Ruecker (camunda)
setCommandExecutor
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
Apache-2.0
@SuppressWarnings("unchecked") public T sql(String sqlStatement) { this.sqlStatement = sqlStatement; return (T) this; }
Abstract superclass for all native query types. @author Bernd Ruecker (camunda)
sql
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
Apache-2.0
@SuppressWarnings("unchecked") public T parameter(String name, Object value) { parameters.put(name, value); return (T) this; }
Abstract superclass for all native query types. @author Bernd Ruecker (camunda)
parameter
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
Apache-2.0
@SuppressWarnings("unchecked") public U singleResult() { this.resultType = ResultType.SINGLE_RESULT; if (commandExecutor != null) { return (U) commandExecutor.execute(this); } return executeSingleResult(Context.getCommandContext()); }
Abstract superclass for all native query types. @author Bernd Ruecker (camunda)
singleResult
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
Apache-2.0
@SuppressWarnings("unchecked") public List<U> list() { this.resultType = ResultType.LIST; if (commandExecutor != null) { return (List<U>) commandExecutor.execute(this); } return executeList(Context.getCommandContext(), getParameterMap(), 0, Integer.MAX_VALUE); }
Abstract superclass for all native query types. @author Bernd Ruecker (camunda)
list
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
Apache-2.0
@SuppressWarnings("unchecked") public List<U> listPage(int firstResult, int maxResults) { this.firstResult =firstResult; this.maxResults = maxResults; this.resultType = ResultType.LIST_PAGE; if (commandExecutor!=null) { return (List<U>) commandExecutor.execute(this); } return executeList...
Abstract superclass for all native query types. @author Bernd Ruecker (camunda)
listPage
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
Apache-2.0
public long count() { this.resultType = ResultType.COUNT; if (commandExecutor != null) { return (Long) commandExecutor.execute(this); } return executeCount(Context.getCommandContext(), getParameterMap()); }
Abstract superclass for all native query types. @author Bernd Ruecker (camunda)
count
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
Apache-2.0
public Object execute(CommandContext commandContext) { if (resultType == ResultType.LIST) { return executeList(commandContext, getParameterMap(), 0, Integer.MAX_VALUE); } else if (resultType == ResultType.LIST_PAGE) { Map<String, Object> parameterMap = getParameterMap(); parameterMap.put("resu...
Abstract superclass for all native query types. @author Bernd Ruecker (camunda)
execute
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
Apache-2.0
public U executeSingleResult(CommandContext commandContext) { List<U> results = executeList(commandContext, getParameterMap(), 0, Integer.MAX_VALUE); if (results.size() == 1) { return results.get(0); } else if (results.size() > 1) { throw new ProcessEngineException("Query return " + results.size...
Executes the actual query to retrieve the list of results. @param maxResults @param firstResult @param page used if the results must be paged. If null, no paging will be applied.
executeSingleResult
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
Apache-2.0
private Map<String, Object> getParameterMap() { HashMap<String, Object> parameterMap = new HashMap<String, Object>(); parameterMap.put("sql", sqlStatement); parameterMap.putAll(parameters); return parameterMap; }
Executes the actual query to retrieve the list of results. @param maxResults @param firstResult @param page used if the results must be paged. If null, no paging will be applied.
getParameterMap
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
Apache-2.0
public Map<String, Object> getParameters() { return parameters; }
Executes the actual query to retrieve the list of results. @param maxResults @param firstResult @param page used if the results must be paged. If null, no paging will be applied.
getParameters
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractNativeQuery.java
Apache-2.0
public AbstractQuery<T, U> setCommandExecutor(CommandExecutor commandExecutor) { this.commandExecutor = commandExecutor; return this; }
Abstract superclass for all query types. @author Joram Barrez
setCommandExecutor
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public T orderBy(QueryProperty property) { return orderBy(new QueryOrderingProperty(null, property)); }
Abstract superclass for all query types. @author Joram Barrez
orderBy
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
@SuppressWarnings("unchecked") public T orderBy(QueryOrderingProperty orderProperty) { this.orderingProperties.add(orderProperty); return (T) this; }
Abstract superclass for all query types. @author Joram Barrez
orderBy
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public T asc() { return direction(Direction.ASCENDING); }
Abstract superclass for all query types. @author Joram Barrez
asc
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public T desc() { return direction(Direction.DESCENDING); }
Abstract superclass for all query types. @author Joram Barrez
desc
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
@SuppressWarnings("unchecked") public T direction(Direction direction) { QueryOrderingProperty currentOrderingProperty = null; if (!orderingProperties.isEmpty()) { currentOrderingProperty = orderingProperties.get(orderingProperties.size() - 1); } ensureNotNull(NotValidException.class, "You sho...
Abstract superclass for all query types. @author Joram Barrez
direction
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
protected void checkQueryOk() { for (QueryOrderingProperty orderingProperty : orderingProperties) { ensureNotNull(NotValidException.class, "Invalid query: call asc() or desc() after using orderByXX()", "direction", orderingProperty.getDirection()); } }
Abstract superclass for all query types. @author Joram Barrez
checkQueryOk
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
@SuppressWarnings("unchecked") public U singleResult() { this.resultType = ResultType.SINGLE_RESULT; return (U) executeResult(resultType); }
Abstract superclass for all query types. @author Joram Barrez
singleResult
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
@SuppressWarnings("unchecked") public List<U> list() { this.resultType = ResultType.LIST; return (List<U>) executeResult(resultType); }
Abstract superclass for all query types. @author Joram Barrez
list
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
@SuppressWarnings("unchecked") public List<U> listPage(int firstResult, int maxResults) { this.firstResult = firstResult; this.maxResults = maxResults; this.resultType = ResultType.LIST_PAGE; return (List<U>) executeResult(resultType); }
Abstract superclass for all query types. @author Joram Barrez
listPage
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public Object executeResult(ResultType resultType) { if (commandExecutor != null) { if (!maxResultsLimitEnabled) { maxResultsLimitEnabled = Context.getCommandContext() == null; } return commandExecutor.execute(this); } switch (resultType) { case SINGLE_RESULT: retu...
Abstract superclass for all query types. @author Joram Barrez
executeResult
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public long count() { this.resultType = ResultType.COUNT; if (commandExecutor!=null) { return (Long) commandExecutor.execute(this); } return evaluateExpressionsAndExecuteCount(Context.getCommandContext()); }
Abstract superclass for all query types. @author Joram Barrez
count
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
@SuppressWarnings("unchecked") public List<U> unlimitedList() { this.resultType = ResultType.LIST; if (commandExecutor != null) { return (List<U>) commandExecutor.execute(this); } return evaluateExpressionsAndExecuteList(Context.getCommandContext(), null); }
Abstract superclass for all query types. @author Joram Barrez
unlimitedList
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public Object execute(CommandContext commandContext) { if (resultType==ResultType.LIST) { return evaluateExpressionsAndExecuteList(commandContext, null); } else if (resultType==ResultType.SINGLE_RESULT) { return executeSingleResult(commandContext); } else if (resultType==ResultType.LIST_PAGE) { ...
Abstract superclass for all query types. @author Joram Barrez
execute
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public long evaluateExpressionsAndExecuteCount(CommandContext commandContext) { validate(); evaluateExpressions(); return !hasExcludingConditions() ? executeCount(commandContext) : 0l; }
Abstract superclass for all query types. @author Joram Barrez
evaluateExpressionsAndExecuteCount
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public List<U> evaluateExpressionsAndExecuteList(CommandContext commandContext, Page page) { checkMaxResultsLimit(); validate(); evaluateExpressions(); return !hasExcludingConditions() ? executeList(commandContext, page) : new ArrayList<>(); }
Abstract superclass for all query types. @author Joram Barrez
evaluateExpressionsAndExecuteList
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
protected boolean hasExcludingConditions() { return false; }
Whether or not the query has excluding conditions. If the query has excluding conditions, (e.g. task due date before and after are excluding), the SQL query is avoided and a default result is returned. The returned result is the same as if the SQL was executed and there were no entries. @return {@code true} if the que...
hasExcludingConditions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public U executeSingleResult(CommandContext commandContext) { disableMaxResultsLimit(); List<U> results = evaluateExpressionsAndExecuteList(commandContext, new Page(0, 2)); if (results.size() == 1) { return results.get(0); } else if (results.size() > 1) { throw new ProcessEngineException("Que...
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
executeSingleResult
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public Map<String, String> getExpressions() { return expressions; }
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
getExpressions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public void setExpressions(Map<String, String> expressions) { this.expressions = expressions; }
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
setExpressions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public void addExpression(String key, String expression) { this.expressions.put(key, expression); }
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
addExpression
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
protected void evaluateExpressions() { // we cannot iterate directly on the entry set cause the expressions // are removed by the setter methods during the iteration ArrayList<Map.Entry<String, String>> entries = new ArrayList<>(expressions.entrySet()); for (Map.Entry<String, String> entry : entries) {...
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
evaluateExpressions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
protected Method getMethod(String methodName) { for (Method method : getClass().getDeclaredMethods()) { if (method.getName().equals(methodName)) { return method; } } throw new ProcessEngineException("Unable to find method '" + methodName + "' on class '" + getClass().getCanonicalName() +...
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
getMethod
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public T extend(T extendingQuery) { throw new ProcessEngineException("Extending of query type '" + extendingQuery.getClass().getCanonicalName() + "' currently not supported"); }
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
extend
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
protected void mergeOrdering(AbstractQuery<?, ?> extendedQuery, AbstractQuery<?, ?> extendingQuery) { extendedQuery.orderingProperties = this.orderingProperties; if (extendingQuery.orderingProperties != null) { if (extendedQuery.orderingProperties == null) { extendedQuery.orderingProperties = ex...
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
mergeOrdering
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
protected void mergeExpressions(AbstractQuery<?, ?> extendedQuery, AbstractQuery<?, ?> extendingQuery) { Map<String, String> mergedExpressions = new HashMap<>(extendingQuery.getExpressions()); for (Map.Entry<String, String> entry : this.getExpressions().entrySet()) { if (!mergedExpressions.containsKey(ent...
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
mergeExpressions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public void validate() { for (Validator<AbstractQuery<?, ?>> validator : validators) { validate(validator); } }
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
validate
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
@SuppressWarnings("unchecked") public List<String> listIds() { this.resultType = ResultType.LIST_IDS; List<String> ids = null; if (commandExecutor != null) { ids = (List<String>) commandExecutor.execute(this); } else { ids = evaluateExpressionsAndExecuteIdsList(Context.getCommandContext())...
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
listIds
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
@SuppressWarnings("unchecked") public List<ImmutablePair<String, String>> listDeploymentIdMappings() { this.resultType = ResultType.LIST_DEPLOYMENT_ID_MAPPINGS; List<ImmutablePair<String, String>> ids = null; if (commandExecutor != null) { ids = (List<ImmutablePair<String, String>>) commandExecutor....
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
listDeploymentIdMappings
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public List<String> evaluateExpressionsAndExecuteIdsList(CommandContext commandContext) { validate(); evaluateExpressions(); return !hasExcludingConditions() ? executeIdsList(commandContext) : new ArrayList<>(); }
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
evaluateExpressionsAndExecuteIdsList
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public List<String> executeIdsList(CommandContext commandContext) { throw new UnsupportedOperationException("executeIdsList not supported by " + getClass().getCanonicalName()); }
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
executeIdsList
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public List<ImmutablePair<String, String>> evaluateExpressionsAndExecuteDeploymentIdMappingsList(CommandContext commandContext) { validate(); evaluateExpressions(); return !hasExcludingConditions() ? executeDeploymentIdMappingsList(commandContext) : new ArrayList<>(); }
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
evaluateExpressionsAndExecuteDeploymentIdMappingsList
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public List<ImmutablePair<String, String>> executeDeploymentIdMappingsList(CommandContext commandContext) { throw new UnsupportedOperationException("executeDeploymentIdMappingsList not supported by " + getClass().getCanonicalName()); }
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
executeDeploymentIdMappingsList
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
protected void checkMaxResultsLimit() { if (maxResultsLimitEnabled) { QueryMaxResultsLimitUtil.checkMaxResultsLimit(maxResults); } }
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
checkMaxResultsLimit
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public void enableMaxResultsLimit() { maxResultsLimitEnabled = true; }
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
enableMaxResultsLimit
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
public void disableMaxResultsLimit() { maxResultsLimitEnabled = false; }
Executes the actual query to retrieve the list of results. @param page used if the results must be paged. If null, no paging will be applied.
disableMaxResultsLimit
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractQuery.java
Apache-2.0
@SuppressWarnings("unchecked") public T variableValueEquals(String name, Object value) { addVariable(name, value, QueryOperator.EQUALS, true); return (T) this; }
Abstract query class that adds methods to query for variable values. @author Frederik Heremans
variableValueEquals
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
Apache-2.0
@SuppressWarnings("unchecked") public T variableValueNotEquals(String name, Object value) { addVariable(name, value, QueryOperator.NOT_EQUALS, true); return (T) this; }
Abstract query class that adds methods to query for variable values. @author Frederik Heremans
variableValueNotEquals
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
Apache-2.0
@SuppressWarnings("unchecked") public T variableValueGreaterThan(String name, Object value) { addVariable(name, value, QueryOperator.GREATER_THAN, true); return (T) this; }
Abstract query class that adds methods to query for variable values. @author Frederik Heremans
variableValueGreaterThan
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
Apache-2.0
@SuppressWarnings("unchecked") public T variableValueGreaterThanOrEqual(String name, Object value) { addVariable(name, value, QueryOperator.GREATER_THAN_OR_EQUAL, true); return (T) this; }
Abstract query class that adds methods to query for variable values. @author Frederik Heremans
variableValueGreaterThanOrEqual
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
Apache-2.0
@SuppressWarnings("unchecked") public T variableValueLessThan(String name, Object value) { addVariable(name, value, QueryOperator.LESS_THAN, true); return (T) this; }
Abstract query class that adds methods to query for variable values. @author Frederik Heremans
variableValueLessThan
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
Apache-2.0
@SuppressWarnings("unchecked") public T variableValueLessThanOrEqual(String name, Object value) { addVariable(name, value, QueryOperator.LESS_THAN_OR_EQUAL, true); return (T) this; }
Abstract query class that adds methods to query for variable values. @author Frederik Heremans
variableValueLessThanOrEqual
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
Apache-2.0
@SuppressWarnings("unchecked") public T variableValueLike(String name, String value) { addVariable(name, value, QueryOperator.LIKE, true); return (T)this; }
Abstract query class that adds methods to query for variable values. @author Frederik Heremans
variableValueLike
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
Apache-2.0
@SuppressWarnings("unchecked") public T variableValueNotLike(String name, String value) { addVariable(name, value, QueryOperator.NOT_LIKE, true); return (T)this; }
Abstract query class that adds methods to query for variable values. @author Frederik Heremans
variableValueNotLike
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
Apache-2.0
@SuppressWarnings("unchecked") public T matchVariableNamesIgnoreCase() { this.variableNamesIgnoreCase = true; for (QueryVariableValue variable : getQueryVariableValues()) { variable.setVariableNameIgnoreCase(true); } return (T)this; }
Abstract query class that adds methods to query for variable values. @author Frederik Heremans
matchVariableNamesIgnoreCase
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
Apache-2.0
@SuppressWarnings("unchecked") public T matchVariableValuesIgnoreCase() { this.variableValuesIgnoreCase = true; for (QueryVariableValue variable : getQueryVariableValues()) { variable.setVariableValueIgnoreCase(true); } return (T)this; }
Abstract query class that adds methods to query for variable values. @author Frederik Heremans
matchVariableValuesIgnoreCase
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
Apache-2.0
protected void addVariable(String name, Object value, QueryOperator operator, boolean processInstanceScope) { QueryVariableValue queryVariableValue = createQueryVariableValue(name, value, operator, processInstanceScope); getQueryVariableValues().add(queryVariableValue); }
Abstract query class that adds methods to query for variable values. @author Frederik Heremans
addVariable
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
Apache-2.0
protected QueryVariableValue createQueryVariableValue(String name, Object value, QueryOperator operator, boolean processInstanceScope) { validateVariable(name, value, operator); boolean shouldMatchVariableValuesIgnoreCase = Boolean.TRUE.equals(variableValuesIgnoreCase) && value != null && String.class.isAssign...
Abstract query class that adds methods to query for variable values. @author Frederik Heremans
createQueryVariableValue
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
Apache-2.0
protected void validateVariable(String name, Object value, QueryOperator operator) { ensureNotNull(NotValidException.class, "name", name); if(value == null || isBoolean(value)) { // Null-values and booleans can only be used in EQUALS and NOT_EQUALS switch(operator) { case GREATER_THAN: ...
Abstract query class that adds methods to query for variable values. @author Frederik Heremans
validateVariable
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
Apache-2.0
private boolean isBoolean(Object value) { if (value == null) { return false; } return Boolean.class.isAssignableFrom(value.getClass()) || boolean.class.isAssignableFrom(value.getClass()); }
Abstract query class that adds methods to query for variable values. @author Frederik Heremans
isBoolean
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
Apache-2.0
protected void ensureVariablesInitialized() { if (!getQueryVariableValues().isEmpty()) { ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); VariableSerializers variableSerializers = processEngineConfiguration.getVariableSerializers(); String dbType...
Abstract query class that adds methods to query for variable values. @author Frederik Heremans
ensureVariablesInitialized
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
Apache-2.0
public List<QueryVariableValue> getQueryVariableValues() { return queryVariableValues; }
Abstract query class that adds methods to query for variable values. @author Frederik Heremans
getQueryVariableValues
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
Apache-2.0
public Boolean isVariableNamesIgnoreCase() { return variableNamesIgnoreCase; }
Abstract query class that adds methods to query for variable values. @author Frederik Heremans
isVariableNamesIgnoreCase
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
Apache-2.0
public Boolean isVariableValuesIgnoreCase() { return variableValuesIgnoreCase; }
Abstract query class that adds methods to query for variable values. @author Frederik Heremans
isVariableValuesIgnoreCase
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AbstractVariableQueryImpl.java
Apache-2.0
public Set<ExecutionEntity> getExecutions(ScopeImpl activity) { Set<ExecutionEntity> executionsForActivity = activityExecutionMapping.get(activity); if (executionsForActivity == null) { executionsForActivity = new HashSet<ExecutionEntity>(); activityExecutionMapping.put(activity, executionsForActivi...
Maps an activity (plain activities + their containing flow scopes) to the scope executions that are executing them. For every instance of a scope, there is one such execution. @author Thorben Lindhauer
getExecutions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/ActivityExecutionTreeMapping.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/ActivityExecutionTreeMapping.java
Apache-2.0
public ExecutionEntity getExecution(ActivityInstance activityInstance) { ScopeImpl scope = null; if (activityInstance.getId().equals(activityInstance.getProcessInstanceId())) { scope = processDefinition; } else { scope = processDefinition.findActivity(activityInstance.getActivityId()); ...
Maps an activity (plain activities + their containing flow scopes) to the scope executions that are executing them. For every instance of a scope, there is one such execution. @author Thorben Lindhauer
getExecution
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/ActivityExecutionTreeMapping.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/ActivityExecutionTreeMapping.java
Apache-2.0
protected ExecutionEntity intersect(Set<ExecutionEntity> executions, String[] executionIds) { Set<String> executionIdSet = new HashSet<String>(); for (String executionId : executionIds) { executionIdSet.add(executionId); } for (ExecutionEntity execution : executions) { if (executionIdSet.co...
Maps an activity (plain activities + their containing flow scopes) to the scope executions that are executing them. For every instance of a scope, there is one such execution. @author Thorben Lindhauer
intersect
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/ActivityExecutionTreeMapping.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/ActivityExecutionTreeMapping.java
Apache-2.0
protected void initialize() { ExecutionEntity processInstance = commandContext.getExecutionManager().findExecutionById(processInstanceId); this.processDefinition = processInstance.getProcessDefinition(); List<ExecutionEntity> executions = fetchExecutionsForProcessInstance(processInstance); executions.a...
Maps an activity (plain activities + their containing flow scopes) to the scope executions that are executing them. For every instance of a scope, there is one such execution. @author Thorben Lindhauer
initialize
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/ActivityExecutionTreeMapping.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/ActivityExecutionTreeMapping.java
Apache-2.0
protected void assignExecutionsToActivities(List<ExecutionEntity> leaves) { for (ExecutionEntity leaf : leaves) { ScopeImpl activity = leaf.getActivity(); if (activity != null) { if (leaf.getActivityInstanceId() != null) { EnsureUtil.ensureNotNull("activity", activity); subm...
Maps an activity (plain activities + their containing flow scopes) to the scope executions that are executing them. For every instance of a scope, there is one such execution. @author Thorben Lindhauer
assignExecutionsToActivities
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/ActivityExecutionTreeMapping.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/ActivityExecutionTreeMapping.java
Apache-2.0
protected void mergeScopeExecutions(ExecutionEntity leaf) { Map<ScopeImpl, PvmExecutionImpl> mapping = leaf.createActivityExecutionMapping(); for (Map.Entry<ScopeImpl, PvmExecutionImpl> mappingEntry : mapping.entrySet()) { ScopeImpl scope = mappingEntry.getKey(); ExecutionEntity scopeExecution = (E...
Maps an activity (plain activities + their containing flow scopes) to the scope executions that are executing them. For every instance of a scope, there is one such execution. @author Thorben Lindhauer
mergeScopeExecutions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/ActivityExecutionTreeMapping.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/ActivityExecutionTreeMapping.java
Apache-2.0
protected List<ExecutionEntity> fetchExecutionsForProcessInstance(ExecutionEntity execution) { List<ExecutionEntity> executions = new ArrayList<ExecutionEntity>(); executions.addAll(execution.getExecutions()); for (ExecutionEntity child : execution.getExecutions()) { executions.addAll(fetchExecutionsF...
Maps an activity (plain activities + their containing flow scopes) to the scope executions that are executing them. For every instance of a scope, there is one such execution. @author Thorben Lindhauer
fetchExecutionsForProcessInstance
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/ActivityExecutionTreeMapping.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/ActivityExecutionTreeMapping.java
Apache-2.0
protected List<ExecutionEntity> findLeaves(List<ExecutionEntity> executions) { List<ExecutionEntity> leaves = new ArrayList<ExecutionEntity>(); for (ExecutionEntity execution : executions) { if (isLeaf(execution)) { leaves.add(execution); } } return leaves; }
Maps an activity (plain activities + their containing flow scopes) to the scope executions that are executing them. For every instance of a scope, there is one such execution. @author Thorben Lindhauer
findLeaves
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/ActivityExecutionTreeMapping.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/ActivityExecutionTreeMapping.java
Apache-2.0
protected boolean isLeaf(ExecutionEntity execution) { if (CompensationBehavior.isCompensationThrowing(execution)) { return true; } else { return !execution.isEventScope() && execution.getNonEventScopeExecutions().isEmpty(); } }
event-scope executions are not considered in this mapping and must be ignored
isLeaf
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/ActivityExecutionTreeMapping.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/ActivityExecutionTreeMapping.java
Apache-2.0
private boolean containsIncompatiblePermissions() { return queryByPermission && resourcesIntersection.isEmpty(); }
check whether there are any compatible resources for all of the filtered permission parameters
containsIncompatiblePermissions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AuthorizationQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AuthorizationQueryImpl.java
Apache-2.0
private boolean containsIncompatibleResourceType() { if (queryByResourceType && queryByPermission) { Resource[] resources = resourcesIntersection.toArray(new Resource[resourcesIntersection.size()]); return !ResourceTypeUtil.resourceIsContainedInArray(resourceType, resources); } return false; }
check whether the permissions' resources are compatible to the filtered resource parameter
containsIncompatibleResourceType
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AuthorizationQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AuthorizationQueryImpl.java
Apache-2.0
public String getId() { return id; }
check whether the permissions' resources are compatible to the filtered resource parameter
getId
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AuthorizationQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AuthorizationQueryImpl.java
Apache-2.0
public boolean isQueryByPermission() { return queryByPermission; }
check whether the permissions' resources are compatible to the filtered resource parameter
isQueryByPermission
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AuthorizationQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AuthorizationQueryImpl.java
Apache-2.0
public String[] getUserIds() { return userIds; }
check whether the permissions' resources are compatible to the filtered resource parameter
getUserIds
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/AuthorizationQueryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/AuthorizationQueryImpl.java
Apache-2.0