Search in sources :

Example 1 with BusinessEventLogFinderTx

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);
}
Also used : BusinessEventLogFinderTx(org.jaffa.modules.messaging.components.businesseventlogfinder.tx.BusinessEventLogFinderTx) OrderByField(org.jaffa.components.finder.OrderByField) BusinessEventLogFinderOutDto(org.jaffa.modules.messaging.components.businesseventlogfinder.dto.BusinessEventLogFinderOutDto) BusinessEventLogFinderInDto(org.jaffa.modules.messaging.components.businesseventlogfinder.dto.BusinessEventLogFinderInDto) StringCriteriaField(org.jaffa.components.finder.StringCriteriaField)

Example 2 with BusinessEventLogFinderTx

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);
}
Also used : BusinessEventLogFinderTx(org.jaffa.modules.messaging.components.businesseventlogfinder.tx.BusinessEventLogFinderTx) OrderByField(org.jaffa.components.finder.OrderByField) BusinessEventLogFinderInDto(org.jaffa.modules.messaging.components.businesseventlogfinder.dto.BusinessEventLogFinderInDto) StringCriteriaField(org.jaffa.components.finder.StringCriteriaField)

Aggregations

OrderByField (org.jaffa.components.finder.OrderByField)2 StringCriteriaField (org.jaffa.components.finder.StringCriteriaField)2 BusinessEventLogFinderInDto (org.jaffa.modules.messaging.components.businesseventlogfinder.dto.BusinessEventLogFinderInDto)2 BusinessEventLogFinderTx (org.jaffa.modules.messaging.components.businesseventlogfinder.tx.BusinessEventLogFinderTx)2 BusinessEventLogFinderOutDto (org.jaffa.modules.messaging.components.businesseventlogfinder.dto.BusinessEventLogFinderOutDto)1