Search in sources :

Example 1 with AggProjectPaused

use of io.spine.test.aggregate.event.AggProjectPaused in project core-java by SpineEventEngine.

the class AmishAggregate method handle.

@Assign
List<Message> handle(AggCancelProject cmd, CommandContext ctx) {
    final AggProjectPaused firstPaused = projectPaused(cmd.getProjectId());
    final AggProjectCancelled thenCancelled = projectCancelled(cmd.getProjectId());
    return Lists.<Message>newArrayList(firstPaused, thenCancelled);
}
Also used : AggProjectCancelled(io.spine.test.aggregate.event.AggProjectCancelled) AggProjectPaused(io.spine.test.aggregate.event.AggProjectPaused) Message(com.google.protobuf.Message) Assign(io.spine.server.command.Assign)

Aggregations

Message (com.google.protobuf.Message)1 Assign (io.spine.server.command.Assign)1 AggProjectCancelled (io.spine.test.aggregate.event.AggProjectCancelled)1 AggProjectPaused (io.spine.test.aggregate.event.AggProjectPaused)1