diff --git a/docs/src/reference/asciidoc/getting-started.adoc b/docs/src/reference/asciidoc/getting-started.adoc index 28be503f..3e95a9b0 100644 --- a/docs/src/reference/asciidoc/getting-started.adoc +++ b/docs/src/reference/asciidoc/getting-started.adoc @@ -78,6 +78,11 @@ task wrapper(type: Wrapper) { } ---- +[NOTE] +==== +Replace `1.0.0.BUILD-SNAPSHOT` with a version you want to use. +==== + Having a normal project structure you'd build this with command: [source,text,indent=0] ---- @@ -187,6 +192,11 @@ Here is a typical `pom.xml` file: ---- +[NOTE] +==== +Replace `1.0.0.BUILD-SNAPSHOT` with a version you want to use. +==== + Having a normal project structure you'd build this with command: [source,text,indent=0] ---- diff --git a/spring-statemachine-samples/persist/src/main/java/demo/persist/Persist.java b/spring-statemachine-samples/persist/src/main/java/demo/persist/Persist.java index 21554cfd..551075fd 100644 --- a/spring-statemachine-samples/persist/src/main/java/demo/persist/Persist.java +++ b/spring-statemachine-samples/persist/src/main/java/demo/persist/Persist.java @@ -66,14 +66,16 @@ public class Persist { //tag::snippetB[] public void change(int order, String event) { - Order o = jdbcTemplate.queryForObject("select id, state from orders where id = ?", new Object[]{order}, new RowMapper() { - public Order mapRow(ResultSet rs, int rowNum) throws SQLException { - return new Order(rs.getInt("id"), rs.getString("state")); - } - }); + Order o = jdbcTemplate.queryForObject("select id, state from orders where id = ?", new Object[] { order }, + new RowMapper() { + public Order mapRow(ResultSet rs, int rowNum) throws SQLException { + return new Order(rs.getInt("id"), rs.getString("state")); + } + }); handler.handleEventWithState(MessageBuilder.withPayload(event).setHeader("order", order).build(), o.state); } -//end::snippetB[] + + //end::snippetB[] //tag::snippetC[] private class LocalPersistStateChangeListener implements PersistStateChangeListener { diff --git a/spring-statemachine-samples/washer/src/main/java/demo/washer/Application.java b/spring-statemachine-samples/washer/src/main/java/demo/washer/Application.java index 530a09e2..251a5436 100644 --- a/spring-statemachine-samples/washer/src/main/java/demo/washer/Application.java +++ b/spring-statemachine-samples/washer/src/main/java/demo/washer/Application.java @@ -64,7 +64,7 @@ public class Application { .event(Events.DRY) .and() .withExternal() - .source(States.RUNNING) .target(States.POWEROFF) + .source(States.RUNNING).target(States.POWEROFF) .event(Events.CUTPOWER) .and() .withExternal()