CN103412783A - Method for converting script codes into user flow diagram based on business logic layer - Google Patents

Method for converting script codes into user flow diagram based on business logic layer Download PDF

Info

Publication number
CN103412783A
CN103412783A CN2013103799098A CN201310379909A CN103412783A CN 103412783 A CN103412783 A CN 103412783A CN 2013103799098 A CN2013103799098 A CN 2013103799098A CN 201310379909 A CN201310379909 A CN 201310379909A CN 103412783 A CN103412783 A CN 103412783A
Authority
CN
China
Prior art keywords
flow diagram
branch
flow process
action
dive
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
CN2013103799098A
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.)
HANGZHOU USENSE TECHNOLOGY Co Ltd
Original Assignee
HANGZHOU USENSE 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 HANGZHOU USENSE TECHNOLOGY Co Ltd filed Critical HANGZHOU USENSE TECHNOLOGY Co Ltd
Priority to CN2013103799098A priority Critical patent/CN103412783A/en
Publication of CN103412783A publication Critical patent/CN103412783A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method for converting script codes into a user flow diagram based on a business logic layer. By means of the method, the whole operation process of a system can be understood well, and all of hierarchical persons can normally see the business logic step execution conditions of the system. The method for converting the script codes into the user flow diagram based on the business logic layer is shown in a very-humanized and intelligible mode. The method has the advantages of performing multiple-format analysis of the script codes to achieve conversion from the script codes to the business flow diagram, achieving the flow diagram which common users can directly and easily understand and being capable of intuitively positioning normal or abnormal situations of the problems according to the business flow diagram and very convenient.

Description

