CN101710405A - Workflow editing method facing to Web service on basis of trust management - Google Patents

Workflow editing method facing to Web service on basis of trust management Download PDF

Info

Publication number
CN101710405A
CN101710405A CN200910263398A CN200910263398A CN101710405A CN 101710405 A CN101710405 A CN 101710405A CN 200910263398 A CN200910263398 A CN 200910263398A CN 200910263398 A CN200910263398 A CN 200910263398A CN 101710405 A CN101710405 A CN 101710405A
Authority
CN
China
Prior art keywords
service
workflow
node
configuration
cyclic
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
CN200910263398A
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.)
Nanjing University
Original Assignee
Nanjing University
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 Nanjing University filed Critical Nanjing University
Priority to CN200910263398A priority Critical patent/CN101710405A/en
Publication of CN101710405A publication Critical patent/CN101710405A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a workflow editing method facing to web service on the basis of trust management, comprising: firstly, defining a set of workflow editing models with strong description capability, easy operation and easy understanding, and realizing a B/S mode editor on the basis of the model; then, according to the shortage that the workflow is only triggered by a precursory node, providing the dual trigger mechanisms of event trigger and time trigger to ensure that service is invoked duly under versatile web service network environments, and improving invoking result quality to a certain degree; finally, according to the characteristic that service always has possibility of failing in invoking, designing a set of particular cyclic control nodes by combining trust management, thus ensuring that a user can take the output of the terminal node of cyclic node neutron workflow as a cyclic condition variable to constantly invoke new integrated service of candidate service under the condition of satisfying cyclic conditions so as to ensure invoking service success rate.

Description

A kind of Workflow editing method towards Web service based on trust management
Technical field
The present invention relates to a kind of Workflow editing method that is directed to the schedule of online called Web service, combine the support technology of trust management platform in the special applications of schedule and the engine especially, realized an easy operating, easily Workflow editing method and the model of understanding thereof.
Background technology
Traditional workflow, what mainly solve is that the process of transmitting document, information or task according to certain predefined rule between a plurality of participants is carried out automatically, thereby realize the business objective of certain expection, perhaps impel the realization of this target, be attached in the middle of the application, mainly finishing provides routine office work and key business flow process intelligent management, and can customize various flow processs easily at any time according to special actual requirement of company, and can realize powers such as the different tracking of different role, inquiry, statistics, printing.
But, flourish along with Web service, more and more the application that workflow and Web service combine.This workflow is not the operation flow that is provided with in order to strengthen enterprise internal management, but allow the user can be orderly call Web service on the internet, satisfy the demand of self, more typical example promptly is the schedule workflow.
After the Web service combination, Workflow editing need be paid close attention to the content of two aspects, the one, how to call service by the Work flow model of putting up, this problem solves substantially, the different types of empty service of different node representative is set in editing machine exactly, binds reality of the same name when engine is carried out again and serve and call it.Thing followed problem is when to bind, when really call, general way is that the forerunner's node by present node triggers binding and calls, but sometimes the user wishes that service call occurs in the suitable time, such as carrying out making room reservation service in 11 of the hope, it is fixed to the source of houses of getting well, the problem that another need be paid close attention to guarantee, be exactly in numerous candidate service, how choose reliable service.To these two problems, also there is not good solution at present.
Summary of the invention
Technical matters to be solved by this invention be at existing towards the more loaded down with trivial details deficiency of the Workflow editing mode of Web service, a cover logic of designing is complete, easy operating, easily edit methods and the background support model of understanding thereof.Solved simultaneously usually in the Web service workflow, the deficiency that the binding service is directly triggered by adjacent forerunner's node, and the success ratio of satisfactory service is called in raising.
A kind of Workflow editing method of the present invention towards Web service, design basic Work flow model and corresponding with it data model, this Work flow model comprises and the model basic module is set, the workflow drive pattern is set, the configuration of cyclic node structure and workflow service node is set, wherein:
1) the model basic module comprises serviced component, Control Component, port assembly, limit assembly and time component is set;
A. serviced component, it represents empty service, and real service be bound and be called to workflow engine can when carrying out this serviced component;
B. Control Component, it is divided into recirculation assembly and selects assembly, expresses the semantic concept of circulation and branch respectively,
C. port assembly, it depends on serviced component and Control Component, is divided into inlet, normal exit and exception exit, the inflow and the outflow of representative control stream respectively;
D. the limit assembly represents that definite data and control flow to, and it is connected in the directed edge between any two gateways, has represented the flow direction of data;
E. time component, it is bundled on the serviced component, and be set by the user binding service time of serviced component;
When 2) the workflow drive pattern being set, increase time triggering mode at each service node, in order to call service time realization event and time double drive pattern;
3) in the cyclic node structure, increase to change Service Properties, choose to enter repetend idea workflow under the situation at every turn and just change and serve the provider, do not choose the provider that serves who then always selects to rank the first.The setting of cycling condition is to originate as the variable of cycling condition with the output of last node in the sub-workflow, and the complete output of last node is as the output of cyclic node;
4) in the process of workflow service node configuration, the configuration mode that adopts data stream and control stream to be separated.
In step 3), in cyclic node, also increased the setting of replaceable service provider number, allowed the user select to call the number of times of alternative service.
In above-mentioned steps 4) data stream with the configuration mode that is separated of control stream is, in the process of empty service node configuration, the set-up mode of increase input parameter value is realized, it specifically is constraint of process increase in configuration, the layoutprocedure that makes service must be that the direction from start node along the limit disposes successively, the configuration of each empty service, can only select a central method of Web service, like this, the void service that configures, a method call that sets a Web service of input parameter so goes down exactly, the output of all nodes had reached the separation function of data stream as the input source before each current configuration service node all can be selected.
The present invention has designed User Defined service execution time function, is set up the service of time, after forerunner's node finishes, the time of contrast current time and setting, if time-out is set, carry out service call at once, otherwise the time that is provided with is by the time carried out service call.This function has solved usually in the Web service workflow, the deficiency that the binding service is directly triggered by adjacent forerunner's node.In addition, add the dual trigger mechanism that regularly triggers, moreover added the method for credible assessment, and then designed the specific cycle node of combining closely with it, called the success ratio of satisfactory service with raising.
Description of drawings
Fig. 1 has shown the class graph of a relation of Work flow model of the present invention.
Fig. 2-1,2-2,2-3,2-4 have shown several structures common in the Work flow model.
Fig. 3-1,3-2,3-3 have shown several frequently seen workflow scene.
Fig. 4 has shown the simplified example of building on the Workflow editing device of realizing.
Embodiment
The present invention can realize the B/S pattern rapidly by the kit gwt (Google web toolkit) of Google, and this point makes that the editing machine of exploitation webpage pattern is convenient just as exploitation local client application program.The topmost technology of edit methods part, i.e. the edit methods design of data model behind, it is strong to obtain a logical expression ability, easy to use, understandable edit methods must have good back-end data structure as support, and Work flow model of the present invention is defined as follows:
As Fig. 1, shown the class graph of a relation of Work flow model of the present invention, wherein:
1.Workflow represent a workflow, it comprises the serviced component that uses in this workflow, the assembly of relevant flow process control, and about the relevant configuration of each service.
2.ServiceTask the serviced component of certain function is finished in representative, it is the chief component in the workflow, different types of services such as ServiceTask is divided into different classification ServiceName by its function of finishing, and is that send short messages, that send out mail such as having, as to book tickets, make room reservation.Every class service all has unified wsdl to describe ServiceDescription, promptly comprises identical Operation, and each Operation has identical input etc.The user will carry out detailed configuration ServiceConfig to the input of each ServiceTask in the workflow when making up workflow.In addition, the ServiceTask that each user can use is relevant with its number of the account, and the user adds the service that oneself is paid close attention under own number of the account, and corresponding demand for services ServiceRequirement is set.Can retrain if having time among the ServiceTask, promptly be used for retraining the time hasTimer that this ServiceTask starts.
3.Loop be Control Component, comprise a sub-workflow among each Loop, this Control Component makes sub-workflow cycle wherein move till the conditional expression WhileCondition of Loop satisfies.Loop not only plays control sub-workflow wherein and whether proceeds circular flow, also plays the effect of Data transmission stream, and the service output of calling before the Loop can be delivered in the sub-workflow of Loop, also can be delivered among the ServiceTask of back.
4.Choice be Control Component, being used for Control work stream carries out branch, comprises a plurality of IfCondition among the Choice, the conditional expression of different branches is satisfied in expression respectively.Generally comprise the output variable that Choice serves previously among the IfCondition, judge branch condition according to the value in these variablees or certain several territory wherein.The same with other Control Components, Choice also has the effect of Data transmission.
5.Edge various serviced components and Control Component couple together by Edge in the workflow, promptly can be used for representing control stream, also can represent the flow direction of data.
6.Port Port is divided into input port and output port, input port has only a class, and output port is divided into general output, condition output and wrong port again.Comprise conditional expression IfCondition in the condition output.
The definition of these models has been arranged, just can between the Port that depends on different serviced components or Control Component, Edge be set, since the expression whole workflow operational process.And configuring corresponding serviced component and Control Component, workflow is just built and has been finished so.
When the workflow drive pattern is set, needs only to rely in the further work stream operation of forerunner's node to finish and trigger the Event triggered mode of next node.Introduced a kind of new triggering mode---Time Triggered here.The user can call service time at each service node setting, and the service node of allocating time was set, and is to carry out service call in the following manner.If work flow operation is to current empty service node, the current time in system is provided with the time early than the user, and service call postpones so, knows that the time of setting begins the service of calling; If the current time in system is later than the user time is set, then get started service call.
For the unitarity of data model, designed a new element here, be called TimerNoder, it depends on service node, promptly is equivalent to be bundled in an assembly on the serviced component.
In the cyclic node structure, need a kind of special cyclic node.Traditional cyclic node only needs cycling condition to it to be set, and does not satisfy up to cycling condition, promptly withdraws from circulation.But towards the special application field of Web service; call in the process of web service, can not get satisfied result through regular meeting, this has just required one to trust security mechanism; provide some most probables by its satisfied service provider tabulation, i.e. candidate service collection to the user.The present invention adds one to cyclic node and changes Service Properties, chooses to enter repetend idea workflow under the situation at every turn and just change and serve the provider, does not choose the provider that serves who then always selects to rank the first.Whether the cyclic node in the model has realized two kinds of cycle control functions, and can be provided with, and enters the sub-workflow of cyclic node at every turn, change and serve the provider.In two circulatory functions, one is the do that specifies number of times ... until ... circulation can be provided with the maximum times that recursive call is served exactly, satisfies cycling condition if call the result in predetermined number of times, withdraw from circulation, otherwise repeat the service invocation procedure of predetermined number of times; Another is do ... until ... circulation, be exactly always duplicate services call, till satisfying cycling condition, this circulation is in order to ensure satisfied result is provided to the user, if but do not satisfy cycling condition always, will produce time-out error and then make the work flow operation failure.
The setting of cycling condition also is a characteristic of current specific cycle node.Here originate as the variable of cycling condition with the output of last node in the sub-workflow, the complete output of last node is as the output of cyclic node.This cover mechanism has been arranged, just can be in sub-workflow by the ordering of candidate service from high to low, the service that the replacing candidate service of not stopping is concentrated, the variable of terminal node in cycling condition up to sub-workflow satisfies cycling condition, success is called in expression, perhaps up to candidate service concentrate no new serve the provider till, the expression service call is failed.Like this, we just can strengthen and call the service probability of successful.The often change of the size of candidate service set, the lower service of the subjective sometimes distrust rank of user in order to satisfy this demand, has also increased the setting of replaceable service provider number in the cyclic node, allow the user select to call the number of times of alternative service.
In the process of workflow service node configuration, control stream separates with data stream, is that the configuration mode of input parameter value is realized by in the process that increases empty service node service configuration.Realize building of workflow, at first need to store real service method information of the same name in the empty service, and in the method information, comprise the method name again, input parameter information and output parameter information, the process of service configuration just is equivalent to the input parameter designated value, the value of output parameter only after background engine is really finished service call, just can obtain.Here, the value of service parameter has two sources, the one, the user directly imports occurrence, the 2nd, specify the output parameter value of certain method of forerunner's node to originate as " variable ", why be " variable ", be because before really calling service, output parameter is a void value, the routing information of output parameter object can only be stored in the configuration item the inside, serves up to the forerunner and really calls end, goes to corresponding position to obtain concrete value again.
Finish this configuration mode, a constraint must be arranged, the layoutprocedure of service must be that the direction from start node along the limit disposes successively, the configuration of each empty service, can only select a central method of Web service, like this, the void service that configures, a method call that sets a Web service of input parameter exactly.So go down, the output before each current configuration service node all can be selected has reached the separation function of data stream as the input source.
The present invention will be further described below in conjunction with a concrete example.
1, running environment:
(1) PC of operation Windows system, they are as the server of program run.
(2) Eclipse 3.2 or highest version more are installed on the PC device, Tomcat 5.0 or highest version more, JBoss4.2 or highest version more, JDK1.5 or highest version more.
(3) the foreground editor code that writes is published on the JBoss
(4) visit the server that the Workflow editing device is provided by browser, obtain the editing interface system architecture as shown in Figure 4.
2, scene:
Fig. 3-1,3-2,3-3 have shown attainable three the typical application scenarioss of this edit methods.
Shown in Fig. 3-1, the user need customize a train ticket that goes to Wuhan from November 8th, 2009 from Nanjing, he need create empty service BookingTrainTickets so, and the property value of empty service is set, the starting point is set to Nanjing, terminal point is set to Wuhan, time is set on November 8th, 2009, even if the ticket-booking service customization finishes, he will check the weather on November 8th, 2009 then, therefore create WeatherForecastService, connect the limit in the outlet of BookingTrainTickets and the inlet of WeatherForecastService, and configuration WeatherForecastService; Next he will send to the ticket booking result on the own mobile phone in the mode of short message, create empty service SMS again, then the inlet of the outlet of WeatherForecastService and SMS is provided with line, the content of Short Message Service then is set, and the workflow that simple ticket booking is sent short messages has then just been finished.Here there is a content should be noted that, the part of the method for sending short messages is manually input of user, and the short message content item is the value of the isFullBookSucceed in the output parameter of BookingTrainTickets, data stream has been crossed over node WeatherForecastService, has promptly realized and the separating of workflow.
Shown in Fig. 3-2, the user will buy the train ticket that went to Wuhan from Nanjing on November 11st, 2009 earlier, and train arrives Wuhan No. 12, and the user wants that settled day hotel stays under the predetermined case of successful of train ticket.As everyone knows, the vacant room information in hotel is constantly all to change, and in the morning between 10 o'clock to 12 o'clock, the people who checks out is many.In this case, the user do not wish that train ticket is intact surely and directly books room, and wishes that the behavior of making room reservation occurs in 12 days point in mornings 10, at this moment, timing node is bundled on the service node of making room reservation, and is provided with that to begin to bind service time be to get final product at 10 in the morning on November 11st, 2009.
Shown in Fig. 3-3, the user wants to go to Beijing from Nanjing by air November 6, so he need select BookingAirTicketsService, but November 6 was weekend, plane ticket may be difficult fixed, and probably order less than satisfied position, such as the ticket of business class.At this moment the user can select to create earlier a cyclic node, creates a BookingAirTicketsService again in the sub-workflow of cyclic node, configures the input parameter information of ticket-booking service, finishes the configuration of sub-workflow.Come back to cyclic node, at this moment, loop variable is set to " TicketKind==business class ", and selected the replacing served provider's option, so, in the workflow engine operational process, will be in the candidate service set, change successively by the rank of serving the provider and to serve the provider, up to fixed till the business class.
3, technical description:
(1) strict logic, understandable Work flow model.Fig. 2-1,2-2,2-3,2-4 have represented the sequential organization in the workflow respectively, choice structure, branched structure, loop structure, the combination of these four kinds of structures just can build the workflow of any semanteme.
(2) Java object sequenceization
Foreground model teletransmission directly turns to the java object with the Work flow model sequence when the background process program, is stored in the database, and when engine need use data, unserializing workflow objects again.

