FullFormEvent

public class FullFormEvent

A utility class representing a full form event. This event signals a form received a form or a device log received in Motech, coming from Commcare.

Constructors

FullFormEvent

public FullFormEvent(FormValueElement formValueElement, String receivedOn, String configName)

Constructs this event.

Parameters:
  • formValueElement – the full form received
  • receivedOn – the date the form was received - as the string from Commcare
  • configName – the name of the Motech Commcare configuration for this form

Methods

getAttributes

public Map<String, String> getAttributes()

toMotechEvent

public MotechEvent toMotechEvent()

Builds a MotechEvent for this form event.

Returns:the Motech event to send