A kind of scripted code of service based logical layer converts the method for user's process flow diagram to
Technical field
The scripted code that the invention discloses a kind of service based logical layer converts the method for user's process flow diagram to.
Background technology
These years, computing machine is applied in all trades and professions more and more universal, and the field of application is more and more darker.The software developer of computer realm project, the tester, business sales force and terminal user personnel, the communication cost is large, the easy distortion of information, reaction velocity is slow, the problem of poor user experience.
Carry out at present code and turn the similar technology of process flow diagram and method, main has two kinds:
The first scheme is all to be based on the mode that traditional process flow diagram turns code, is to draw process flow diagram by the user, then converts XML quoted passage spare to, and then resolves to use by the XML file
By the user, draw process flow diagram in this way and convert the XML file to and resolve, and be not suitable for the mode of code conversion process flow diagram.
First scheme is the grammer code analysis by computerese, and through a little mathematical model scheduling algorithms, then the generating code process flow diagram, be for the order in the computerese function usually, branch, and circulation draws code flow figure.
Although this method can convert process flow diagram to by computerese grammer code, but can't accomplish the operation flow rank, also only limit to the grammatical analysis in function, although can't be overall, the all code flow figure of integral body are analyzed, it is a kind of that the method for analyzing also only limits to the grammatical analysis of computerese, do not support multifarious format analysis.
Summary of the invention
For overcoming the above problems; the objective of the invention is to propose a kind of operation overall process of well understanding system; system is no matter be normal or abnormal; each level personnel can see the service logic step implementation status of system normally; with a kind of very hommization, the scripted code of the service based logical layer that intelligible mode shows converts the method for user's process flow diagram to.
Technical scheme of the present invention is: the scripted code of service based logical layer converts the method for user's process flow diagram to, specifically comprises the following steps:
Step 1: precondition: definition Data Identification form, form the action bag, the package informatin that will move passes to script engine and resolves, script engine, by denomination of dive and action parameter, after judging, is passed in its corresponding business logic codes that will realize, last Output rusults information, comprise its current flow process number, and next moves index value, denomination of dive, action description information, wherein, described form comprises flow process number, denomination of dive, action parameter, operation condition branch and action description;
Step 2: start flow process, first carry out the initialization system condition, the initialization data sign format, the range of setting described flow process number is the N level, and the degree of depth is the M level, and giving tacit consent to N=M=1 is top level;
Step 3: resolve top level Data Identification form, at first package informatin being passed to script engine resolves, script engine is by described denomination of dive and action parameter, move a name respective function name, after the judgement of action parameter respective function parameter, pass in its corresponding business logic codes that will realize and Output rusults, resolve and whether complete, if completed, perform step eight, otherwise perform step four;
Step 4: resolution data identification (RNC-ID) analytic process, according to the Output rusults information of upper level, acts of determination return index value X (X=1,2,3..N);
Step 5: according to the call number X of conditional branching (X=1,2,3..N), this call number equates with the step 4 call number, the step X of branch that performs an action (X=1,2,3..N), carry out relevant Data Identification process; Wherein, described branch step is for successively to judge by the data pathing form, and data layout can successively identify branch's logic, finishes until successively identify branch's logic;
Step 6: whether the degree of depth M that judges described flow process number has branch's step, (flow process number is comprised of sequence number and figure place, can can judge by definition, for example: motion flow number is defined as 1,11,12,13 is respectively 1 to be top layer, and 11 is lower one decks (second layer) of 1,1 finger at end is the sequence number of flow process branch this time, 11 can be understood as the branch one, 12nd at last layer 1, two, 13rd of the branch of last layer, the branch three of last layer, the like), in this way, continue execution step five, otherwise perform step seven;
Step 7: whether the range N that judges described flow process number has branch's step, in this way, continues execution step five, otherwise performs step eight;
Step 8: analyze the value (flow process number is obtained by the Data Identification formal definition) with flow process number, by result data output, and record;
Step 9: the resolution data sign format of step 1 to step 8 kept a record respectively, according to the information of its record, draw its process flow diagram by computerese;
Step 10: the value of the flow process of returning by step 8 number is associated with the process flow diagram that step 9 obtains, whether can complete each the step Chinese word or the images match that in process flow diagram, navigate to process flow diagram verifies, to be identified, and finally draw the net result process flow diagram.
The invention has the beneficial effects as follows: the present invention by a kind of by scripted code is carried out to the multiple format analysis, realization allows scripted code be converted to business process map, reach the process flow diagram that domestic consumer can be directly understandable, and can be according to the business process map normal and abnormal conditions of orientation problem intuitively, very convenient.
The accompanying drawing explanation
Fig. 1 is the logic diagram of invention definition Data Identification form.
Fig. 2 is the logical procedure diagram that the scripted code that the present invention is based on Business Logic converts the method for user's process flow diagram to.
Embodiment
Below in conjunction with accompanying drawing, technical scheme of the present invention is described further.
As shown in Figure 1-2, the scripted code of a kind of service based logical layer of the present invention converts the method for user's process flow diagram to, specifically comprises the following steps:
Step 1: precondition: definition Data Identification form, form the action bag, the package informatin that will move passes to script engine and resolves, script engine, by denomination of dive and action parameter, after judging, is passed in its corresponding business logic codes that will realize, last Output rusults information, comprise its current flow process number, and next moves index value, denomination of dive, action description information, wherein, described form comprises flow process number, denomination of dive, action parameter, operation condition branch and action description;
Step 2: start flow process, first carry out the initialization system condition, the initialization data sign format, the range of setting described flow process number is the N level, and the degree of depth is the M level, and giving tacit consent to N=M=1 is top level;
Step 3: resolve top level Data Identification form, at first package informatin being passed to script engine resolves, script engine is by described denomination of dive and action parameter, move a name respective function name, after the judgement of action parameter respective function parameter, pass in its corresponding business logic codes that will realize and Output rusults, resolve and whether complete, if completed, perform step eight, otherwise perform step four;
Step 4: resolution data identification (RNC-ID) analytic process, according to the Output rusults information of upper level, acts of determination return index value X (X=1,2,3..N);
Step 5: according to the call number X of conditional branching (X=1,2,3..N), this call number equates with the step 4 call number, the step X of branch that performs an action (X=1,2,3..N), carry out relevant Data Identification process; Wherein, described branch step is for successively to judge by the data pathing form, and data layout can successively identify branch's logic, finishes until successively identify branch's logic;
Step 6: whether the degree of depth M that judges described flow process number has branch's step, (flow process number is comprised of sequence number and figure place, can can judge by definition, for example: motion flow number is defined as 1,11,12,13 is respectively 1 to be top layer, and 11 is lower one decks (second layer) of 1,1 finger at end is the sequence number of flow process branch this time, 11 can be understood as the branch one, 12nd at last layer 1, two, 13rd of the branch of last layer, the branch three of last layer, the like), in this way, continue execution step five, otherwise perform step seven;
Step 7: whether the range N that judges described flow process number has branch's step, in this way, continues execution step five, otherwise performs step eight;
Step 8: analyze the value (flow process number is obtained by the Data Identification formal definition) with flow process number, by result data output, and record;
Step 9: the resolution data sign format of step 1 to step 8 kept a record respectively, according to the information of its record, draw its process flow diagram by computerese;
Step 10: the value of the flow process of returning by step 8 number is associated with the process flow diagram that step 9 obtains, whether can complete each the step Chinese word or the images match that in process flow diagram, navigate to process flow diagram verifies, to be identified, and finally draw the net result process flow diagram.
Embodiment:
Step 1: precondition: definition Data Identification form, form the action bag, the package informatin that will move passes to script engine and resolves, script engine, by denomination of dive and action parameter, after judging, is passed in its corresponding business logic codes that will realize, last Output rusults information, comprise its current flow process number, and next moves index value, denomination of dive, action description information, wherein, described form comprises flow process number, denomination of dive, action parameter, operation condition branch and action description;
As the data sign format: { " [flow process number], [denomination of dive], [action parameter], [operation condition judgement parameter], [action description] " }
With the Fetion example: { " [1]; [TOUCH], [34,134]; [6_90_13_100_9108.png; 60], [client mode Fetion logs in success ratio] " } mean to click a touch screen action TOUCH, and the touch screen coordinate is 34,134, then compare 6_90_13_100_9108.png figure and whether meet the figure logined successfully, time-out time is 60 seconds, and this step is described as: client mode Fetion logs in success ratio.
Step 2: start flow process, first carry out the initialization system condition, the initialization data sign format, the range of setting described flow process number is the N level, and the degree of depth is the M level, and giving tacit consent to N=M=1 is top level;
As { " [1], [TOUCH], [34,134], [6_90_13_100_9108_Android_dl.png, 60|error.png, 60], [Fetion logs in success ratio] " }, flow process number is 1 to be top level
Step 3: resolve top level Data Identification form, at first package informatin being passed to script engine resolves, script engine is by described denomination of dive and action parameter, move a name respective function name, after the judgement of action parameter respective function parameter, pass in its corresponding business logic codes that will realize and Output rusults, resolve and whether complete, if completed, perform step eight, otherwise perform step four;
Resolve { " [1], [TOUCH], [34; 134]; [6_90_13_100_9108.png, 60], [client mode Fetion logs in success ratio] " } top layer Data Identification form, engine BasicEngine.lua resolves above denomination of dive and parameter automatically, function name and action parameter that wherein action name is corresponding are passed to corresponding function and parameter, will realize the corresponding action of TOUCH(touch screen and parameter), execute rear Output rusults, see and whether complete, do not complete execution step four
Step 4: resolution data identification (RNC-ID) analytic process, according to the Output rusults information of upper level, acts of determination is returned to index value X, X=1,2,3..N;
Flow process number is 11 and 12, to be that flow process number is 1 according to upper level, according to its Output rusults, as successful last step, run succeeded, service logic runs succeeded, and return action branch index number is 1, if coupling error.png picture success, failure, call number is 2, carries out respectively the step of 11 or 12 flow process number
Step 5: according to the call number X of conditional branching (X=1,2,3..N), this call number equates with the step 4 call number, the step X of branch that performs an action (X=1,2,3..N), carry out relevant Data Identification process; Wherein, described branch step is for successively to judge by the data pathing form, and data layout can successively identify branch's logic, finishes until successively identify branch's logic;
According to the conditional branching call number, for example flow process number is that 11 conditional branching number is only compared a figure for service logic, and default branch is 1, and its subordinate's flow process number is 111, then continues to hold flow process number and be 111 step; Flow process number be 121 be also so, its upper level flow process number is 12, is also only than a figure, default branch is 1, so it currently branches into 121, by that analogy, successively judgement, until branch's logic and resolve end
Step 6: whether the degree of depth M that judges described flow process number has branch's step, and (branch is by motion flow number judgement), in this way, continue execution step five, otherwise perform step seven;
If in the process of implementation, carry out degree of depth M judgement, see whether also have branch, if any, perform step five
Step 7: whether the range N that judges described flow process number has branch's step, in this way, continues execution step five, otherwise performs step eight;
If in the process of implementation, carry out range N judgement, see whether also have branch, if any, perform step five
Step 8: analyze and take flow process number and be the value of numbering, result data is exported, and record;
For example analyze above Fetion flow process, flow process as a result number of this time carrying out is respectively: 1,12,121,2, and the end value that the flow process number of take wherein generates as number record.
Step 9: the resolution data sign format of step 1 to step 8 kept a record respectively, according to the information of its record, draw its process flow diagram by computerese;
The resolution data sign format that step 1 is walked to step 8 keeps a record respectively, flow process number, and denomination of dive, action parameter, conditional branching, action description information, in the process flow diagram mode, draw, by computerese, draw the flow process structural map of whole script, flow process number is 1,11,12,111,121,2 all can draw with structural drawing
Step 10: the value of the flow process of returning by step 8 number is associated with the process flow diagram that step 9 obtains; it is normal or abnormal namely by word or image ratio, can completing to the success or not checking which step that navigates to process flow diagram in process flow diagram; to be identified, and finally draw the net result process flow diagram.

