ReportActionEventHandler¶
-
public class
ReportActionEventHandler¶ Class responsible for handling “Report” events. The service will extract the necessary data from the
MotechEventand pass them to theReportActionServiceservice 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_nameParameters: - event – the event, containing parameters necessary to get the Commcare report