Search in sources :

Example 1 with ProcessDefinitionQueryImpl

use of org.camunda.bpm.engine.impl.ProcessDefinitionQueryImpl in project camunda-bpm-platform by camunda.

the class BpmnModelInstanceCache method getAllDefinitionsForDeployment.

@Override
protected List<ProcessDefinition> getAllDefinitionsForDeployment(final String deploymentId) {
    final CommandContext commandContext = Context.getCommandContext();
    List<ProcessDefinition> allDefinitionsForDeployment = commandContext.runWithoutAuthorization(new Callable<List<ProcessDefinition>>() {

        public List<ProcessDefinition> call() throws Exception {
            return new ProcessDefinitionQueryImpl().deploymentId(deploymentId).list();
        }
    });
    return allDefinitionsForDeployment;
}
Also used : CommandContext(org.camunda.bpm.engine.impl.interceptor.CommandContext) ProcessDefinitionQueryImpl(org.camunda.bpm.engine.impl.ProcessDefinitionQueryImpl) ProcessDefinition(org.camunda.bpm.engine.repository.ProcessDefinition) List(java.util.List)

Aggregations

List (java.util.List)1 ProcessDefinitionQueryImpl (org.camunda.bpm.engine.impl.ProcessDefinitionQueryImpl)1 CommandContext (org.camunda.bpm.engine.impl.interceptor.CommandContext)1 ProcessDefinition (org.camunda.bpm.engine.repository.ProcessDefinition)1