Claims (1)

1. the scripted code of a service based logical layer converts the method for user's process flow diagram to, it is characterized in that, specifically comprises the following steps:
Step 1: precondition: definition Data Identification form, form the action bag, the package informatin that will move passes to script engine and resolves, script engine, by denomination of dive and action parameter, after judging, is passed in its corresponding business logic codes that will realize, last Output rusults information, comprise its current flow process number, and next moves index value, denomination of dive, action description information, wherein, described form comprises flow process number, denomination of dive, action parameter, operation condition branch and action description;
Step 2: start flow process, first carry out the initialization system condition, the initialization data sign format, the range of setting described flow process number is the N level, and the degree of depth is the M level, and giving tacit consent to N=M=1 is top level;
Step 3: resolve top level Data Identification form, at first package informatin being passed to script engine resolves, script engine is by described denomination of dive and action parameter, move a name respective function name, after the judgement of action parameter respective function parameter, pass in its corresponding business logic codes that will realize and Output rusults, resolve and whether complete, if completed, perform step eight, otherwise perform step four;
Step 4: resolution data identification (RNC-ID) analytic process, according to the Output rusults information of upper level, acts of determination return index value X (X=1,2,3..N);
Step 5: according to the call number X of conditional branching (X=1,2,3..N), this call number equates with the step 4 call number, the step X of branch that performs an action (X=1,2,3..N), carry out relevant Data Identification process; Wherein, described branch step is for successively to judge by the data pathing form, and data layout can successively identify branch's logic, finishes until successively identify branch's logic;
Step 6: whether the degree of depth M that judges described flow process number has branch's step, in this way, continues execution step five, otherwise performs step seven;
Step 7: whether the range N that judges described flow process number has branch's step, in this way, continues execution step five, otherwise performs step eight;
Step 8: analyze the value with flow process number, by result data output, and record;
Step 9: the resolution data sign format of step 1 to step 8 kept a record respectively, according to the information of its record, draw its process flow diagram by computerese;
Step 10: the value of the flow process of returning by step 8 number is associated with the process flow diagram that step 9 obtains, whether can complete each the step Chinese word or the images match that in process flow diagram, navigate to process flow diagram verifies, to be identified, and finally draw the net result process flow diagram.
CN2013103799098A 2013-08-27 2013-08-27 Method for converting script codes into user flow diagram based on business logic layer Pending CN103412783A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013103799098A CN103412783A (en) 2013-08-27 2013-08-27 Method for converting script codes into user flow diagram based on business logic layer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013103799098A CN103412783A (en) 2013-08-27 2013-08-27 Method for converting script codes into user flow diagram based on business logic layer

