File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
module Engagement {
2
- type WorkflowEvent extending ContextAware {
2
+ type WorkflowEvent extending Project :: ContextAware {
3
3
required engagement: default :: Engagement {
4
4
readonly := true ;
5
5
on target delete delete source ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ module default {
7
7
workflowEvents := .< engagement[is Engagement:: WorkflowEvent];
8
8
trigger assertMatchingLatestWorkflowEvent after insert , update for each do (
9
9
assert (
10
- __new__ .latestWorkflowEvent.to ?= __new__ .status,
10
+ __new__ .latestWorkflowEvent.to ?= __new__ .status
11
11
or (not exists __new__ .latestWorkflowEvent and __new__ .status = Engagement:: Status.InDevelopment),
12
12
message := " Engagement status must match the latest workflow event"
13
13
)
You can’t perform that action at this time.
0 commit comments