Search in sources :

Example 1 with SimpleValidationServiceImpl

use of com.salaboy.jbpm5.dev.guide.webservice.SimpleValidationServiceImpl in project jBPM5-Developer-Guide by Salaboy.

the class GenericWebServiceTaskTest method initializeWebService.

private void initializeWebService() {
    this.service = new SimpleValidationServiceImpl();
    this.endpoint = Endpoint.publish("http://127.0.0.1:19999/WebServiceExample/insurance", service);
    Patient salaboy = new Patient(UUID.randomUUID().toString(), "Salaboy", "SalaboyLastName", "salaboy@gmail.com", "555-15151-515151", 28);
    testPatients.put("salaboy", salaboy);
    Patient nonInsuredBrotha = new Patient(UUID.randomUUID().toString(), "John", "Doe", "gangsta1980@gmail.com", "333-333131-13131", 40);
    testPatients.put("brotha", nonInsuredBrotha);
    SimpleValidationServiceImpl.insuredPatients.put(testPatients.get("salaboy").getId(), Boolean.TRUE);
    SimpleValidationServiceImpl.insuredPatients.put(testPatients.get("brotha").getId(), Boolean.FALSE);
}
Also used : SimpleValidationServiceImpl(com.salaboy.jbpm5.dev.guide.webservice.SimpleValidationServiceImpl) Patient(com.salaboy.jbpm5.dev.guide.model.Patient)

Aggregations

Patient (com.salaboy.jbpm5.dev.guide.model.Patient)1 SimpleValidationServiceImpl (com.salaboy.jbpm5.dev.guide.webservice.SimpleValidationServiceImpl)1