feat: add explicit conditional routing for approval steps
Require ProcessDefinition transitions so the engine can branch or end by conditionKey, persist them in JDBC, and pin repository text files to LF. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -15,7 +15,7 @@ public final class LeaveRequestExample {
|
||||
|
||||
public static void main(String[] args) {
|
||||
OrdoEngine ordo = new InMemoryOrdoEngine();
|
||||
ordo.register(new ProcessDefinition("leave-request", "Leave request", List.of(
|
||||
ordo.register(ProcessDefinition.linear("leave-request", "Leave request", List.of(
|
||||
ApprovalStep.single("manager", "Manager approval", "maria"),
|
||||
ApprovalStep.single("hr", "HR approval", "henry")
|
||||
)));
|
||||
|
||||
Reference in New Issue
Block a user