-
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.
- Loading branch information
1 parent
a83c90f
commit 8cb8b58
Showing
4 changed files
with
114 additions
and
45 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
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 |
---|---|---|
@@ -1,10 +1,41 @@ | ||
type PublicTenantEvent is one of { | ||
TenantContext.InfoEdited, | ||
TenantContext.TenantActivated, | ||
TenantContext.TenantSuspended, | ||
TenantContext.TenantTerminated | ||
connector TenantCommandsChannel is { | ||
from outlet TenantCommandsSource.Commands to | ||
inlet TenantCommandsSink.Commands | ||
} | ||
|
||
source TenantEvents is { | ||
outlet Events is type PublicTenantEvent | ||
} explained as "This is a source for Tenant Events" | ||
connector TenantEventsChannel is { | ||
from outlet TenantEventsSource.Events to | ||
inlet TenantEventsSink.Events | ||
} | ||
|
||
source TenantCommandsSource is { | ||
outlet Commands is type TenantCommand | ||
} | ||
|
||
sink TenantCommandsSink is { | ||
inlet Commands is type TenantCommand | ||
} | ||
|
||
source TenantEventsSource is { | ||
outlet Events is type TenantEvent | ||
} | ||
|
||
sink TenantEventsSink is { | ||
inlet Events is type TenantEvent | ||
} | ||
|
||
type TenantCommand is one of { | ||
EstablishTenant, | ||
ActivateTenant, | ||
SuspendTenant, | ||
TerminateTenant, | ||
EditInfo | ||
} | ||
|
||
type TenantEvent is one of { | ||
TenantEstablished, | ||
TenantActivated, | ||
TenantSuspended, | ||
TenantTerminated, | ||
InfoEdited | ||
} |