Skip to content

Commit

Permalink
fixing after RIDDL update for comments bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWeinstein92 committed Mar 6, 2024
1 parent 9a3428b commit 49bd5c2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/main/riddl/AllIdsProjections/allIdsProjections.riddl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ context AllIdsProjections is {
// then "update row with tenant set to StatusUpdated.tenantId to tenantStatus with StatusUpdated.newStatus"
//}
on query GetAllTenantIds {
"reply with AllTenantIds packed with entire table filtered by tenantStatus == Active"=
"reply with AllTenantIds packed with entire table filtered by tenantStatus == Active"
}
}
}
Expand Down
9 changes: 6 additions & 3 deletions src/main/riddl/Events/eventContext.riddl
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ context EventContext is {
on command EndEvent{
error "End has not started. Cannot end an event that has not started."
}
// TODO: implement AddLiveUpdate
on command AddLiveUpdate {
??? // TODO: implement AddLiveUpdate
???
}
}
handler InProgressEventHandler is {
Expand Down Expand Up @@ -187,8 +188,9 @@ context EventContext is {
send event EventEnded to outlet EventEvents.Events
become entity Event to handler PastEventHandler
}
// TODO: specify AddLiveUpdate on clause
on command AddLiveUpdate {
??? // TODO: specify AddLiveUpdate on clause
???
}
}
handler DelayedEventHandler is {
Expand Down Expand Up @@ -227,8 +229,9 @@ context EventContext is {
on command EndEvent{
error "Only events that are InProgress may be ended. If you wish to end this event it must be started first. If you wish to cancel the event, please use the CancelEvent Command."
}
// TODO: IMplement AddLiveUpdate in on clause
on command AddLiveUpdate{
??? // TODO: IMplement AddLiveUpdate in on clause
???
}
}
handler CancelledEventHandler is {
Expand Down
2 changes: 1 addition & 1 deletion src/main/riddl/Organization/organization.riddl
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ context OrganizationContext is {
// then error "EditingMember is not authorized to make this change."
// }
// }
on command activate: ActivateOrganization {
on command ActivateOrganization {
if "all required fields in info are not None or Empty and required non-info fields are present" then {
send event OrganizationEstablished to outlet OrganizationEvents.Events
morph entity Organization to state EstablishedOrganization with record EstablishedOrganizationState
Expand Down
6 changes: 3 additions & 3 deletions src/main/riddl/Product/product.riddl
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ context ProductContext is {
} else {
// "all required fields are present"
set field DraftProductState.meta to "ProductContext.ProductMetaInfo"
send event ProductActivated
to outlet ProductEvents.Events
send event ProductActivated to outlet ProductEvents.Events
morph entity Product to state DefinedProductState with record DefinedProduct
}
}
Expand Down Expand Up @@ -136,7 +135,8 @@ context ProductContext is {
"yield ProductInfoUpdated event with new info"
}
on command DeleteProduct{
set field DefinedProductState.meta to "ProductContext.ProductMetaInfo" to outlet ProductEvents.Events
set field DefinedProductState.meta to "ProductContext.ProductMetaInfo"
send event ProductDeleted to outlet ProductEvents.Events
morph entity Product to state DeletedProductState with record DeletedProduct
}
on command ActivateProduct{
Expand Down

0 comments on commit 49bd5c2

Please sign in to comment.