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

OrganizationsForMembersAttendingEventsViewHandler: Handler

ItemValue
BrieflyBrief description missing.
Definition PathImprovingApp.OrganizationsForMembersAttendingEventsProjections.OrganizationsForMembersAttendingEventsView.OrganizationsForMembersAttendingEventsViewHandler
View Source LinkorganizationsForMembersAttendingEventsProjection.riddl(18:13)

OnMessageClause event ImprovingApp.OrganizationContext.OrganizationEstablished

Statements

\n"create row in org table with orgId set to OrganizationEstablished.info.orgId""set row's attendingMemberOrgName to OrganizationEstablished.info.name"\n

OnMessageClause event OrganizationTerminated

Statements

\n"remove row from table"\n

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""create row in org-member table with attendingMemberOrgId set to MemberRegistered.info.organizationMembership.head""set attendingMemberId to MemberRegistered.memberId"\n

OnMessageClause event EventScheduled

Statements

\n"create row in event table with event id set to to EventScheduled.eventId""set event_name to EventScheduled.info.eventName"\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 ProductActivated

Statements

\n"update row in ticket-event table with the Active status"\n

OnMessageClause event ProductInactivated

Statements

\n"update row in ticket-event table with the Inactive status"\n

OnMessageClause event ProductDeleted

Statements

\n"remove row in ticket-event table"\n

OnMessageClause event OrderCreated

Statements

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

OnMessageClause event LineItemOrdered

Statements

\n"create row in ticket-member table with ticketSku set to LineItemOrdered.productId""set attendingMemberId to LineItemOrdered.forMemberId""set orderId to LineItemOrdered.orderId"\n

OnMessageClause event LineItemCancelled

Statements

\n"remove row in ticket-member table"\n

OnMessageClause query FindOrgsByMembersForEvents

Statements

\n"left join event table filtered by FindOrgsByMembersForEvents.events to ticket-event table""left join table found in previous operation to ticket-member, org-member, org, member tables""return OrgsByMembersForEvents containing results in the form of events keyed by members keyed by orgs"\n

Used By None

Uses Nothing