Features 575, 567, 581

@iperdomo, I think this is done by adding

.header("Host",BackendServiceFactory.getBackendService().getBackendAddress("dataprocessor"));

To the task options, right?

mark

n 8 Jun 2014, at 15:55, Iván Perdomo <notifications@github.com> wrote:

> In GAE/src/org/waterforpeople/mapping/app/web/TestHarnessServlet.java:
> 
> > +				try {
> > +					// if we have a surveyId, try to parse it to long here
> > +					// if we fail, we break of the whole operation
> > +					// we don't use the parsed value
> > +					Long surveyId = Long.parseLong(req.getParameter("surveyId"));
> > +
> > +					// check if the survey exists
> > +					SurveyDAO sDao = new SurveyDAO();
> > +					Survey s = sDao.getByKey(surveyId);
> > +					if (s != null){
> > +						// fire processing task
> > +						final TaskOptions options = TaskOptions.Builder.withUrl(
> > +								"/app_worker/dataprocessor")
> > +										.param(DataProcessorRequest.ACTION_PARAM,
> > +												DataProcessorRequest.POPULATE_MONITORING_FIELDS_LOCALE_ACTION)
> > +										.param(DataProcessorRequest.SURVEY_ID_PARAM,surveyId.toString());
> As commented before, we should use the dataprocessor backend for this type of processing.
> 
> —
> Reply to this email directly or view it on GitHub.
>