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

SuspendedMemberHandler: Handler

ItemValue
BrieflyBrief description missing.
Definition PathImprovingApp.MemberContext.Member.RegisteredMemberState.SuspendedMemberHandler
View Source Linkmembers.riddl(319:21)

Description

This state describes that a member cannot access anything due to being a bad user. This state transition is only possible as a command issued by an administrator and therefore can only be removed from the suspended state by an administrator.

OnMessageClause command ImprovingApp.MemberContext.RegisterMember

Statements

\nerror "Member has already been registered."\n

OnMessageClause command ImprovingApp.MemberContext.ActivateMember

Statements

\nsend event ImprovingApp.GatewayAPI.MemberGateway.MemberActivated to outlet ImprovingApp.MemberContext.MemberEventsSource.Eventsbecome entity ImprovingApp.MemberContext.Member to handler ActiveMemberHandler\n

OnMessageClause command ImprovingApp.MemberContext.SuspendMember

A suspension reason can be updated by re-issuing the command

Statements

\nset field RegisteredMemberState.meta to "MemberContext.MetaInfo"send event ImprovingApp.MemberContext.MemberSuspended to outlet ImprovingApp.MemberContext.MemberEventsSource.Events\n

OnMessageClause command ImprovingApp.MemberContext.TerminateMember

Statements

\nset field RegisteredMemberState.meta to "MemberContext.MetaInfo"morph entity ImprovingApp.MemberContext.Member to state TerminatedMember with record TerminatedMemberState\n

OnMessageClause query GetMemberData

Statements

\nreply record ImprovingApp.MemberContext.Info\n

Used By None

Uses Nothing