refactor: extract shared Texts, Jsons, and SqlBindings helpers
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user