Wow
Toggle table of contents
10.0.0-beta.1
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Wow
migration-rehearsal
/
me.ahoo.wow.rehearsal.example
/
Order
/
onCommand
on
Command
@
OnCommand
(
produces
=
[
OrderCreated::class
]
)
fun
onCommand
(
command
:
CreateOrder
,
scope
:
DecideScope
)
:
Decision
@
OnCommand
(
produces
=
[
AddressChanged::class
]
)
fun
onCommand
(
command
:
ChangeAddress
)
:
Decision
@
OnCommand
(
produces
=
[
OrderPaid::class
]
)
fun
onCommand
(
command
:
PayOrder
)
:
Decision
@
OnCommand
(
produces
=
[
OrderShipped::class
]
)
fun
onCommand
(
command
:
ShipOrder
)
:
Decision
@
OnCommand
(
produces
=
[
OrderReceived::class
]
)
fun
onCommand
(
command
:
ReceiptOrder
)
:
Decision
@
OnCommand
(
produces
=
[
OrderTagged::class
]
)
fun
onCommand
(
command
:
TagOrder
)
:
Decision
Any order may be tagged again, as 9.x's lifecycle command tagged it.