摘要 |
<p>The present invention provides a method and system for for controlling the closing of a plant application running on a MES application, wherein the MES application is in communication with an external environment through an application launcher and wherein the MES application allows, at engineering time, to model a certain plant by creating objects belonging to classes in a plant application; the invention comprising:
a) providing to a set of classes, a custom shutdown rule (SR) to be customized at engineering time;
b) at engineering time, defining, for certain classes belonging to the set of classis, certain shutdown rules (SR) with a set of actions to be performed by the MES application;
c) at run time, by the application launcher, upon receiving an external request of closing the plant application, notifying the closing request to the MES application;
d) at run time, by the MES application, invoking the shutdown rules (SR) once for each object of the classes of item b) which have a defined shutdown rule (SR);
e) at run time, by the MES application, performing the actions defined in the invoked custom shutdown rules (SR);
f) at run time, by the MES application, closing or not closing the plant application according to the results of the invoked shutdown rules (SR) of item e); and
g) at run time, by the MES application, notifying the PM launcher whether the plant application was closed at item f) or not.</p> |