Flow

```{dot, echo=FALSE} digraph assignPrio {

node [shape = box] assignPrio [label = "assignPrio( empReq, empPool, listT, listR )"] assignPoolA [label =<

asssignPool( empReq
empPool
listT
listR
prioCode = TRUE ) ->
empReq (remaining)
empPool (remaining)
listT (remaining)
listR (remaining)
mhDB1 (assigned - tempData1 )
>] assignPoolB [label =<
asssignPool( empReq
empPool
listT
listR
prioStat = c( "reg", "pro" ) ) ->
empReq (remaining)
empPool (remaining)
listT (remaining)
listR (remaining)
mhDB2 (assigned - tempData2 )
>] assignPoolC [label =<
asssignPool( empReq
empPool
listT
listR ) ->
empReq (remaining)
empPool (remaining)
listT (remaining)
listR (remaining)
mhDB3 (assigned - tempData3 )
>] tempData4 [label = "create empty mhDB (tempData4)"] poolDCC [label = "poolDCC = sapply( listR, function( x ){ x@dcc } )"] separateDCC [label =<
listR.dcc <- emplyees with DCC
listR <- emplyees without DCC
>] assignDCC [label =<
discardedOT_dcc <- discarded OT of listR.dcc
tempData4 <- tempData4 +
mhdb from dcc assignment of listR.dcc
>] rbind_mhdb [label =<
mhDB <- mhDB1 +
mhDB2 +
mhDB3 +
tempData4
>] assign00 [label =<
listTN <- listR
discardedOT_00 <- discarded OT of listTN
mhPool <- Excess non-OT hours of listTN
mhDB <- mhDB +
mhdb from 0-0 assignment of listTN
>] mhReq [label ="mhReq <- Excess hours of listT"] return [label =<
return list( mhDB
listT
listR
mhReq
mhPool )
>]

node [shape = diamond] len_empA [label = "Is length( listT ) > 0, length( listR ) > 0 "] len_empB [label = "Is length( listT ) > 0, length( listR ) > 0 "] len_empC [label = "Is length( listR ) > 0"] notNA_dcc [label = "Is there any dump cost centers assigned?"] len_empD [label = "Is length( listR ) > 0"] len_empE [label = "Is length( listT ) > 0"]

assignPrio -> assignPoolA assignPoolA -> len_empA len_empA -> assignPoolB [label = "yes"] len_empA -> tempData4 [label = "no"] assignPoolB -> len_empB len_empB -> assignPoolC [label = "yes"] len_empB -> tempData4 [label = "no"] assignPoolC -> tempData4 tempData4 -> len_empC len_empC -> poolDCC poolDCC -> notNA_dcc notNA_dcc -> rbind_mhdb [label = "no"] notNA_dcc -> separateDCC [label = "yes"] separateDCC -> assignDCC assignDCC -> rbind_mhdb rbind_mhdb -> len_empD len_empD -> assign00 [label = "yes"] len_empD -> len_empE [label = "no"] assign00 -> len_empE len_empE -> mhReq [label = "yes"] len_empE -> return [label = "no"] mhReq -> return } ```



basilrabi/mansched2 documentation built on May 19, 2023, 9:51 p.m.