Episode 472: Detect Signs of Flu in Business System?

Monday, February 29, 2016
  • My husband caught "Chickenpox"!
  • My child caught "Flu"!

Anyone wants to reduce risks of "Infectious diseases to be prevalent in the workplace" to zero. Everyone wants the company to take the "appropriate measures against infectious diseases".

Speaking "Infectious disease", it differs widely. There are severe illnesses that have defined as "Category 1 infections" in "Infectious diseases law", such as Ebola hemorrhagic fever", extremely strong infectivity. Also there are infectious diseases such as "Chickenpox" an "Seasonal flu" which have been defined as "Category 5", and the countermeasures is left to each organization. (The national authority would take countermeasure against Category 1.)


The following Workflow is a modified version of "Attendance Report flow" which I had presented in "Episode 465: Attendance Management in Cloud-based Workflow!"

It is nothing special. I Just added an input form of "Questionnaire for signs of infectious disease (optional)" beneath "Time and attendance report form" which everyone inputs daily.

  • I myself might have been infected with Seasonal flu, Rubella, Chickenpox, etc. (0/1/2/3)
  • My family member might have been infected with Seasonal flu, Rubella, Chickenpox, etc. (0/1/2/3)
    • 0: Almost no possibility of infection
    • 1: Feel like the symptoms began to appear
    • 2: I think the symptoms began to appear strongly
    • 3: Test positive of infection

[Attendance Report flow]



The reason why this Workflow is excellent, is the point that the questionnaire has been equipped on the day-to-day use application form so that you won't hesitate in "how you tell to the company" when you find the "signs of infection.

In other words, the company is capable of detecting "signs of infection" anytime. That is, the system to make proper "judgment", such as;
  • Enlighten knowledge of prevention
  • Recommend switching to work at home
  • Revise the team plan
  • Make the entire company Temporary holiday
is ready.

However, thoughts of "ideal state for an organization" will be fostered only after efforts on a daily basis have been made. You will be able to take "Appropriate measures" when the threat, for example, such as the "Avian flu" (Category 2 Infectious diseases) was imminent.

[Attendance Report flow:"1. Coming to work Report" screen"]

Setting of Script Step "Hours worked calculation" (Server-side Javascript)
//// == Retrieving == 
var workStart = data.get("6"); 
var workEnd = data.get("7"); 
// com.questetra.bpms.util.AddableTimestamp 
var workBreak = data.get("8") - 0; // (h) number 

//// == Calculating == 
// java.sql.Timestamp: long getTime() 
// Returns the number of milliseconds since Jan 1, 1970 GMT 
intervalMilliSec = workEnd.getTime() - workStart.getTime() ; 
intervalHour = Math.floor( intervalMilliSec / 10 / 3600 ) / 100 ; 
// two places of decimals 
workHour = intervalHour - workBreak ; 

//// == Updating == 
retVal.put("9", java.math.BigDecimal( workHour ) ); 

Setting of Script Step "Emptying work and break time" (Server-side Javascript)
//// == Updating == 
retVal.put("6", null);  //Empty clock-in 
retVal.put("7", null);  //Empty clock-out 
retVal.put("8", null);  //Empty break time 

[Data Items list]


[Free Download]
<Similar Models>
<<Related Articles>>

[Japanese Entry (ε’Œζ–‡θ¨˜δΊ‹)]