public class FormActionEventHandler

This class serves as the event handler for the task actions, exposed by the Commcare module. Respective methods extract the necessary data from the MotechEvent instance and pass them to the CommcareFormService that handles all the operations on Commcare forms.



public void submitForm(MotechEvent event)

Handles events, connected with sending Commcare forms. The event subject should have the following syntax: EventSubjects.SUBMIT_FORM.[form XMLNS].[config name]

  • event – the event, containing parameters necessary to send the Commcare form