# Context-Aware System for Information Flow Management in Factories of the Future
## 4 Experimental Findings
### Case Studies
#### 4.2.2 Case Study 2: Material Replacement Orders from Production Lines  
The operators of the factory's production lines are equipped with smartwatches. These wearables are integrated with the CA-FoFS system and have two important functions for the production line, which need data from the _Context Engine_ in order to work. These functionalities are the request for labels or the request for replacement components, which are shown in Figure 10.  
With regard to the request for labels, operators make this request on the smartwatch and it is forwarded to the system. To find out which labels need to be replaced, the system makes an information request to the Context Engine's _DeviceInfo_ service (service 1 shown in Table 3). This service, based on the device ID, provides the label reference of the product currently in production on the production line with which the device is associated. With this information, the system sends a label replacement notice with this reference to the entities responsible for the replacement. Figure 11 shows an example of an information request to the Context Engine's _DeviceInfo_ service, through which this reference can be obtained. This is obtained via the tagReference parameter, as can be seen in the figure. Figure 10: Material Replacement Request functionality on the Smartwatch. Figure 9: Alerts Received Page in the Virtual Assistant [36]. The other functionality is the request for replacement components for the production line. In this functionality, the operator clicks on the materials request shown in Figure 10 from the smartwatch. After this click, the device displays a page where you can select the components that need to be replaced on the production line. In order to provide this list of components, the device uses the _GetComponentsDeviceInfo_ service (service 7 shown in Table 3). Based on the device ID, the _Context Engine_ provides a list of components, which are the components used in the production of the product currently being manufactured on the production line with which the device is associated. Figure 12a shows an example of the application providing this list of components and Figure 12b shows a mockup of this list displayed on the wearable. The operator can then select the components that need to be replaced and the corresponding replacement alerts are sent to the production line where the device is associated. These features offered by the _Context Engine_ to the CA-FoFS system help operators by allowing them to request replacement components or labels simply and quickly, without the need to leave the production line. Figure 11: Example of _DeviceInfo_ Service Response to an Information Request. Figure 12: Component replacement order functionality. .2.3 Case Study 3: Provision of Contextual Information for Creating Reports by the Virtual Assistant  
Another task that the services provided by _Context Engine_ have is to assist the virtual assistant in creating and making available PDF reports for sending by email. _Context Engine_ helps this virtual assistant by providing its contextual services, which are used to generate reports based on this information. These reports are then made available to factory workers by this assistant. Figure 13 shows a virtual assistant service that uses _Context Engine_ services to create reports. This service creates a report on what happened on the production lines on a certain day. In this case, it provides information about the productions that took place, the stoppages that were recorded and presents a graph about the time spent on productions with these stoppages. For this virtual assistant service to be able to present this information, it needs to make requests for information to the _Context Engine_, more specifically to the _LineInfo_ service (service 4 presented in Table 3). This service, based on the production line ID and search dates entered, provides the productions and stoppages that occurred on that production line. With this information, the virtual assistant can create the report.