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 sourceStates = new ArrayList<>(); public List targetStates = new ArrayList<>(); public String event; public String guard; public boolean isLambdaGuard = false; public List actions = new ArrayList<>(); public List isLambdaActions = new ArrayList<>(); public Integer order = null; // optional order for withChoice or withJunction }