Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private State<NewClientComponent> playMessageToDriver = context.state("playMessageToDriver")
- .onEnter((message, state, states) -> {
- log.log(Level.WARNING, "\nNewClientComponent.playMessageToDriver.onEnter:" );
- platform.accept(plays.playMessageToDriver());
- })
- .onProcess((message, state, states) -> {
- log.log(Level.WARNING, "\nNewClientComponent.playMessageToDriver.onProcess1:" + message.toString());
- if (message instanceof Play.Success) {
- log.log(Level.WARNING, "\nNewClientComponent.playMessageToDriver.onProcess2:" + message.toString());
- this.commentToDriver = message.toString();
- return states.beginCollectMessageToDriver;
- } else return states.fail;
- })
- .build();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement