org.openeai.OpenEaiObject.logger.info("got LightweightPerson...");
lPerson.setInstitutionalId(instIdTextField.getText());
org.openeai.OpenEaiObject.logger.info("set instid on lightweight person...");
ActionableEnterpriseObject bpJeo = (ActionableEnterpriseObject)APP_CONFIG.getObject(messageObjectName);
org.openeai.OpenEaiObject.logger.info("got " + messageObjectName + " from AppConfig, performing Query...");
java.util.List a = bpJeo.query(lPerson, (PointToPointProducer)APP_CONFIG.getObject(SELF_SERVICE_PRODUCER));
org.openeai.OpenEaiObject.logger.info("Executed Query...");
String personName = null;
if (a.size() == 0) {
ec_textArea.setText("No Person information can be found for that inst id.");
return;
}
else {
for (int i=0; i<a.size(); i++) {
BasicPerson bp = (BasicPerson)a.get(i);
personName = bp.getName().getFirstName() + " " + bp.getName().getLastName();
ec_bpName.setText(personName);
}
}
// now, query for the emerency contacts for this person using the same LightweightPerson
messageObjectName = EMERGENCY_CONTACT;
ActionableEnterpriseObject ecJeo = (ActionableEnterpriseObject)APP_CONFIG.getObject(messageObjectName);
org.openeai.OpenEaiObject.logger.info("got " + messageObjectName + " from AppConfig, performing Query...");
java.util.List eclist = ecJeo.query(lPerson, (PointToPointProducer)APP_CONFIG.getObject(SELF_SERVICE_PRODUCER));
org.openeai.OpenEaiObject.logger.info("Executed Query...");
if (eclist.size() == 0) {
ec_textArea.setText("No EmergencyContacts found for " + personName);
}