ENT-5672 Know if paused flow is hospitalized (#6641)

Missing change from the original commit.
This commit is contained in:
Dan Newton 2020-08-15 10:08:37 +01:00 committed by GitHub
parent be6b76ff89
commit 8534aad3b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -813,7 +813,9 @@ internal class SingleThreadedStateMachineManager(
val checkpoint = currentState.checkpoint.copy(status = Checkpoint.FlowStatus.PAUSED, flowState = FlowState.Paused)
val pausedFlow = NonResidentFlow(
id,
checkpoint, flow.resultFuture,
checkpoint,
flow.resultFuture,
hospitalized = currentState.checkpoint.status == Checkpoint.FlowStatus.HOSPITALIZED,
progressTracker = currentState.flowLogic.progressTracker
)
val eventQueue = flow.fiber.transientValues.eventQueue