本文整理汇总了Java中ims.scheduling.domain.objects.ExternalSystemEvent.setMessageStatus方法的典型用法代码示例。如果您正苦于以下问题:Java ExternalSystemEvent.setMessageStatus方法的具体用法?Java ExternalSystemEvent.setMessageStatus怎么用?Java ExternalSystemEvent.setMessageStatus使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ims.scheduling.domain.objects.ExternalSystemEvent
的用法示例。
在下文中一共展示了ExternalSystemEvent.setMessageStatus方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createExternalEvent
import ims.scheduling.domain.objects.ExternalSystemEvent; //导入方法依赖的package包/类
private void createExternalEvent(Booking_AppointmentRefVo appointment, OrderInvestigationRefVo investigation, LookupInstVo type) throws StaleObjectException
{
if (null == appointment)
throw new DomainRuntimeException("Appointment Cannot be NULL");
DomainFactory factory = getDomainFactory();
ExternalSystemEvent event = new ExternalSystemEvent();
// We need to deal with null investigations
// when (not )sending the messages
if (null != investigation)
{
OrderInvestigation domInv = (OrderInvestigation) factory.getDomainObject(investigation);
//WDEV-5912 For Investigations marked as NoInterface there are no interface calls
if(domInv.getInvestigation() != null && domInv.getInvestigation().getInvestigationIndex() != null && domInv.getInvestigation().getInvestigationIndex().isNoInterface() != null && domInv.getInvestigation().getInvestigationIndex().isNoInterface())
return;
event.setInvestigation(domInv);
event.setProviderSystem(domInv.getInvestigation().getProviderService().getProviderSystem());
}
Booking_Appointment domBookAppt = (Booking_Appointment) factory.getDomainObject(appointment);
event.setAppointment(domBookAppt);
event.setWasProcessed(Boolean.FALSE);
event.setMessageStatus(getDomLookup(OrderMessageStatus.CREATED));
event.setEventType(getDomLookup(type));
factory.save(event);
}
示例2: createExternalEvent
import ims.scheduling.domain.objects.ExternalSystemEvent; //导入方法依赖的package包/类
private void createExternalEvent(Booking_AppointmentRefVo appointment, OrderInvestigationRefVo investigation, LookupInstVo type) throws StaleObjectException
{
if (null == appointment)
throw new DomainRuntimeException("Appointment Cannot be NULL");
DomainFactory factory = getDomainFactory();
ExternalSystemEvent event = new ExternalSystemEvent();
// We need to deal with null investigations
// when (not )sending the messages
if (null != investigation)
{
OrderInvestigation domInv = (OrderInvestigation) factory.getDomainObject(investigation);
//WDEV-5912 For Investigations marked as NoInterface there are no interface calls
if(domInv.getInvestigation() != null && domInv.getInvestigation().getInvestigationIndex() != null && domInv.getInvestigation().getInvestigationIndex().isNoInterface() != null && domInv.getInvestigation().getInvestigationIndex().isNoInterface())
return;
event.setInvestigation(domInv);
event.setProviderSystem(domInv.getInvestigation().getProviderService().getProviderSystem());
}
Booking_Appointment domBookAppt = (Booking_Appointment) factory.getDomainObject(appointment);
if(type !=null //http://jira/browse/WDEV-12816 If it is not radiology then we doon't need a message
&&ExternalSystemEventTypes.PATIENTARRIVING.getID()==type.getID()
&&domBookAppt!=null&&domBookAppt.getSession()!=null
&&domBookAppt.getSession().getService()!=null
&&domBookAppt.getSession().getService().getServiceCategory()!=null
&&ServiceCategory.RADIOLOGY_MODALITY.getID()!=domBookAppt.getSession().getService().getServiceCategory().getId())
{
return;
}
event.setAppointment(domBookAppt);
event.setWasProcessed(Boolean.FALSE);
event.setMessageStatus(getDomLookup(OrderMessageStatus.CREATED));
event.setEventType(getDomLookup(type));
factory.save(event);
}
示例3: generateAppointmentCancelEvent
import ims.scheduling.domain.objects.ExternalSystemEvent; //导入方法依赖的package包/类
public void generateAppointmentCancelEvent(Booking_AppointmentRefVo appointment, OrderInvestigationRefVo investigation) throws StaleObjectException
{
if (null == appointment)
throw new DomainRuntimeException("Appointment Cannot be NULL");
DomainFactory factory = getDomainFactory();
ExternalSystemEvent event = new ExternalSystemEvent();
// We need to deal with null investigations
// when (not )sending the messages
if (null != investigation)
{
OrderInvestigation domInv = (OrderInvestigation) factory.getDomainObject(investigation);
//WDEV-5912 For Investigations marked as NoInterface there are no interface calls
if(domInv.getInvestigation() != null && domInv.getInvestigation().getInvestigationIndex() != null && domInv.getInvestigation().getInvestigationIndex().isNoInterface() != null && domInv.getInvestigation().getInvestigationIndex().isNoInterface())
return;
if (domInv.getInvestigation()!=null&&domInv.getInvestigation().getProviderService()!=null&&domInv.getInvestigation().getProviderService().getLocationService()!=null
&&domInv.getInvestigation().getProviderService().getLocationService().getService()!=null
&&!(ServiceCategory.RADIOLOGY_MODALITY.getID()==( domInv.getInvestigation().getProviderService().getLocationService().getService().getServiceCategory().getId())))
return;
event.setInvestigation(domInv);
ProviderSystem providerSystem=domInv.getInvestigation().getProviderService().getProviderSystem();
if(!isRebookApptWithCancelandFullXOSetForProviderSystem(providerSystem))
return;
event.setProviderSystem(providerSystem);
}
if (ReferralManagementContractType.DIAGNOSTIC.getId() == getContractTypeIdFromReferralContractForBookingId(appointment.getBoId()))
return;
Booking_Appointment domBookAppt = (Booking_Appointment) factory.getDomainObject(appointment);
event.setAppointment(domBookAppt);
event.setWasProcessed(Boolean.FALSE);
event.setMessageStatus(getDomLookup(OrderMessageStatus.CREATED));
event.setEventType(getDomLookup(ExternalSystemEventTypes.CANCELAPPOINTMENT));
if(domBookAppt!=null &&domBookAppt.getSession()!=null)
{
event.setCancelledAppointmentLocation(domBookAppt.getSession().getSchLocation());
}
factory.save(event);
}