EventHandler

public class EventHandler

This handles any incoming org.motechproject.event.MotechEvent that contains event subjects relevant to the module.

Methods

handlePersistForm

public void handlePersistForm(MotechEvent event)

Creates FormInstance from the event payload and saves it.

Parameters:
  • eventMotechEvent

handlePersistFormFailure

public void handlePersistFormFailure(MotechEvent event)

Creates a FormFailure from the event payload and saves it.

Parameters:
  • eventMotechEvent