摘要 |
A method and a system for notifying a client on server disconnection in a manufacturing execution system, is separated into steps to be performed at engineering time and at run-time. At engineering time, the steps include: inserting, in a configuration file, data pointing to a custom function for implementing actions to be executed in case of a disconnection event; writing code of the actions to be implemented by the custom function into a function file; and storing the function file in the web-server. At run time, the steps include: by the browser, requesting from the web-server a certain page to be displayed; by the web-server, retrieving custom function data from the configuration file; by the web-server, attaching to the certain page to be loaded by the Internet browser the following data: the custom function data, the custom function file and data for creating a communication component; by the Internet browser, loading the certain page; e) by the web-server, instantiating a server at the server side to maintain a connection to the client side; by the certain displayed page, creating a communication component at the client side for maintaining connection the server. In the case of a client-server disconnection event, by the server, notifying the communication component about the disconnection; by the communication component, notifying the certain displayed page about the disconnection; and by the certain displayed page, executing the custom function.
|