Publications (1)

Publication Number Publication Date
CN103412783A true CN103412783A (en) 2013-11-27

Family

ID=49605796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013103799098A Pending CN103412783A (en) 2013-08-27 2013-08-27 Method for converting script codes into user flow diagram based on business logic layer

Country Status (1)

Country Link
CN (1) CN103412783A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988801A (en) * 2015-02-13 2016-10-05 腾讯科技(深圳)有限公司 Method and device for displaying annotation information
CN106919434A (en) * 2017-03-22 2017-07-04 恒生电子股份有限公司 A kind of code generating method and device
US10101995B2 (en) 2016-07-15 2018-10-16 Microsoft Technology Licensing, Llc Transforming data manipulation code into data workflow
CN108683716A (en) * 2018-04-26 2018-10-19 网宿科技股份有限公司 Service logic study, means of defence based on big data and study, protective device
CN109857654A (en) * 2019-01-17 2019-06-07 珠海金山网络游戏科技有限公司 A kind of method, apparatus and system of the timing flow chart automatically generating test case

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6370683B1 (en) * 1999-05-07 2002-04-09 Arnold Sobers Computer software for generating flowchart images of a source program
US20030159128A1 (en) * 2002-02-20 2003-08-21 Thomas Kunzler Generating instructions for drawing a flowchart
CN101000541A (en) * 2006-01-11 2007-07-18 大同股份有限公司 Method for automatic converting higher-order program language into hardware descriptive language
CN102915242A (en) * 2012-09-26 2013-02-06 北京广利核系统工程有限公司 Method for implementing code programming by graphical operations

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6370683B1 (en) * 1999-05-07 2002-04-09 Arnold Sobers Computer software for generating flowchart images of a source program
US20030159128A1 (en) * 2002-02-20 2003-08-21 Thomas Kunzler Generating instructions for drawing a flowchart
CN101000541A (en) * 2006-01-11 2007-07-18 大同股份有限公司 Method for automatic converting higher-order program language into hardware descriptive language
CN102915242A (en) * 2012-09-26 2013-02-06 北京广利核系统工程有限公司 Method for implementing code programming by graphical operations

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
丁忠俊: "从源程序到流程图的转换方法及实现", 《计算机工程与应用》 *
孙林等: "一种从源程序代码到其流程图的自动转换算法", 《微计算机应用》 *
曲延良等: "PASCAL源程序到流程图的自动转换", 《东北重型机械学院学报》 *
牟占生等: "源程序到流程图自动转换算法的研究与实现", 《电脑开发与应用》 *
钟志超等: "流程图与类C语言实时转换方法", 《东南大学学报(自然科学版)》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988801A (en) * 2015-02-13 2016-10-05 腾讯科技(深圳)有限公司 Method and device for displaying annotation information
CN105988801B (en) * 2015-02-13 2020-01-24 腾讯科技(深圳)有限公司 Method and device for displaying annotation information
US10101995B2 (en) 2016-07-15 2018-10-16 Microsoft Technology Licensing, Llc Transforming data manipulation code into data workflow
CN106919434A (en) * 2017-03-22 2017-07-04 恒生电子股份有限公司 A kind of code generating method and device
CN108683716A (en) * 2018-04-26 2018-10-19 网宿科技股份有限公司 Service logic study, means of defence based on big data and study, protective device
CN109857654A (en) * 2019-01-17 2019-06-07 珠海金山网络游戏科技有限公司 A kind of method, apparatus and system of the timing flow chart automatically generating test case

