CaseEventHandler

public class CaseEventHandler

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 forward them to the CaseActionService service that passes the data to the org.motechproject.commcare.service.CommcareCaseService that handles all the operations on Commcare cases.

Constructors

CaseEventHandler

public CaseEventHandler(CaseActionService caseActionService)

Methods

createCase

public void createCase(MotechEvent event)

updateCase

public void updateCase(MotechEvent event)