Claims (3)

1. Workflow editing method based on trust management towards Web service, it is characterized in that designing basic Work flow model and corresponding with it data model, this Work flow model comprises and the model basic module is set, the workflow drive pattern is set, the configuration of cyclic node structure and workflow service node is set, wherein:
1) the model basic module comprises serviced component, Control Component, port assembly, limit assembly and time component is set;
A. serviced component, it represents empty service, and real service be bound and be called to workflow engine can when carrying out this serviced component;
B. Control Component, it is divided into recirculation assembly and selects assembly, expresses the semantic concept of circulation and branch respectively,
C. port assembly, it depends on serviced component and Control Component, is divided into inlet, normal exit and exception exit, the inflow and the outflow of representative control stream respectively;
D. the limit assembly represents that definite data and control flow to, and it is connected in the directed edge between any two gateways, has represented the flow direction of data;
E. time component, it is bundled on the serviced component, and be set by the user binding service time of serviced component;
When 2) the workflow drive pattern being set, increase time triggering mode at each service node, in order to determine calling service time realization event and time double drive pattern;
3) in the cyclic node structure, increase to change Service Properties, choose to enter repetend idea workflow under the situation at every turn and just change and serve the provider, do not choose the provider that serves who then always selects to rank the first.The setting of cycling condition is to originate as the variable of cycling condition with the output of last node in the sub-workflow, and the complete output of last node is as the output of cyclic node;
4) in the process of workflow service node configuration, the configuration mode that adopts data stream and control stream to be separated.
2. the Workflow editing method towards Web service based on trust management according to claim 1 is characterized in that having increased in the step 3) setting of replaceable service provider number in cyclic node, allow the user select to call the number of times of alternative service.
3. the Workflow editing method based on trust management according to claim 1 and 2 towards Web service, it is characterized in that step 4) data stream and the configuration mode that control stream is separated are, in the process of empty service node configuration, the set-up mode of increase input parameter value is realized, it specifically is constraint of process increase in configuration, the layoutprocedure that makes service must be that the direction from start node along the limit disposes successively, the configuration of each empty service, can only select a central method of Web service, like this, the void service that configures, method call that sets a Web service of input parameter exactly, so go down, the output of all nodes had reached the separation function of data stream as the input source before each current configuration service node all can be selected.
CN200910263398A 2009-12-18 2009-12-18 Workflow editing method facing to Web service on basis of trust management Pending CN101710405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910263398A CN101710405A (en) 2009-12-18 2009-12-18 Workflow editing method facing to Web service on basis of trust management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910263398A CN101710405A (en) 2009-12-18 2009-12-18 Workflow editing method facing to Web service on basis of trust management

