26 lines
721 B
Java
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
|
|
|
|
} |