CN103365636A - Method for converting control processes in flow chart into program control statements - Google Patents

Method for converting control processes in flow chart into program control statements Download PDF

Info

Publication number
CN103365636A
CN103365636A CN2012100864476A CN201210086447A CN103365636A CN 103365636 A CN103365636 A CN 103365636A CN 2012100864476 A CN2012100864476 A CN 2012100864476A CN 201210086447 A CN201210086447 A CN 201210086447A CN 103365636 A CN103365636 A CN 103365636A
Authority
CN
China
Prior art keywords
node
flow diagram
process flow
converted
markup language
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012100864476A
Other languages
Chinese (zh)
Inventor
牟春林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Jingyihui Information Technology Co., Ltd.
Original Assignee
SUZHOU INDUSTRIAL PARK JINYI TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SUZHOU INDUSTRIAL PARK JINYI TECHNOLOGY Co Ltd filed Critical SUZHOU INDUSTRIAL PARK JINYI TECHNOLOGY Co Ltd
Priority to CN2012100864476A priority Critical patent/CN103365636A/en
Publication of CN103365636A publication Critical patent/CN103365636A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method for converting control processes in a flow chart into program control statements. Judge control processes and circulation control processes in the flow chart are converted into one kind of markup language according to features of a stream formed by connection lines in the flow chart and according to needs, and the markup language is converted into the program control statements containing judge code blocks and circulation code blocks. The stream is a logic stream formed by one or more nodes connected by the connection lines in the flow chart, and the stream is divided into multiple streams by judge nodes. The judge code blocks are if judge processing code blocks and the like used in program codes. The circulation code blocks are while circulation code blocks and the like used in program codes. By the method, middle-layer markup language of process conversion is achieved, conversion logic is clear, process conversion is easy to implement, nodes in the flow chart can be shared, the corresponding flow chart is clear and easy to maintain, and the like.

Description

