[CORDA-1605]: When one node in a transaction fails to respond, operator of initiating node needs to understand which node it is waiting for.

This commit is contained in:
szymonsztuka 2018-06-19 11:59:01 +01:00
parent f99f483f0d
commit acefaceaf6

View File

@ -166,6 +166,8 @@ class MultiThreadedStateMachineManager(
lifeCycle.transition(State.UNSTARTED, State.STARTED)
}
override fun snapshot(): Set<FlowStateMachineImpl<*>> = concurrentBox.content.flows.values.map { it.fiber }.toSet()
override fun <A : FlowLogic<*>> findStateMachines(flowClass: Class<A>): List<Pair<A, CordaFuture<*>>> {
return concurrentBox.content.flows.values.mapNotNull {
flowClass.castIfPossible(it.fiber.logic)?.let { it to it.stateMachine.resultFuture }