use of io.spine.test.aggregate.event.AggProjectCancelled 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);
}
Aggregations