Execute operations via the asynchronous programming model
A technology of programming model and asynchronous mode, applied in the direction of program control design, program control device, instrument, etc., can solve the problems of insufficient flexibility, not using the APM model, etc., to achieve the effect of simplified implementation and easy programming
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0065] According to the present invention, in an MES system, one or more jobs are requested to be performed in an application. Define an abstract Job class to use its methods and properties to define and implement the behavior of common jobs. The Job class includes, among other things, three methods: the abstract Execute method, the ExecuteAsync method, and the WaitForExecution method.
[0066] The Execute method is implemented at project time with a derived class of the Job class, and it includes a collection of operations to be executed. For example, it may include one or more of the following statements: connect to a database and query, connect to a remote web service, access a file, and others.
[0067] The ExecuteAsync method runs the Execute method in asynchronous mode by following the APM rules. In this way, asynchronous job execution optimally takes advantage of all APM rules due to optimization of system hardware resources.
[0068] The WaitForExecution method exec...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 