[Original] jwfdv0.96 workflow system-process XML document structure description

Source: Internet
Author: User

 

This article briefly introduces the workflow XML model structure of the jwfdv0.96 workflow system, which has a small number of professional languages and is easy to understand. It is suitable for beginners of Workflow System Design and developers.
After the structure, you need to focus on the process of setting up the flowchart XML data to the SQL database structure in the background, so that you can understand the working principle and implementation method of the jwfd workflow engine.

1: Draw a simple serial flow chart (saved as XXXX. GXL) using the jwfd flow designer)

The data structure of the flowchart used here is generated using the (vertex, edge) model in graph theory, for more information about this, see Chapter 7 of the <Data Structure> tutorial of Tsinghua University-figure-Section 2-storage structure of images

 

2: Keep it in GXL file (XML) format. You can click XXXX. GXL under the flowchart designer to view the XML data content of this flowchart. Below I will introduce in detail the flowchart
The meaning of the XML data structure, because the database data is generated based on the XML data, the so-called modeling process refers to the process from the design flow chart to the final data into the database to save, stream
For more information about the process map matrix modeling, see my other article (jwfd workflow engine design-simple matrix modeling and application (preliminary discussion)

Http://www.javaeye.com/topic/718562)

Take the first node of the flowchart as an example. The XML structure of other process nodes is consistent.

(Note: The XML data structure of a flowchart node consists of the six core attributes described below. In fact, in a commercial process management system, the node attributes of the flowchart are much more than those of the worker FD, but these attributes are extended on these six attributes, I will introduce the specific extension method in another article)

 

<
Node ID
= "Node0">



<ATTR name ="
Label
">




<String> Start
</String>



</ATTR>



<ATTR name ="
Bounds
">




<Tup>





<Int> 120 </int>





<Int> 180 </int>





<Int> 42 </int>





<Int> 60 </int>




</Tup>



</ATTR>



<ATTR name ="
Font
">




<Tup>





<String>
</String>





<Int> 0 </int>





<Int> 12 </int>




</Tup>



</ATTR>



<ATTR name ="
Icon
">




<Tup>





<String> resources/pc04.gif </string>




</Tup>



</ATTR>



<ATTR name ="
Condition
">




<Tup>





<String> none </string>




</Tup>



</ATTR>


</Node>

 

 

Attribute name: node ID: the actual name of the node. node0 is the actual name after the flowchart enters the database through modeling. It is inconsistent with the name of the attribute label, this property value is automatically generated by the system.

Attribute name label: The Chinese name displayed on the node. This is "start". This attribute is customized by the user.

Attribute name bounds: indicates the absolute coordinate data of the node in the flowchart, which is the X coordinate and Y coordinate and the length and width of the node from top to bottom. This attribute is automatically generated by the system.

Attribute name Font: indicates the font type and font size used by the node name. In this example, the font size of and 12 characters is used.

Attribute name icon: indicates the icon used by the node. In fact, the default icons of jgraph are monotonous, And the icons in jwfd are randomly selected and not very formal, if you want to create a business process system, please select a set of relatively standard process node icons (the specific icon replacement method will be introduced in another article)

Attribute name condition: This attribute is a custom attribute of jwfd. It is used to add embedded formulas and script data to the node. The data is added and modified by the user through the node Attribute Editor.

 

 

The data edited by this conditional expression is stored in this attribute value. After system processing, the data of this conditional expression is saved to the cond field in the process database, for details about the data structure, refer to the database structure of jwfdv0.96.

The XML data structure of a node is described above, but a complete flowchart is composed of a node and a line segment of the connected node. Therefore, we also need to understand the data structure of the edge of the connected node, to complete the data structure of the process... Next we will introduce the XML data structure of the line segment-edge.
(Omitted)

 

========================================================== ========================================================== =

Please download the compressed package of the attached doc document for all the content in this article. Here, only the first half of this article is selected .............

(Full text download) http://dl.javaeye.com/topics/download/772adb21-e684-37a6-853c-c24f52d1ce78

 

 


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.