use of org.camunda.bpm.engine.RepositoryService in project camunda-bpm-platform by camunda.
the class HalCaseDefinitionResolver method resolveNotCachedLinks.
protected List<HalResource<?>> resolveNotCachedLinks(String[] linkedIds, ProcessEngine processEngine) {
RepositoryService repositoryService = processEngine.getRepositoryService();
List<CaseDefinition> caseDefinitions = repositoryService.createCaseDefinitionQuery().caseDefinitionIdIn(linkedIds).listPage(0, linkedIds.length);
List<HalResource<?>> resolved = new ArrayList<HalResource<?>>();
for (CaseDefinition caseDefinition : caseDefinitions) {
resolved.add(HalCaseDefinition.fromCaseDefinition(caseDefinition, processEngine));
}
return resolved;
}
use of org.camunda.bpm.engine.RepositoryService in project camunda-bpm-platform by camunda.
the class HalProcessDefinitionResolver method resolveNotCachedLinks.
protected List<HalResource<?>> resolveNotCachedLinks(String[] linkedIds, ProcessEngine processEngine) {
RepositoryService repositoryService = processEngine.getRepositoryService();
List<ProcessDefinition> processDefinitions = repositoryService.createProcessDefinitionQuery().processDefinitionIdIn(linkedIds).listPage(0, linkedIds.length);
List<HalResource<?>> resolved = new ArrayList<HalResource<?>>();
for (ProcessDefinition procDef : processDefinitions) {
resolved.add(HalProcessDefinition.fromProcessDefinition(procDef, processEngine));
}
return resolved;
}
Aggregations