use of org.jaffa.modules.messaging.components.businesseventlogfinder.tx.BusinessEventLogFinderTx in project jaffa-framework by jaffa-projects.
the class MessageViewerTx method buildBusinessEventLogDto.
/**
* Obtains the related business event logs.
*/
private void buildBusinessEventLogDto(MessageViewerInDto input, MessageViewerOutDto output, Message message) throws FrameworkException, ApplicationExceptions, JMSException {
BusinessEventLogFinderInDto inputDto = new BusinessEventLogFinderInDto();
inputDto.setMessageId(message.getStringProperty(JmsBrowser.HEADER_ORIGINAL_MESSAGE_ID) != null ? new StringCriteriaField(CriteriaField.RELATIONAL_EQUALS, message.getStringProperty(JmsBrowser.HEADER_ORIGINAL_MESSAGE_ID)) : new StringCriteriaField(CriteriaField.RELATIONAL_EQUALS, message.getJMSMessageID()));
inputDto.setMaxRecords(new Integer(10));
inputDto.setOrderByFields(new OrderByField[] { new OrderByField(BusinessEventLogMeta.LOGGED_ON, Boolean.FALSE) });
BusinessEventLogFinderOutDto businessEventLogFinderOutDto = new BusinessEventLogFinderTx().find(inputDto);
output.setBusinessEventLog(businessEventLogFinderOutDto);
}
use of org.jaffa.modules.messaging.components.businesseventlogfinder.tx.BusinessEventLogFinderTx in project jaffa-framework by jaffa-projects.
the class TaskMaintenanceTx method buildBusinessEventLogDto.
private BusinessEventLogFinderOutDto buildBusinessEventLogDto(ScheduledTask task) throws FrameworkException, ApplicationExceptions {
// Create BusinessEventLogFinderInDto
BusinessEventLogFinderInDto inputDto = new BusinessEventLogFinderInDto();
inputDto.setScheduledTaskId(new StringCriteriaField(CriteriaField.RELATIONAL_EQUALS, task.getScheduledTaskId()));
inputDto.setMaxRecords(new Integer(10));
inputDto.setOrderByFields(new OrderByField[] { new OrderByField(BusinessEventLogMeta.LOGGED_ON, Boolean.FALSE) });
// Retrive businessEventLogFinderOutDto
return new BusinessEventLogFinderTx().find(inputDto);
}
Aggregations