Publications (1)

Publication Number Publication Date
CN101710405A true CN101710405A (en) 2010-05-19

Family

ID=42403190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910263398A Pending CN101710405A (en) 2009-12-18 2009-12-18 Workflow editing method facing to Web service on basis of trust management

Country Status (1)

Country Link
CN (1) CN101710405A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880637A (en) * 2012-08-07 2013-01-16 东南大学 Dynamic Web service trust evaluation method based on user honesty
CN104604201A (en) * 2012-09-07 2015-05-06 甲骨文国际公司 Infrastructure for providing cloud services
US10164901B2 (en) 2014-08-22 2018-12-25 Oracle International Corporation Intelligent data center selection
CN110008034A (en) * 2018-11-22 2019-07-12 阿里巴巴集团控股有限公司 Task automated execution method, apparatus, electronic equipment and storage medium
CN111752552A (en) * 2020-06-28 2020-10-09 南京优倍自动化系统有限公司 Industrial software design and application platform
US11075791B2 (en) 2012-09-07 2021-07-27 Oracle International Corporation Failure handling in the execution flow of provisioning operations in a cloud environment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880637A (en) * 2012-08-07 2013-01-16 东南大学 Dynamic Web service trust evaluation method based on user honesty
CN102880637B (en) * 2012-08-07 2015-04-08 东南大学 Dynamic Web service trust evaluation method based on user honesty
CN104604201A (en) * 2012-09-07 2015-05-06 甲骨文国际公司 Infrastructure for providing cloud services
CN104604201B (en) * 2012-09-07 2018-01-19 甲骨文国际公司 For providing the infrastructure of cloud service
US11075791B2 (en) 2012-09-07 2021-07-27 Oracle International Corporation Failure handling in the execution flow of provisioning operations in a cloud environment
US10164901B2 (en) 2014-08-22 2018-12-25 Oracle International Corporation Intelligent data center selection
CN110008034A (en) * 2018-11-22 2019-07-12 阿里巴巴集团控股有限公司 Task automated execution method, apparatus, electronic equipment and storage medium
CN111752552A (en) * 2020-06-28 2020-10-09 南京优倍自动化系统有限公司 Industrial software design and application platform

