responder.sendJson(HttpResponseStatus.BAD_REQUEST, "Must provide a string runnableId for flows/services");
return;
}
runnableId = requestedObj.getRunnableId();
if (programType == ProgramType.FLOW) {
FlowSpecification flowSpec = spec.getFlows().get(programId);
if (flowSpec != null) {
Map<String, FlowletDefinition> flowletSpecs = flowSpec.getFlowlets();
if (flowletSpecs != null && flowletSpecs.containsKey(runnableId)) {
requested = flowletSpecs.get(runnableId).getInstances();
} else {
addCodeError(requestedObj, HttpResponseStatus.NOT_FOUND.getCode(),
"Flowlet: " + runnableId + " not found");