Each of these workflows will be mapped to a single function, where the input is a command object and the output is a list of event objects.

.