This commit is contained in:
2025-07-13 12:18:23 +02:00
parent c59947a0ac
commit 5de15f8a68
16 changed files with 542 additions and 492 deletions

View File

@@ -0,0 +1,25 @@
package com.example.statemachinedemo;
import lombok.ToString;
import java.util.ArrayList;
import java.util.List;
/**
* Parses Spring State Machine transitions from configure method AST.
*/
@ToString
public class Transition {
public String type; // withExternal, withChoice, withInternal, etc.
public String sourceState;
public String targetState;
public String event;
public String guard;
public boolean isLambdaGuard = false;
public List<String> actions = new ArrayList<>();
public List<Boolean> isLambdaActions = new ArrayList<>();
public Integer order = null; // optional order for withChoice or withJunction
}