CommcareFormBuilder

public class CommcareFormBuilder

Can be used for creating instances of the CommcareForm class based on the parameters stored in the passed event.

Methods

buildFrom

public CommcareForm buildFrom(MotechEvent motechEvent)

Creates an instance of the CommcareForm class based on the parameters stored in the passed event.

Parameters:
  • motechEvent – the event storing form information
Returns:

the instance of the CommcareForm built based on the parameters stored in the passed event