ReportActionEventHandler

public class ReportActionEventHandler

Class responsible for handling “Report” events. The service will extract the necessary data from the MotechEvent and pass them to the ReportActionService service that will query the CommCare Report UCR API and then send a motech event for selected report.

Constructors

ReportActionEventHandler

public ReportActionEventHandler(ReportActionService reportActionService)

Methods

receiveReport

public void receiveReport(MotechEvent event)

Handles events, connected with getting Commcare report. The event subject should have the following syntax: EventSubjects.REPORT_EVENT.report_name.config_name

Parameters:
  • event – the event, containing parameters necessary to get the Commcare report