-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
member, reservation, store connectors
- Loading branch information
1 parent
cfc1456
commit a83c90f
Showing
8 changed files
with
157 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/main/riddl/Events/Reservations/reservationSources.riddl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
connector ReservationCommandsChannel is { | ||
from outlet ReservationCommandsSource.Commands to | ||
inlet ReservationCommandsSink.Commands | ||
} | ||
|
||
connector ReservationEventsChannel is { | ||
from outlet ReservationEventsSource.Events to | ||
inlet ReservationEventsSink.Events | ||
} | ||
|
||
source ReservationCommandsSource is { | ||
outlet Commands is type ReservationCommand | ||
} | ||
|
||
sink ReservationCommandsSink is { | ||
inlet Commands is type ReservationCommand | ||
} | ||
|
||
source ReservationEventsSource is { | ||
outlet Events is type ReservationEvent | ||
} | ||
|
||
sink ReservationEventsSink is { | ||
inlet Events is type ReservationEvent | ||
} | ||
|
||
type ReservationCommand is one of { | ||
EstablishReservation, | ||
EditReservationInfo, | ||
UpdateReservationStatus, | ||
DeleteReservation, | ||
GetReservationInfo | ||
} | ||
|
||
type ReservationEvent is one of { | ||
ReservationEstablished, | ||
ReservationInfoUpdated, | ||
ReservationStatusUpdated, | ||
ReservationDeleted, | ||
ReservationInfoResult | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
connector MemberCommandsChannel is { | ||
from outlet MemberCommandsSource.Commands to | ||
inlet MemberCommandsSink.Commands | ||
} | ||
|
||
connector MemberEventsChannel is { | ||
from outlet MemberEventsSource.Events to | ||
inlet MemberEventsSink.Events | ||
} | ||
|
||
source MemberCommandsSource is { | ||
outlet Commands is type MemberCommand | ||
} | ||
|
||
sink MemberCommandsSink is { | ||
inlet Commands is type MemberCommand | ||
} | ||
|
||
source MemberEventsSource is { | ||
outlet Events is type MemberEvent | ||
} | ||
|
||
sink MemberEventsSink is { | ||
inlet Events is type MemberEvent | ||
} | ||
|
||
type MemberCommand is one of { | ||
ImprovingApp.MemberContext.RegisterMember, | ||
ImprovingApp.MemberContext.ActivateMember, | ||
ImprovingApp.MemberContext.SuspendMember, | ||
ImprovingApp.MemberContext.TerminateMember, | ||
ImprovingApp.MemberContext.EditMemberInfo, | ||
ImprovingApp.MemberContext.GetMemberData | ||
} | ||
|
||
type MemberEvent is one of { | ||
ImprovingApp.MemberContext.MemberRegistered, | ||
ImprovingApp.MemberContext.MemberActivated, | ||
ImprovingApp.MemberContext.MemberSuspended, | ||
ImprovingApp.MemberContext.MemberTerminated, | ||
ImprovingApp.MemberContext.MemberInfoEdited, | ||
ImprovingApp.MemberContext.MemberData | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
connector StoreCommandsChannel is { | ||
from outlet StoreCommandsSource.Commands to | ||
inlet StoreCommandsSink.Commands | ||
} | ||
|
||
connector StoreEventsChannel is { | ||
from outlet StoreEventsSource.Events to | ||
inlet StoreEventsSink.Events | ||
} | ||
|
||
source StoreCommandsSource is { | ||
outlet Commands is type StoreCommand | ||
} | ||
|
||
sink StoreCommandsSink is { | ||
inlet Commands is type StoreCommand | ||
} | ||
|
||
source StoreEventsSource is { | ||
outlet Events is type StoreEvent | ||
} | ||
|
||
sink StoreEventsSink is { | ||
inlet Events is type StoreEvent | ||
} | ||
|
||
type StoreCommand is one of { | ||
CreateStore, | ||
EditStoreInfo, | ||
MakeStoreReady, | ||
DeleteStore, | ||
OpenStore, | ||
CloseStore, | ||
TerminateStore, | ||
AddProductsToStore, | ||
RemoveProductsFromStore, | ||
GetStoreInfo, | ||
GetProductsInStore | ||
} | ||
|
||
type StoreEvent is one of { | ||
StoreCreated, | ||
StoreInfoEdited, | ||
StoreIsReady, | ||
StoreDeleted, | ||
StoreOpened, | ||
StoreClosed, | ||
ProductsAddedToStore, | ||
ProductsRemovedFromStore | ||
} |