Search in sources :

Example 1 with ProcessEngineDto

use of org.camunda.bpm.engine.rest.dto.ProcessEngineDto in project camunda-bpm-platform by camunda.

the class NamedProcessEngineRestServiceImpl method getProcessEngineNames.

@GET
@Produces(MediaType.APPLICATION_JSON)
public List<ProcessEngineDto> getProcessEngineNames() {
    ProcessEngineProvider provider = getProcessEngineProvider();
    Set<String> engineNames = provider.getProcessEngineNames();
    List<ProcessEngineDto> results = new ArrayList<ProcessEngineDto>();
    for (String engineName : engineNames) {
        ProcessEngineDto dto = new ProcessEngineDto();
        dto.setName(engineName);
        results.add(dto);
    }
    return results;
}
Also used : ProcessEngineDto(org.camunda.bpm.engine.rest.dto.ProcessEngineDto) ArrayList(java.util.ArrayList) ProcessEngineProvider(org.camunda.bpm.engine.rest.spi.ProcessEngineProvider) Produces(javax.ws.rs.Produces) GET(javax.ws.rs.GET)

Aggregations

ArrayList (java.util.ArrayList)1 GET (javax.ws.rs.GET)1 Produces (javax.ws.rs.Produces)1 ProcessEngineDto (org.camunda.bpm.engine.rest.dto.ProcessEngineDto)1 ProcessEngineProvider (org.camunda.bpm.engine.rest.spi.ProcessEngineProvider)1