DraftMemberHandler: Handler
Item | Value |
---|---|
Briefly | Brief description missing. |
Definition Path | ImprovingApp.MemberContext.Member.DraftMemberState.DraftMemberHandler |
View Source Link | members.riddl(235:19) |
\nerror "Member has already been registered."
\n
{
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*