mirror of
https://github.com/corda/corda.git
synced 2025-02-12 05:35:50 +00:00
ENT-5196 handle errors during flow initialisation (#6378)
Changes to `StaffedFlowHospital` after merging from earlier releases.
This commit is contained in:
parent
2204f44332
commit
b05c0f0cc1
@ -355,7 +355,7 @@ class StaffedFlowHospital(private val flowMessaging: FlowMessaging,
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun timesResuscitated(currentState: StateMachineState): Int {
|
fun timesResuscitated(currentState: StateMachineState): Int {
|
||||||
val lastAdmittanceSuspendCount = currentState.checkpoint.numberOfSuspends
|
val lastAdmittanceSuspendCount = currentState.checkpoint.checkpointState.numberOfSuspends
|
||||||
return records.count { ResuscitationSpecialist in it.by && it.suspendCount == lastAdmittanceSuspendCount }
|
return records.count { ResuscitationSpecialist in it.by && it.suspendCount == lastAdmittanceSuspendCount }
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -392,9 +392,9 @@ class StaffedFlowHospital(private val flowMessaging: FlowMessaging,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class Outcome(val event: Event?) {
|
enum class Outcome(val event: Event) {
|
||||||
DISCHARGE(Event.RetryFlowFromSafePoint),
|
DISCHARGE(Event.RetryFlowFromSafePoint),
|
||||||
OVERNIGHT_OBSERVATION(null),
|
OVERNIGHT_OBSERVATION(Event.OvernightObservation),
|
||||||
UNTREATABLE(Event.StartErrorPropagation)
|
UNTREATABLE(Event.StartErrorPropagation)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user