-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathadaptor-direction.riddl
More file actions
34 lines (32 loc) · 909 Bytes
/
adaptor-direction.riddl
File metadata and controls
34 lines (32 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
domain AdaptorDir is {
context SourceCtx is {
type DoIt is command { data: String }
type ItDone is event { what: String }
} with {
explained as "Source context with message types"
}
context TargetCtx is {
adaptor BadInbound from context SourceCtx is {
handler InHandler is {
on command SourceCtx.DoIt {
prompt "handling command in inbound adaptor"
}
}
} with {
explained as "Inbound adaptor that incorrectly handles commands"
}
adaptor BadOutbound to context SourceCtx is {
handler OutHandler is {
on event SourceCtx.ItDone {
prompt "handling event in outbound adaptor"
}
}
} with {
explained as "Outbound adaptor that incorrectly handles events"
}
} with {
explained as "Target context with adaptors"
}
} with {
explained as "Domain for adaptor direction tests"
}