From 1beb0e6860f39d6ee7b53445d36e221f31c5cc08 Mon Sep 17 00:00:00 2001 From: Janne Valkealahti Date: Mon, 10 Oct 2016 20:13:41 +0100 Subject: [PATCH] Fix datajpa sample - Relates to #262 --- .../datajpa/src/main/resources/data.json | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/spring-statemachine-samples/datajpa/src/main/resources/data.json b/spring-statemachine-samples/datajpa/src/main/resources/data.json index b0aebabe..962a360f 100644 --- a/spring-statemachine-samples/datajpa/src/main/resources/data.json +++ b/spring-statemachine-samples/datajpa/src/main/resources/data.json @@ -1,39 +1,44 @@ [ + { + "@id": "10", + "_class": "org.springframework.statemachine.data.jpa.JpaRepositoryAction", + "spel": "T(System).out.println('hello exit S1')" + }, + { + "@id": "11", + "_class": "org.springframework.statemachine.data.jpa.JpaRepositoryAction", + "spel": "T(System).out.println('hello entry S2')" + }, + { + "@id": "12", + "_class": "org.springframework.statemachine.data.jpa.JpaRepositoryAction", + "spel": "T(System).out.println('hello state S3')" + }, + { + "@id": "13", + "_class": "org.springframework.statemachine.data.jpa.JpaRepositoryAction", + "spel": "T(System).out.println('hello')" + }, { "@id": "1", "_class": "org.springframework.statemachine.data.jpa.JpaRepositoryState", "initial": true, "state": "S1", - "exitActions": [ - { - "_class": "org.springframework.statemachine.data.jpa.JpaRepositoryAction", - "spel": "T(System).out.println('hello exit S1')" - } - ] + "exitActions": ["10"] }, { "@id": "2", "_class": "org.springframework.statemachine.data.jpa.JpaRepositoryState", "initial": false, "state": "S2", - "entryActions": [ - { - "_class": "org.springframework.statemachine.data.jpa.JpaRepositoryAction", - "spel": "T(System).out.println('hello entry S2')" - } - ] + "entryActions": ["11"] }, { "@id": "3", "_class": "org.springframework.statemachine.data.jpa.JpaRepositoryState", "initial": false, "state": "S3", - "stateActions": [ - { - "_class": "org.springframework.statemachine.data.jpa.JpaRepositoryAction", - "spel": "T(System).out.println('hello state S3')" - } - ] + "stateActions": ["12"] }, { "_class": "org.springframework.statemachine.data.jpa.JpaRepositoryTransition", @@ -47,11 +52,6 @@ "source": "2", "target": "3", "event": "E2", - "actions": [ - { - "_class": "org.springframework.statemachine.data.jpa.JpaRepositoryAction", - "spel": "T(System).out.println('hello')" - } - ] + "actions": ["13"] } ]