Communication and Scheduling Model Design of Distributed Workflow Management System
Total Page:16
File Type:pdf, Size:1020Kb
Advances in Engineering Research, volume 119 2nd International Conference on Automatic Control and Information Engineering (ICACIE 2017) Communication and Scheduling Model Design of Distributed Workflow Management System Jing Zhao Bin Wei School of Science Key Laboratory of Network & Information Security of APF Xijing University Engineering College of APF Xi’an, China, 710123 Xi’an, China, 710123 [email protected] Abstract—The traditional OA system cannot meet the requirements of modern enterprise. Currently the widely used II. DISTRIBUTED WORKFLOW MANAGEMENT SYSTEM distributed workflow management system (DWFMS) has the The WFMC propose a classic definition of workflow: all problem of load balancing, which makes the enterprise efficiency or part of it supported or automated by a computer. The unimproved. In this paper, on the study of the DWFMS, the workflow management system is to support a batch of model design of common communication transmission and professional set workflow, which is defined by the calculated scheduling are analyzed. Then the real-time scheduling strategy process. It is used to support the definition, management and model is put forward and discussed, which based on feedback control. By using this model in DWFMS, the task can be executive the workflow. It enable the business execution controlled effectively, the load balancing performance of the processes to achieve maximum efficiency. system is improved effectively, and the stability of the system is The distributed workflow system is generally divided into ensured. 3 parts: the distribution of workflow architecture, the distribution of workflow engine and the distribution of Keywords—workflow; communication; scheduling model; workflow model. The workflow engine distribution is the core controller of distributed system. The structure diagram of DWFMS is shown in Fig. 1. I. INTRODUCTION Process With the complex and frequent requirements of modern definition enterprise business process, the development of Web system Monitoring Control data has put forward more severe tests, which make the Control data staff Workflow engine development of Web system face challenges. The traditional Workflow Workflow OA system cannot meet the business requirements of the engine engine Workflow current enterprises. Therefore, the workflow management engine coalition (WFMC) propose the concept of workflow The task list The task list The task list management system. However, the problem of load balancing Application affects the system performance seriously, which makes the enterprise's business efficiency unimproved. Include local and Centralize remote application Distributed Distributed workflow technology is developed on the basis of centralized workflow technology. With the distributed Fig. 1. The structure diagram of DWFMS workflow technology, DWFMS has good scalability and continuity, which can meet the requirements of enterprises and III. COMMUNICATION TRANSMISSION MODEL users better, and the main features are shown below: 1) Assist in completing the multi-department tasks; 2) As an enterprise The main information flows and control flows that need to application integration platform, it forms a complementary be transmitted between DWFMS as follow: activity activation, relationship with other business systems effectively; 3) The sub process activation, real-time status of active instances, embedded workflow engine is transparent to the application workflow related data transmission, data transmission, process end user. model reads and writes. The WFMC proposed the following two kinds of communication transmission models. The communication transmission between tasks is a key component of DWFMS. The proper communication Network model: in network model, a workflow instance transmission and task scheduling model can effectively within particular workflow service area can be used as a sub improve the operation efficiency and the resource utilization process within different region. And the data transmission can of the server nodes, thus improving the performance of the be implement with the application functions or the API distributed system. interface. The network transmission model is shown in Fig. 2. Copyright © 2017, the Authors. Published by Atlantis Press. This is an open access article under the CC BY-NC license (http://creativecommons.org/licenses/by-nc/4.0/). 169 Advances in Engineering Research, volume 119 summary table by administrator. Inside of the load task engine Task process 1 Task process 2 and among the load task engine, node load information table A2 A3 B2 B3 and the load information summary table by administrator, the B1 B4 B5 real-time system communication is implemented by A1 A4 messaging. The engine task scheduling process is shown in Fig. 4. B7 B6 A6 A5 User instance process 1 The load information table User instance process 2 collected by administrator Fig. 2. The network transmission model Send() Load information table Send() Task process 1 Task process 2 Engine scheduling Get() Engine scheduling A2 A3 B2 B3 process 1 Send() process 2 A1 A4 B1 B4 B5 Execution engine 1 Execution engine 2 A6 A5 B7 B6 Fig. 4. The engine task scheduling process Fig. 3. The chain transmission model V. THE REALIZATION OF SCHEDULING MODEL Chain model: a point A in process 1 can be connected to a point B in process 2, and the B can be any node. This model A. The scheduling model based on MVC supports the single task transmission within heterogeneous environment, and then executing by the receiver without In this paper, the MVC and the development based on SSH further synchronization. In reality, it can realize the data framework are adopted. The MVC and the SSH are briefly format conversion and the name mapping not only by an introduced as follows. The MVC is the design model of application program, but also the way of service to model-view-controller. It can implement the separation of communicate with each other, such as API interface. Chain display and data. A control layer is added between the view transmission model is shown in Fig. 3. and the model, and the view can only operate the model by controller. The control layer is the data layer. Then the data In general, the chain model can supported independently. update the model notifies the view to update itself. In a There is no need to ensure synchronization, which is more desktop program, the user can interact with the view directly. suitable for the development trend of modern workflow View events can be triggered by the event operations. Through system. the controller, the purpose of updating the model or data can be achieved. The data exchange model of MVC is shown in IV. THE DESIGN OF SCHEDULING MODEL Fig. 5. In order to achieve the goal of DWFMS load balancing, Update Views three factors need to be analyzed. Client • Scheduling object: object oriented technology is used Interactive to analyze the scheduling objects. In order to view the analysis and communication later, the Unified Controller View Event View Modeling Language (UML) modeling be used to graphically display. Change Statement of change events • Condition of assignment: after the task queue enters the Model system, the assignment of tasks is mainly determined Model by the reference conditions, such as the authorization of the processing nodes at all levels in the audit system. Fig. 5. The data exchange model of MVC • The assessment methods of task execution node load: when the task has been assigned, the system may The SSH framework, also known as Strut+ Spring+ appear uneven load state, at this time for running load Hibernate. nodes or the nodes which in the queue waiting for The Strut framework: struts is a large Servlet, called processing, both need to evaluate the load efficiently, ActionServlet, or a subclass of ActionServlet. which provides that can provide data to ensure system scheduling the components for the Model, View and Controller. strategy initialization. The Spring framework, spring is a lightweight inversion of Suppose the system engine consists of several load task control (IoC) and a container framework of aspect oriented engines, node load information table and the load information 170 Advances in Engineering Research, volume 119 programming (AOP). It is noninvasive, and objects in Spring acceptance of load tasks is adjusted by setting the effective applications are not dependent on a particular class of Spring. threshold. The implementation of scheduling strategy is shown in Fig. 7. The Hibernate framework, Hibernate is an open source object-relational mapping framework. The very lightweight object encapsulation for JDBC, which make Java JavaBean programmers to manipulate the database with object Process custom tools programming thinking. There are five core interfaces: session, Workflow engine Process management monitoring session factory, transaction, query and configuration. Servlet (service) Scheduling Scheduling DAO execution algorithm Browser Database B. The realization of scheduling strategy model Task / Scheduling JDBC The feedback control real-time scheduling model presented engine in this paper is shown in Fig. 6. The scheduling model consists JSP of feedback controller, task dispatcher, task scheduler and PID scheduler. Other workflow engine Process management monitoring ( ) Feedback controller service Process custom tools PID scheduler JavaBean Task Engine1 Fig. 7. The implementation of scheduling strategy scheduler … The task queue Process Task dispatcher VI. CONCLUSION in the system execution Based on the in-depth