“…The extraction process from primitive event to basic event can be described by the pseudo code shown in Algorithm 1. / / represent the material number (4) if the object was first read by reader 1 at 1 //Reader 1 represent the entrance reader of the process line (5) then Create event BE 0,1 = ( .ID, 0 , 1(ts), launch) //New product launch (6) else if the object was last read by reader at 2 //Reader represent the exit reader of the process line (7) then Create event BE ,4 = ( .ID, , 2(te), finish) //The product is finished (8) else the object was read by reader at 3 //The reader in the process line (9) if first read (10) then Create event BE ,1 = ( .ID, , 3(ts), infield) //The infield event (11) and BE ,2 = ( .ID, −1 , 1(ts), 3(te), stay) //The stay event (12) and BE ,3 = ( .ID, −1 , 3(te), outfield) //The outfield event (13) Else Create event BE ,2 = ( .ID, −1 , 1(ts), 3( now), stay) //The stay event Algorithm 1: The extraction process from primitive event to basic event.…”