Control procedure in the process flow diagram is converted to the method for program control statement
Technical field
The invention relates to a kind of method that control procedure in the process flow diagram is converted to program control statement, the stream that particularly the judgement control procedure in the process flow diagram and cycle control process is formed according to line is converted to judgement code block and the loop code piece of specific program language as required.
Background technology
The patent of invention that the applicant has applied for a kind of system and method for graphical making software on March 12nd, 2012, application number is 201210062317.9, this patent is made the system and method for software systems for the non-computer professional provides an Analysis of Nested Design, the user can be by graphical interfaces the mode design object, then by the mode of the drawing process flow diagram logic of designing program.Function for the logic of designing program by the mode of drawing process flow diagram, need conversion equipment the control procedure of process flow diagram to be converted to the programmed control code of specific program language, and then be converted to object code, the invention provides a kind of method that control procedure in the process flow diagram is converted to program control statement.
Summary of the invention
The object of the invention is according to the feature of the stream of the formation of the line in the process flow diagram judgement control procedure in the process flow diagram and cycle control process to be converted to a kind of markup language as required, again markup language is converted to contain and judges code block and loop code piece program control statement, described stream is the logic flow that is connected to form through line by one or more nodes in the process flow diagram, be divided into a plurality of streams by decision node therebetween, described judgement code block is that judging such as if of using in the program code processed code block, and described loop code piece is the loop code piece such as the while circulation that uses in the program code.
Determine that according to the decision node information in the process flow diagram one judges the beginning of code block, determine the end of this judgement code block according to the joint information of this decision node stream out; If contain identical flow identification information in two streams that cross in the process flow diagram, then determine the beginning of loop code piece by the nodal information that crosses, determine the end of loop code piece according to the decision node information of corresponding stream in the process flow diagram; Then generate a kind of markup language according to above-mentioned beginning and end feature, again markup language is converted to program code.
The transfer process that realizes by above method contains a kind of markup language in middle layer, and conversion logic is more clear, has easy realization, and the node in the process flow diagram such as can share at advantage, the simultaneously corresponding clear easy care of process flow diagram.
Description of drawings
Fig. 1 is control procedure in the process flow diagram of the present invention and the corresponding relation of markup language;
Fig. 2 is the corresponding relation of markup language of the present invention and programmed control code.
Embodiment
Below realize preferred example of the present invention by example explanation, use the XML language that serves as a mark.
Please refer to Fig. 1, left area 1 is a process flow diagram among Fig. 1, and zone, the right 2 is corresponding with it markup language.Comprise traffic identifier and expression formula information in each node in the zone 1, wherein the part of " " symbol front end is the traffic identifier symbol, and " " symbol rear end is expression formula, can be with the place that certain can be read and write that is kept at of traffic identifier recessiveness in the practice process; Such as " 1@a=x in the start node 10; ", namely the traffic identifier at this node place is 1, expression formula is a=x; And in the node 19 " 1.1+1.2@c12c=z ", show that then two affluent-dividing 1.1.1,1.1.2 of traffic identifier 1.1 and the stream of 1.2 correspondences all pass through this node, and traffic identifier 1.1.1 shows that it connects from traffic identifier 1.1, and traffic identifier 1.1 connects from traffic identifier 1, by that analogy.
Please refer to Fig. 1, the respective markers language that the right edge regions 2 of Fig. 1 converts to for regional 1 flowchart control process, having used following node type: exp is simple type expression, and while is cyclical patterns, and if, elseif and else are different judgement types; Id and con attribute have been used in the node, respectively representation node id and Rule of judgment.
In the process of making process flow diagram, the traffic identifier of node 10 and 11 is defined as 1, and decision node 12 has three affluent-dividings, respectively its traffic identifier is defined as 1.1,1.2,1.3, decision node 14 has two affluent-dividings, respectively its traffic identifier is defined as 1.1.1 and 1.1.2; For node 19,1.1.1,1.1.2 and 1.2 cross by stream, and wherein flowing 1.1.1 and 1.1.2 is two affluent-dividings of node 14, and namely all affluent-dividings of node 14 all cross, and then its corresponding stream is 1.1, so node 19 contains the information of 1.1 and 1.2 two streams; For node 110, crossed by three affluent-dividings 1.1,1.2 and 1.3 that flow 1, it is equivalent to stream 1.
When process flow diagram is converted to markup language, node 10 is converted to directly that id is 01 flag node in the zone 2, the described flag node that converts to comprises start mark node and end mark node, as<exp〉</exp 〉, node refers to the node in the process flow diagram, flag node is the node in the markup language, and is rear same.Node 11 has two streams to cross, and contain simultaneously stream 1, then be converted to the beginning of loop code piece, cycling condition finds the condition of its initial decision node 111 to generate according to stream information, generate the flag node of corresponding id=02, and its expression formula is generated the flag node of id=03; Generate the flag node of id=04 according to the Rule of judgment in the tributary 1.1 of decision node; Node 13 generates the flag node of id=05; In the decision node 14>0 judgement generates the flag node of id=06; The flag node of the capable id=07 of node 16 generating codes; Contain stream 1.1 in the node 19, show that this stream finishes the flag node end of text of id=06; In the decision node 14<=0 judgement generates the flag node of id=08; Node 15 converts the flag node of id=09 to; Though node 18 contains two streams, only contain a tributary 1.1.2 of stream 1.1, therefore generate the flag node of id=10; Contain stream 1.1 in the node 19, indicate this tributary end, the flag node end of text of id=08; Contain stream 1 in the node 110, three shuntings of sign node 12 all cross, indicate that stream 1.1 finishes the flag node end of text of id=04; Next process stream 1.2, generate the flag node of id=12; Node 17 generates the flag node of id=13; Though node 18 has stream to cross, do not contain the phase homogeneous turbulence, generate the flag node of id=14; Same node 19 generates the flag node of id=15; Three shuntings of sign node 12 all cross, indicate that stream 1.1 finishes the flag node end of text of id=12; Next process stream 1.3, generate the flag node of id=16; Node 112 is decision node, generates the flag node of id=17; Node 113 and 114 generates the flag node of id=18 and id=19 successively; Contain stream 1 in the node 110, three shuntings of sign node 12 all cross, indicate that stream 1.3 finishes; So far three of node 12 shuntings are disposed; Node 112 does not have expression formula, does not process.
Please refer to Fig. 2, order reads the content of above-mentioned markup language, does corresponding conversion processing according to different node types and can be translated into a kind of process control language.
The transfer process that realizes by above method contains a kind of markup language in middle layer, and conversion logic is more clear, has easy realization, and the node in the process flow diagram such as can share at advantage, the simultaneously corresponding clear easy care of process flow diagram.
Any markup language, the markup language that comprises the markup language of standard, self-defining markup language, realizes by database table or form document, as long as can all can realize said method by its mark access mark node.
The above embodiment only is the better embodiment of the present invention; and unrestricted claim of the present invention; the structural change of the modification that any utilization instructions related content of the present invention is done and equivalence and enforcement and the corresponding inspection method of carrying out all should be included within the scope of patent protection of the present invention.

