CN102609796B - 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 PDFInfo
- Publication number
- CN102609796B CN102609796B CN201110023247.1A CN201110023247A CN102609796B CN 102609796 B CN102609796 B CN 102609796B CN 201110023247 A CN201110023247 A CN 201110023247A CN 102609796 B CN102609796 B CN 102609796B
- Authority
- CN
- China
- Prior art keywords
- sib
- fraternal
- described input
- value
- zero
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical 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
Technical field
The present invention relates to telecommunication business process design field, refer to that a kind of graphical service flow process is converted into method and the device of service scenario especially.
Background technology
At present, at field of telecommunications, the exploitation of value-added service is generally utilize the development mode of patterned development mode or scripting to develop.Wherein, under patterned development mode, service developer uses multiple business assembly (SIB, Service Independent Building Block) that has nothing to do to couple together with arrow line on pattern development interface, thus the webbed operation flow of shape.Patterned development mode is relatively directly perceived, be convenient to memory, is comparatively applicable to beginner and uses.
But, under patterned development environment, because business is coupled together by arrow line by multiple SIB, arrow line can point to another SIB arbitrarily from any one SIB, and arrow line is equivalent to the goto statement in script, if directly generate service scenario according to the patterned flow process of traversal, then may be flooded with goto statement in service scenario, so, easily cause that the operation flow that develops is comparatively chaotic, structure is unintelligible, thus cause 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, then the script description form obtained is:
if(SIB 1)
{
if(SIB2)
{
SIB3;
SIB6;
}else
{
SIB4;
goto SIB6;
}
}else
{
SIB5;
goto SIB6;
}
As can be seen from description above, the service scenario utilizing depth-first traversal algorithm to obtain employs two goto statements, so, causes structure unintelligible, readable poor, that is: can not reflect that SIB6 is the logical organization of the public terminal of each flow process exactly.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of graphical service flow process to be converted into method and the device of service scenario, and the service scenario clear in structure of generation, readability can be made strong.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of method that graphical service flow process is converted into service scenario, the method comprises:
Dispersing and convergence situation according to graphical service flow chart branches, determines the fraternal SIB of each SIB;
According to the fraternal SIB of each SIB, determine 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 such scheme, described dispersing and convergence situation according to graphical service flow chart branches, determines the fraternal SIB of each SIB, for:
The branch of follow-up SIB in number and input SIB place business chain that divides according to input SIB converges number, determines the fraternal SIB of each SIB.
In such scheme, the described branch of follow-up SIB in number and input SIB place business chain that divides according to input SIB converges number, determines the fraternal SIB of each SIB, for:
After completing graphical service flow process, for each SIB in graphical service flow process arranges one corresponding fraternal No. SIB, and be initialized as zero;
Judging to input whether corresponding fraternal No. SIB of SIB is zero, after being defined as zero, be that described input SIB creates the temporary variable representing point number, and the value arranging point number is the outlet branches number of described input SIB;
Judge whether the value of described point number is less than or equal to 1, after determining to be greater than 1, represent for each SIB in whole business sets up the temporary variable that branch converges number and whether accessed respectively, and the value arranging temporary variable is 0, and to arrange corresponding fraternal No. SIB of described input SIB be N;
The variate-value of whether accessing of described input SIB is set to 1, judge whether No. SIB of the next SIB of current outlet branches be greater than zero afterwards, after determining to be greater than zero, judge whether the variate-value of whether accessing of current SIB is greater than zero, after determining to be not more than zero, the variate-value of whether accessing arranging described current SIB is 1, and the variate-value branch of described current SIB being converged number adds 1, judge whether the value that the branch of current SIB converges equals the described value inputting point number of SIB afterwards, after determining to equal, No. SIB of described current SIB is set to by corresponding for described input SIB fraternal No. SIB, and discharge temporary variable, return fraternal No. SIB that described input SIB is corresponding afterwards,
The next SIB of described current outlet branches is described current SIB.
In such scheme, the method comprises further:
After determining that the value of point number is less than or equal to 1, if when the value of described point of number equals 1, be set to described No. SIB of inputting the next SIB of the outlet branches of SIB by corresponding for described input SIB fraternal No. SIB, return fraternal No. SIB that described input SIB is corresponding afterwards; If described point of number equals zero, be set to M by corresponding for described input SIB fraternal No. SIB, return M afterwards.
In such scheme, the method comprises further:
Determine No. SIB of current SIB be less than zero after, judge whether described input SIB also has next outlet branches, after defining, the value of whether accessing of each SIB in the branch outlet of described input SIB being emptied is zero, afterwards the variate-value of whether accessing of described input SIB is set to 1, and judge that whether No. SIB of the next SIB of new current outlet branches be greater than zero, so circulates, until fraternal No. SIB that finds described input SIB corresponding;
After determining that described input SIB does not have next outlet branches, be set to M by corresponding for described input SIB fraternal No. SIB, and discharge temporary variable, return M afterwards.
In such scheme, the method comprises further:
After determining that the variate-value of whether accessing of current SIB is greater than zero, judge whether described input SIB also has next outlet branches, after defining, the value of whether accessing of each SIB in the branch outlet of described input SIB being emptied is zero, afterwards the variate-value of whether accessing of described input SIB is set to 1, and judge that whether No. SIB of the next SIB of current outlet branches be greater than zero, so circulates, until fraternal No. SIB that finds described input SIB corresponding;
After determining that described input SIB does not have next outlet branches, be set to M by corresponding for described input SIB fraternal No. SIB, and discharge temporary variable, return M afterwards.
In such scheme, the method comprises further:
After determining that the value of branch's convergence of described current SIB is not equal to the value of point number of described input SIB, judge whether corresponding fraternal No. SIB of described current SIB equals N, after determining to be not equal to N, using described current SIB as new input SIB, judge whether corresponding fraternal No. SIB of new input SIB is zero, circulation like this, until fraternal No. SIB that finds described input SIB corresponding;
After determining to equal N, judge whether described input SIB also has next outlet branches, after defining, the value of whether accessing of each SIB in the branch outlet of described input SIB being emptied is zero, afterwards the variate-value of whether accessing of described input SIB is set to 1, and judge that whether No. SIB of the next SIB of current outlet branches be greater than zero, so circulates, until fraternal No. SIB that finds described input SIB corresponding;
After determining that described input SIB does not have next outlet branches, be set to M by corresponding for described input SIB fraternal No. SIB, and discharge temporary variable, return M afterwards.
In such scheme, the described fraternal SIB according to each SIB, determines the action scope of each SIB, for:
According to the sensing of the arrow line in the fraternal SIB of each SIB and completed graphical service flow process, determine the action scope of each SIB.
In such scheme, the fraternal SIB of the described action scope according to each SIB and each SIB, generates service scenario, for:
By within the scope of each branch's flow process of SIB corresponding for the flow process write action scope corresponding to the SIB in the action scope of SIB; Flow process after fraternal SIB and fraternal SIB is write in the follow-up flow process of the SIB of described correspondence.
Present invention also offers the device that a kind of graphical service flow process is converted into service scenario, this device comprises: the first determining unit, the second determining unit and generation unit; Wherein,
First determining unit, for dispersing and convergence situation according to graphical service flow chart branches, determines the fraternal SIB of each SIB, and the fraternal SIB of each SIB determined is sent to the second determining unit and generation unit;
Second determining unit, for receive first determining unit send each SIB fraternal SIB after, according to the fraternal SIB of each SIB, determine the action scope of each SIB, and the action scope of each SIB determined sent to generation unit;
Generation unit, the action scope of each SIB that fraternal SIB and the second determining unit for receiving each SIB that the first determining unit sends send, according to the action scope of each SIB and the fraternal SIB of each SIB, generates service scenario.
In such scheme, described second determining unit, specifically for: according to the sensing of the arrow line in the fraternal SIB of each SIB and completed graphical service flow process, determine the action scope of each SIB.
Graphical service flow process provided by the invention is converted into method and the device of service scenario, dispersing and convergence situation according to graphical service flow chart branches, determines the fraternal SIB of each SIB; According to the fraternal SIB of each SIB, determine 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, the service scenario clear in structure of generation can be made, thus strengthen the readability of service scenario.
Accompanying drawing explanation
Fig. 1 is simple graphic process fragment;
Fig. 2 is the method flow schematic diagram that graphical service flow process of the present invention is converted into service scenario;
Fig. 3 is for realizing the method flow schematic diagram of the fraternal SIB determining each SIB in process flow diagram shown in Fig. 2;
Fig. 4 is the apparatus structure schematic diagram that graphical service flow process of the present invention is converted into service scenario.
Embodiment
Below in conjunction with drawings and the specific embodiments, the present invention is further described in more detail.
Graphical service flow process of the present invention is converted into the method for service scenario, as shown in Figure 2, comprises the following steps:
Step 201: dispersing and convergence situation according to graphical service flow chart branches, determines the fraternal SIB of each SIB;
Here, for the feature making conversion service scenario out have structured language, Water demand has one with the trend of each branch of the SIB of upper outlet, if all branches finally all converge to same SIB, then determine converge SIB for described in have one with the fraternal SIB of the SIB of upper outlet, accordingly, from described have one to be all in all SIB the SIB of upper outlet to its fraternal SIB described in have one with within the scope of the action scope of the SIB of upper outlet.
Wherein, each branch described judges SIB, branch SIB, basic call control SIB etc.; Such as, for the graphic service flow process fragment shown in Fig. 1, SIB1 exports You Liangge branch, be SIB2 and SIB5, SIB2 You Liangge branch: SIB3 and SIB4 again respectively, all branches finally all converge to SIB6, then SIB6 is the fraternal SIB of SIB1, SIB6 is also that fraternal SIB, SIB3 and the SIB4 of SIB2 is within the scope of the action scope of SIB2, and SIB2, SIB3, SIB4 and SIB5 are within the scope of the action scope of SIB1.
Described dispersing and convergence situation according to graphical service flow chart branches, determine the fraternal SIB of each SIB, be specially:
The branch of follow-up SIB in number and input SIB place business chain that divides according to input SIB converges number, determines the fraternal SIB of each SIB.
This step realizes more specifically, as shown in Figure 3, comprises the following steps:
Step 201a: after completing graphical service flow process, for each SIB in graphical service flow process arranges one corresponding fraternal No. SIB, and is initialized as zero by corresponding for each SIB fraternal No. SIB;
Here, when practical application, generally by the SIB in graphical service flow process from 1 open numbering, there is not the SIB that No. SIB is zero, therefore, No. SIB of fraternal SIB corresponding for each SIB can be initialized as zero, show the fraternal SIB not determining that each SIB is corresponding.
Step 201b: after receiving No. SIB, input, judges to input whether corresponding fraternal No. SIB of SIB is zero, if so, then and execution step 201c; Otherwise, perform step 201o;
Here, business development personnel choose any one in graphical service flow process in all entrance SIB as input parameter, that is: as input SIB; Wherein, described entrance SIB refers to the entrance SIB in graphical service flow process in each fragment, and for the graphic service flow process fragment shown in Fig. 1, described entrance SIB refers to SIB1.
Fraternal No. SIB that described input SIB is corresponding is zero, and the fraternal SIB also not determining described input SIB is described, needs to search; Described input SIB corresponding fraternal No. SIB non-vanishing, then illustrate and searched fraternal SIB corresponding to described input SIB, do not need to search.
Step 201c: for described input SIB creates the temporary variable representing point number, and the value arranging point number is the outlet branches number of described input SIB;
Here, described temporary variable refers to the local variable created on storehouse, and corresponding to auto type variable in the function of C language, after this determines that the treatment scheme of the fraternal SIB of described input SIB terminates, temporary variable just can all discharge, that is: be all wiped free of.
The concrete treatment scheme creating temporary variable is identical with the treatment scheme of existing establishment temporary variable, repeats no more here.
According to the number inputting the arrow line of the outlet of SIB described in completed graphical service flow process, the outlet branches number of described input SIB can be obtained.
Step 201d: judge whether the value of described point number is less than or equal to 1, if so, then perform step 201e, otherwise, perform step 201f;
Step 201e: if the value of described point of number equals 1, then be set to described No. SIB of inputting the next SIB of the outlet branches of SIB by corresponding for described input SIB fraternal No. SIB, perform step 201o afterwards, if the value of described point of number equals zero, then be set to M by corresponding for described input SIB fraternal No. SIB, perform step 201o afterwards;
Here, if described point of number equals 1, then illustrate that described input SIB only has an outlet branches, its fraternal SIB is exactly the next SIB of this outlet branches; If described point of number equals zero, then illustrate that described input SIB does not have fraternal SIB, be set to M by corresponding for described input SIB fraternal No. SIB;
Wherein, M represents that described input SIB does not have fraternal SIB, when practical application, No. SIB in graphical service flow process from 1, successively each SIB is numbered, therefore, the value of M can be set to not with in graphical service flow process No. SIB equitant arbitrary numerical value, such as: the value that can arrange M is-1.
Step 201f: represent for each SIB in whole business sets up the temporary variable that branch converges number and whether accessed respectively, and the value arranging temporary variable is 0, and to arrange corresponding fraternal No. SIB of described input SIB be N, performs step 201g afterwards;
Here, described each SIB comprises the next SIB of described input SIB and each branch outlet.
The concrete treatment scheme 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 annular process flow, that is: N represents that ring-type appears in operation flow, need the traversal stopping branch, therefore, when practical application, the value of N can be set to not with in graphical service flow process No. SIB and the equitant arbitrary numerical value of M, such as: the value that can arrange N is-2.
Step 201g: the variate-value of whether accessing of described input SIB is set to 1, judges whether No. SIB of the next SIB of current outlet branches be greater than zero afterwards, if so, then perform step 201h, otherwise, perform step 201m;
Here, any one outlet branches of all outlet ports branch of described input SIB can be selected as current outlet branches, and using No. SIB of the next SIB of the outlet branches of selection as input parameter, after equipment receives input parameter, judge whether No. SIB of the next SIB of current outlet branches be greater than zero;
If No. SIB of the next SIB of the current outlet branches of input is less than zero, illustrates that current branch is traversed, do not need to travel through again, perform step 201m, need to select an outlet branches as current outlet branches again, travel through.
In the following description, for convenience, the next SIB of current outlet branches is called current SIB.
Step 201h: judge whether the variate-value of whether accessing of current SIB is greater than zero, if so, then performs step 201m, otherwise, perform step 201i;
Here, if the variate-value of whether accessing of described current SIB is greater than zero, then illustrate that this SIB accessed on current outlet branches, there is ring texture in operation flow, need to stop this branch of traversal and continue other outlet branches of traversal, therefore, needing to perform step 201m.
Step 201i: the variate-value of whether accessing arranging described current SIB is 1, and the variate-value branch of described current SIB being converged number adds 1, judge whether the value that the branch of current SIB converges equals the described value inputting point number of SIB afterwards, if, then perform step 201j, otherwise, perform step 201k;
Here, after the variate-value that the branch of described current SIB converges number adds 1, show have 1 branch to converge to described current SIB.
If the value that the branch of described current SIB converges equals the value of point number of described input SIB, then illustrate that described current SIB is the fraternal SIB of described input SIB.
Step 201j: be set to No. SIB of described current SIB by corresponding for described input SIB fraternal No. SIB, and discharge temporary variable, perform step 201o afterwards;
Here, whether described temporary variable comprises: divide number, accessed and branch's convergence number.
Step 201k: judge whether corresponding fraternal No. SIB of described current SIB equals N, if so, then performs step 201m, otherwise, perform step 201l;
Here, if corresponding fraternal No. SIB of described current SIB equals N, then illustrate that ring texture appears in operation flow, need to stop this branch of traversal, and continue other outlet branches of traversal, therefore, need to perform step 201m.
Step 201l: using described current SIB as new input SIB, afterwards this algorithm of recursive call, the fraternal No. SIB corresponding SIB returned, as new current SIB, performs step 201g afterwards;
Here, described this algorithm of recursive call refers to: perform from step 201b until step 201o.
It should be noted that: N specifically for: using described current SIB as new input SIB, after re-executing step 201b, use during subsequent detection annular process flow.
Step 201m: judge whether described input SIB also has next outlet branches, if had, then the value of whether accessing of each SIB in whole business being emptied is zero, performs step 201g afterwards, otherwise, perform step 201n;
Here, according to the number inputting the arrow line of the outlet of SIB described in completed graphical service flow process, can judge whether described input SIB also has next outlet branches.
Step 201n: be set to M by corresponding for described input SIB fraternal No. SIB, and discharge temporary variable, perform step 201o afterwards;
Step 201o: return fraternal No. SIB that described input SIB is corresponding;
Here, returning corresponding fraternal No. SIB of described input SIB is point to business development personnel to return corresponding fraternal No. SIB of described input SIB, so that business development personnel can select No. SIB of other entrance SIB further as input parameter, for other SIB determines fraternal No. SIB of correspondence.
It should be noted that: in step 201l, this algorithm of recursive call, the effect of fraternal No. SIB that the step 201o obtained returns is: as new current SIB, to continue the next SIB on the follow-up chain of process described input SIB place business chain.
Wherein, corresponding fraternal No. SIB of described input SIB returned has two kinds of situations: a kind of what return is No. SIB of the real fraternal SIB of described input SIB, and that another kind returns is M; Particularly, if described input SIB has fraternal SIB, then what return is described No. SIB of inputting the fraternal SIB of SIB, if described input SIB does not have fraternal SIB, then that return is M.
So far, on described input SIB and input SIB follow-up chain, the fraternal SIB of all SIB determines, the initial SIB of all for whole business fragments is called step from 201b to 201o as input SIB, can determine the fraternal SIB of each SIB.
Determine action scope follow-up and generate in the process of service scenario, according to corresponding fraternal No. SIB of each SIB, the fraternal SIB of each SIB can be known.
Step 202: according to the fraternal SIB of each SIB, determine the action scope of each SIB;
Particularly, according to the sensing of the arrow line in the fraternal SIB of each SIB and completed graphical service flow process, the action scope of each SIB is determined.
Wherein, when traveling through the follow-up flow process of each SIB, arrive all SIB before its fraternal SIB all in the action scope of SIB corresponding to this fraternal SIB.
Step 203: according to the action scope of each SIB and the fraternal SIB of each SIB, generates service scenario;
Particularly, by within the scope of each branch's flow process of SIB corresponding for the flow process write action scope corresponding to the SIB in the action scope of SIB; Flow process after fraternal SIB and fraternal SIB is write in the follow-up flow process of the SIB of described correspondence.
For the graphic service flow process fragment shown in Fig. 1, then can generate following service scenario description form:
if(SIB1)
{
if(SIB2)
{
SIB3;
}else
{
SIB4;
}
}else
{
SIB5;
}
SIB6;
As can be seen from description above, goto statement abandoned by the script adopting the inventive method to generate, and clearly can reflect the judgement branched structure of operation flow, readability improves greatly.
For realizing said method, present invention also offers the device that a kind of graphical service flow process is converted into service scenario, as shown in Figure 4, this device comprises: the first determining unit 41, second determining unit 42 and generation unit 43; Wherein,
First determining unit 41, for dispersing and convergence situation according to graphical service flow chart branches, determines the fraternal SIB of each SIB, and the fraternal SIB of each SIB determined is sent to the second determining unit 42 and generation unit 43;
Second determining unit 42, for receive first determining unit 41 send each SIB fraternal SIB after, according to the fraternal SIB of each SIB, determine the action scope of each SIB, and the action scope of each SIB determined sent to generation unit 43;
Generation unit 43, the action scope of each SIB that fraternal SIB and the second determining unit 42 for receiving each SIB that the first determining unit 41 sends send, according to the action scope of each SIB and the fraternal SIB of each SIB, generates service scenario.
Wherein, described second determining unit 42, specifically for: according to the sensing of the arrow line in the fraternal SIB of each SIB and completed graphical service flow process, determine the action scope of each SIB.
Described generation unit 43, specifically for: by within the scope of each branch's flow process of SIB corresponding for the flow process write action scope corresponding to the SIB in the action scope of SIB; Flow process after fraternal SIB and fraternal SIB is write in the follow-up flow process of the SIB of described correspondence.
Here, the concrete processing procedure of the first determining unit in described device of the present invention describes in detail hereinbefore, repeats no more.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention, and all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.
Claims (11)
1. graphical service flow process is converted into a method for service scenario, it is characterized in that, the method comprises:
Dispersing and convergence situation according to graphical service flow chart branches, determines that each business has nothing to do the fraternal SIB of assembly (SIB);
According to the fraternal SIB of each SIB, determine the action scope of each SIB;
According to the action scope of each SIB and the fraternal SIB of each SIB, generate service scenario;
Each SIB arrives all SIB before its fraternal SIB all in the action scope of SIB corresponding to its fraternal SIB.
2. method according to claim 1, is characterized in that, described dispersing and convergence situation according to graphical service flow chart branches, determines the fraternal SIB of each SIB, for:
The branch of follow-up SIB in number and input SIB place business chain that divides according to input SIB converges number, determines the fraternal SIB of each SIB.
3. method according to claim 2, is characterized in that, the described branch of follow-up SIB in number and input SIB place business chain that divides according to input SIB converges number, determines the fraternal SIB of each SIB, for:
After completing graphical service flow process, for each SIB in graphical service flow process arranges one corresponding fraternal No. SIB, and be initialized as zero;
Judging to input whether corresponding fraternal No. SIB of SIB is zero, after being defined as zero, be that described input SIB creates the temporary variable representing point number, and the value arranging point number is the outlet branches number of described input SIB;
Judge whether the value of described point number is less than or equal to 1, after determining to be greater than 1, represent for each SIB in whole business sets up the temporary variable that branch converges number and whether accessed respectively, and the value arranging temporary variable is 0, and to arrange corresponding fraternal No. SIB of described input SIB be N;
The variate-value of whether accessing of described input SIB is set to 1, judge whether No. SIB of the next SIB of current outlet branches be greater than zero afterwards, after determining to be greater than zero, judge whether the variate-value of whether accessing of current SIB is greater than zero, after determining to be not more than zero, the variate-value of whether accessing arranging described current SIB is 1, and the variate-value branch of described current SIB being converged number adds 1, judge whether the value that the branch of current SIB converges equals the described value inputting point number of SIB afterwards, after determining to equal, No. SIB of described current SIB is set to by corresponding for described input SIB fraternal No. SIB, and discharge temporary variable, return fraternal No. SIB that described input SIB is corresponding afterwards,
The next SIB of described current outlet branches is described current SIB.
4. method according to claim 3, is characterized in that, the method comprises further:
After determining that the value of point number is less than or equal to 1, if when the value of described point of number equals 1, be set to described No. SIB of inputting the next SIB of the outlet branches of SIB by corresponding for described input SIB fraternal No. SIB, return fraternal No. SIB that described input SIB is corresponding afterwards; If described point of number equals zero, be set to M by corresponding for described input SIB fraternal No. SIB, return M afterwards.
5. method according to claim 3, is characterized in that, the method comprises further:
Determine No. SIB of current SIB be less than zero after, judge whether described input SIB also has next outlet branches, after defining, the value of whether accessing of each SIB in the branch outlet of described input SIB being emptied is zero, afterwards the variate-value of whether accessing of described input SIB is set to 1, and judge that whether No. SIB of the next SIB of new current outlet branches be greater than zero, so circulates, until fraternal No. SIB that finds described input SIB corresponding;
After determining that described input SIB does not have next outlet branches, be set to M by corresponding for described input SIB fraternal No. SIB, and discharge temporary variable, return M afterwards.
6. method according to claim 3, is characterized in that, the method comprises further:
After determining that the variate-value of whether accessing of current SIB is greater than zero, judge whether described input SIB also has next outlet branches, after defining, the value of whether accessing of each SIB in the branch outlet of described input SIB being emptied is zero, afterwards the variate-value of whether accessing of described input SIB is set to 1, and judge that whether No. SIB of the next SIB of current outlet branches be greater than zero, so circulates, until fraternal No. SIB that finds described input SIB corresponding;
After determining that described input SIB does not have next outlet branches, be set to M by corresponding for described input SIB fraternal No. SIB, and discharge temporary variable, return M afterwards.
7. method according to claim 3, is characterized in that, the method comprises further:
After determining that the value of branch's convergence of described current SIB is not equal to the value of point number of described input SIB, judge whether corresponding fraternal No. SIB of described current SIB equals N, after determining to be not equal to N, using described current SIB as new input SIB, judge whether corresponding fraternal No. SIB of new input SIB is zero, circulation like this, until fraternal No. SIB that finds described input SIB corresponding;
After determining to equal N, judge whether described input SIB also has next outlet branches, after defining, the value of whether accessing of each SIB in the branch outlet of described input SIB being emptied is zero, afterwards the variate-value of whether accessing of described input SIB is set to 1, and judge that whether No. SIB of the next SIB of current outlet branches be greater than zero, so circulates, until fraternal No. SIB that finds described input SIB corresponding;
After determining that described input SIB does not have next outlet branches, be set to M by corresponding for described input SIB fraternal No. SIB, and discharge temporary variable, return M afterwards.
8. the method according to any one of claim 1 to 7, is characterized in that, the described fraternal SIB according to each SIB, determines the action scope of each SIB, for:
According to the sensing of the arrow line in the fraternal SIB of each SIB and completed graphical service flow process, determine the action scope of each SIB.
9. the method according to any one of claim 1 to 7, is characterized in that, the fraternal SIB of the described action scope according to each SIB and each SIB, generates service scenario, for:
By within the scope of each branch's flow process of SIB corresponding for the flow process write action scope corresponding to the SIB in the action scope of SIB; Flow process after fraternal SIB and fraternal SIB is write in the follow-up flow process of the SIB of described correspondence.
10. graphical service flow process is converted into a device for service scenario, it is characterized in that, this device comprises: the first determining unit, the second determining unit and generation unit; Wherein,
First determining unit, for dispersing and convergence situation according to graphical service flow chart branches, determines the fraternal SIB of each SIB, and the fraternal SIB of each SIB determined is sent to the second determining unit and generation unit;
Second determining unit, for receive first determining unit send each SIB fraternal SIB after, according to the fraternal SIB of each SIB, determine the action scope of each SIB, and the action scope of each SIB determined sent to generation unit;
Generation unit, the action scope of each SIB that fraternal SIB and the second determining unit for receiving each SIB that the first determining unit sends send, according to the action scope of each SIB and the fraternal SIB of each SIB, generates service scenario;
Each SIB arrives all SIB before its fraternal SIB all in the action scope of SIB corresponding to its fraternal SIB.
11. devices according to claim 10, is characterized in that, described second determining unit, specifically for: according to the sensing of the arrow line in the fraternal SIB of each SIB and completed graphical service flow process, determine the action scope of each SIB.
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 CN102609796A (en) | 2012-07-25 |
CN102609796B true 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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107767008A (en) * | 2017-03-03 | 2018-03-06 | 平安医疗健康管理股份有限公司 | Flow collocation method and device |
Citations (3)
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 |
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AT411802B (en) * | 2001-06-01 | 2004-05-25 | Siemens Ag Oesterreich | METHOD FOR TESTING SOFTWARE |
-
2011
- 2011-01-20 CN CN201110023247.1A patent/CN102609796B/en active Active
- 2011-07-25 WO PCT/CN2011/077586 patent/WO2012097583A1/en active Application Filing
Patent Citations (3)
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 |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN102609796A (en) | 2012-07-25 |
WO2012097583A1 (en) | 2012-07-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103823666B (en) | Smart substation equipment visualized programming method | |
CN109754073A (en) | Data processing method, device, electronic equipment and readable storage medium storing program for executing | |
CN107632590B (en) | A kind of bottom event sort method priority-based | |
CN109189393A (en) | Method for processing business and device | |
CN105786460A (en) | Software development method and device based on service composition | |
CN106648674A (en) | Big data computing management method and system | |
CN107453928A (en) | A kind of power telecom network pitch point importance evaluation method and device | |
CN112464497B (en) | Fault drilling method, device, equipment and medium based on distributed system | |
CN104267936B (en) | Based on network analysis method of reachability of being pushed net under the semantic asynchronous dynamical of tree | |
CN101650652A (en) | Method and device for developing business processes | |
CN105391490B (en) | A kind of satellite communication network selection algorithm based on cognition | |
CN110380903A (en) | A kind of power telecom network fault detection method, device and equipment | |
CN110442659A (en) | A kind of region partitioning method and device | |
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 | |
Huang et al. | Optimal nonblocking directed control of discrete event systems | |
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 | |
CN103701670B (en) | A kind for the treatment of method and apparatus of packet load | |
CN109740763A (en) | A kind of quantum wire neighbourization two-dimensional grid form selection method | |
Hassine et al. | Abstract operational semantics for use case maps | |
CN109144750A (en) | A kind of message treatment method, device, electronic equipment and storage medium | |
CN103019807B (en) | Method and system for extracting component interaction rule of SOA (Service Oriented Architecture) system | |
CN105047038A (en) | Personnel training system of nuclear power plant |
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 |