@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015 the original author or authors.
|
||||
* Copyright 2015-2019 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -54,13 +54,13 @@ public class AbstractStateMachineCommands<S, E> implements CommandMarker {
|
||||
|
||||
@CliCommand(value = "sm start", help = "Start a state machine")
|
||||
public String start() {
|
||||
stateMachine.start();
|
||||
stateMachine.startReactively().subscribe();
|
||||
return "State machine started";
|
||||
}
|
||||
|
||||
@CliCommand(value = "sm stop", help = "Stop a state machine")
|
||||
public String stop() {
|
||||
stateMachine.stop();
|
||||
stateMachine.stopReactively().subscribe();
|
||||
return "State machine stopped";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user