Skip to content
Mark Taylor edited this page Jan 5, 2014 · 7 revisions
@Override
protected JSONObject doWork() {
   JSONObject result = new JSONObject();
   ....
   return result;
}

Method is intended to used by derived background services to provide the actual program logic. This is the most critical method to override, otherwise no action will occur from the background service.

Note that the doWork also returns a JSONObject - which is made available to the HTML/ Javascript Front-End via the [Returned JSON] (Returned-JSON). See [Updating the front end] (Updating-the-front-end) for methods of how to process that result.

Clone this wiki locally