Advertisement
BoberDiversant

Untitled

Mar 7th, 2019
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.86 KB | None | 0 0
  1.  private State<NewClientComponent> playMessageToDriver = context.state("playMessageToDriver")
  2.             .onEnter((message, state, states) -> {
  3.                 log.log(Level.WARNING, "\nNewClientComponent.playMessageToDriver.onEnter:" );
  4.                 platform.accept(plays.playMessageToDriver());
  5.             })
  6.             .onProcess((message, state, states) -> {
  7.                 log.log(Level.WARNING, "\nNewClientComponent.playMessageToDriver.onProcess1:" + message.toString());
  8.  
  9.                 if (message instanceof Play.Success) {
  10.                     log.log(Level.WARNING, "\nNewClientComponent.playMessageToDriver.onProcess2:" + message.toString());
  11.  
  12.                     this.commentToDriver = message.toString();
  13.                     return states.beginCollectMessageToDriver;
  14.                 } else return states.fail;
  15.             })
  16.             .build();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement