Drop FlowRecoveryQuery criteria: excludeFlowIds

This commit is contained in:
Jose Coll 2023-10-27 14:13:29 +01:00
parent 04b1e8fb3d
commit 5e017dfbc8

View File

@ -57,10 +57,9 @@ class FlowRecoveryException(message: String, cause: Throwable? = null) : FlowExc
data class FlowRecoveryQuery(
val timeframe: FlowTimeWindow? = null,
val initiatedBy: CordaX500Name? = null,
val counterParties: List<CordaX500Name>? = null,
val excludeFlowIds: List<StateMachineRunId>? = null) {
val counterParties: List<CordaX500Name>? = null) {
init {
require(timeframe != null || initiatedBy != null || counterParties != null || excludeFlowIds != null) {
require(timeframe != null || initiatedBy != null || counterParties != null) {
"Must specify at least one recovery criteria"
}
}