Similar Documents

Publication Publication Date Title
EP3692438B1 (en) Automatic generation of a graphic user interface (gui) based on a gui screen image
CN108763068B (en) Automatic testing method and terminal based on machine learning
US10061687B2 (en) Self-learning and self-validating declarative testing
US20180173614A1 (en) Technologies for device independent automated application testing
CN103412783A (en) Method for converting script codes into user flow diagram based on business logic layer
CN107577607A (en) User interface automated testing method, device, electronic equipment, storage medium
CN104572072A (en) MVC (model view controller) mode-based language transformation method and equipment for program
US10599324B2 (en) Hand gesture API using finite state machine and gesture language discrete values
CN104239158A (en) Analysis engine for automatic analysis and error log linking
CN106462572A (en) Techniques for distributed optical character recognition and distributed machine language translation
CN103312850A (en) Mobile phone automation testing system and work method
CN106415605A (en) Techniques for distributed optical character recognition and distributed machine language translation
CN109471805A (en) Resource testing method and device, storage medium, electronic equipment
CN106453228B (en) User login method and system for intelligent robot
CN113900958A (en) Test case script generation method, system, medium and electronic device
Talebipour et al. Ui test migration across mobile platforms
US20160077831A1 (en) Accurate and performant code design using memoization
CN111523021A (en) Information processing system and execution method thereof
CN114594927A (en) Low code development method, device, system, server and storage medium
US10776000B2 (en) System and method of receiving and converting digital ink input
US9817632B2 (en) Custom narration of a control list via data binding
CN112506503A (en) Programming method, device, terminal equipment and storage medium
US10846061B2 (en) Development environment for real-time application development
CN111176624B (en) Method and device for generating stream type calculation index
CN115098677A (en) User interface component classification method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20131127