refactor: extract shared Texts, Jsons, and SqlBindings helpers

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
0264408
2026-09-18 11:20:34 +08:00
co-authored by Cursor
parent 1f6e33c14b
commit 0e9bb4bd16
25 changed files with 189 additions and 176 deletions
@@ -53,6 +53,7 @@ import java.util.Optional;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicLong;
import static com.jetlumen.ordo.api.Texts.requireText;
/**
* Repository-backed implementation of the approval runtime with explicit step transitions.
@@ -653,12 +654,6 @@ public final class DefaultOrdoEngine implements OrdoEngine {
return UUID.randomUUID().toString();
}
private static void requireText(String value, String name) {
if (value == null || value.isBlank()) {
throw new IllegalArgumentException(name + " must not be blank");
}
}
private record PendingAction(String executionId, String actionKey, String instanceId, String stepId,
ProcessContext context) {
}