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

DraftMemberHandler: Handler

ItemValue
BrieflyBrief description missing.
Definition PathImprovingApp.MemberContext.Member.DraftMemberState.DraftMemberHandler
View Source Linkmembers.riddl(235:19)

OnMessageClause command ImprovingApp.MemberContext.RegisterMember

Statements

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

OnMessageClause command ImprovingApp.MemberContext.ActivateMember

Statements

{
  send event MemberRegistered to outlet MemberEventsSource.Events
  morph entity Member to state RegisteredMemberState with record RegisteredMember
} else {
  if "all required fields in state are not present" then
{
  error "state is not sufficiently filled out to activate organization"
}

}
```\n
### _OnMessageClause command EditMemberInfo_

#### Statements
```\nset field Member.DraftMemberState.info to "MemberContext.EditableInfo"set field Member.DraftMemberState.meta to "MemberContext.MetaInfo"send event MemberInfoEdited to outlet ImprovingApp.MemberContext.MemberEventsSource.Events```\n
### _OnMessageClause query GetMemberData_

#### Statements
```\nsend record MemberInfo to outlet ImprovingApp.MemberContext.MemberEventsSource.Events```\n
## *Used By None*

## *Uses Nothing*