CN106339265A - Method and device for processing combined task - Google Patents
Method and device for processing combined task Download PDFInfo
- Publication number
- CN106339265A CN106339265A CN201610779608.8A CN201610779608A CN106339265A CN 106339265 A CN106339265 A CN 106339265A CN 201610779608 A CN201610779608 A CN 201610779608A CN 106339265 A CN106339265 A CN 106339265A
- Authority
- CN
- China
- Prior art keywords
- message
- task
- combined
- single task
- unit
- 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
Links
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/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a method and a device for processing a combined task, which aim at improving the success rate of message processing of the combined task. The method comprises the following steps of obtaining a message of the combined task, wherein the message of the combined task comprises at least two single tasks, and each single task corresponds to a self identification; splitting the message of the combined task, so as to obtain a message of each single task, wherein the message of each single task comprises a single task; according to the identification of each single task, distributing the message of each single task to a corresponding processing module for processing, wherein only one single task message is distributed to each processing module each time.
Description
Technical field
The present invention relates to computer realm, more particularly, to a kind of combined task processing method and processing device.
Background technology
The task tupe of existing banking system is to be processed in units of single independent task, with specific reference to
The task message comprising individual task is assigned to corresponding processing module and is processed by the mark of single task.For example, if single
Individual task is deposit task, then be assigned in deposit processing module;If individual task is payment task, it is assigned to payment processes
Module is processed.
But it is as the extension of business, the combined task including at least two pieces single task gradually increases.Based on existing bank
The task tupe of system, is the mark according to combined task in combined task message to the processing mode that combined task is taken
Know, described combined task message is assigned in certain processing module, by this processing module from described combined task message
Each single task is extracted;If extracting the processing module process that the single task needs obtaining are allocated, described processing module
Directly this single task is processed;If extracting the single task needs obtaining to be processed by other processing modules, call its elsewhere
Reason module is processed.If however, having more than the process mould that two single task needs are distributed to described combined task message
Block is processed, then cannot complete process task, this is because processing module itself does not call the function of oneself, be merely able to by other
Processing module is called.
For example, described combined task message m includes single task a, single task b and single task c it is assumed that described single task a
All should be by same processing module x process with described single task b, described single task c should be processed the process of module y.
If described combined task message m is assigned to described processing module x, described processing module x is receiving described group
After conjunction task message m, from described combined task message m, extract single task a, single task b and single task c.For single
Business c, processing module x calls processing module y to be processed, and for single task a and single task b, then processing module x can only be located
One of reason, because after being disposed to one of single task, processing module x cannot call oneself to process other one
Individual single task, leads to combined task processing failure.
Content of the invention
In order to solve technical problem present in prior art, the present invention provides a kind of combined task processing method and dress
Put it is achieved that improving the purpose that combined task processes success rate.
Embodiments provide a kind of combined task processing method, methods described includes:
Obtain combined task message, described combined task message includes at least two single tasks, and each single task is divided equally
Not corresponding with the mark of oneself;
Described combined task message is split, obtains each single task message, wrap in each described single task message
Include a single task;
According to the mark of described single task, each single task message described is assigned at corresponding processing module
Reason, each processing module is only allocated a single task message every time.
Preferably, methods described also includes:
Obtain at least two process messages, described process message reflects that described processing module is carried out to described single task message
The result obtaining after process;
Described at least two process messages are combined, obtain combining message.
Preferably, the described at least two process messages that obtain include:
Obtain all process messages corresponding with described combined task message.
Preferably, before being combined described at least two process messages, methods described also includes:
Described at least two process messages are formatted.
The embodiment of the present invention additionally provides a kind of combined task processing meanss, and described device includes: combined task message obtains
Take unit, message split cells and message allocation unit;
Wherein, described combined task Receive message unit, for obtaining combined task message, in described combined task message
Including at least two single tasks, each single task is respectively corresponding with the mark of oneself;
Described message split cells, for splitting to described combined task message, obtains each single task message, often
Individual described single task message includes a single task;
Described message allocation unit, for the mark according to described single task, each single task message described is assigned to
Corresponding processing module is processed, and each processing module is only allocated a single task message every time.
Preferably, described device also includes: processes Receive message unit and assembled unit;
Wherein, described process Receive message unit, for obtaining at least two process messages, described process message reflects institute
State the result obtaining after processing module is processed to described single task message;
Described assembled unit, for being combined described at least two process messages, obtains combining message.
Preferably, described process Receive message unit, specifically for:
Obtain all process messages corresponding with described combined task message.
Preferably, described device also includes formatting unit, for formatting to described at least two process messages,
And activate described assembled unit.
With respect to prior art, the invention has the following beneficial effects:
The present invention, after getting described combined task message, described combined task message is split as multiple single task reports
Literary composition, each single task message includes a single task.Then according to the corresponding mark of described single task, by described single task report
Literary composition is assigned in corresponding processing module, each processing module every time an only allocated single task message it is ensured that each single
Business message can be processed,
Brief description
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, below will be to embodiment or existing
Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this
Some embodiments described in application, for those of ordinary skill in the art, on the premise of not paying creative work,
Other accompanying drawings can also be obtained according to these accompanying drawings.
A kind of flow chart of combined task processing method that Fig. 1 provides for the embodiment of the present invention one;
A kind of flow chart of combined task processing method that Fig. 2 provides for the embodiment of the present invention two;
Fig. 3 is the schematic diagram processing message in the embodiment of the present invention two;
Fig. 4 is the schematic diagram combining message in the embodiment of the present invention two;
A kind of structured flowchart of combined task processing meanss that Fig. 5 provides for the embodiment of the present invention three;
A kind of structured flowchart of combined task processing meanss that Fig. 6 provides for the embodiment of the present invention four.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention it is clear that described embodiment is only this
Invent a part of embodiment, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art exist
The every other embodiment being obtained under the premise of not making creative work, broadly falls into the scope of protection of the invention.
Embodiment one:
Referring to Fig. 1, this figure is a kind of flow chart of combined task processing method that the embodiment of the present invention one provides.
The combined task processing method that the present embodiment provides comprises the steps:
Step s101: obtain combined task message, described combined task message includes at least two single tasks, each is single
Task is respectively corresponding with the mark of oneself.
Step s102: described combined task message is split, obtains each single task message, each described single task
Message includes a single task.
Step s103: according to the mark of described single task, each single task message described is assigned to corresponding process mould
Block is processed, and each processing module is only allocated a single task message every time.
In practical application scene, the executive agent of the combined task processing method that the present embodiment provides is server, institute
State server and obtain described combined task message, described combined task message can come from client.That is, user is permissible
Initiate the process request of combined task message by user end to server, so that described server wraps in combined task message
At least two single tasks including are processed.
Prior art, after getting described combined task message, according to the corresponding mark of described combined task message, is incited somebody to action
Described combined task message is assigned to and identifies in corresponding processing module with described, by described processing module from described combined task
Described single task is extracted in message.
And the present embodiment, after getting described combined task message, described combined task message is split as multiple lists and appoints
Business message, each single task message includes a single task.Then according to corresponding mark (for example described list of described single task
No. id of task), described single task message is assigned in corresponding processing module, each processing module is only allocated one every time
Individual single task message it is ensured that each single task message can be processed, and, if the plurality of single task message need multiple places
Reason module is processed, then these multiple processing modules can be processed simultaneously, improves the treatment effeciency of combined task.
, according to the combined task processing method of the present embodiment offer, described combination taking the example in background technology as a example
Task message m can be split as single task a message, single task b message and single task c message.According to described single task a, list
Task b and the respective mark of single task c, described single task a message and described single task b message are distributed to described processing module
X, described single task c message is distributed to described processing module y.When sending message to described processing module x, only send every time
One message, you can to send out single task a message described, after described single task a Message processing finishes, then send out single task b described
Message, to ensure that described single task a and described single task b all can be processed.In addition, in actual applications, can be simultaneously
Send described single task c message and described single task a message, carry out parallel processing to be utilized respectively corresponding processing module,
Can send one by one in order, i.e. " single thread " mode of operation, the former more can improve the process of combination message than the latter
Efficiency.
Embodiment two
In actual applications, each processing module, after single task Message processing is finished, all can generate one and process report
Literary composition, described process message reflects the result that described processing module obtains after described single task message is processed.Prior art
In often generate one process message, just by described process message send to client, compare waste flow.
In order to overcome this technical problem, referring to Fig. 2, the present embodiment provides a kind of combined task processing method, concrete bag
Include following steps:
Step s201: obtain combined task message, described combined task message includes at least two single tasks, each is single
Task is respectively corresponding with the mark of oneself.
Step s202: described combined task message is split, obtains each single task message, each described single task
Message includes a single task.
Step s203: according to the mark of described single task, each single task message described is assigned to corresponding process mould
Block is processed, and each processing module is only allocated a single task message every time.
Step s204: obtain at least two process messages, described process message reflects that described processing module is appointed to described list
The result that business message obtains after being processed.
Step s205: described at least two process messages are combined, obtain combining message.
Because step s201 to step s203 is identical to the step of step s103 with step s101 of described embodiment one, this
Place repeats no more.
The corresponding process message of multiple single task messages that the present embodiment splits for combined task message, by least two
Process message to be combined obtaining combining message, when sending to described client, send combination message, be effectively saved
The communication resource between server and client side.
For example, with reference to Fig. 3, this figure is that the corresponding message that processes of single task message (for example processes message a and processes message b)
Schematic diagram, the figure illustrates the message format processing message, and described process message includes reporting length, header, report body, the exchange rate/charge
Data field, public expansion area and message data expansion area totally six part, and define the byte shared by each several part, for example report
Long occupancy 5 bytes.
Referring to Fig. 4, this figure is will to process the combination message being formed after the message that message a is with process message b is combined
Schematic diagram, in combination message, including the report volume data processing message a and the report volume data processing message b.
Preferably, corresponding for described combined task message all process messages can be combined as a combination message, with
Save flow further.
In actual applications, if described at least two process message from different processing modules, described two process
The form of message may be different.In order to the process message of different-format is merged, can be first by described process message lattice
Formula, the form of described at least two process messages is unified, is then merged again.
If additionally, corresponding for described combined task message all process messages are combined as a combination message, permissible
According to the result of each single task message of reflection in described combined task message, to judge that described combined task message is
No successfully it is processed, as long as determination strategy therein for example may is that the failure of single task Message processing then it is assumed that described
Combined task is not successfully processed.
A kind of combined task processing method being provided based on above example, the embodiment of the present invention additionally provides a kind of combination
Task Processing Unit, to describe its operation principle below in conjunction with the accompanying drawings in detail.
Embodiment three
Referring to Fig. 5, this figure is a kind of structured flowchart of combined task processing meanss that the embodiment of the present invention three provides.
The combined task processing meanss that the present embodiment provides include: combined task Receive message unit 101, message split single
Unit 102 and message allocation unit 103;
Wherein, described combined task Receive message unit 101, for obtaining combined task message, described combined task report
Literary composition includes at least two single tasks, and each single task is respectively corresponding with the mark of oneself;
Described message split cells 102, for splitting to described combined task message, obtains each single task report
Literary composition, each described single task message includes a single task;
Described message allocation unit 103, for the mark according to described single task, each single task message described is distributed
Processed to corresponding processing module, each processing module is only allocated a single task message every time.
Prior art, after getting described combined task message, according to the corresponding mark of described combined task message, is incited somebody to action
Described combined task message is assigned to and identifies in corresponding processing module with described, by described processing module from described combined task
Described single task is extracted in message.
And the present embodiment, after getting described combined task message, described combined task message is split as multiple lists and appoints
Business message, each single task message includes a single task.Then according to corresponding mark (for example described list of described single task
No. id of task), described single task message is assigned in corresponding processing module, each processing module is only allocated one every time
Individual single task message is it is ensured that each single task message can be processed.
Example IV
Referring to Fig. 6, this figure is a kind of structured flowchart of combined task processing meanss that the embodiment of the present invention four provides.
Based on described embodiment three, the combined task processing meanss that the present embodiment provides also include: process Receive message list
Unit 104 and assembled unit 105;
Wherein, described process Receive message unit 104, for obtaining at least two process messages, described process message is anti-
Reflect the result obtaining after described processing module is processed to described single task message;
Described assembled unit 105, for being combined described at least two process messages, obtains combining message.
The corresponding process message of multiple single task messages that the present embodiment splits for combined task message, by least two
Process message to be combined obtaining combining message, when sending to described client, send combination message, be effectively saved
The communication resource between server and client side.
Preferably, described process Receive message unit, specifically for:
Obtain all process messages corresponding with described combined task message.
That is, corresponding for described combined task message all process messages can be combined as a combination message,
To save flow further.
Further, described device also includes formatting unit, for entering row format to described at least two process messages
Change, and activate described assembled unit 105.
When introducing elements of various embodiments of the present invention, article " ", " one ", " this " and " described " are intended to
Indicate one or more elements.Word " inclusion ", "comprising" and " having " are all inclusives and mean except listing
Outside element, can also there are other elements.
It should be noted that one of ordinary skill in the art will appreciate that realizing the whole or portion in said method embodiment
Split flow, can be by computer program to complete come the hardware to instruct correlation, described program can be stored in a computer
In read/write memory medium, this program is upon execution, it may include as the flow process of above-mentioned each method embodiment.Wherein, described storage
Medium can be magnetic disc, CD, read-only memory (read-only memory, rom) or random access memory (random
Access memory, ram) etc..
Each embodiment in this specification is all described by the way of going forward one by one, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Real especially for device
For applying example, because it is substantially similar to embodiment of the method, so describing fairly simple, referring to embodiment of the method in place of correlation
Part illustrate.Device embodiment described above is only schematically, wherein said illustrates as separating component
Unit and module can be or may not be physically separate.Furthermore it is also possible to select it according to the actual needs
In some or all of unit and module realizing the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying
In the case of creative work, you can to understand and to implement.
The above is only the specific embodiment of the present invention it is noted that ordinary skill people for the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (8)
1. a kind of combined task processing method is it is characterised in that methods described includes:
Obtain combined task message, described combined task message includes at least two single tasks, each single task respectively with
The mark of oneself is corresponding;
Described combined task message is split, obtains each single task message, each described single task message includes one
Item single task;
According to the mark of described single task, each single task message described is assigned to corresponding processing module and is processed, often
Individual processing module is only allocated a single task message every time.
2. method according to claim 1 is it is characterised in that methods described also includes:
Obtain at least two process messages, described process message reflects that described processing module is processed to described single task message
The result obtaining afterwards;
Described at least two process messages are combined, obtain combining message.
3. method according to claim 2 is it is characterised in that described acquisition at least two process message includes:
Obtain all process messages corresponding with described combined task message.
4. according to the method in claim 2 or 3 it is characterised in that being combined described at least two process messages
Before, methods described also includes:
Described at least two process messages are formatted.
5. a kind of combined task processing meanss are it is characterised in that described device includes: combined task Receive message unit, message
Split cells and message allocation unit;
Wherein, described combined task Receive message unit, for obtaining combined task message, described combined task message includes
At least two single tasks, each single task is respectively corresponding with the mark of oneself;
Described message split cells, for splitting to described combined task message, obtains each single task message, each institute
State single task message and include a single task;
Described message allocation unit, for the mark according to described single task, each single task message described is assigned to correspondence
Processing module processed, each processing module every time only be allocated a single task message.
6. device according to claim 5 is it is characterised in that described device also includes: processes Receive message unit and group
Close unit;
Wherein, described process Receive message unit, for obtaining at least two process messages, described process message reflects described place
The result that reason module obtains after described single task message is processed;
Described assembled unit, for being combined described at least two process messages, obtains combining message.
7. device according to claim 6 is it is characterised in that described process Receive message unit, specifically for:
Obtain all process messages corresponding with described combined task message.
8. the device according to claim 6 or 7 is it is characterised in that described device also includes formatting unit, for institute
State at least two process messages to format, and activate described assembled unit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610779608.8A CN106339265A (en) | 2016-08-30 | 2016-08-30 | Method and device for processing combined task |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610779608.8A CN106339265A (en) | 2016-08-30 | 2016-08-30 | Method and device for processing combined task |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106339265A true CN106339265A (en) | 2017-01-18 |
Family
ID=57823542
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610779608.8A Pending CN106339265A (en) | 2016-08-30 | 2016-08-30 | Method and device for processing combined task |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106339265A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107483515A (en) * | 2017-10-18 | 2017-12-15 | 张洋 | Message transmitting method and system, message parsing method and device |
| CN111130625A (en) * | 2019-12-25 | 2020-05-08 | 中电科航空电子有限公司 | Short message processing method and device |
| CN111127209A (en) * | 2019-12-31 | 2020-05-08 | 中国银行股份有限公司 | Transaction processing method and device based on SWIFT message |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103942098A (en) * | 2014-04-29 | 2014-07-23 | 国家电网公司 | System and method for task processing |
| US20150150023A1 (en) * | 2013-11-22 | 2015-05-28 | Decooda International, Inc. | Emotion processing systems and methods |
| CN104731649A (en) * | 2015-04-21 | 2015-06-24 | 中国建设银行股份有限公司 | Multi-task processing method and multi-task processing device |
| CN105511954A (en) * | 2014-09-23 | 2016-04-20 | 华为技术有限公司 | Method and device for message processing |
-
2016
- 2016-08-30 CN CN201610779608.8A patent/CN106339265A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150150023A1 (en) * | 2013-11-22 | 2015-05-28 | Decooda International, Inc. | Emotion processing systems and methods |
| CN103942098A (en) * | 2014-04-29 | 2014-07-23 | 国家电网公司 | System and method for task processing |
| CN105511954A (en) * | 2014-09-23 | 2016-04-20 | 华为技术有限公司 | Method and device for message processing |
| CN104731649A (en) * | 2015-04-21 | 2015-06-24 | 中国建设银行股份有限公司 | Multi-task processing method and multi-task processing device |
Non-Patent Citations (1)
| Title |
|---|
| 高平安: ""多移动机器人任务分配的市场方法研究"", 《中国博士学位论文全文数据库 信息科技辑》 * |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107483515A (en) * | 2017-10-18 | 2017-12-15 | 张洋 | Message transmitting method and system, message parsing method and device |
| CN111130625A (en) * | 2019-12-25 | 2020-05-08 | 中电科航空电子有限公司 | Short message processing method and device |
| CN111127209A (en) * | 2019-12-31 | 2020-05-08 | 中国银行股份有限公司 | Transaction processing method and device based on SWIFT message |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3701706B1 (en) | Blockchain-based data migration method and apparatus | |
| CN102411639B (en) | Multi-copy storage management method and system of metadata | |
| JP2008507201A5 (en) | ||
| CN102916953A (en) | Method and device for realizing concurrent service on basis of TCP (transmission control protocol) connection | |
| EP3813335A1 (en) | Service processing method and system based on alliance chain network | |
| CN103647850B (en) | Data processing method, device and system of distributed version control system | |
| CN113067897B (en) | Cross-chain interaction method and device | |
| CN107256180A (en) | Data processing method, device and terminal | |
| CN102467411A (en) | Workflow processing and workflow agent method, device and system | |
| FI3864798T3 (en) | System and method for interoperability of blockchains | |
| CN106339265A (en) | Method and device for processing combined task | |
| CN103699618A (en) | Data report generation method and system | |
| CN108874688A (en) | A kind of message data caching method and device | |
| CN104361692A (en) | Transaction monitoring method, ATM (Automatic Teller Machine) front-end system and ATM transaction system | |
| CN112910724A (en) | Pressure testing method, device and system for block chain network | |
| CN104850505A (en) | Memory management method and system based on chain type stacking | |
| CN103944979A (en) | Method, device and system for message pushing | |
| CN110519354A (en) | Distributed object storage system and service processing method and storage medium thereof | |
| CN108880896B (en) | Program gray level publishing method and device based on mainframe | |
| CN102137091B (en) | Overload control method, device and system as well as client-side | |
| CN106301889B (en) | A kind of port numbers rapid-setting method and system | |
| CN105450679A (en) | Method and system for performing data cloud storage | |
| CN114138468B (en) | Self-adaptive distribution method and device for packaging task amount and storage medium | |
| CN103179162A (en) | Method and system for outputting log | |
| CN103064749A (en) | Inter-process communication method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170118 |
|
| RJ01 | Rejection of invention patent application after publication |