Ejemplo n.º 1
0
 /** Implementation of doExecute method. This task just returns the person object back */
 protected void doExecute() {
   Earthling earthling =
       (Earthling) this.getTaskData().getEntityByName(Earthling.class.getName())[0];
   LOGGER.info(
       "Echo "
           + earthling.getFirstName()
           + " "
           + earthling.getLastName()
           + " "
           + earthling.getDateOfBirth().getTime());
   this.result.setResultCode(TaskResultCode.SUCCESS);
 }