EnrolledUserEvent¶
-
public class
EnrolledUserEvent
¶ The
EnrolledUserEvent
is 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 fillreferenceDate
andreferenceTime
, the enrollmentDateTime attribute is used to fillenrollmentDate
andenrollmentTime
, 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