Claims (5)

1. method that the control procedure in the process flow diagram is converted to program control statement, its process is, the feature of the stream that forms according to the line in the process flow diagram is converted to a kind of markup language as required with the judgement control procedure in the process flow diagram and cycle control process, again markup language is converted to program control statement, it is characterized in that, use the identification information of stream in the described process that is converted to markup language, described markup language contains flag node information and corresponding with node in the process flow diagram.
2. a kind of method that control procedure in the process flow diagram is converted to program control statement as claimed in claim 1, it is characterized in that, determine that according to the decision node information in the process flow diagram one judges the beginning of code block, determine the end of this judgement code block according to the feature that crosses of decision node stream out, then generate flag node information corresponding in the markup language according to above-mentioned beginning and end feature.
3. a kind of method that control procedure in the process flow diagram is converted to program control statement as claimed in claim 1, it is characterized in that, if contain identical flow identification information in two streams that cross in the process flow diagram, then determine the beginning of loop code piece according to the feature of this node that crosses, determine the end of loop code piece according to the decision node feature of corresponding stream in the process flow diagram, then generate flag node information corresponding in the markup language according to above-mentioned beginning and end feature.
4. a kind of method that control procedure in the process flow diagram is converted to program control statement as claimed in claim 1 is characterized in that, containing in the identification information of described stream directly or indirectly to provide the function of distinguishing a plurality of streams.
5. a kind of method that control procedure in the process flow diagram is converted to program control statement as claimed in claim 1 is characterized in that, described markup language can be realized the function by its content of mark access.
CN2012100864476A 2012-03-29 2012-03-29 Method for converting control processes in flow chart into program control statements Pending CN103365636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012100864476A CN103365636A (en) 2012-03-29 2012-03-29 Method for converting control processes in flow chart into program control statements

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012100864476A CN103365636A (en) 2012-03-29 2012-03-29 Method for converting control processes in flow chart into program control statements

Publications (1)

Publication Number Publication Date
CN103365636A true CN103365636A (en) 2013-10-23

Family

ID=49367079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012100864476A Pending CN103365636A (en) 2012-03-29 2012-03-29 Method for converting control processes in flow chart into program control statements

Country Status (1)