Similar Documents

Publication Publication Date Title
CN100545851C (en) The remote system administration of utility command row environment
CN100458789C (en) Method for exchanging portlet configuration data and portal
CN103425462B (en) A kind of method and apparatus of workflow data persistence
CN101710405A (en) Workflow editing method facing to Web service on basis of trust management
CN102043665B (en) System landscape aware inter-application communication infrastructure
CN101120575B (en) Process and network for positioning and selecting service to provide processing
US20110208848A1 (en) Network system of web services based on semantics and relationships
CN101446971B (en) Method for building content management system and device thereof
CN101276271A (en) Method and interceptor system facing to tangent plane programming
CN109753532A (en) Interface service system and its implementation method for browser end access database
CN1972296A (en) Method for generating service combined with various communication means based on XPL and its system
CN102404149B (en) Management system and method of service characteristics
US9557880B2 (en) Shared user interface services framework
CN101287166A (en) Short message publishing system and method for auxiliary system of electronic meeting
CN102375894A (en) Method for managing different types of file systems
CN108874738A (en) Distributed parallel operation method, device, computer equipment and storage medium
US20070143447A1 (en) Methods and systems for providing a structured application
CN109858874A (en) Payment approval process configuration method and device under a kind of more scenes
CN101667121A (en) Feature phone secondary development method and device
CN101924815A (en) 3G MOA phone middleware embedded system
Wohed et al. Pattern Based Analysis of Eai Languages-The Case of the Business Modeling Language.
CN1588411B (en) Flow control method based on flow customization
CN111008015B (en) Micro front-end application framework based on front-end technology
Popovic et al. Formal verification of distributed transaction management in a SOA based control system
Kohler A Serverless FaaS-Architecture: Experiences from an Implementation in the Core Banking Domain

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

Open date: 20100519