Files
spring-state-machine-renderer/src/main/java/com/example/statemachinedemo/Transition.java
2025-07-13 15:39:40 +02:00

26 lines
721 B
Java

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 List<String> sourceStates = new ArrayList<>();
public List<String> targetStates = new ArrayList<>();
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
}