Country Link
CN (1) CN103365636A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189758A (en) * 2018-07-26 2019-01-11 新华三技术有限公司 O&M flow designing method, device and equipment, operation method, device and host
CN113434220A (en) * 2021-07-15 2021-09-24 上海商汤科技开发有限公司 Method, device and equipment for constructing workflow and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010044811A1 (en) * 2000-03-09 2001-11-22 Electronic Data Systems Corporation Method and system for reporting XML data based on precomputed context and a document object model
US20030177471A1 (en) * 2002-03-12 2003-09-18 Yen-Chang Chiu System and method for graphically developing a program
CN1459719A (en) * 2002-05-17 2003-12-03 义隆电子股份有限公司 System of pattern development program and method
CN1967574A (en) * 2005-11-17 2007-05-23 深圳市东进通讯技术股份有限公司 Method and system to realize generating of integrated communications platform process
CN101776999A (en) * 2010-01-28 2010-07-14 苏州工业园区进一科技有限公司 Platform for developing and implementing software system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010044811A1 (en) * 2000-03-09 2001-11-22 Electronic Data Systems Corporation Method and system for reporting XML data based on precomputed context and a document object model
US20030177471A1 (en) * 2002-03-12 2003-09-18 Yen-Chang Chiu System and method for graphically developing a program
CN1459719A (en) * 2002-05-17 2003-12-03 义隆电子股份有限公司 System of pattern development program and method
CN1967574A (en) * 2005-11-17 2007-05-23 深圳市东进通讯技术股份有限公司 Method and system to realize generating of integrated communications platform process
CN101776999A (en) * 2010-01-28 2010-07-14 苏州工业园区进一科技有限公司 Platform for developing and implementing software system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
钟志超 等: "流程图与类C语言实时转换方法", 《东南大学学报(自然科学版)》, vol. 39, no. 3, 30 June 2009 (2009-06-30), pages 502 - 507 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189758A (en) * 2018-07-26 2019-01-11 新华三技术有限公司 O&M flow designing method, device and equipment, operation method, device and host
CN109189758B (en) * 2018-07-26 2021-02-09 新华三技术有限公司 Operation and maintenance flow design method, device and equipment, operation method, device and host
CN113434220A (en) * 2021-07-15 2021-09-24 上海商汤科技开发有限公司 Method, device and equipment for constructing workflow and computer storage medium

Similar Documents

Publication Publication Date Title
CN106897806A (en) Workflow creation method and system, operation system
CN106897809A (en) Workflow creation method, workflow designer and workflow system
CN102169500A (en) Dynamic service flow display device
CN105278960A (en) Process automation method and system in remote sensing application
CN107515741A (en) The lightweight transmission method and device of data between a kind of transformer station and main website
CN103150623A (en) Cloud manufacture capacity service modeling method based on meta-model
CN103365636A (en) Method for converting control processes in flow chart into program control statements
CN100518189C (en) Tracking method for mobile communication system signaling message
CN105159688A (en) Programmable information visualization interaction type design method
CN108134698A (en) A kind of graphical configuration platform of industry multi-protocols gateway of internet of things
CN107122338A (en) A kind of method that functional diagram for digitizing I&C system is automatically converted into configuration file
CN102591787A (en) Method and device for data processing of JAVA card
CN103440197B (en) A kind of method automatically generating difference test report based on contrast test
CN105159669A (en) Method and system for orderly processing multiple Ajax data sources
WO2019019473A1 (en) Method for online real-time inter-conversion of flowchart and code
CN105718429B (en) The method and device of inspection report generation
CN102123137A (en) Multi-person collaborative virtual-real mixed disassembly and assembly system and multi-person collaborative virtual-real mixed disassembly and assembly method
CN202650333U (en) Cordwood system type programming language device
CN109918376A (en) Tables of data processing method, device and electronic equipment
CN106572035A (en) SDN switch
CN106201526A (en) Service Component method and system
CN103365634A (en) Method for transferring controlling processes into program control statements in flow chart
CN108600181A (en) A kind of parsing configuration method for supporting polymorphic type communication protocol
CN105426676B (en) A kind of well data processing method and system
CN103365635A (en) Method for converting control processes in flow chart into program control statements

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SUZHOU JINGYIHUI INFORMATION TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: SIP JINYI TECH CO., LTD.

Effective date: 20140901

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20140901

Address after: 215000 Jiangsu Province, Suzhou City Industrial Park, building 69 room 905 guests

Applicant after: Suzhou Jingyihui Information Technology Co., Ltd.

Address before: 215000 Jiangsu Province, Suzhou City Industrial Park, building 69 room 905 guests

Applicant before: Suzhou Industrial Park Jinyi Technology Co., Ltd.

WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20131023

WD01 Invention patent application deemed withdrawn after publication