当前位置: 首页>>代码示例>>Java>>正文


Java ExternalSystemEvent.setMessageStatus方法代码示例

本文整理汇总了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);
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:30,代码来源:DnaBatchUpdateImpl.java

示例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);
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:41,代码来源:OCSExternalEventsImpl.java

示例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);

}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:47,代码来源:OCSExternalEventsImpl.java


注:本文中的ims.scheduling.domain.objects.ExternalSystemEvent.setMessageStatus方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。