EnrolledUserEvent¶
-
public class
EnrolledUserEvent¶ The
EnrolledUserEventis used to create a Motech event. The event payload contains details about user enrollment.See also:
org.motechproject.scheduletracking.service.EnrollmentService
Constructors¶
EnrolledUserEvent¶
-
public
EnrolledUserEvent(String externalId, String scheduleName, Time preferredAlertTime, DateTime referenceDateTime, DateTime enrollmentDateTime, String startingMilestoneName)¶ Creates a EnrolledUserEvent with the externalId attribute set to
externalId, the scheduleName attribute toscheduleName, the preferredAlertTime attribute topreferredAlertTime, the referenceDateTime attribute is used to fillreferenceDateandreferenceTime, the enrollmentDateTime attribute is used to fillenrollmentDateandenrollmentTime, the startingMilestoneName attribute tostartingMilestoneName.Parameters: - externalId – the user external id
- scheduleName – the name of the schedule
- preferredAlertTime – the time of day to send alerts to client
- referenceDateTime – the reference date and time on which the schedule will start
- enrollmentDateTime – the enrollment date and time on which the client is enrolled into the schedule
- startingMilestoneName – the starting milestone name