RIDDL Specification For improving.app
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

MembersAttendingEventsForAnOrganizationEventsViewHandler: Handler

ItemValue
BrieflyBrief description missing.
Definition PathImprovingApp.MembersAttendingEventsForAnOrganizationProjection.MembersAttendingEventsForAnOrganizationView.MembersAttendingEventsForAnOrganizationEventsViewHandler
View Source LinkmembersAttendingEventsForAnOrganizationProjection.riddl(16:13)

OnMessageClause event MemberContext.MemberRegistered

Statements

\n"create rows in member table with attendingMember set to MemberRegistered.id""set previous row's attendingMemberName to concatenated MemberRegistered.info.firstName and MemberRegistered.info.lastName"\n

OnMessageClause event EventScheduled

Statements

\n"create row in event table with event set to EventScheduled.eventId, eventName set to EventScheduled.info.eventName, eventOrg to EventScheduled.info.sponsoringOrg, eventDate to day of EventScheduled.info.expectedStart""create row in org-event table with event set to EventScheduled.eventId, eventOrg set to set to EventScheduled.info.sponsoringOrg"\n

OnMessageClause event EventRescheduled

Statements

\n"update eventDate with day of EventRescheduled.startTime in row in event table with event corresponding to EventRescheduled.eventId"\n

OnMessageClause event EventCancelled

Statements

\n"remove row in row in event table with event corresponding to EventCancelled.eventId""remove row in org-event table with event set to EventScheduled.eventId, eventOrg set to set to EventScheduled.info.sponsoringOrg"\n

OnMessageClause event ProductCreated

Statements

\n"if product is ticket, create row in ticket-event table with sku as ticketSku & productDetails.eventId as event"\n

OnMessageClause event OrderCreated

Statements

\n"for each OrderCreated.orderInfo.lineItem that has a SKU in ticket table, create row in ticket-event table with OrderCreated.meta.memberId as attendingMember & sku as ticketSku"\n

OnMessageClause query FindMembersAtEventsOnDayForOrg

Statements

\n"filter org table by FindMembersAtEventsOnDayForOrg.org""left results of previous operation with org-event, ticket-event, ticket-member, member, event tables""filter result of previous operation by eventDate equals FindMembersAtEventsOnDayForOrg.eventDate""return MembersAtEventsOnDay with event info keyed by members - or NoEventsOnDayForOrg if table is empty"\n

Used By None

Uses Nothing