[go: up one dir, main page]

CN101388089A - Service logical processing method and apparatus in workflow - Google Patents

Service logical processing method and apparatus in workflow Download PDF

Info

Publication number
CN101388089A
CN101388089A CNA2008101745232A CN200810174523A CN101388089A CN 101388089 A CN101388089 A CN 101388089A CN A2008101745232 A CNA2008101745232 A CN A2008101745232A CN 200810174523 A CN200810174523 A CN 200810174523A CN 101388089 A CN101388089 A CN 101388089A
Authority
CN
China
Prior art keywords
workflow
assembly
business logic
service logic
packaged
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
CNA2008101745232A
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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CNA2008101745232A priority Critical patent/CN101388089A/en
Publication of CN101388089A publication Critical patent/CN101388089A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

An embodiment of the invention discloses a business logic processing method and a device thereof in a workflow. The steps of the method comprise packaging business logic into components, assembling the components in a workflow system through the operation of configuration, and reflexly invoking the components during the workflow operation process to realize relative business logic. In the technical scheme of the invention, because the business logic is packaged into the components, and during the workflow operation process, the components are reflexly invoked to realize the relative business logic, the packaged business logic components can be reused under different business environments, which is extremely convenient for use, besides, the components can be timely debugged during the development process, and thereby the development progress is relatively fast.

Description

The method and apparatus of business logic processing in a kind of workflow
Technical field
The present invention relates to technical field of data processing, be specifically related to the method and apparatus of business logic processing in a kind of workflow.
Background technology
Computing machine in most cases all is to carry out data processing in the mode of workflow in data handling procedure.Workflow is generally defined as: full-automatic or semi-automatic under computing machine is supported of whole or partial service process.Activity in the workflow is generally defined as: not subdivisible work-based logic unit in the workflow.
When the application workflow is carried out business data processing; run into the business processing needs of various personalizations through regular meeting; for example in the examination and approval workflow of asking for leave of certain enterprise; whether other staff are arranged is to ask for leave to examine by one of whether condition at this time period of asking for leave work on duty; therefore obtain whether the people is arranged in this time period of asking for leave information on duty; be exactly the very common and rational demand of one of this enterprise, but for Workflow system, it is again a very personalized demand.To the business processing demand of enterprise's personalization, enterprise can carry out secondary development, the code of secondary development is applied in the workflow, and then realizes personalized business processing.
In the prior art, business processing demand for enterprise's personalization, normally by writing SQL (Structured QueryLanguage, Structured Query Language (SQL)) script sentence, and operation SQL script sentence is realized in the activity of corresponding work stream.
In research and practice process to prior art, the present inventor finds that the SQL script sentence of writing can not realize the reusing different business environment under usually, so during the service environment change, usually all need the professional to write again, it is very inconvenient to use; And the SQL script sentence is inconvenient debugging in time in the process of writing, the relative delay development progress.
Summary of the invention
The embodiment of the invention provides the method and apparatus of business logic processing in a kind of workflow, and the business logic components of encapsulation can be implemented in reusing under the different business environment, and development progress is very fast relatively.
For achieving the above object, embodiment of the invention specific implementation by the following technical programs:
The embodiment of the invention provides the method for business logic processing in a kind of workflow, comprising: service logic is packaged into assembly; By configuration operation, described component groups is installed in the Workflow system; In the work flow operation process, described assembly is called in reflection, realizes correspondent service logic.
Preferably, describedly service logic is packaged into assembly is specially: service logic is packaged into assembly, and issues with the form of dynamic link library.
Preferably, described by configuration operation, described component groups installed in the Workflow system be specially: the relevant information of in database, describing described assembly.
Preferably, described in the work flow operation process, described assembly is called in reflection, realizes that correspondent service logic is specially: in the work flow operation process, method related with the automatic application activity of described workflow in the described assembly is called in reflection, realizes correspondent service logic.
The embodiment of the invention also provides the device of business logic processing in a kind of workflow, comprising: the component package unit is used for service logic is packaged into assembly; The assembly module units is used for by configuration operation, and described component groups is installed in the Workflow system; Call the realization unit, be used in the work flow operation process, described assembly is called in reflection, realizes correspondent service logic.
Preferably, described component package unit specifically is used for service logic is packaged into assembly, and issues with the form of dynamic link library.
Preferably, described assembly module units specifically is used for describing at database the relevant information of described assembly.
Preferably, described calling realizes that the unit specifically is used in the work flow operation process, and method related with the automatic application activity of described workflow in the described assembly is called in reflection, realizes correspondent service logic.
As can be seen, the embodiment of the invention can produce following beneficial effect: in the embodiment of the invention, owing to be that service logic is packaged into assembly, and in the work flow operation process, described assembly is called in reflection, realize correspondent service logic, packaged business logic components can be reused under different service environments, uses very convenient; And assembly just can in time be debugged on stream, and development progress is very fast relatively.
Further, utilize assembly to realize service logic, the application personnel do not need to pay close attention to concrete implementation method, have alleviated work load relatively; And the flexibility ratio that service logic realizes also is improved.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method flow diagram of business logic processing in a kind of workflow of providing of the embodiment of the invention one;
Fig. 2 is the method flow diagram of business logic processing in a kind of workflow of providing of the embodiment of the invention two;
Fig. 3 is the device synoptic diagram of business logic processing in a kind of workflow of providing of the embodiment of the invention three.
Embodiment
The embodiment of the invention provides the method and apparatus of business logic processing in a kind of workflow, and the business logic components of encapsulation can be implemented in reusing under the different business environment, uses very convenient; And assembly just can in time be debugged on stream, and development progress is very fast relatively.
For make goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the drawings and specific embodiments to further detailed explanation of the present invention.
Embodiment one,
Referring to Fig. 1, be the method flow diagram of business logic processing in a kind of workflow of providing of the embodiment of the invention one, specifically can comprise:
Step 110, service logic is packaged into assembly;
The service logic that can utilize developing instrument (for example, vs.net2005) that user individual business is handled is packaged into assembly, and form that can DDL (Dynamic Link Library, dynamic link library) is issued.
Step 120, by configuration operation, described component groups is installed in the Workflow system;
Can be the relevant information of in database, describing described assembly specifically, make Workflow system can discern and call described assembly.
Step 130, in the work flow operation process, described assembly is called in reflection, realizes correspondent service logic.
Specifically can be earlier in the workflow defining process, select and dispose described assembly, in the automatic application activity of workflow, call method associated therewith in the described assembly, realize correspondent service logic by interface reflection.
As can be seen, in this enforcement, owing to be that service logic is packaged into assembly, and in the work flow operation process, business logic components is called in reflection, realizes correspondent service logic, packaged business logic components can be reused under different service environments, uses very convenient; And assembly just can in time be debugged on stream, and development progress is very fast relatively.
Further, utilize assembly to realize service logic, the application personnel do not need to pay close attention to concrete implementation method, have alleviated work load relatively; And the flexibility ratio that service logic realizes also is improved.
Embodiment two,
Referring to Fig. 2, be the method flow diagram of business logic processing in a kind of workflow of providing of the embodiment of the invention two, specifically can comprise:
Step 201, encapsulation business logic components;
For the individual business of realizing the user is handled, the service logic that can utilize developing instrument (for example, vs.net2005) that user individual business is handled is packaged into assembly, calls the business processing that packaged business logic components just can realize user individual.
A plurality of methods can be encapsulated in the assembly, and then a plurality of relevant service logics can be realized.Assembly provides the interface of each method, can pass through the diverse ways interface, and the distinct methods of invocation component is realized relevant service logic.
Business logic components can be issued with the form of DDL, and then can in other application program, be used easily.
Step 202, by configuration operation, business logic components is assembled in the Workflow system;
In order to realize business logic components need being assembled in the Workflow system usually, allow Workflow system can discern described business logic components to the calling of business logic components.
Business logic components is assembled in the Workflow system specifically can is: input or the like the relevant information of in database, describing DDL title, NameSpace, method name and the method for described business logic components method interface.By in Workflow system business logic components being carried out above-mentioned configuration operation, Workflow system just can be discerned described business logic components.
Step 203, in the workflow defining process, select and the configuration service logic module;
, before operation, can define workflow earlier in workflow, mainly can define activity and operation rule that workflow comprises.Therefore in the workflow defining process, just can select the correlating method of business logic components for the automatic application activity of workflow, further the input of collocation method interface.
By above-mentioned selection and configuration, just can realize that business logic components is reflected to have called in the automatic application activity of workflow.
Step 204, in the work flow operation process, business logic components is called in reflection, realizes correspondent service logic.
In Workflow system, workflow engine be used to the to push the work forward operation of stream, the workflow adapter can be used to be connected external module and workflow engine, calls so that external module can be reflected in the automatic application activity of workflow easily.
Workflow can be moved under the promotion of workflow engine, under the workflow mode adapter, in the automatic application activity of workflow, calls business logic components method associated therewith by interface reflection, realizes correspondent service logic.
The result of business logic processing can be kept in the output parameter of correlating method, and then can be employed in other activity of workflow.
As can be seen, in this enforcement, owing to be that service logic is packaged into assembly, and in the work flow operation process, business logic components is called in reflection, realizes correspondent service logic, packaged business logic components can be reused under different service environments, uses very convenient; And assembly just can in time be debugged on stream, and development progress is very fast relatively.
Further, utilize assembly to realize service logic, the application personnel do not need to pay close attention to concrete implementation method, have alleviated work load relatively; And the flexibility ratio that service logic realizes also is improved.
Accordingly, the embodiment of the invention also provides the device of business logic processing in a kind of workflow.
Embodiment three,
Referring to Fig. 3, be the device synoptic diagram of a kind of workflow processing of providing of the embodiment of the invention three, described device specifically can comprise: component package unit 310, assembly module units 320 and call and realize unit 330.
Component package unit 310 is used for service logic is packaged into assembly.
Described component package unit 310 specifically can be used to utilize developing instrument, and service logic is packaged into assembly, and issues with the form of dynamic link library.
Assembly module units 320 is used for by configuration operation, and described component groups is installed in the Workflow system.
Described assembly module units 320 specifically can be used for describing at database the relevant information of described assembly, for example can describe the input or the like of interface name, NameSpace, method name and the method for described assembly in database.
Call and realize unit 330, be used in the work flow operation process, described assembly is called in reflection, realizes correspondent service logic.
Described calling realizes that unit 330 specifically can be used in the work flow operation process, and method related with the automatic application activity of described workflow in the described assembly is called in reflection, realizes correspondent service logic.
The result of business logic processing can be kept in the output parameter of correlating method, and then can be employed in other activity of workflow.
Need to prove that the described function of each module of the described device of present embodiment can be according to embodiment two described method specific implementations.
In sum, in the technical scheme of the embodiment of the invention, owing to be that service logic is packaged into assembly, and in the work flow operation process, business logic components is called in reflection, realize correspondent service logic, packaged business logic components can be reused under different service environments, uses very convenient; And assembly just can in time be debugged on stream, and development progress is very fast relatively.
Further, utilize assembly to realize service logic, the application personnel do not need to pay close attention to concrete implementation method, have alleviated work load relatively; And the flexibility ratio that service logic realizes also is improved.
Need to prove, for aforesaid each method embodiment, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the instructions all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.
More than the method and apparatus of business logic processing in a kind of workflow that the embodiment of the invention provided is described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (8)

1, the method for business logic processing in a kind of workflow is characterized in that, comprising:
Service logic is packaged into assembly;
By configuration operation, described component groups is installed in the Workflow system;
In the work flow operation process, described assembly is called in reflection, realizes correspondent service logic.
2, the method for business logic processing in the workflow according to claim 1 is characterized in that, describedly service logic is packaged into assembly is specially:
Service logic is packaged into assembly, and issues with the form of dynamic link library.
3, the method for business logic processing in the workflow according to claim 2 is characterized in that, and is described by configuration operation, described component groups installed in the Workflow system be specially:
The relevant information of described assembly is described in database.
According to the method for business logic processing in each described workflow of claim 1 to 3, it is characterized in that 4, described in the work flow operation process, described assembly is called in reflection, realize that correspondent service logic is specially:
In the work flow operation process, method related with the automatic application activity of described workflow in the described assembly is called in reflection, realizes correspondent service logic.
5, the device of business logic processing in a kind of workflow is characterized in that, comprising:
The component package unit is used for service logic is packaged into assembly;
The assembly module units is used for by configuration operation, and described component groups is installed in the Workflow system;
Call the realization unit, be used in the work flow operation process, described assembly is called in reflection, realizes correspondent service logic.
6, the device of business logic processing in the workflow according to claim 5 is characterized in that, described component package unit specifically is used for service logic is packaged into assembly, and issues with the form of dynamic link library.
7, the device of business logic processing in the workflow according to claim 6 is characterized in that described assembly module units specifically is used for describing at database the relevant information of described assembly.
8, according to the device of business logic processing in each described workflow of claim 5 to 7, it is characterized in that, described calling realizes that the unit specifically is used in the work flow operation process, method related with the automatic application activity of described workflow in the described assembly is called in reflection, realizes correspondent service logic.
CNA2008101745232A 2005-08-09 2005-08-09 Service logical processing method and apparatus in workflow Pending CN101388089A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008101745232A CN101388089A (en) 2005-08-09 2005-08-09 Service logical processing method and apparatus in workflow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008101745232A CN101388089A (en) 2005-08-09 2005-08-09 Service logical processing method and apparatus in workflow

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN2005800266377A Division CN101006371B (en) 2004-08-10 2005-08-09 single mode fiber

Publications (1)

Publication Number Publication Date
CN101388089A true CN101388089A (en) 2009-03-18

Family

ID=40477498

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008101745232A Pending CN101388089A (en) 2005-08-09 2005-08-09 Service logical processing method and apparatus in workflow

Country Status (1)

Country Link
CN (1) CN101388089A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456185A (en) * 2010-10-29 2012-05-16 金蝶软件(中国)有限公司 Distributed workflow processing method and distributed workflow engine system
CN105320556A (en) * 2015-08-11 2016-02-10 北京思特奇信息技术股份有限公司 Message processing method and system
TWI576776B (en) * 2011-12-30 2017-04-01 鼎捷軟件股份有限公司 Method and device for processing business logic
CN107798617A (en) * 2017-04-07 2018-03-13 平安科技(深圳)有限公司 Insurance business treating method and apparatus
CN108428184A (en) * 2017-12-01 2018-08-21 中国平安财产保险股份有限公司 Data processing method, storage medium when a kind of taking out insurances and server
CN110297625A (en) * 2018-03-22 2019-10-01 阿里巴巴集团控股有限公司 The processing method and processing device of application
CN111091468A (en) * 2019-11-14 2020-05-01 泰康保险集团股份有限公司 Policy data processing method and device, storage medium and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020109682A1 (en) * 2001-02-09 2002-08-15 Intrinsic Graphics, Inc. Method, system and computer program product for efficiently utilizing limited resources in a graphics device
US20040103389A1 (en) * 2002-11-27 2004-05-27 Moon Sub Song System and method for generating EJB components from reusable business logics in servlet program
CN1852177A (en) * 2005-10-13 2006-10-25 华为技术有限公司 Testing adopter and testing tool system and detecting method
CN1932759A (en) * 2006-10-13 2007-03-21 上海科泰世纪科技有限公司 Method for adapting and extending XML tag and assembly in structural software system
CN101110031A (en) * 2006-07-21 2008-01-23 西门子公司 Misconnect interface for flexible online/offline deployment of n-tier software applications
CN101119370A (en) * 2007-08-24 2008-02-06 中兴通讯股份有限公司 Call management system, method and IMS terminal for IMS terminal
CN101122940A (en) * 2007-09-30 2008-02-13 金蝶软件(中国)有限公司 USBKEY integration method and device
CN101216838A (en) * 2008-01-15 2008-07-09 中兴通讯股份有限公司 XML interface configuration file distribute system and method based on WEB marker
CN101216761A (en) * 2007-12-28 2008-07-09 北京邮电大学 Telecom Application Software Framework for NGN Service Development

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020109682A1 (en) * 2001-02-09 2002-08-15 Intrinsic Graphics, Inc. Method, system and computer program product for efficiently utilizing limited resources in a graphics device
US20040103389A1 (en) * 2002-11-27 2004-05-27 Moon Sub Song System and method for generating EJB components from reusable business logics in servlet program
CN1852177A (en) * 2005-10-13 2006-10-25 华为技术有限公司 Testing adopter and testing tool system and detecting method
CN101110031A (en) * 2006-07-21 2008-01-23 西门子公司 Misconnect interface for flexible online/offline deployment of n-tier software applications
CN1932759A (en) * 2006-10-13 2007-03-21 上海科泰世纪科技有限公司 Method for adapting and extending XML tag and assembly in structural software system
CN101119370A (en) * 2007-08-24 2008-02-06 中兴通讯股份有限公司 Call management system, method and IMS terminal for IMS terminal
CN101122940A (en) * 2007-09-30 2008-02-13 金蝶软件(中国)有限公司 USBKEY integration method and device
CN101216761A (en) * 2007-12-28 2008-07-09 北京邮电大学 Telecom Application Software Framework for NGN Service Development
CN101216838A (en) * 2008-01-15 2008-07-09 中兴通讯股份有限公司 XML interface configuration file distribute system and method based on WEB marker

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456185A (en) * 2010-10-29 2012-05-16 金蝶软件(中国)有限公司 Distributed workflow processing method and distributed workflow engine system
CN102456185B (en) * 2010-10-29 2014-06-11 金蝶软件(中国)有限公司 Distributed workflow processing method and distributed workflow engine system
TWI576776B (en) * 2011-12-30 2017-04-01 鼎捷軟件股份有限公司 Method and device for processing business logic
CN105320556A (en) * 2015-08-11 2016-02-10 北京思特奇信息技术股份有限公司 Message processing method and system
CN107798617A (en) * 2017-04-07 2018-03-13 平安科技(深圳)有限公司 Insurance business treating method and apparatus
CN108428184A (en) * 2017-12-01 2018-08-21 中国平安财产保险股份有限公司 Data processing method, storage medium when a kind of taking out insurances and server
CN110297625A (en) * 2018-03-22 2019-10-01 阿里巴巴集团控股有限公司 The processing method and processing device of application
CN110297625B (en) * 2018-03-22 2023-08-08 阿里巴巴集团控股有限公司 Application processing method and device
CN111091468A (en) * 2019-11-14 2020-05-01 泰康保险集团股份有限公司 Policy data processing method and device, storage medium and electronic equipment
CN111091468B (en) * 2019-11-14 2023-08-22 泰康保险集团股份有限公司 Policy data processing method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US6067413A (en) Data representation for mixed-language program development
US6507842B1 (en) System and method for importing and exporting test executive values from or to a database
KR101699981B1 (en) Memory optimization of virtual machine code by partitioning extraneous information
CN100401265C (en) Keyword-driven automated testing system and method
CN103279358A (en) Interpreted dynamic business component construction method for industrial applications
CN102855178A (en) Method and device for generating Mock base during unit test
EP1582985A2 (en) Test case inheritance controlled via attributes
KR20140067018A (en) Describing native application programming interfaces of an operating system with metadata
US8707249B2 (en) Workflow execution model
CN108459962A (en) Code specification detection method, device, terminal device and storage medium
CN111966760A (en) Hive data warehouse-based test data generation method and device
CN114996319B (en) Data processing method, device and equipment based on rule engine and storage medium
CN112181378B (en) Method and device for realizing business process
CN101388089A (en) Service logical processing method and apparatus in workflow
CN104699518A (en) Multi-purpose meter reading machine adapter based on microkernel plug-in and realization method thereof
CN112988145A (en) Method for generating aeroengine software architecture and aeroengine control device
CN108874395B (en) Hard compiling method and device in modular stream processing process
Winston et al. On to JAVA
US7577541B1 (en) Test services provider
Späth Learn Kotlin for Android Development
CN116931912A (en) Code generation method, system and medium based on Velocity template engine
Starr et al. Models to Code
CN110008035A (en) Data-interface extended method, data processing method, device and equipment
Ludewig ESPRESO—A System for Process Control Software Specification
CN114579470A (en) A unit testing method, device, electronic device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
CI01 Publication of corrected invention patent application

Correction item: Original application number of the case

False: 200580026637.7

Number: 11

Page: 626

Volume: 25

CI02 Correction of invention patent application

Correction item: Original application number of the case

False: 200580026637.7

Number: 11

Page: The title page

Volume: 25

ERR Gazette correction

Free format text: CORRECT: ORIGINAL APPLICATION NUMBER OF DIVISION; FROM: 200580026637.7 TO: NONE

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20090318