package org.sanelib.eboss.api.services.employee;

import org.activiti.engine.RuntimeService;
import org.activiti.engine.impl.test.TestHelper;
import org.sanelib.eboss.api.dto.employee.EmployeeDTO;
import org.sanelib.eboss.api.services.ApiEndPointConstants;
import org.sanelib.eboss.api.services.ApiServiceBase;
import org.sanelib.eboss.core.activities.ActivitiProcessConstants;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;

import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.ArrayList;
import java.util.List;

@Component
@Path(ApiEndPointConstants.Admin.EMPLOYEE_END_POINT)
@Produces(MediaType.APPLICATION_JSON)
public class EmployeeService extends ApiServiceBase {

    @Autowired
    ApplicationContext applicationContext;

    @Autowired
    RuntimeService runtimeService;

    @GET
    public List<EmployeeDTO> getAllEmployees() throws Exception {
        List<EmployeeDTO> dtos = new ArrayList<>();
        EmployeeDTO employeeDTO = new EmployeeDTO();
        employeeDTO.setCode("EMP001");
        employeeDTO.setFirstName("first name");
        employeeDTO.setLastName("last name");
        employeeDTO.setDateOfBirth("1990/1/1");
        employeeDTO.setAddressLine1("7,Shakti Park Soc");
        employeeDTO.setAddressLine2("College Road");
        employeeDTO.setCity("Nadiad");
        employeeDTO.setState("Gujarat");
        employeeDTO.setCountry("India");
        employeeDTO.setZipCode("387001");
        employeeDTO.setPhone("9876543210");
        employeeDTO.setEmail("fname@gmail.com");
        employeeDTO.setGender("Male");
        employeeDTO.setDateOfJoining("2015/7/1");
        employeeDTO.setIsActive(true);
        dtos.add(employeeDTO);
        return dtos;
    }

    @POST
    public String addEmployee(EmployeeDTO employeeDTO) throws Exception {
        return execute(employeeDTO, ActivitiProcessConstants.Admin.ADD_EMPLOYEE);
    }
}

@@ -1979,33 +1979,33 @@
 DTO) throws 
-Exception
+Throwable
  %7B%0A        r

Fix compilation issue after modifying signature of AppServiceBase.