@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
|
||||
<include resource="org/springframework/boot/logging/logback/base.xml"/>
|
||||
|
||||
<logger name="org.springframework.statemachine" level="TRACE"/>
|
||||
|
||||
</configuration>
|
||||
@@ -0,0 +1,12 @@
|
||||
+---------------------------------------------------+
|
||||
| SM |
|
||||
+---------------------------------------------------+
|
||||
| |
|
||||
| +--------+ A +--------+ B +--------+ |
|
||||
| *-->| S0 |------>| S1 |------>| S2 | |
|
||||
| +--------+ +--------+ +--------+ |
|
||||
| ^ | |
|
||||
| | C | |
|
||||
| +----------------------------------+ |
|
||||
| |
|
||||
+---------------------------------------------------+
|
||||
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<title>Spring Statemachine Scope Demo</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
</head>
|
||||
<body>
|
||||
<p th:text="'States: ' + ${states}" />
|
||||
<form action="#" data-th-action="@{/states}" data-th-object="${model}" method="post">
|
||||
<button type="submit" name="event" value="A">Send A</button>
|
||||
<button type="submit" name="event" value="B">Send B</button>
|
||||
<button type="submit" name="event" value="C">Send C</button>
|
||||
</form>
|
||||
<pre th:text="${stateChartModel}"/>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user