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;
}
Aggregations