Flow

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

node [shape = box] getmhDB [label = "getmhDB( empReq, empPool, sched, year, hol )"] initEmpPool [label =<

initEmpPool(empPool
hol
year ) ->
listR (listR.a for backup)
empPool (sanitized)
>] initEmpReq [label =<
initEmpReq(empReq
sched
hol
year ) ->
listT (listT.a for backup)
empReq (sanitized)
>] personnelClass [label="get personnel classes that are both in empPool and empReq -> personnelClass"] separateU [label=<
separate empPool, empReq,
listR, and listT that
are not in personnelClass ->
u.empPoolu.listR
u.empRequ.listT
>] separate [label=<
separate empPool, empReq,
listR, and listT that
are in personnelClass ->
empPoollistR
empReqlistT
>] parallel [label = "Process in parallel by separating by class"] staff [label = "Staff"] clerk [label = "Clerk"] technical [label = "Technical"] supervisor [label = "Supervisor"] laborer [label = "Laborer"] operator [label = "Operator"] assignPrio [label =<
assignPrio(empReq
empPool
listT
listR ) ->
mhDB
listT (unassigned)
listR (unassigned)
mhReq (unassigned)
mhPool (unassigned)
discarded (OT)
>] assignPrioClerk [label = "..."] assignPrioLaborer [label = "..."] assignPrioOperator [label = "..."] assignPrioStaff [label = "..."] assignPrioTechnical [label = "..."] merge [label =<
merge all outputs ->
listT mhReq mhDB
listR mhPool discarded
>] normEmp [label = "apply normEmp() to u.listR -> listTN"] u_mhPool [label = "create u.mhPool using listTN"] merge_mhPool [label = "merge u.mhPool to mhPool"]

node [shape = diamond] len_u_listR [label = "Is length of u.listR > 0 ?"] nrow_mhPool [label = "Is number of rows of mhPool > 0 ?"]

getmhDB -> initEmpPool initEmpPool -> initEmpReq initEmpReq -> personnelClass personnelClass -> separateU separateU -> separate separate -> parallel parallel -> clerk:n parallel -> laborer:n parallel -> operator:n parallel -> staff:n parallel -> supervisor:n parallel -> technical:n supervisor -> assignPrio clerk -> assignPrioClerk laborer -> assignPrioLaborer operator -> assignPrioOperator staff -> assignPrioStaff technical -> assignPrioTechnical assignPrio -> merge assignPrioClerk -> merge assignPrioLaborer -> merge assignPrioOperator -> merge assignPrioStaff -> merge assignPrioTechnical -> merge merge -> len_u_listR len_u_listR -> normEmp [label = "yes"] normEmp -> u_mhPool u_mhPool -> merge_mhPool merge_mhPool -> nrow_mhPool

} ```



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