TestBehandlingFullføringService

class TestBehandlingFullføringService(val dataSource: DataSource, val repositoryRegistry: RepositoryRegistry, val gatewayProvider: GatewayProvider)(source)

Constructors

Link copied to clipboard
constructor(dataSource: DataSource, repositoryRegistry: RepositoryRegistry, gatewayProvider: GatewayProvider)

Properties

Link copied to clipboard
private val dataSource: DataSource
Link copied to clipboard
private val gatewayProvider: GatewayProvider
Link copied to clipboard
private val log: Logger?
Link copied to clipboard
private val repositoryRegistry: RepositoryRegistry

Functions

Link copied to clipboard
private fun erBehandlingAvsluttet(sak: Sak): Boolean
Link copied to clipboard
fun fullførBehandling(sak: Sak, ventPåNyBehandling: Boolean = false)

Fullfører behandlingen ved å vente på en åpen behandling og deretter løse avklaringsbehov til behandlingen er avsluttet, eller vi når maks antall forsøk.

Link copied to clipboard
private fun hentFørsteYrkesskade(behandlingId: BehandlingId): Yrkesskade?
Link copied to clipboard
private fun hentUføreperioderTilSamordning(sak: Sak, behandlingId: BehandlingId): List<Uføre>
Link copied to clipboard
private fun hentVedtaksbrev(behandlingId: BehandlingId): Brevbestilling
Link copied to clipboard
private fun lagLøsning(behov: Avklaringsbehov, alleAvklaringsbehov: List<Avklaringsbehov>, sak: Sak, behandlingId: BehandlingId, søknaderSomMåHåndteres: Set<MottattDokument>): AvklaringsbehovLøsning?
Link copied to clipboard
private fun prosesserNesteSteg(sak: Sak, forventetBehandlingId: BehandlingId): BehandlingId?

Henter avklaringsbehov og løser det første åpne. Returnerer behandlingId hvis et behov ble løst.