CN102609796A - Method and device for converting graphical service process into service script - Google Patents

Method and device for converting graphical service process into service script Download PDF

Info

Publication number
CN102609796A
CN102609796A CN2011100232471A CN201110023247A CN102609796A CN 102609796 A CN102609796 A CN 102609796A CN 2011100232471 A CN2011100232471 A CN 2011100232471A CN 201110023247 A CN201110023247 A CN 201110023247A CN 102609796 A CN102609796 A CN 102609796A
Authority
CN
China
Prior art keywords
sib
fraternal
input
branch
value
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.)
Granted
Application number
CN2011100232471A
Other languages
Chinese (zh)
Other versions
CN102609796B (en
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201110023247.1A priority Critical patent/CN102609796B/en
Priority to PCT/CN2011/077586 priority patent/WO2012097583A1/en
Publication of CN102609796A publication Critical patent/CN102609796A/en
Application granted granted Critical
Publication of CN102609796B publication Critical patent/CN102609796B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Abstract

The invention discloses a method for converting a graphical service process into a service script. The method comprises the following steps of: determining the brother SIB (service independent building block) of each SIB according to the divergence and convergence conditions of the branches of the graphical service process; determining the action scope of each SIB according to the brother SIB of each SIB; and generating the service script according to the action scope of each SIB and the brother SIB of each SIB. The invention also discloses a device for converting a graphical service process into a service script. By adopting the method and device disclosed by the invention, the structure of the generated service script is clear, and the readability of the service script is greatly enhanced.

Description

Graphical operation flow is converted into the method and the device of service scenario
Technical field
The present invention relates to the telecommunication business process design field, be meant that especially a kind of graphical operation flow is converted into the method and the device of service scenario.
Background technology
At present, at field of telecommunications, the exploitation of value-added service generally is to utilize the development mode of patterned development mode or scripting to develop.Wherein, under patterned development mode, service developer uses a plurality of independent of service assemblies (SIB, Service Independent Building Block) to couple together with arrow line on the pattern development interface, thereby forms netted operation flow.Patterned development mode is relatively directly perceived, be convenient to memory, comparatively is fit to the beginner and uses.
But, under patterned development environment, because business is to be coupled together through arrow line by a plurality of SIB; Arrow line can point to another SIB arbitrarily from any SIB, and arrow line is equivalent to the goto statement in the script, if directly generate service scenario according to the patterned flow process of traversal; Then may be flooded with the goto statement in the service scenario; So, the operation flow that causes easily developing is comparatively chaotic, structure is unintelligible, thereby causes the readability of service scenario poor.
Give an example, Fig. 1 is a simple graphic process fragment, and according to simple depth-first traversal algorithm, the script describing form that then obtains is:
if(SIB?1)
{
if(SIB2)
{
SIB3;
SIB6;
}else
{
SIB4;
goto?SIB6;
}
}else
{
SIB5;
goto?SIB6;
}
Can find out that from top description the service scenario that utilizes the depth-first traversal algorithm to obtain has used two goto statements, so, cause structure unintelligible, readable poor, that is: can not reflect exactly that SIB6 is the logical organization of the public terminal point of each flow process.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of graphical operation flow to be converted into the method and the device of service scenario, can make the service scenario clear in structure, readable strong of generation.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides the method that a kind of graphical operation flow is converted into service scenario, this method comprises:
According to dispersing and the convergence situation of graphical operation flow branch, confirm the fraternal SIB of each SIB;
According to the fraternal SIB of each SIB, confirm the action scope of each SIB;
According to the action scope of each SIB and the fraternal SIB of each SIB, generate service scenario.
In the such scheme, the graphical operation flow of said basis branch disperses and the convergence situation, confirms the fraternal SIB of each SIB, for:
Branch according to follow-up SIB on the branches of importing SIB and the input SIB place business chain converges number, confirms the fraternal SIB of each SIB.
In the such scheme, the said branch that belongs to follow-up SIB on the business chain according to branches and the input SIB of input SIB converges number, confirms the fraternal SIB of each SIB, for:
After accomplishing graphical operation flow,, and be initialized as zero for each SIB in the graphical operation flow is provided with fraternal SIB number of a correspondence;
Judge whether corresponding fraternal SIB number of input SIB is zero, confirm as zero after, be that said input SIB creates the temporary variable of expression branches, and the value that branches is set is the outlet branch number of said input SIB;
Whether the value of judging said branches is smaller or equal to 1; Confirm greater than after 1; For each SIB in the whole service sets up the temporary variable of representing that respectively branch converges number and whether visited, and the value that temporary variable is set is 0, and corresponding fraternal SIB number of said input SIB is set is N;
The variate-value of whether visiting of said input SIB is set to 1; Whether SIB number of next SIB of judging current outlet branch afterwards greater than zero, confirms that whether the variate-value of whether visiting of judging current SIB is greater than zero greater than after zero; After confirming to be not more than zero; The variate-value of whether visiting that said current SIB is set is 1, and the branch of said current SIB is converged several variate-values adds 1, judges afterwards whether value that the branch of current SIB converges equals the value of the branches of said input SIB; After confirming to equal; Be set to SIB number of said current SIB fraternal SIB number that said input SIB is corresponding, and discharge temporary variable, return corresponding fraternal SIB number of said input SIB afterwards;
The said current next SIB that exports branch is said current SIB.
In the such scheme, this method further comprises:
The value of confirming branches is smaller or equal to after 1; If the value of said branches equals at 1 o'clock; Corresponding fraternal SIB number of said input SIB returned in SIB number of the next SIB of the outlet branch that is set to said input SIB for fraternal SIB number that said input SIB is corresponding afterwards; If said branches equals zero, said fraternal SIB number of importing the SIB correspondence is set to M, return M afterwards.
In the such scheme, this method further comprises:
SIB number that confirms current SIB less than after zero; Judge that whether said input SIB also has next outlet branch, after defining, it is zero that the value of whether visiting of each SIB in the branch outlet of said input SIB is emptied; The variate-value of whether visiting of said afterwards input SIB is set to 1; And whether SIB number of next SIB of judging new current outlet branch greater than zero, and so circulation is until finding corresponding fraternal SIB number of said input SIB;
After confirming that said input SIB does not have next one outlet branch, said fraternal SIB number of importing the SIB correspondence is set to M, and discharges temporary variable, return M afterwards.
In the such scheme, this method further comprises:
The variate-value of whether visiting of confirming current SIB is greater than after zero; Judge that whether said input SIB also has next outlet branch, after defining, it is zero that the value of whether visiting of each SIB in the branch outlet of said input SIB is emptied; The variate-value of whether visiting of said afterwards input SIB is set to 1; And whether SIB number of next SIB of judging current outlet branch greater than zero, and so circulation is until finding corresponding fraternal SIB number of said input SIB;
After confirming that said input SIB does not have next one outlet branch, said fraternal SIB number of importing the SIB correspondence is set to M, and discharges temporary variable, return M afterwards.
In the such scheme, this method further comprises:
After confirming that value that the branch of said current SIB converges is not equal to the value of branches of said input SIB; Whether equal N fraternal SIB number that judges said current SIB correspondence; After confirming to be not equal to N, said current SIB as new input SIB, is judged whether fraternal SIB number of new input SIB correspondence is zero; So circulation is until finding corresponding fraternal SIB number of said input SIB;
After confirming to equal N; Judge that whether said input SIB also has next outlet branch, after defining, it is zero that the value of whether visiting of each SIB in the branch outlet of said input SIB is emptied; The variate-value of whether visiting of said afterwards input SIB is set to 1; And whether SIB number of next SIB of judging current outlet branch greater than zero, and so circulation is until finding corresponding fraternal SIB number of said input SIB;
After confirming that said input SIB does not have next one outlet branch, said fraternal SIB number of importing the SIB correspondence is set to M, and discharges temporary variable, return M afterwards.
In the such scheme, said fraternal SIB according to each SIB confirms the action scope of each SIB, for:
According to the sensing of fraternal SIB and the arrow line in the completed graphical operation flow of each SIB, confirm the action scope of each SIB.
In the such scheme, said according to the action scope of each SIB and the fraternal SIB of each SIB, generate service scenario, for:
The pairing flow process of SIB in the action scope of SIB is write in each branch's flow process scope of the corresponding SIB of action scope; Flow process after fraternal SIB and the fraternal SIB is write in the flow of SIB of said correspondence.
The present invention also provides a kind of graphical operation flow to be converted into the device of service scenario, and this device comprises: first confirms unit, second definite unit and the generation unit; Wherein,
First confirms the unit, is used for dispersing and the convergence situation of the graphical operation flow branch of basis, confirms the fraternal SIB of each SIB, and the fraternal SIB of each SIB that will confirm sends to second definite unit and the generation unit;
Second confirms the unit, be used to receive first confirm the fraternal SIB of each SIB that the unit sends after, according to the fraternal SIB of each SIB, confirm the action scope of each SIB, and the action scope of each SIB that will confirm sends to generation unit;
Generation unit is used to receive that first confirms the action scope of fraternal SIB and each SIB that second definite unit sends of each SIB that the unit sends, according to the action scope of each SIB and the fraternal SIB of each SIB, generates service scenario.
In the such scheme, said second confirms specifically to be used for the unit: according to the sensing of the arrow line of the fraternal SIB of each SIB and completed graphical operation flow, confirm the action scope of each SIB.
Graphical operation flow provided by the invention is converted into the method and the device of service scenario, according to dispersing and the convergence situation of graphical operation flow branch, confirms the fraternal SIB of each SIB; According to the fraternal SIB of each SIB, confirm the action scope of each SIB; According to the action scope of each SIB and the fraternal SIB of each SIB, generate service scenario, so, can make the service scenario clear in structure of generation, thereby strengthen the readability of service scenario.
Description of drawings
Fig. 1 is simple graphic process fragment;
Fig. 2 is converted into the method flow synoptic diagram of service scenario for the graphical operation flow of the present invention;
Fig. 3 is for realizing confirming in the process flow diagram shown in Figure 2 the method flow synoptic diagram of the fraternal SIB of each SIB;
Fig. 4 is converted into the apparatus structure synoptic diagram of service scenario for the graphical operation flow of the present invention.
Embodiment
Below in conjunction with accompanying drawing and specific embodiment the present invention is remake further detailed explanation.
The graphical operation flow of the present invention is converted into the method for service scenario, and is as shown in Figure 2, may further comprise the steps:
Step 201:, confirm the fraternal SIB of each SIB according to dispersing and the convergence situation of graphical operation flow branch;
Here; For the service scenario that conversion is come out has the characteristic of structured language; Need analysis to have a trend,, confirm that then the SIB that converges is the said fraternal SIB that has with the SIB of upper outlet if all branches finally all converge to same SIB with each branch of the SIB of upper outlet; Accordingly, there is one all to be in to all SIB its fraternal SIB with the SIB of upper outlet and saidly to have in the action scope scope from said with the SIB of upper outlet.
Wherein, SIB, the SIB of branch, basic call control SIB etc. judge in said each branch; Such as, for graphic service flow process fragment shown in Figure 1, the SIB1 outlet has two branches; Be respectively SIB2 and SIB5, SIB2 has two branch: SIB3 and SIB4 again, and all branches finally all converge to SIB6; Then SIB6 is the fraternal SIB of SIB1; SIB6 also is the fraternal SIB of SIB2, and SIB3 and SIB4 are in the action scope scope of SIB2, and SIB2, SIB3, SIB4 and SIB5 are in the action scope scope of SIB1.
The graphical operation flow of said basis branch disperses and the convergence situation, confirms the fraternal SIB of each SIB, is specially:
Branch according to follow-up SIB on the branches of importing SIB and the input SIB place business chain converges number, confirms the fraternal SIB of each SIB.
This step realizes more specifically, and is as shown in Figure 3, may further comprise the steps:
Step 201a: after accomplishing graphical operation flow,, and be initialized as zero that each SIB is corresponding fraternal SIB number for each SIB in the graphical operation flow is provided with fraternal SIB number an of correspondence;
Here, when practical application, generally with the SIB in the graphical operation flow from 1 open numbering, not existing is for SIB number zero SIB, therefore, is initialized as zero, shows and confirm the fraternal SIB that each SIB is corresponding for SIB number of fraternal SIB that can each SIB is corresponding.
Step 201b: after receiving input SIB number, judge whether corresponding fraternal SIB number of input SIB is zero, if, execution in step 201c then; Otherwise, execution in step 201o;
Here, the business development personnel choose in the graphical operation flow among all inlet SIB any one as input parameter, that is: as input SIB; Wherein, said inlet SIB is meant the inlet SIB in each fragment in the graphical operation flow, is example with graphic service flow process fragment shown in Figure 1, and said inlet SIB is meant SIB1.
Fraternal SIB number that said input SIB is corresponding is zero, and the fraternal SIB that does not also confirm said input SIB is described, need search; Fraternal SIB number that said input SIB is corresponding is non-vanishing, and then the corresponding fraternal SIB of said input SIB had been searched in explanation, need not search.
Step 201c: be that said input SIB creates the temporary variable of expression branches, and the value that branches is set is the outlet branch number of said input SIB;
Here, said temporary variable is meant the local variable of on storehouse, creating, and corresponding to auto type variable in the function of C language, after this confirmed that the treatment scheme of the fraternal SIB of said input SIB finishes, temporary variable just can all discharge, that is: all be wiped free of.
The concrete treatment scheme of creating temporary variable is identical with the treatment scheme of existing establishment temporary variable, repeats no more here.
Can obtain the outlet branch number of said input SIB according to the number of arrow line of the outlet of the SIB of input described in the completed graphical operation flow.
Step 201d: whether the value of judging said branches smaller or equal to 1, if, execution in step 201e then, otherwise, execution in step 201f;
Step 201e: if the value of said branches equals 1; SIB number of the next SIB of then that said input SIB is the corresponding outlet branch that is set to said input SIB for fraternal SIB number; Execution in step 201o afterwards; If the value of said branches equals zero, then fraternal SIB number with said input SIB correspondence is set to M, afterwards execution in step 201o;
Here, if said branches equals 1, explain that then said input SIB has only an outlet branch, its fraternal SIB is exactly the next SIB of this outlet branch; If said branches equals zero, explain that then said input SIB does not have fraternal SIB, said fraternal SIB number of importing the SIB correspondence is set to M;
Wherein, M representes that said input SIB does not have fraternal SIB, and when practical application, SIB number in the graphical operation flow since 1; Successively each SIB is numbered; Therefore, the value of M can be set to not with graphical operation flow in SIB number equitant arbitrary numerical value, such as: the value that M can be set is-1.
Step 201f: for each SIB in the whole service sets up the temporary variable of representing that respectively branch converges number and whether visited, and the value that temporary variable is set is 0, and corresponding fraternal SIB number of said input SIB is set is N, execution in step 201g afterwards;
Here, said each SIB comprises the next SIB of said input SIB and each branch outlet.
The concrete treatment scheme of creating temporary variable is identical with the treatment scheme of existing establishment temporary variable, repeats no more here.
N uses when being used for subsequent detection ring-type flow process; That is: N representes that ring-type appears in operation flow; Need to stop the traversal of branch, therefore, when practical application; The value of N can be set to not with graphical operation flow in SIB number and the equitant arbitrary numerical value of M, such as: the value that N can be set is-2.
Step 201g: the variate-value of whether visiting of said input SIB is set to 1, and whether SIB number of next SIB of judging current outlet branch afterwards greater than zero, if, execution in step 201h then, otherwise, execution in step 201m;
Here; Any outlet branch of all outlet ports branch that can select said input SIB is as current outlet branch; And SIB number of the next SIB of the outlet branch that will select is as input parameter; After equipment was received input parameter, whether SIB number of next SIB of judging current outlet branch be greater than zero;
If SIB number of the next SIB of the current outlet branch of input explain that less than zero current branch traveled through, do not need to travel through again, execution in step 201m need select one to export branch as current outlet branch again, travels through.
In the following description, for convenience, the current next SIB that exports branch is called current SIB.
Step 201h: whether the variate-value of whether visiting of judging current SIB greater than zero, if, execution in step 201m then, otherwise, execution in step 201i;
Here, if the variate-value of whether visiting of said current SIB, explains then that this SIB visited in current outlet branch greater than zero; Ring texture appears in operation flow; Need to end this branch of traversal and continue other outlet branch of traversal, therefore, need execution in step 201m.
Step 201i: the variate-value of whether visiting that said current SIB is set is 1; And the branch of said current SIB is converged several variate-values add 1; Judge afterwards whether value that the branch of current SIB converges equals the value of the branches of said input SIB, if, execution in step 201j then; Otherwise, execution in step 201k;
Here, the branch of said current SIB converges after several variate-values adds 1, and showing has 1 branch to converge to said current SIB.
If the value that the branch of said current SIB converges equals the value of the branches of said input SIB, explain that then said current SIB is the fraternal SIB of said input SIB.
Step 201j: said fraternal SIB number of importing the SIB correspondence is set to SIB number of said current SIB, and discharges temporary variable, execution in step 201o afterwards;
Whether here, said temporary variable comprises: branches, visited and branch converges number.
Step 201k: judge whether corresponding fraternal SIB number of said current SIB equals N, if, execution in step 201m then, otherwise, execution in step 201l;
Here,, explain that then ring texture appears in operation flow, need to end this branch of traversal, and continue to travel through other outlet branch, therefore, need execution in step 201m if fraternal SIB number of said current SIB correspondence equals N.
Step 201l: with said current SIB as new input SIB, this algorithm of recursive call afterwards, the SIB of the fraternal SIB correspondence of returning is as new current SIB, execution in step 201g afterwards;
Here, said this algorithm of recursive call is meant: carry out from step 201b until step 201o.
Need to prove: N specifically is used for: said current SIB as new input SIB, behind the execution in step 201b, is used during subsequent detection ring-type flow process again.
Step 201m: judge that whether said input SIB also has next outlet branch, if having, then the value of whether visiting of each SIB in the whole service being emptied is zero, execution in step 201g afterwards, otherwise, execution in step 201n;
Here, can judge whether said input SIB also has the next one to export branch according to the number of arrow line of the outlet of the SIB of input described in the completed graphical operation flow.
Step 201n: said fraternal SIB number of importing the SIB correspondence is set to M, and discharges temporary variable, execution in step 201o afterwards;
Step 201o: return corresponding fraternal SIB number of said input SIB;
Here; Fraternal SIB number that returns said input SIB correspondence is fraternal SIB number that sensing business development personnel return said input SIB correspondence; So that the business development personnel can further select other inlet SIB number of SIB as input parameter, for other SIB confirms corresponding fraternal SIB number.
Need to prove: in step 201l, fraternal SIB number the effect that this algorithm of recursive call, the step 201o that obtains return is: as new current SIB, so that the next SIB on the follow-up chain of the said input of continuation processing SIB place business chain.
Wherein, fraternal SIB number that the said input SIB that returns is corresponding two kinds of situation are arranged: a kind of what return is SIB number of the real fraternal SIB of said input SIB, and that another kind returns is M; Particularly, if said input SIB has fraternal SIB, what then return is SIB number of fraternal SIB of said input SIB, if said input SIB does not have fraternal SIB, that then return is M.
So far, the fraternal SIB of all SIB confirms on said input SIB and the follow-up chain of input SIB, and the initial SIB of all fragments of whole service is called the step from 201b to 201o as input SIB, can confirm the fraternal SIB of each SIB.
In the processing of follow-up definite action scope and generation service scenario,, can know the fraternal SIB of each SIB based on fraternal SIB number of each SIB correspondence.
Step 202:, confirm the action scope of each SIB according to the fraternal SIB of each SIB;
Particularly, according to the sensing of fraternal SIB and the arrow line in the completed graphical operation flow of each SIB, confirm the action scope of each SIB.
Wherein, when the flow of each SIB of traversal, arrive its fraternal SIB all SIB before all in the action scope of the corresponding SIB of this brother SIB.
Step 203:, generate service scenario according to the action scope of each SIB and the fraternal SIB of each SIB;
Particularly, the pairing flow process of the SIB in the action scope of SIB is write in each branch's flow process scope of the corresponding SIB of action scope; Flow process after fraternal SIB and the fraternal SIB is write in the flow of SIB of said correspondence.
Graphic service flow process fragment for shown in Figure 1 then can generate following service scenario description form:
if(SIB1)
{
if(SIB2)
{
SIB3;
}else
{
SIB4;
}
}else
{
SIB5;
}
SIB6;
Can find out that from top description the script that adopts the inventive method to generate has been abandoned the goto statement, can clearly reflect the judgement branched structure of operation flow, readability improves greatly.
For realizing said method, the present invention also provides a kind of graphical operation flow to be converted into the device of service scenario, and as shown in Figure 4, this device comprises: first confirms unit 41, second definite unit 42 and the generation unit 43; Wherein,
First confirms unit 41, is used for dispersing and the convergence situation of the graphical operation flow branch of basis, confirms the fraternal SIB of each SIB, and the fraternal SIB of each SIB that will confirm sends to second definite unit 42 and the generation unit 43;
Second confirms unit 42, be used to receive first confirm the fraternal SIB of each SIB that unit 41 sends after, according to the fraternal SIB of each SIB, confirm the action scope of each SIB, and the action scope of each SIB that will confirm sends to generation unit 43;
Generation unit 43 is used to receive that first confirms the action scope of fraternal SIB and each SIB that second definite unit 42 sends of each SIB that unit 41 sends, according to the action scope of each SIB and the fraternal SIB of each SIB, generates service scenario.
Wherein, said second confirms specifically to be used for unit 42: according to the sensing of the arrow line of the fraternal SIB of each SIB and completed graphical operation flow, confirm the action scope of each SIB.
Said generation unit 43 specifically is used for: the pairing flow process of the SIB in the action scope of SIB is write in each branch's flow process scope of the corresponding SIB of action scope; Flow process after fraternal SIB and the fraternal SIB is write in the flow of SIB of said correspondence.
Here, first in the said device of the present invention confirms that the concrete processing procedure of unit details hereinbefore, repeats no more.
The above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. a graphical operation flow is converted into the method for service scenario, it is characterized in that this method comprises:
According to dispersing and the convergence situation of graphical operation flow branch, confirm the fraternal SIB of each independent of service assembly (SIB);
According to the fraternal SIB of each SIB, confirm the action scope of each SIB;
According to the action scope of each SIB and the fraternal SIB of each SIB, generate service scenario.
2. method according to claim 1 is characterized in that, the graphical operation flow of said basis branch disperses and the convergence situation, confirms the fraternal SIB of each SIB, for:
Branch according to follow-up SIB on the branches of importing SIB and the input SIB place business chain converges number, confirms the fraternal SIB of each SIB.
3. method according to claim 2 is characterized in that, the said branch that belongs to follow-up SIB on the business chain according to branches and the input SIB of input SIB converges number, confirms the fraternal SIB of each SIB, for:
After accomplishing graphical operation flow,, and be initialized as zero for each SIB in the graphical operation flow is provided with fraternal SIB number of a correspondence;
Judge whether corresponding fraternal SIB number of input SIB is zero, confirm as zero after, be that said input SIB creates the temporary variable of expression branches, and the value that branches is set is the outlet branch number of said input SIB;
Whether the value of judging said branches is smaller or equal to 1; Confirm greater than after 1; For each SIB in the whole service sets up the temporary variable of representing that respectively branch converges number and whether visited, and the value that temporary variable is set is 0, and corresponding fraternal SIB number of said input SIB is set is N;
The variate-value of whether visiting of said input SIB is set to 1; Whether SIB number of next SIB of judging current outlet branch afterwards greater than zero, confirms that whether the variate-value of whether visiting of judging current SIB is greater than zero greater than after zero; After confirming to be not more than zero; The variate-value of whether visiting that said current SIB is set is 1, and the branch of said current SIB is converged several variate-values adds 1, judges afterwards whether value that the branch of current SIB converges equals the value of the branches of said input SIB; After confirming to equal; Be set to SIB number of said current SIB fraternal SIB number that said input SIB is corresponding, and discharge temporary variable, return corresponding fraternal SIB number of said input SIB afterwards;
The said current next SIB that exports branch is said current SIB.
4. method according to claim 3 is characterized in that, this method further comprises:
The value of confirming branches is smaller or equal to after 1; If the value of said branches equals at 1 o'clock; Corresponding fraternal SIB number of said input SIB returned in SIB number of the next SIB of the outlet branch that is set to said input SIB for fraternal SIB number that said input SIB is corresponding afterwards; If said branches equals zero, said fraternal SIB number of importing the SIB correspondence is set to M, return M afterwards.
5. method according to claim 3 is characterized in that, this method further comprises:
SIB number that confirms current SIB less than after zero; Judge that whether said input SIB also has next outlet branch, after defining, it is zero that the value of whether visiting of each SIB in the branch outlet of said input SIB is emptied; The variate-value of whether visiting of said afterwards input SIB is set to 1; And whether SIB number of next SIB of judging new current outlet branch greater than zero, and so circulation is until finding corresponding fraternal SIB number of said input SIB;
After confirming that said input SIB does not have next one outlet branch, said fraternal SIB number of importing the SIB correspondence is set to M, and discharges temporary variable, return M afterwards.
6. method according to claim 3 is characterized in that, this method further comprises:
The variate-value of whether visiting of confirming current SIB is greater than after zero; Judge that whether said input SIB also has next outlet branch, after defining, it is zero that the value of whether visiting of each SIB in the branch outlet of said input SIB is emptied; The variate-value of whether visiting of said afterwards input SIB is set to 1; And whether SIB number of next SIB of judging current outlet branch greater than zero, and so circulation is until finding corresponding fraternal SIB number of said input SIB;
After confirming that said input SIB does not have next one outlet branch, said fraternal SIB number of importing the SIB correspondence is set to M, and discharges temporary variable, return M afterwards.
7. method according to claim 3 is characterized in that, this method further comprises:
After confirming that value that the branch of said current SIB converges is not equal to the value of branches of said input SIB; Whether equal N fraternal SIB number that judges said current SIB correspondence; After confirming to be not equal to N, said current SIB as new input SIB, is judged whether fraternal SIB number of new input SIB correspondence is zero; So circulation is until finding corresponding fraternal SIB number of said input SIB;
After confirming to equal N; Judge that whether said input SIB also has next outlet branch, after defining, it is zero that the value of whether visiting of each SIB in the branch outlet of said input SIB is emptied; The variate-value of whether visiting of said afterwards input SIB is set to 1; And whether SIB number of next SIB of judging current outlet branch greater than zero, and so circulation is until finding corresponding fraternal SIB number of said input SIB;
After confirming that said input SIB does not have next one outlet branch, said fraternal SIB number of importing the SIB correspondence is set to M, and discharges temporary variable, return M afterwards.
8. according to each described method of claim 1 to 7, it is characterized in that said fraternal SIB according to each SIB confirms the action scope of each SIB, for:
According to the sensing of fraternal SIB and the arrow line in the completed graphical operation flow of each SIB, confirm the action scope of each SIB.
9. according to each described method of claim 1 to 7, it is characterized in that, said according to the action scope of each SIB and the fraternal SIB of each SIB, generate service scenario, for:
The pairing flow process of SIB in the action scope of SIB is write in each branch's flow process scope of the corresponding SIB of action scope; Flow process after fraternal SIB and the fraternal SIB is write in the flow of SIB of said correspondence.
10. a graphical operation flow is converted into the device of service scenario, it is characterized in that this device comprises: first confirms that unit, second confirms unit and generation unit; Wherein,
First confirms the unit, is used for dispersing and the convergence situation of the graphical operation flow branch of basis, confirms the fraternal SIB of each SIB, and the fraternal SIB of each SIB that will confirm sends to second definite unit and the generation unit;
Second confirms the unit, be used to receive first confirm the fraternal SIB of each SIB that the unit sends after, according to the fraternal SIB of each SIB, confirm the action scope of each SIB, and the action scope of each SIB that will confirm sends to generation unit;
Generation unit is used to receive that first confirms the action scope of fraternal SIB and each SIB that second definite unit sends of each SIB that the unit sends, according to the action scope of each SIB and the fraternal SIB of each SIB, generates service scenario.
11. device according to claim 10 is characterized in that, said second confirms specifically to be used for the unit: according to the sensing of the arrow line of the fraternal SIB of each SIB and completed graphical operation flow, confirm the action scope of each SIB.
CN201110023247.1A 2011-01-20 2011-01-20 Method and device for converting graphical service process into service script Active CN102609796B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110023247.1A CN102609796B (en) 2011-01-20 2011-01-20 Method and device for converting graphical service process into service script
PCT/CN2011/077586 WO2012097583A1 (en) 2011-01-20 2011-07-25 Method and device for transforming graphical service flow into service script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110023247.1A CN102609796B (en) 2011-01-20 2011-01-20 Method and device for converting graphical service process into service script

Publications (2)

Publication Number Publication Date
CN102609796A true CN102609796A (en) 2012-07-25
CN102609796B CN102609796B (en) 2015-04-01

Family

ID=46515110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110023247.1A Active CN102609796B (en) 2011-01-20 2011-01-20 Method and device for converting graphical service process into service script

Country Status (2)

Country Link
CN (1) CN102609796B (en)
WO (1) WO2012097583A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107767008A (en) * 2017-03-03 2018-03-06 平安医疗健康管理股份有限公司 Flow collocation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5721912A (en) * 1994-08-05 1998-02-24 Data Integration Solutions Corp. Graphical user interface for creating database integration specifications
US20030005413A1 (en) * 2001-06-01 2003-01-02 Siemens Ag Osterreich Method for testing of software
CN1612581A (en) * 2003-10-30 2005-05-04 惠普开发有限公司 Telecommunications service program
CN1996356A (en) * 2006-12-13 2007-07-11 华中科技大学 Method for converting XPDL format into BPEL format for workflow model

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5721912A (en) * 1994-08-05 1998-02-24 Data Integration Solutions Corp. Graphical user interface for creating database integration specifications
US20030005413A1 (en) * 2001-06-01 2003-01-02 Siemens Ag Osterreich Method for testing of software
CN1612581A (en) * 2003-10-30 2005-05-04 惠普开发有限公司 Telecommunications service program
CN1996356A (en) * 2006-12-13 2007-07-11 华中科技大学 Method for converting XPDL format into BPEL format for workflow model

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107767008A (en) * 2017-03-03 2018-03-06 平安医疗健康管理股份有限公司 Flow collocation method and device

Also Published As

Publication number Publication date
WO2012097583A1 (en) 2012-07-26
CN102609796B (en) 2015-04-01

Similar Documents

Publication Publication Date Title
Zhou et al. AAIoT: Accelerating artificial intelligence in IoT systems
CN102880546B (en) Software integration testing method and system based on extensible markup language (XML) database
CN103823666B (en) Smart substation equipment visualized programming method
CN106528613B (en) Intelligent answer method and device
CN106161399A (en) A kind of security service delivery method and system
CN109189393A (en) Method for processing business and device
CN104679634A (en) Self-adapted random verification method used for simulating ultra-large-scale chip
CN110380903A (en) A kind of power telecom network fault detection method, device and equipment
CN104915293A (en) Software testing method and system
CN105391490B (en) A kind of satellite communication network selection algorithm based on cognition
CN104267936B (en) Based on network analysis method of reachability of being pushed net under the semantic asynchronous dynamical of tree
Szpyrka et al. Formal description of Alvis language with α 0 system layer
Grabowski et al. The standardization of message sequence charts
CN102609796B (en) Method and device for converting graphical service process into service script
CN104253830B (en) A kind of location Based service system of selection
CN105553719A (en) Optical cable path planning method oriented to telecom resource business field
CN102567169B (en) Test method and device of microprocessor
CN109753281A (en) A kind of microgrid energy management strategy visualization toolkit based on graphic programming
Nazari et al. Blocking in fully connected networks of arbitrary size
Lemamou et al. A hybrid iterated local search algorithm for the global planning problem of survivable 4G wireless networks
Vedullapalli et al. Distribution system restoration using graph theory after multiple faults
CN102262527B (en) The method and system of generating network service
Hassine et al. Abstract operational semantics for use case maps
CN108512688A (en) Network node configuration method and terminal
CN110519277B (en) Method for realizing control of other systems based on single-point execution contract

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant