WO2017193715A1 - 一种流程调度方法及装置、设备 - Google Patents
一种流程调度方法及装置、设备 Download PDFInfo
- Publication number
- WO2017193715A1 WO2017193715A1 PCT/CN2017/078294 CN2017078294W WO2017193715A1 WO 2017193715 A1 WO2017193715 A1 WO 2017193715A1 CN 2017078294 W CN2017078294 W CN 2017078294W WO 2017193715 A1 WO2017193715 A1 WO 2017193715A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- service
- server
- script
- process script
- transaction
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
Definitions
- the present invention relates to the field of service management technologies, and in particular, to a process scheduling method, apparatus, and device.
- FIG. 1 Show the trading scenario.
- the transaction pre-position is a transaction initiation system
- the service processing system classifies according to the pre-initiated service type, and processes the unified service type in a solidification process, and different services have different business processing flows.
- Figure 1 it can be seen that there are a large number of identical internal services in the two service processing flows in the service processing system.
- the types of transactions increase and the number of system access parties increases, such a business processing method will make the service
- the processing system becomes extremely large and redundant, reducing the processing efficiency of the business processing system.
- the embodiments of the present invention provide a process scheduling method, device, and device, which are used to implement flexible and variable service processing and improve service processing performance.
- a process scheduling method provided by an embodiment of the present invention includes:
- the server acquires a transaction request sent by the transaction terminal
- the server sequentially invokes the service in the process script to perform service processing according to the process steps between the services, and obtains a service processing result;
- the server sends the service processing result to the transaction terminal.
- the process script is pre-stored in the server, and each type of transaction request corresponds to a process script.
- the method further includes:
- the server parses the process script and parses the text language in the process script into a machine language.
- the server sequentially invokes the service in the process script to perform service processing according to the process step between the services, including:
- the service in the process script includes at least a first service and a second service that are sequentially executed;
- the server saves the transaction request in a setting area, where the setting area is used to save all information generated in the execution of the process script;
- the server saves the first service execution result in the setting area, and when the second service is invoked, sends information corresponding to the second service in the information saved in the setting area to The second service.
- the server sends a service call to the external server when the third service needs to be invoked.
- the service call request is used to instruct the external server to execute the third service;
- the server stores the received execution result sent by the external server in the setting After the area, continue the follow-up business process.
- the information corresponding to the first service further includes a number of the process script, so that the first service feeds back the execution result to a script flow corresponding to the number of the process script.
- the server sends a transaction processing request to the external server, where the transaction processing request includes the process script to indicate the external
- the server performs business processing according to the process script
- the server acquires a service processing result sent by the external server.
- the method further includes: the server acquiring service demand information and service change information;
- the server modifies the process script according to the acquired service requirement information and service change information, and stores the process script.
- the embodiment of the present invention further provides a process scheduling apparatus, including:
- An obtaining unit configured to acquire a transaction request sent by the transaction terminal
- a determining unit configured to determine, according to the transaction request acquired by the acquiring unit, a process script corresponding to the transaction request, where the process script includes a service identifier of a service to be invoked to execute the transaction request, and a process step between the services;
- a processing unit configured to sequentially invoke a service in the process script to perform service processing according to a process step between the services, to obtain a service processing result
- a sending unit configured to send the service processing result obtained by the processing unit to the transaction terminal.
- the process script is pre-stored in the server, and each type of transaction request corresponds to a process script.
- the processing unit is further configured to:
- the process script is parsed, and the text language in the process script is parsed into a machine language.
- the processing unit is specifically configured to:
- the service in the process script includes at least a first service and a second service that are sequentially executed;
- the sending unit is further configured to: if the process script further includes a third service, where the third service is a service that needs to be executed by an external server, when the third service needs to be invoked, The external server sends a service call request, the service call request is used to instruct the external server to execute the third service;
- the processing unit is configured to: after the execution result sent by the external server received by the acquiring unit is stored in the setting area, continue the subsequent service processing procedure.
- the information corresponding to the first service further includes a number of the process script, so that the first service feeds back the execution result to a script flow corresponding to the number of the process script.
- the sending unit is further configured to: if the service to be invoked included in the process script is located on an external server, send a transaction processing request to the external server, where the transaction processing request includes the process script, Instructing the external server to perform business processing according to the process script;
- the obtaining unit is further configured to obtain a service processing result sent by the external server.
- the obtaining unit is further configured to obtain service requirement information and service change information;
- the processing unit is further configured to modify the process script according to the acquired service requirement information and service change information, and store the solution.
- an embodiment of the present invention provides a process scheduling device, including:
- At least one processor and,
- the memory stores instructions executable by the at least one processor, the instructions being The at least one processor executes to enable the at least one processor to perform the flow scheduling method of the first aspect above.
- an embodiment of the present invention provides a non-transitory computer readable storage medium, where the non-transitory computer readable storage medium stores computer instructions for causing the computer to perform the first aspect described above Process scheduling method in .
- an embodiment of the present invention provides a computer program product, the computer program product comprising a computing program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instruction When executed by a computer, the computer is caused to execute the flow scheduling method in the above first aspect.
- the embodiment of the present invention indicates that the server determines a transaction script corresponding to the transaction request according to the transaction request by acquiring a transaction request sent by the transaction terminal, where the process script includes a service identifier of the service to be invoked to execute the transaction request, and between the services.
- the process steps can reduce system redundancy by setting up process scripts, avoiding the problem of system anomaly and redundancy caused by a set of services corresponding to each category of transactions, and the server according to the process steps between the services
- the service in the process script is called to perform business processing, and the business processing result is obtained, and the business processing result is sent to the transaction terminal.
- FIG. 1 is a schematic structural diagram of a system according to an embodiment of the present disclosure
- FIG. 2 is a schematic flowchart of a process scheduling method according to an embodiment of the present invention.
- FIG. 3 is a schematic flowchart diagram of a process script parsing method according to an embodiment of the present invention.
- FIG. 4 is a schematic flowchart diagram of a process scheduling method according to an embodiment of the present disclosure.
- FIG. 5 is a schematic structural diagram of a process scheduling apparatus according to an embodiment of the present disclosure.
- FIG. 6 is a schematic structural diagram of a device for process scheduling according to an embodiment of the present invention.
- FIG. 1 is a structural diagram of a system suitable for process scheduling according to an embodiment of the present invention.
- the system includes a server 101 and a transaction terminal 102.
- the server 101 can be a transaction backend server for processing various transaction flows.
- the transaction terminal 102 can be a transaction initiation system, such as a POS machine that can be a receipt in a supermarket, a payment terminal, or the like that can initiate a transaction.
- the server 101 and the transaction terminal 102 can communicate by wireless or by wire.
- FIG. 2 exemplarily shows a flow of a process scheduling method provided by an embodiment of the present invention, which may be executed by a process scheduling device, which may be a server or may be located in a server.
- Step 201 The server acquires a transaction request sent by the transaction terminal.
- Step 202 The server determines a process script corresponding to the transaction request according to the transaction request.
- Step 203 The server sequentially invokes the service in the process script to perform service processing according to the process steps between the services, and obtains a service processing result.
- Step 204 The server sends the service processing result to the transaction terminal.
- the transaction terminal when a new transaction occurs, the transaction terminal initiates a transaction request and sends the transaction request to the server.
- the above process script is pre-stored in the server, such as can be stored in the data storage unit of the server.
- Each type of transaction request corresponds to a process script, which is a process script It is pre-configured and stored on the server.
- the script language allows you to clearly display the path of the process processing during configuration.
- a process script can be configured to:
- svcA, svcB, svcC, and svcD are the identifiers of service A, service B, service C, and service D, respectively, and the keywords in the script are defined as:
- CALL Call the service, the example means to call the svcA service
- SEND Calling the service. Unlike CALL, CALL needs to wait for the service to finish processing before continuing to process the script. SEND does not have to wait for the service to complete.
- the process steps required for each type of transaction can be configured as process scripts, and different types of transactions can be flexibly configured with different process scripts.
- the process script includes a service identifier of a service that needs to be invoked to execute the above transaction request and a process step between the services, the process script being pre-configured.
- a set of independent and different services is established in one server, and each service function is single, and each service can implement processing of a certain service. Compared with a fixed set of services corresponding to each transaction type in the prior art, The embodiment of the invention reduces system redundancy and improves system scalability and maintainability.
- the server may also modify the process script according to business requirements and business changes. Specifically, the server first obtains service requirement information and service change information, and then, according to the service requirement information and the service change information, modifies the process script, and stores the modified process script.
- the server needs to parse the process script corresponding to the transaction request determined according to the transaction request, and parse the text language in the process script into a machine. Language.
- parsing method of the process script shown in FIG. 3 is specifically as follows:
- Step 301 start.
- step 302 the first line of valid statements is read.
- step 303 it is determined whether the reading is successful. If yes, the process proceeds to step 304. If not, the process proceeds to step 309.
- step 304 the statement keyword is analyzed.
- Step 305 parsing the content of the statement.
- Step 306 grammar checking and storing the parsing result.
- step 307 it is determined whether the grammar check is passed. If yes, the process proceeds to step 308. If not, the process proceeds to step 310.
- step 308 the next line of valid statements is continued to be read.
- step 310 the failure exits.
- the server parses the process script, it is stored in the in-memory data structure and is called for execution when the server service processes.
- the server sequentially invokes the service corresponding to the service identifier in the process script to perform business processing according to the process steps between the services in the process script.
- the service in the process script includes at least a first service and a second service that are sequentially executed.
- the server saves the above transaction request in a setting area, which is used to save all the information generated during the execution of the process script, so as to know the entire process of the entire transaction through the saved information.
- the server executes the process script, and sends the information corresponding to the first service in the information saved in the setting area to the first service when the first service is invoked, so that the first service completes its corresponding service processing. Afterwards, the server saves the first service execution result in the setting area, and sends the information corresponding to the second service in the information saved in the setting area to the second service when the second service is invoked, so that the second The service completes its corresponding business processing.
- the process script further includes a third service
- the third service is a service that needs to be executed by the external server
- the server sends a service call request to the external server when the third service needs to be invoked
- the service invocation request is used to instruct the external server to execute the third service.
- the external server invokes its internal third service, and sends the transaction information to the third service for execution, and feeds back the execution result to the server.
- the server After the server stores the execution result sent by the external server in the setting area, the server continues to execute the subsequent business process flow.
- the information corresponding to the first service sent by the server to the first service further includes a number of the process script, so that the first service feeds the execution result to the process.
- the script flow corresponding to the script number It is possible to avoid the problem that it is impossible to distinguish which script process the execution result is fed back to because the multiple process scripts simultaneously call the first service.
- the server needs to send a transaction processing request to the external server, where the transaction processing request includes a process script to indicate the external server.
- the business process is performed according to the process script, and the external server sends the result of the business process according to the process script to the server.
- the server obtains the business processing result sent by the external server, stores it, and then sends it to the transaction terminal.
- the process of the process scheduling method shown in FIG. 4 is executed by a process scheduling device in a server, and the specific steps of the process include:
- step 1 the transaction terminal I sends a transaction request.
- the server accepts the transaction request and selects its corresponding process script I based on the transaction request. Then parsing the process script I and performing the parsing After the process script I.
- step 2 the process script I specifies the CALL service A, and the server sends the transaction information to the service A. After receiving the transaction information, the service A provides the business service processing, and then feeds back the execution result to the server.
- the server executes the following script statements in sequence according to the last execution position of the process script I until the CALL service B is specified in the process script I.
- Step 3 The server sends the transaction information corresponding to the service B to the service B.
- the service B receives the transaction information from the service A, and sends the transaction to the service C.
- Step 4 In the same step 3, the service C receives the transaction from the service B, and after the service is processed, sends the transaction to the service D.
- Step 5 in the same step 4, service D receives the transaction from service C, and service D ends the transaction.
- step 6 the server sends the transaction result processed by the service D to the transaction terminal 1.
- step 1' the transaction terminal II sends a transaction request.
- the server accepts the transaction request and selects its corresponding process script II based on the transaction request. Then, the process script II is parsed, and the parsed process script II is executed.
- step 2' the CALL service A is specified in the process script II, and the server transmits the transaction information to the service A. After receiving the transaction information, the service A provides the business service processing, and then feeds back the execution result to the server.
- the server executes the following script statements in sequence according to the last execution position of the process script II until the CALL service C is specified in the process script II.
- step 3' the server sends the transaction information corresponding to the service C to the service C.
- the service C receives the transaction information from the service A and sends the transaction to the service G.
- Step 4' in the same step 3', the service G receives the transaction from the service C, and the transaction ends after the business processing is completed.
- step 5' the server sends the transaction result processed by the service G to the transaction terminal II.
- the above embodiment indicates that the server determines a transaction script corresponding to the transaction request according to the transaction request by acquiring a transaction request sent by the transaction terminal, where the flow script includes a service identifier of the service to be invoked to execute the transaction request, and between the services.
- Process steps, by setting up process scripts The system redundancy is reduced, and the problem that the system is abnormally large and redundant due to a set of services corresponding to each category of transactions is avoided, and the server sequentially invokes the service in the process script to perform business processing according to the process steps between the services. Obtaining a business processing result, and transmitting the business processing result to the transaction terminal.
- FIG. 5 exemplarily shows a structure of a flow scheduling apparatus according to an embodiment of the present invention.
- the apparatus may perform a flow of process scheduling, and the apparatus may be a server or may be located in a server.
- the device specifically includes:
- the obtaining unit 501 is configured to acquire a transaction request sent by the transaction terminal;
- a determining unit 502 configured to determine, according to the transaction request acquired by the acquiring unit, a process script corresponding to the transaction request, where the process script includes a service identifier of a service to be invoked to execute the transaction request, and a process step between each service ;
- the processing unit 503 is configured to sequentially invoke the service in the process script to perform service processing according to the process step between the services, to obtain a service processing result;
- the sending unit 504 is configured to send the service processing result obtained by the processing unit to the transaction terminal.
- the process script is pre-stored in the server, and each type of transaction request corresponds to a process script.
- processing unit 503 is further configured to:
- the process script is parsed, and the text language in the process script is parsed into a machine language.
- the processing unit 503 is specifically configured to:
- the service in the process script includes at least a first service and a second service that are sequentially executed;
- the first service When the first service is invoked, the first service in the information saved in the setting area Corresponding information is sent to the first service;
- the sending unit 504 is further configured to: if the process script further includes a third service, where the third service is a service that needs to be executed by an external server, when the third service needs to be invoked, The external server sends a service call request, where the service call request is used to instruct the external server to execute the third service;
- the processing unit 503 is specifically configured to: after the execution result sent by the external server received by the acquiring unit is stored in the setting area, continue the subsequent service processing procedure.
- the information corresponding to the first service further includes a number of the process script, so that the first service feeds back the execution result to a script flow corresponding to the number of the process script.
- the sending unit 504 is further configured to: if the service to be called included in the process script is located in an external server, send a transaction processing request to the external server, where the transaction processing request includes the process script Instructing the external server to perform business processing according to the process script;
- the obtaining unit 501 is further configured to obtain a service processing result sent by the external server.
- the obtaining unit 501 is further configured to acquire service requirement information and service change information;
- the processing unit 503 is further configured to modify the process script according to the acquired service requirement information and service change information, and store the process script.
- an embodiment of the present invention provides a process scheduling device. At least one processor; and a memory communicatively coupled to the at least one processor; the memory storing instructions executable by the at least one processor, the instructions being executed by the at least one processor such that The at least one processor is capable of executing the flow scheduling method in the above embodiments.
- FIG. 6 is a structure of a process scheduling device according to an embodiment of the present invention.
- the process scheduling device 600 includes: a transceiver 601, a processor 602, a memory 603, and a bus system 604.
- the memory 603 is used to store a program.
- the program can include program code, the program code including computer operating instructions.
- the memory 603 may be a random access memory (RAM) or a non-volatile memory, such as at least one disk storage. Only one memory is shown in the figure, of course, the memory can also be set to a plurality as needed. Memory 603 can also be a memory in processor 602.
- the memory 603 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:
- Operation instructions include various operation instructions for implementing various operations.
- Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
- Processor 602 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing process scheduling method may be completed by an integrated logic circuit of hardware in the processor 602 or an instruction in a form of software.
- the processor 602 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component.
- DSP digital signal processor
- ASIC application specific integrated circuit
- FPGA field programmable gate array
- the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
- the steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
- the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
- the storage medium is located in the memory 603, and the processor 602 reads the information in the memory 603 and performs the following steps in conjunction with its hardware:
- the transceiver 601 is configured to acquire a transaction request sent by the transaction terminal;
- the processor 602 is configured to determine, according to the transaction request acquired by the transceiver 601, a process script corresponding to the transaction request, where the process script includes a service identifier of a service to be invoked to execute the transaction request, and between services Process steps; according to the process steps between the services Performing business processing with the service in the process script to obtain a business processing result;
- the transceiver 601 is further configured to send the service processing result obtained by the processor 602 to the transaction terminal.
- the process script is pre-stored in the server, and each type of transaction request corresponds to a process script.
- the processor 602 is specifically configured to:
- the process script is parsed, and the text language in the process script is parsed into a machine language.
- the processor 602 is specifically configured to:
- the processor 602 is specifically configured to:
- the service in the process script includes at least a first service and a second service that are sequentially executed;
- the transceiver 601 is further configured to: if the process script further includes a third service, where the third service is a service that needs to be executed by an external server, when the third service needs to be invoked, The external server sends a service call request, where the service call request is used to instruct the external server to execute the third service;
- the processor 602 is specifically configured to send the external server received by the transceiver 601 After the executed execution result is stored in the set area, the subsequent business process flow is continued.
- the information corresponding to the first service further includes a number of the process script, so that the first service feeds back the execution result to a script flow corresponding to the number of the process script.
- the transceiver 601 is further configured to: if the service to be invoked included in the process script is located on an external server, send a transaction processing request to the external server, where the transaction processing request includes the process script Instructing the external server to perform service processing according to the process script; and acquiring a service processing result sent by the external server.
- the transceiver 601 is further configured to obtain service requirement information and service change information;
- the processor 602 is further configured to modify the process script according to the service requirement information and the service change information acquired by the transceiver 601, and store the file through the memory 603.
- the flow scheduling device of the embodiment of the present invention exists in various forms, including but not limited to:
- Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access.
- Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
- the present invention also provides a non-transitory computer readable storage medium storing computer instructions for causing the computer to execute the process of any of the above Scheduling method.
- the present invention also provides a computer program product, the computer program product comprising the A computing program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the flow scheduling method of any of the above.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本发明实施例公开了一种流程调度方法及装置、设备,该方法包括服务器通过获取交易终端发送的交易请求,根据所述交易请求确定交易请求对应的流程脚本,该流程脚本包括执行所述交易请求需调用的服务的服务标识及各服务之间的流程步骤,通过设置流程脚本可以降低系统冗余,避免出现因每一类别交易对应一套服务集合而引起的系统异常庞大和冗余的问题,服务器依据所述各服务之间的流程步骤依次调用流程脚本中的服务进行业务处理,得到业务处理结果,将所述业务处理结果发送至所述交易终端。通过根据流程脚本中的流程步骤依次调用流程脚本中的服务,可以提高系统的扩展性和易维护性,简化了系统应用调度的开发工作量。
Description
本申请要求在2016年5月10日提交中华人民共和国知识产权局、申请号为201610304916.5,发明名称为“一种流程调度方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明涉及业务管理技术领域,尤其涉及一种流程调度方法及装置、设备。
在互联网金融业务不断壮大的环境中,很多业务流程需要经过多方处理,在某一方处理过程中也需要多个服务参与。每个业务都有它的独特性和公共属性,业务处理系统需要对每个业务设计一个处理服务,即使对业务进行分类,每个分类也是较为复杂的分支处理系统,则会出现如图1所示的交易场景。在图1中,交易前置是交易发起系统,业务处理系统根据前置发起的业务类型进行分类,对统一业务类型的采用固化流程的方式进行处理,不同业务会存在不同的业务处理流程。在图1可以看出业务处理系统中两个业务处理流程中存在大量相同的内部服务,但是,随着交易种类的增加和系统接入方数目的增加,这种进行的业务处理方法会使得业务处理系统变得异常庞大和冗余,降低了业务处理系统的处理效率。
发明内容
本发明实施例提供一种流程调度方法及装置、设备,用以实现灵活多变的业务处理,提高业务处理的性能。
第一方面,本发明实施例提供的一种流程调度方法,包括:
服务器获取交易终端发送的交易请求;
所述服务器根据所述交易请求确定所述交易请求对应的流程脚本,所述流程脚本包括执行所述交易请求需调用的服务的服务标识及各服务之间的流程步骤;
所述服务器依据所述各服务之间的流程步骤依次调用所述流程脚本中的服务进行业务处理,得到业务处理结果;
所述服务器将所述业务处理结果发送至所述交易终端。
优选地,所述流程脚本预先存储在所述服务器中,每类交易请求对应一个流程脚本。
优选地,在所述服务器依据所述各服务之间的流程步骤依次调用所述流程脚本中的服务进行业务处理之前,还包括:
所述服务器对所述流程脚本进行解析,将流程脚本中的文本语言解析为机器语言。
优选地,所述服务器依据所述各服务之间的流程步骤依次调用所述流程脚本中的服务进行业务处理,包括:
所述流程脚本中的服务至少包括依次执行的第一服务和第二服务;
所述服务器将所述交易请求保存在设定区域,所述设定区域用于保存所述流程脚本执行中产生的所有信息;
所述服务器在调用所述第一服务时,将所述设定区域内保存的信息中所述第一服务对应的信息发送给所述第一服务;
所述服务器将所述第一服务执行结果保存在所述设定区域,并在调用所述第二服务时,将所述设定区域内保存的信息中所述第二服务对应的信息发送给所述第二服务。
优选地,若所述流程脚本中还包括第三服务,所述第三服务为需要外部服务器执行的服务,则所述服务器在需要调用所述第三服务时,向所述外部服务器发送服务调用请求,所述服务调用请求用于指示所述外部服务器执行所述第三服务;
所述服务器将接收到的所述外部服务器发送的执行结果存储在所述设定
区域后,继续进行后续业务处理流程。
优选地,所述第一服务对应的信息中还包括所述流程脚本的编号,以使所述第一服务将所述执行结果反馈给所述流程脚本的编号对应的脚本流程。
优选地,若所述流程脚本中包括的需调用的服务均位于外部服务器,则所述服务器向所述外部服务器发送交易处理请求,所述交易处理请求包括所述流程脚本,以指示所述外部服务器根据所述流程脚本进行业务处理;
所述服务器获取所述外部服务器发送的业务处理结果。
优选地,还包括:所述服务器获取业务需求信息及业务变化信息;
所述服务器根据所述获取的业务需要信息及业务变化信息,修改所述流程脚本,并进行存储。
第二方面,本发明实施例还提供了一种流程调度装置,包括:
获取单元,用于获取交易终端发送的交易请求;
确定单元,用于根据所述获取单元获取的交易请求确定所述交易请求对应的流程脚本,所述流程脚本包括执行所述交易请求需调用的服务的服务标识及各服务之间的流程步骤;
处理单元,用于依据所述各服务之间的流程步骤依次调用所述流程脚本中的服务进行业务处理,得到业务处理结果;
发送单元,用于将所述处理单元得到的业务处理结果发送至所述交易终端。
优选地,所述流程脚本预先存储在所述服务器中,每类交易请求对应一个流程脚本。
优选地,所述处理单元还用于:
在依据所述各服务之间的流程步骤依次调用所述流程脚本中的服务进行业务处理之前,对所述流程脚本进行解析,将流程脚本中的文本语言解析为机器语言。
优选地,所述处理单元具体用于:
所述流程脚本中的服务至少包括依次执行的第一服务和第二服务;
将所述交易请求保存在设定区域,所述设定区域用于保存所述流程脚本执行中产生的所有信息;
在调用所述第一服务时,将所述设定区域内保存的信息中所述第一服务对应的信息发送给所述第一服务;
将所述第一服务执行结果保存在所述设定区域,并在调用所述第二服务时,将所述设定区域内保存的信息中所述第二服务对应的信息发送给所述第二服务。
优选地,所述发送单元,还用于若所述流程脚本中还包括第三服务,所述第三服务为需要外部服务器执行的服务,则在需要调用所述第三服务时,向所述外部服务器发送服务调用请求,所述服务调用请求用于指示所述外部服务器执行所述第三服务;
所述处理单元,具体用于将所述获取单元接收到的所述外部服务器发送的执行结果存储在所述设定区域后,继续进行后续业务处理流程。
优选地,所述第一服务对应的信息中还包括所述流程脚本的编号,以使所述第一服务将所述执行结果反馈给所述流程脚本的编号对应的脚本流程。
优选地,所述发送单元,还用于若所述流程脚本中包括的需调用的服务均位于外部服务器,则向所述外部服务器发送交易处理请求,所述交易处理请求包括所述流程脚本,以指示所述外部服务器根据所述流程脚本进行业务处理;
所述获取单元,还用于获取所述外部服务器发送的业务处理结果。
优选地,所述获取单元,还用于获取业务需求信息及业务变化信息;
所述处理单元,还用于根据所述获取的业务需要信息及业务变化信息,修改所述流程脚本,并进行存储。
第三方面,本发明实施例提供了一种流程调度设备,包括:
至少一个处理器;以及,
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所
述至少一个处理器执行,以使所述至少一个处理器能够执行上述第一方面中的流程调度方法。
第四方面,本发明实施例提供了一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行上述第一方面中的流程调度方法。
第五方面,本发明实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述第一方面中的流程调度方法。
本发明实施例表明,服务器通过获取交易终端发送的交易请求,根据所述交易请求确定交易请求对应的流程脚本,该流程脚本包括执行所述交易请求需调用的服务的服务标识及各服务之间的流程步骤,通过设置流程脚本可以降低系统冗余,避免出现因每一类别交易对应一套服务集合而引起的系统异常庞大和冗余的问题,服务器依据所述各服务之间的流程步骤依次调用流程脚本中的服务进行业务处理,得到业务处理结果,将所述业务处理结果发送至所述交易终端。通过根据流程脚本中的流程步骤依次调用流程脚本中的服务,可以提高系统的扩展性和易维护性,简化了系统应用调度的开发工作量。
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。
图1为本发明实施例提供的一种系统架构示意图;
图2为本发明实施例提供的一种流程调度方法的流程示意图;
图3为本发明实施例提供的一种流程脚本解析方法的流程示意图;
图4为本发明实施例提供的一种流程调度方法的流程示意图;
图5为本发明实施例提供的一种流程调度装置的结构示意图;
图6为本发明实施例提供的一种流程调度的设备的结构示意图。
为使本发明的目的、技术方案和优点更加清楚明了,下面结合具体实施例并参照附图,对本发明进一步详细说明。应该理解,这些描述只是示例性的,而并非要限制本发明的范围。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要地混淆本发明的概念。
图1示出了本发明实施例提供的一种适用于流程调度的系统结构图,该系统包括服务器101和交易终端102。该服务器101可以是交易后台服务器,用于处理各种交易流程。该交易终端102可以是交易发起系统,如可以是超市中收款的POS机、收款终端等可以发起交易的装置。
该服务器101与交易终端102可以通过无线或有线进行通信。
基于上述描述,图2示例性的示出了本发明实施例提供的一种流程调度方法的流程,该流程可以由流程调度装置执行,该装置可以是服务器,也可以位于服务器内。
如图2所示,该流程的具体步骤包括:
步骤201,服务器获取交易终端发送的交易请求。
步骤202,服务器根据交易请求确定交易请求对应的流程脚本。
步骤203,服务器依据各服务之间的流程步骤依次调用流程脚本中的服务进行业务处理,得到业务处理结果。
步骤204,服务器将业务处理结果发送至交易终端。
在本发明实施例中,交易终端在有新的交易出现时,会发起交易请求,向服务器发送给交易请求。上述流程脚本预先存储在服务器中,如可以存储在服务器的数据存储单元中。每类交易请求对应一个流程脚本,该流程脚本
是预先配置的,并存储在服务器。在配置流程脚本时,通过脚本语言,可以在配置时清晰明了的显示流程处理的路径。
举例来说,流程脚本的可配置为:
SET TranCode=020101001;
CALL svcA;
IF NOT(SEQ(errno,FFFFFFF))THEN GOTO 2000;
CALL svcB;
DO FUNC();
CALL svcC;
2000SEND svcD WITH END。
其中,svcA、svcB、svcC、svcD分别为服务A、服务B、服务C和服务D的标识,脚本中关键字的定义为:
SET:设置内部域,等号左边是内部域,右边是域值;
CALL:调用服务,例子中表示调用svcA这个服务;
IF:条件判断;
GOTO:脚本跳转语言;
DO:自定义函数执行语句;
SEND:调用服务,与CALL不同的是,CALL需要等服务处理结束才继续处理脚本,SEND则无须等待服务处理完成;
WITH:后面跟着某些行为标志,如WITH END表示脚本结束。
通过上述步骤可以将每类交易需要的流程步骤配置为流程脚本,不同类别的交易,可以灵活的配置不同的流程脚本。该流程脚本包括执行上述交易请求需要调用的服务的服务标识及各服务之间的流程步骤,该流程脚本是预先配置的。配置流程脚本时,可以设置流程脚本的编号,不同的类别的交易对应的流程脚本的编号不同。在本发明实施例中,一个服务器中建立有由一个个独立的不同的服务组成的集合,每个服务功能单一,每个服务可以实现某一业务的处理。与现有技术中每一交易类型对应一套固定的服务集合相比,
本发明实施例降低了系统冗余,提高了系统扩展性和易维护性。
优选地,为了适应业务需求及业务变化,服务器还可以根据业务需求及业务变化,对流程脚本进行修改。具体的,服务器先获取业务需要信息及业务变化信息,然后,根据业务需要信息及业务变化信息对流程脚本进行修改,并将修改后的流程脚本进行存储。
为了使得服务器更好的依据流程脚本中的各服务之间的流程步骤进行业务处理,服务器需要对上述根据交易请求确定的交易请求对应的流程脚本进行解析,将流程脚本中的文本语言解析为机器语言。
举例来说,如图3所示的流程脚本的解析方法,该方法步骤具体为:
步骤301,开始。
步骤302,读取第一行有效语句。
步骤303,判断是否读取成功,若是,则转入步骤304,若否,则转入步骤309。
步骤304,分析语句关键词。
步骤305,解析语句内容。
步骤306,语法检查和将解析结果进行存储。
步骤307,判断是否通过语法检查,若是,则转入步骤308,若否,则转入步骤310。
步骤308,继续读取下一行有效语句。
步骤309,结束。
步骤310,失败退出。
服务器将流程脚本解析后,存储在内存数据结构中,供服务器业务处理时调用执行。服务器依据流程脚本中各服务之间的流程步骤依次调用流程脚本中的服务标识对应的服务进行业务处理。
具体的,流程脚本中的服务至少包括依次执行的第一服务和第二服务。
服务器将上述交易请求保存在设定区域,该设定区域内用于保存流程脚本执行过程中产生的所有信息,以便通过保存的信息获知整个交易全部过程。
服务器执行流程脚本,在调用第一服务时,将在设定区域内保存的信息中该第一服务对应的信息发送给第一服务,以使该第一服务完成其对应的业务处理。之后,服务器将该第一服务执行结果保存在上述设定区域,并在调用第二服务时,将设定区域内保存的信息中第二服务对应的信息发送给第二服务,以使第二服务完成其对应的业务处理。
针对上述流程脚本执行过程中,若流程脚本中还包括第三服务,该第三服务为需要外部服务器执行的服务,则服务器在需要调用该第三服务时,向外部服务器发送服务调用请求,该服务调用请求用于指示外部服务器执行该第三服务。外部服务器在接收到该服务调用请求之后,调用其内部的第三服务,并将交易信息发送给该第三服务进行执行,将执行结果反馈给服务器。
服务器将接收到的外部服务器发送的执行结果存储在设定区域后,继续执行后续业务处理流程。
进一步地,在上述第一服务处理其对应的信息时,服务器发送给第一服务的该第一服务对应的信息中还包括流程脚本的编号,以使该第一服务将执行结果反馈给该流程脚本的编号对应的脚本流程。可以避免出现因多个流程脚本同时调用第一服务而导致无法区别将执行结果反馈给哪个脚本流程的问题。
相应地,针对上述流程脚本执行过程中,若该流程脚本中包括的需要调用的服务均位于外部服务器,则服务器需要向外部服务器发送交易处理请求,该交易处理请求包括流程脚本,以指示外部服务器根据该流程脚本进行业务处理,外部服务器将根据该流程脚本进行业务处理的结果发送给服务器。服务器获取外部服务器发送的业务处理结果,并进行存储,然后发送给交易终端。
举例来说,如图4所示的流程调度方法的流程,该流程由服务器中的流程调度装置执行,该流程具体步骤包括:
步骤1,交易终端I发送一个交易请求。服务器受理该交易请求,根据该交易请求选择其对应的流程脚本I。然后对该流程脚本I进行解析,执行解析
后的流程脚本I。
步骤2,流程脚本I中指定CALL服务A,服务器将交易信息发送给服务A。服务A在接收到交易信息后,提供业务服务处理,然后将执行结果反馈给服务器。服务器根据流程脚本I上一次执行的位置,依次执行后面的脚本语句,直到当流程脚本I中指定CALL服务B。
步骤3,服务器将服务B对应的交易信息发送给服务B,同步骤2,服务B在接收到来自服务A的交易信息,将交易发送给服务C。
步骤4,同步骤3,服务C接收来自服务B的交易,业务处理完毕后,将交易发送给服务D。
步骤5,同步骤4,服务D接收来自服务C的交易,服务D处理后交易结束。
步骤6,服务器将服务D处理后的交易结果发送给交易终端I。
步骤1’,交易终端II发送一个交易请求。服务器受理该交易请求,根据该交易请求选择其对应的流程脚本II。然后对该流程脚本II进行解析,执行解析后的流程脚本II。
步骤2’,流程脚本II中指定CALL服务A,服务器将交易信息发送给服务A。服务A在接收到交易信息后,提供业务服务处理,然后将执行结果反馈给服务器。服务器根据流程脚本II上一次执行的位置,依次执行后面的脚本语句,直到当流程脚本II中指定CALL服务C。
步骤3’,服务器将服务C对应的交易信息发送给服务C,同步骤2’,服务C在接收到来自服务A的交易信息,将交易发送给服务G。
步骤4’,同步骤3’,服务G接收来自服务C的交易,业务处理完毕后交易结束。
步骤5’,服务器将服务G处理后的交易结果发送给交易终端II。
上述实施例表明,服务器通过获取交易终端发送的交易请求,根据所述交易请求确定交易请求对应的流程脚本,该流程脚本包括执行所述交易请求需调用的服务的服务标识及各服务之间的流程步骤,通过设置流程脚本可以
降低系统冗余,避免出现因每一类别交易对应一套服务集合而引起的系统异常庞大和冗余的问题,服务器依据所述各服务之间的流程步骤依次调用流程脚本中的服务进行业务处理,得到业务处理结果,将所述业务处理结果发送至所述交易终端。通过根据流程脚本中的流程步骤依次调用流程脚本中的服务,可以提高系统的扩展性和易维护性,简化了系统应用调度的开发工作量。
图5示例性的示出了本发明实施例提供的一种流程调度装置的结构,该装置可以执行流程调度的流程,该装置可以是服务器,也可以位于服务器内。
如图5所示,该装置具体包括:
获取单元501,用于获取交易终端发送的交易请求;
确定单元502,用于根据所述获取单元获取的交易请求确定所述交易请求对应的流程脚本,所述流程脚本包括执行所述交易请求需调用的服务的服务标识及各服务之间的流程步骤;
处理单元503,用于依据所述各服务之间的流程步骤依次调用所述流程脚本中的服务进行业务处理,得到业务处理结果;
发送单元504,用于将所述处理单元得到的业务处理结果发送至所述交易终端。
优选地,所述流程脚本预先存储在所述服务器中,每类交易请求对应一个流程脚本。
优选地,所述处理单元503还用于:
在依据所述各服务之间的流程步骤依次调用所述流程脚本中的服务进行业务处理之前,对所述流程脚本进行解析,将流程脚本中的文本语言解析为机器语言。
优选地,所述处理单元503具体用于:
所述流程脚本中的服务至少包括依次执行的第一服务和第二服务;
将所述交易请求保存在设定区域,所述设定区域用于保存所述流程脚本执行中产生的所有信息;
在调用所述第一服务时,将所述设定区域内保存的信息中所述第一服务
对应的信息发送给所述第一服务;
将所述第一服务执行结果保存在所述设定区域,并在调用所述第二服务时,将所述设定区域内保存的信息中所述第二服务对应的信息发送给所述第二服务。
优选地,所述发送单元504,还用于若所述流程脚本中还包括第三服务,所述第三服务为需要外部服务器执行的服务,则在需要调用所述第三服务时,向所述外部服务器发送服务调用请求,所述服务调用请求用于指示所述外部服务器执行所述第三服务;
所述处理单元503,具体用于将所述获取单元接收到的所述外部服务器发送的执行结果存储在所述设定区域后,继续进行后续业务处理流程。
优选地,所述第一服务对应的信息中还包括所述流程脚本的编号,以使所述第一服务将所述执行结果反馈给所述流程脚本的编号对应的脚本流程。
优选地,所述发送单元504,还用于若所述流程脚本中包括的需调用的服务均位于外部服务器,则向所述外部服务器发送交易处理请求,所述交易处理请求包括所述流程脚本,以指示所述外部服务器根据所述流程脚本进行业务处理;
所述获取单元501,还用于获取所述外部服务器发送的业务处理结果。
优选地,所述获取单元501,还用于获取业务需求信息及业务变化信息;
所述处理单元503,还用于根据所述获取的业务需要信息及业务变化信息,修改所述流程脚本,并进行存储。
基于相同的技术构思,本发明实施例提供一种流程调度设备。至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述实施例中的流程调度方法。
以一个处理器为例,图6为本发明实施例提供的流程调度设备的结构,该流程调度设备600包括:收发器601、处理器602、存储器603和总线系统604;
其中,存储器603,用于存放程序。具体地,程序可以包括程序代码,程序代码包括计算机操作指令。存储器603可能为随机存取存储器(random access memory,简称RAM),也可能为非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。图中仅示出了一个存储器,当然,存储器也可以根据需要,设置为多个。存储器603也可以是处理器602中的存储器。
存储器603存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:
操作指令:包括各种操作指令,用于实现各种操作。
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。
上述本发明实施例流程调度方法可以应用于处理器602中,或者说由处理器602实现。处理器602可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述流程调度方法的各步骤可以通过处理器602中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器602可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器603,处理器602读取存储器603中的信息,结合其硬件执行以下步骤:
所述收发器601,用于获取交易终端发送的交易请求;
所述处理器602,用于根据所述收发器601获取的交易请求确定所述交易请求对应的流程脚本,所述流程脚本包括执行所述交易请求需调用的服务的服务标识及各服务之间的流程步骤;依据所述各服务之间的流程步骤依次调
用所述流程脚本中的服务进行业务处理,得到业务处理结果;
所述收发器601,还用于将所述处理器602得到的业务处理结果发送至所述交易终端。
优选地,所述流程脚本预先存储在所述服务器中,每类交易请求对应一个流程脚本。
优选地,所述处理器602具体用于:
在依据所述各服务之间的流程步骤依次调用所述流程脚本中的服务进行业务处理之前,对所述流程脚本进行解析,将流程脚本中的文本语言解析为机器语言。
优选地,所述处理器602具体用于:
去除所述第N帧面部灰度图中灰度值大于第一阈值的像素,将所述去除灰度值大于第一阈值的第N帧面部灰度图进行水平积分投影,获取所述第N帧面部灰度图的水平投影曲线。
优选地,所述处理器602具体用于:
所述流程脚本中的服务至少包括依次执行的第一服务和第二服务;
将所述交易请求保存在设定区域,所述设定区域用于保存所述流程脚本执行中产生的所有信息;
在调用所述第一服务时,将所述设定区域内保存的信息中所述第一服务对应的信息发送给所述第一服务;
将所述第一服务执行结果保存在所述设定区域,并在调用所述第二服务时,将所述设定区域内保存的信息中所述第二服务对应的信息发送给所述第二服务。
优选地,所述收发器601,还用于若所述流程脚本中还包括第三服务,所述第三服务为需要外部服务器执行的服务,则在需要调用所述第三服务时,向所述外部服务器发送服务调用请求,所述服务调用请求用于指示所述外部服务器执行所述第三服务;
所述处理器602,具体用于将所述收发器601接收到的所述外部服务器发
送的执行结果存储在所述设定区域后,继续进行后续业务处理流程。
优选地,所述第一服务对应的信息中还包括所述流程脚本的编号,以使所述第一服务将所述执行结果反馈给所述流程脚本的编号对应的脚本流程。
优选地,所述收发器601,还用于若所述流程脚本中包括的需调用的服务均位于外部服务器,则向所述外部服务器发送交易处理请求,所述交易处理请求包括所述流程脚本,以指示所述外部服务器根据所述流程脚本进行业务处理;以及获取所述外部服务器发送的业务处理结果。
优选地,所述收发器601,还用于获取业务需求信息及业务变化信息;
所述处理器602,还用于根据所述收发器601获取的业务需要信息及业务变化信息,修改所述流程脚本,并通过所述存储器603进行存储。
本发明实施例的流程调度设备以多种形式存在,包括但不限于:
(1)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。
(2)其他具有流程调度功能的电子装置。
本领域技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
另外,本发明还提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行上述任一项所述的流程调度方法。
另外,本发明还提供一种计算机程序产品,所述计算机程序产品包括存
储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一项所述的流程调度方法。
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。
Claims (19)
- 一种流程调度方法,其特征在于,包括:服务器获取交易终端发送的交易请求;所述服务器根据所述交易请求确定所述交易请求对应的流程脚本,所述流程脚本包括执行所述交易请求需调用的服务的服务标识及各服务之间的的流程步骤;所述服务器依据所述各服务之间的流程步骤依次调用所述流程脚本中的服务进行业务处理,得到业务处理结果;所述服务器将所述业务处理结果发送至所述交易终端。
- 如权利要求1所述的方法,其特征在于,所述流程脚本预先存储在所述服务器中,每类交易请求对应一个流程脚本。
- 如权利要求1所述的方法,其特征在于,在所述服务器依据所述各服务之间的流程步骤依次调用所述流程脚本中的服务进行业务处理之前,还包括:所述服务器对所述流程脚本进行解析,将流程脚本中的文本语言解析为机器语言。
- 如权利要求1所述的方法,其特征在于,所述服务器依据所述各服务之间的流程步骤依次调用所述流程脚本中的服务进行业务处理,包括:所述流程脚本中的服务至少包括依次执行的第一服务和第二服务;所述服务器将所述交易请求保存在设定区域,所述设定区域用于保存所述流程脚本执行中产生的所有信息;所述服务器在调用所述第一服务时,将所述设定区域内保存的信息中所述第一服务对应的信息发送给所述第一服务;所述服务器将所述第一服务执行结果保存在所述设定区域,并在调用所述第二服务时,将所述设定区域内保存的信息中所述第二服务对应的信息发送给所述第二服务。
- 如权利要求4所述的方法,其特征在于,若所述流程脚本中还包括第三服务,所述第三服务为需要外部服务器执行的服务,则所述服务器在需要调用所述第三服务时,向所述外部服务器发送服务调用请求,所述服务调用请求用于指示所述外部服务器执行所述第三服务;所述服务器将接收到的所述外部服务器发送的执行结果存储在所述设定区域后,继续进行后续业务处理流程。
- 如权利要求4所述的方法,其特征在于,所述第一服务对应的信息中还包括所述流程脚本的编号,以使所述第一服务将所述执行结果反馈给所述流程脚本的编号对应的脚本流程。
- 如权利要求1所述的方法,其特征在于,若所述流程脚本中包括的需调用的服务均位于外部服务器,则所述服务器向所述外部服务器发送交易处理请求,所述交易处理请求包括所述流程脚本,以指示所述外部服务器根据所述流程脚本进行业务处理;所述服务器获取所述外部服务器发送的业务处理结果。
- 如权利要求1至7任一项所述的方法,其特征在于,还包括:所述服务器获取业务需求信息及业务变化信息;所述服务器根据所述获取的业务需要信息及业务变化信息,修改所述流程脚本,并进行存储。
- 一种流程调度装置,其特征在于,包括:获取单元,用于获取交易终端发送的交易请求;确定单元,用于根据所述获取单元获取的交易请求确定所述交易请求对应的流程脚本,所述流程脚本包括执行所述交易请求需调用的服务的服务标识及各服务之间的流程步骤;处理单元,用于依据所述各服务之间的流程步骤依次调用所述流程脚本中的服务进行业务处理,得到业务处理结果;发送单元,用于将所述处理单元得到的业务处理结果发送至所述交易终端。
- 如权利要求9所述的装置,其特征在于,所述流程脚本预先存储在所述服务器中,每类交易请求对应一个流程脚本。
- 如权利要求9所述的装置,其特征在于,所述处理单元还用于:在依据所述各服务之间的流程步骤依次调用所述流程脚本中的服务进行业务处理之前,对所述流程脚本进行解析,将流程脚本中的文本语言解析为机器语言。
- 如权利要求9所述的装置,其特征在于,所述处理单元具体用于:所述流程脚本中的服务至少包括依次执行的第一服务和第二服务;将所述交易请求保存在设定区域,所述设定区域用于保存所述流程脚本执行中产生的所有信息;在调用所述第一服务时,将所述设定区域内保存的信息中所述第一服务对应的信息发送给所述第一服务;将所述第一服务执行结果保存在所述设定区域,并在调用所述第二服务时,将所述设定区域内保存的信息中所述第二服务对应的信息发送给所述第二服务。
- 如权利要求12所述的装置,其特征在于,所述发送单元,还用于若所述流程脚本中还包括第三服务,所述第三服务为需要外部服务器执行的服务,则在需要调用所述第三服务时,向所述外部服务器发送服务调用请求,所述服务调用请求用于指示所述外部服务器执行所述第三服务;所述处理单元,具体用于将所述获取单元接收到的所述外部服务器发送的执行结果存储在所述设定区域后,继续进行后续业务处理流程。
- 如权利要求12所述的装置,其特征在于,所述第一服务对应的信息中还包括所述流程脚本的编号,以使所述第一服务将所述执行结果反馈给所述流程脚本的编号对应的脚本流程。
- 如权利要求9所述的装置,其特征在于,所述发送单元,还用于若所述流程脚本中包括的需调用的服务均位于外部服务器,则向所述外部服务器发送交易处理请求,所述交易处理请求包括所述流程脚本,以指示所述外 部服务器根据所述流程脚本进行业务处理;所述获取单元,还用于获取所述外部服务器发送的业务处理结果。
- 如权利要求9至15任一项所述的装置,其特征在于,所述获取单元,还用于获取业务需求信息及业务变化信息;所述处理单元,还用于根据所述获取的业务需要信息及业务变化信息,修改所述流程脚本,并进行存储。
- 一种流程调度设备,其特征在于,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-8任一所述流程调度方法。
- 一种非暂态计算机可读存储介质,其特征在于,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行权利要求1-8任一所述流程调度方法。
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-8任一所述流程调度方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610304916.5A CN106020948B (zh) | 2016-05-10 | 2016-05-10 | 一种流程调度方法及装置 |
| CN201610304916.5 | 2016-05-10 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017193715A1 true WO2017193715A1 (zh) | 2017-11-16 |
Family
ID=57099244
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/078294 Ceased WO2017193715A1 (zh) | 2016-05-10 | 2017-03-27 | 一种流程调度方法及装置、设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106020948B (zh) |
| WO (1) | WO2017193715A1 (zh) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110297675A (zh) * | 2019-04-23 | 2019-10-01 | 五八有限公司 | 模块间相互调用的方法、装置、电子设备及存储介质 |
| CN111414241A (zh) * | 2020-02-27 | 2020-07-14 | 平安银行股份有限公司 | 批量数据处理方法、装置、系统、计算机设备及计算机可读存储介质 |
| CN111767043A (zh) * | 2020-06-24 | 2020-10-13 | 北京思特奇信息技术股份有限公司 | 基于业务调度引擎的跨系统业务调度方法和系统 |
| CN112181407A (zh) * | 2019-07-04 | 2021-01-05 | 北京京东振世信息技术有限公司 | 业务实现处理方法及装置、系统、电子设备和存储介质 |
| CN112817562A (zh) * | 2019-11-15 | 2021-05-18 | 北京沃东天骏信息技术有限公司 | 业务处理的方法和装置 |
| CN113010176A (zh) * | 2019-12-20 | 2021-06-22 | 亚信科技(中国)有限公司 | 一种任务处理方法、装置及系统 |
| CN113285888A (zh) * | 2021-04-30 | 2021-08-20 | 中国银联股份有限公司 | 多业务系统多数据中心分流方法、装置、设备及介质 |
| CN113535419A (zh) * | 2020-04-16 | 2021-10-22 | 北京沃东天骏信息技术有限公司 | 一种服务编排方法和装置 |
| CN115379009A (zh) * | 2022-08-18 | 2022-11-22 | 中国建设银行股份有限公司 | 一种数据处理方法、装置、设备及介质 |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106020948B (zh) * | 2016-05-10 | 2019-09-17 | 中国银联股份有限公司 | 一种流程调度方法及装置 |
| CN108510382B (zh) * | 2017-02-28 | 2021-12-07 | 银联数据服务有限公司 | 一种交易信息处理方法和装置 |
| CN108306921A (zh) * | 2017-08-04 | 2018-07-20 | 深圳壹账通智能科技有限公司 | 调用外部服务方法及应用服务器 |
| CN108062256A (zh) * | 2017-11-10 | 2018-05-22 | 中国民生银行股份有限公司 | 一种应用程序的访问方法和装置 |
| CN109120686A (zh) * | 2018-08-08 | 2019-01-01 | 联动优势电子商务有限公司 | 一种服务预验证的方法及装置 |
| CN109144618A (zh) * | 2018-09-10 | 2019-01-04 | 中铝视拓智能科技有限公司 | 一种业务流程执行方法及相关装置 |
| CN110659358A (zh) * | 2019-09-16 | 2020-01-07 | 上海云从企业发展有限公司 | 基于金融业务的知识网络管理方法、装置、设备及介质 |
| CN114079635A (zh) * | 2021-11-17 | 2022-02-22 | 中国工商银行股份有限公司 | 基于多项式拟合的业务流量限流方法及装置 |
| CN115423629A (zh) * | 2022-09-28 | 2022-12-02 | 中国农业银行股份有限公司 | 交易的处理方法与装置 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1732671A (zh) * | 2002-11-01 | 2006-02-08 | 梅里迪财务软件公司 | 在涉及移动终端的网络中实现服务,尤其是金融服务 |
| CN102150441A (zh) * | 2008-07-15 | 2011-08-10 | 格马尔托股份有限公司 | 用于访问从令牌提供的服务的方法、对应的令牌和系统 |
| CN103095662A (zh) * | 2011-11-04 | 2013-05-08 | 阿里巴巴集团控股有限公司 | 一种网上交易安全认证方法及网上交易安全认证系统 |
| CN103167009A (zh) * | 2011-12-19 | 2013-06-19 | 北京磊友信息科技有限公司 | 一种通过客户端对系统消息进行调用的方法及系统 |
| CN105099688A (zh) * | 2014-05-15 | 2015-11-25 | 阿里巴巴集团控股有限公司 | 一种电子账户的操作方法、支付页面的展示方法及装置 |
| CN106020948A (zh) * | 2016-05-10 | 2016-10-12 | 中国银联股份有限公司 | 一种流程调度方法及装置 |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101777148A (zh) * | 2010-01-14 | 2010-07-14 | 中国建设银行股份有限公司 | 一种收单商户管理方法、管理系统及商户管理服务端设备 |
| CN101877158A (zh) * | 2010-03-23 | 2010-11-03 | 苏州德融嘉信信用管理技术有限公司 | 一种银行前置业务平台及其运行处理方法 |
| CN102426519B (zh) * | 2011-08-26 | 2014-03-26 | 北京邮电大学 | 基于关联数据的bpel模板和服务的复用方法及其系统 |
| CN103237083B (zh) * | 2013-05-08 | 2016-06-29 | 北京邮电大学 | 一种移动信息服务资源聚合系统及方法 |
| CN105357059A (zh) * | 2015-12-08 | 2016-02-24 | 中国建设银行股份有限公司 | 业务事件处理方法和装置 |
-
2016
- 2016-05-10 CN CN201610304916.5A patent/CN106020948B/zh active Active
-
2017
- 2017-03-27 WO PCT/CN2017/078294 patent/WO2017193715A1/zh not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1732671A (zh) * | 2002-11-01 | 2006-02-08 | 梅里迪财务软件公司 | 在涉及移动终端的网络中实现服务,尤其是金融服务 |
| CN102150441A (zh) * | 2008-07-15 | 2011-08-10 | 格马尔托股份有限公司 | 用于访问从令牌提供的服务的方法、对应的令牌和系统 |
| CN103095662A (zh) * | 2011-11-04 | 2013-05-08 | 阿里巴巴集团控股有限公司 | 一种网上交易安全认证方法及网上交易安全认证系统 |
| CN103167009A (zh) * | 2011-12-19 | 2013-06-19 | 北京磊友信息科技有限公司 | 一种通过客户端对系统消息进行调用的方法及系统 |
| CN105099688A (zh) * | 2014-05-15 | 2015-11-25 | 阿里巴巴集团控股有限公司 | 一种电子账户的操作方法、支付页面的展示方法及装置 |
| CN106020948A (zh) * | 2016-05-10 | 2016-10-12 | 中国银联股份有限公司 | 一种流程调度方法及装置 |
Cited By (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110297675A (zh) * | 2019-04-23 | 2019-10-01 | 五八有限公司 | 模块间相互调用的方法、装置、电子设备及存储介质 |
| CN112181407B (zh) * | 2019-07-04 | 2023-09-26 | 北京京东振世信息技术有限公司 | 业务实现处理方法及装置、系统、电子设备和存储介质 |
| CN112181407A (zh) * | 2019-07-04 | 2021-01-05 | 北京京东振世信息技术有限公司 | 业务实现处理方法及装置、系统、电子设备和存储介质 |
| CN112817562A (zh) * | 2019-11-15 | 2021-05-18 | 北京沃东天骏信息技术有限公司 | 业务处理的方法和装置 |
| CN113010176A (zh) * | 2019-12-20 | 2021-06-22 | 亚信科技(中国)有限公司 | 一种任务处理方法、装置及系统 |
| CN111414241A (zh) * | 2020-02-27 | 2020-07-14 | 平安银行股份有限公司 | 批量数据处理方法、装置、系统、计算机设备及计算机可读存储介质 |
| CN113535419A (zh) * | 2020-04-16 | 2021-10-22 | 北京沃东天骏信息技术有限公司 | 一种服务编排方法和装置 |
| CN113535419B (zh) * | 2020-04-16 | 2024-11-15 | 北京沃东天骏信息技术有限公司 | 一种服务编排方法和装置 |
| CN111767043A (zh) * | 2020-06-24 | 2020-10-13 | 北京思特奇信息技术股份有限公司 | 基于业务调度引擎的跨系统业务调度方法和系统 |
| CN111767043B (zh) * | 2020-06-24 | 2024-01-30 | 北京思特奇信息技术股份有限公司 | 基于业务调度引擎的跨系统业务调度方法和系统 |
| CN113285888A (zh) * | 2021-04-30 | 2021-08-20 | 中国银联股份有限公司 | 多业务系统多数据中心分流方法、装置、设备及介质 |
| CN113285888B (zh) * | 2021-04-30 | 2023-10-24 | 中国银联股份有限公司 | 多业务系统多数据中心分流方法、装置、设备及介质 |
| CN115379009A (zh) * | 2022-08-18 | 2022-11-22 | 中国建设银行股份有限公司 | 一种数据处理方法、装置、设备及介质 |
| CN115379009B (zh) * | 2022-08-18 | 2024-04-26 | 中国建设银行股份有限公司 | 一种数据处理方法、装置、设备及介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106020948A (zh) | 2016-10-12 |
| CN106020948B (zh) | 2019-09-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017193715A1 (zh) | 一种流程调度方法及装置、设备 | |
| US10122598B2 (en) | Subscription watch lists for event handling | |
| CN110457038B (zh) | 附属应用端的卡片显示方法、装置、设备以及存储介质 | |
| WO2020000720A1 (zh) | 服务器、报文处理方法、程序和计算机可读存储介质 | |
| US20210042150A1 (en) | Method-call-chain tracking method, electronic device, and computer readable storage medium | |
| CN113419922A (zh) | 主机批量作业运行数据的处理方法及装置 | |
| CN113448578A (zh) | 页面数据处理方法、处理系统、电子设备和可读存储介质 | |
| CN114416378A (zh) | 数据处理方法、装置、电子设备及存储介质 | |
| CN113191889A (zh) | 风控配置方法、配置系统、电子设备及可读存储介质 | |
| CN114371866A (zh) | 业务系统的版本重构测试方法、装置和设备 | |
| US20240421998A1 (en) | Blockchain oracle methods and systems based on zero-knowledge proof with recursive prover | |
| US11687326B2 (en) | Method and apparatus for data interaction | |
| CN106874020B (zh) | 启动插件的方法及装置 | |
| CN113132400B (zh) | 业务处理方法、装置、计算机系统及存储介质 | |
| CN111859403B (zh) | 依赖关系漏洞的确定方法、装置、电子设备及存储介质 | |
| CN114780361A (zh) | 日志生成方法、装置、计算机系统及可读存储介质 | |
| CN110968433A (zh) | 信息处理方法、系统和电子设备 | |
| CN108288135B (zh) | 系统兼容方法及装置、计算机可读存储介质及电子设备 | |
| CN116975200A (zh) | 用于控制服务器工作状态的方法、装置、设备及介质 | |
| CN115408177A (zh) | 聚合编排方法、装置、设备和存储介质 | |
| US9298449B2 (en) | Composite program history | |
| CN114461909A (zh) | 信息处理方法、信息处理装置、电子设备和存储介质 | |
| CN113435454A (zh) | 一种数据处理方法、装置及设备 | |
| CN112149951A (zh) | 风险控制方法、装置、计算机设备和存储介质 | |
| CN110569082A (zh) | 对页面内容进行控制的方法及装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17795333 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17795333 Country of ref document: EP Kind code of ref document: A1 |