JP6558950B2 - Order processing program, order processing apparatus and order processing method - Google Patents
Order processing program, order processing apparatus and order processing method Download PDFInfo
- Publication number
- JP6558950B2 JP6558950B2 JP2015106938A JP2015106938A JP6558950B2 JP 6558950 B2 JP6558950 B2 JP 6558950B2 JP 2015106938 A JP2015106938 A JP 2015106938A JP 2015106938 A JP2015106938 A JP 2015106938A JP 6558950 B2 JP6558950 B2 JP 6558950B2
- Authority
- JP
- Japan
- Prior art keywords
- order
- order data
- request
- control unit
- transmission
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Cash Registers Or Receiving Machines (AREA)
- User Interface Of Digital Computer (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Description
本発明は、注文処理プログラム、注文処理装置及び注文処理方法に関する。 The present invention relates to an order processing program, an order processing apparatus, and an order processing method.
顧客から注文を受け付け、受け付けた注文を取引先のサーバへ送信する注文処理装置がある。このような注文処理装置は、例えば、通信を制御する通信制御プログラムと、通信制御プログラムを利用して注文を順次処理する注文処理プログラムと、を有する。 There is an order processing apparatus that receives an order from a customer and transmits the received order to a server of a business partner. Such an order processing apparatus includes, for example, a communication control program that controls communication and an order processing program that sequentially processes orders using the communication control program.
注文処理プログラムは、注文の送信処理を行う際の態様として、例えば、以下の2つの注文処理方式をとる。第1の注文処理方式として、注文処理プログラムが、通信制御プログラムに対して注文の送信要求を行い、通信制御プログラムの送信処理がすべて完了した後に次の注文の送信要求を行うという態様がある。第2の注文処理方式として、注文処理プログラムが、通信制御プログラムに対して注文の送信要求を行い、通信制御プログラムが送信要求を受け付けた時点で次の注文の送信要求を行うという態様がある。第1の注文処理方式では、注文処理プログラムは1件ずつ送信処理を行うので、注文処理を確実に履行することができるという利点がある。しかし、前の注文の送信処理が完了するまでの間は次の注文の送信要求を出すことができないため、注文が滞留するという問題が生じる。 The order processing program adopts, for example, the following two order processing methods as modes for performing the order transmission processing. As a first order processing method, there is an aspect in which the order processing program makes an order transmission request to the communication control program, and makes a transmission request for the next order after all the transmission processing of the communication control program is completed. As a second order processing method, there is an aspect in which the order processing program makes an order transmission request to the communication control program, and when the communication control program accepts the transmission request, it makes a next order transmission request. In the first order processing method, since the order processing program performs transmission processing one by one, there is an advantage that the order processing can be executed reliably. However, since the transmission request for the next order cannot be issued until the transmission processing for the previous order is completed, there arises a problem that the order stays.
そこで、通信の接続先の状態に応じて、処理方式を切替える方法が提案されている。また、バスのトラフィックを監視し、バスの状態に応じて2種類の通信方式のいずれかを選択する方法も提案されている。 Therefore, a method of switching the processing method according to the state of the communication connection destination has been proposed. There has also been proposed a method for monitoring bus traffic and selecting one of two communication methods according to the bus state.
しかしながら、注文処理装置に注文が滞留する要因は、接続先の状態やバスの渋滞によるものばかりではない。例えば、金融取引においては、寄り付きや引けといった時間帯に大量の新規注文が殺到することが知られている。金融取引に用いられる注文処理装置では、取引を確実に履行するために、第1の注文処理方法を採用する場合が多い。しかし、この方法では1件ずつ処理を行うため、ある時間帯に注文処理装置に大量の注文が殺到すると、処理が追いつかず注文が滞留するおそれがある。顧客からは、指定時間内に注文を送信することが求められており、注文処理装置内での注文の滞留は、顧客のビジネス機会の損失、及びシステム運用者の信用低下という問題に繋がる。 However, the cause of the order staying in the order processing apparatus is not only due to the state of the connection destination or the congestion of the bus. For example, in financial transactions, it is known that a large number of new orders are inundated during time zones such as close-up and closing. In order processing apparatuses used for financial transactions, the first order processing method is often adopted in order to reliably execute the transactions. However, in this method, since processing is performed one by one, if a large number of orders rush to the order processing apparatus in a certain time zone, there is a possibility that the processing cannot catch up and the orders stay. Customers are required to send orders within a specified time, and the staying of orders in the order processing device leads to problems such as loss of business opportunities for customers and deterioration of trust of system operators.
一つの側面では、本発明は、注文の滞留を抑制することが可能な注文処理プログラム、注文処理装置及び注文処理方法を提供する。 In one aspect, the present invention provides an order processing program, an order processing apparatus, and an order processing method capable of suppressing the staying of orders.
上記課題を解決するために、注文処理プログラムが提供される。注文処理プログラムは、送信対象の注文データが登録される注文情報を記憶部に記憶するコンピュータに、注文情報に含まれる注文データの件数が、所定の閾値以下のときは第1の方式を、閾値より多いときは第2の方式を選択して、注文情報から第1の注文データを取り出す。第1の方式を選択したときは、通信制御部に第1の注文データの送信を要求し、通信制御部が第1の注文データの送信完了時に発行する送信完了通知を取得した後に第2の注文データの送信要求を可とする。第2の方式を選択したときは、通信制御部に第1の注文データの送信を要求し、通信制御部が第1の注文データの送信要求の受付完了時に発行する受付完了通知を取得した後に第2の注文データの送信要求を可とし、第2の方式を選択して通信制御部に対して第1の注文データの送信を要求する際に、送信要求を識別する要求識別情報を第1の注文データに付加して要求識別情報を記憶部に記憶し、第1の注文データの送信完了時に通信制御部が要求識別情報を付加して発行する送信完了通知を取得し、送信完了通知に付加された要求識別情報と記憶部に記憶された要求識別情報とを照合して、送信処理が終了した第1の注文データを特定する、処理を実行させる。 In order to solve the above problems, an order processing program is provided. The order processing program stores the order information in which the order data to be transmitted is registered in the storage unit, and sets the first method when the number of order data included in the order information is equal to or less than a predetermined threshold. If there are more, the second method is selected, and the first order data is extracted from the order information. When the first method is selected, the communication control unit is requested to transmit the first order data, and the communication control unit acquires the transmission completion notification issued when the transmission of the first order data is completed. Request transmission of order data is allowed. When the second method is selected, after requesting the communication control unit to transmit the first order data, and after the communication control unit obtains a reception completion notification issued upon completion of reception of the first order data transmission request When requesting transmission of the second order data is permitted and the second method is selected and the communication control unit is requested to transmit the first order data, the request identification information for identifying the transmission request is first of it was added to the order data storing request identification information in the storage unit, the communication control unit upon completion of transmission of the first order data obtains the transmission completion notification to be issued by adding request identification information, the transmission completion notification The added request identification information and the request identification information stored in the storage unit are collated to identify the first order data for which the transmission process has been completed, and a process is executed.
一態様によれば、本発明は、注文情報に登録される注文データの件数が閾値より多いときは、注文データの送信要求が通信制御部に受け付けられた時点で次の注文データの送信要求を行うことができるので、注文の滞留を抑制することが可能となる。 According to an aspect of the present invention, when the number of order data registered in the order information is greater than the threshold value, the next order data transmission request is issued when the order data transmission request is received by the communication control unit. Since it can be performed, it is possible to suppress the stay of orders.
以下、本発明の実施の形態について図面を参照して説明する。
[第1の実施形態]
図1は、第1の実施形態の注文処理装置を示す図である。第1の実施形態の注文処理装置は、記憶部1と、注文処理部2と、通信制御部3と、を有する。注文処理装置は、例えば、コンピュータである。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[First Embodiment]
FIG. 1 is a diagram illustrating an order processing apparatus according to the first embodiment. The order processing apparatus according to the first embodiment includes a
記憶部1は、例えば、メモリあるいはディスク装置であり、注文情報1aを記憶する。注文情報1aには、顧客などから受け付けた注文データが登録されている。例えば、1件の注文に対し、1つの注文データが設定されている。
The
注文処理部2は、注文情報1aから注文データを1件ずつ取り出し、通信制御部3に対して送信を要求する。注文データは、例えば、注文情報1aに先に登録されたものから順に取り出す。また、予め決められた優先順にしたがって取り出すとしてもよい。注文処理部2は、注文情報1aに含まれる注文データの件数が閾値以下のときは、通信制御部3による先に送信要求を行った第1の注文データの送信処理が完了してから次の第2の注文データの送信要求を行う第1の方式を選択する。また、注文処理部2は、注文情報1aに含まれる注文データの件数が閾値を超えるときは、通信制御部3による第1の注文データの受け付けが完了した時点で、第2の注文データの送信要求を行う第2の方式を選択する。
The
通信制御部3は、注文処理部2から入力する注文データの送信要求5a,6aを受け付け、受け付けた注文データの送信処理を選択された方式に応じて実行する。通信制御部3は、選択が第1の方式の場合、注文データの送信要求5aを受け付け、送信処理が終了した後、送信完了通知5bを注文処理部2に発行する。通信制御部3は、選択が第2の方式の場合、注文データの送信要求6aを受け付け、受付処理が終了した後、受付完了通知6bを注文処理部2に発行する。なお、通信制御部3は、受付完了通知6bを発行後に注文データの送信処理を行い、終了した後、送信完了通知を発行する。
The communication control unit 3 receives the order
注文処理部2が実行する注文処理手順について説明する。注文処理部2による注文処理は、コンピュータが注文処理プログラムを実行することによって、その機能を実現する。以下の説明では、先に送信される注文データを第1の注文データ、第1の注文データの後に送信される注文データを第2の注文データとする。図1に示す処理をステップ番号に沿って説明する。
An order processing procedure executed by the
[ステップS01]注文処理部2は、注文情報1aに含まれる注文データの件数に基づいて、送信処理の要求方式を決定する。注文処理部2は、注文情報1aに登録される注文データの件数が所定の閾値以下のときは第1の方式を選択し、注文データの件数が閾値よりも多いときは第2の方式を選択する。また、注文情報1aから第1の注文データを取り出す。第1の注文データは、例えば、注文情報1aに含まれる注文データのうち、最も早くに登録された注文データである。
[Step S01] The
[ステップS02]注文処理部2は、ステップS01において第1の方式を選択したか否かを判定する。第1の方式を選択したときは処理をステップS03に進め、第2の方式を選択したときは処理をステップS04に進める。
[Step S02] The
[ステップS03]注文処理部2は、第1の方式を選択したときは、第1の方式を指定して第1の注文データの送信要求5aを通信制御部3へ出力する第1の方式による要求処理を行う。通信制御部3では、送信要求5aを受け付け、送信処理を終了した後、注文処理部2に対して送信完了通知5bを発行する。注文処理部2は、送信完了通知5bを取得したときに、第2の注文データの送信要求を可とし、処理をステップS01に進める。第2の注文データは、例えば、注文情報1aに含まれる注文データのうち、第1の注文データの次に登録された注文データである。
[Step S03] When the first processing method is selected, the
[ステップS04]注文処理部2は、第2の方式を選択したときは、第2の方式を指定して第1の注文データの送信要求6aを通信制御部3へ出力する第2の方式による要求処理を行う。通信制御部3では、送信要求6aを受け付けた後、注文処理部2に対して受付完了通知6bを発行する。注文処理部2は、受付完了通知6bを取得したときに、第2の注文データの送信要求を可とし、処理をステップS01に進める。
[Step S04] When the second processing method is selected, the
注文処理部2は、第2の注文データについてステップS01からの手順を繰り返す。
以上の手順にしたがって、注文処理部2は、通信制御部3に対して注文データの送信要求を行う際、注文情報1aに登録されている注文データの件数を閾値と比較し、比較の結果に応じて第1の方式または第2の方式を選択する。注文処理部2は、注文情報1aに登録される注文データの件数が閾値以下で、注文の滞留が発生しにくいときは、第1の方式を選択する。第1の方式では、通信制御部3が注文データの送信を完了してから次の注文データの送信要求を可とするため、注文データを確実に処理することができる。一方、注文処理部2は、注文情報1aに登録される注文データの件数が閾値を超えており、注文データの滞留が発生しやすいときは、第2の方式を選択する。第2の方式では、通信制御部3が注文データの受付を完了した時点で次の注文データの送信要求を可とするため、同じ時間で第1の方式より多くの注文データを処理することができる。これにより、注文の滞留を防ぐことができる。
The
According to the above procedure, the
このように、第1の実施形態の注文処理装置では、注文データの件数が少ないときは第1の方法を選択して注文処理を1件ずつ確実に履行し、注文データの件数が多いときは第2の方法を選択して注文の滞留を防ぐ。 As described above, in the order processing apparatus according to the first embodiment, when the number of order data is small, the first method is selected and the order processing is surely executed one by one, and when the number of order data is large. The second method is chosen to prevent order stagnation.
[第2の実施形態]
次に、第2の実施形態として、第1の実施形態の注文処理装置を金融取引処理に適用した場合について説明する。
[Second Embodiment]
Next, a case where the order processing apparatus of the first embodiment is applied to financial transaction processing will be described as a second embodiment.
図2は、第2の実施形態のシステム構成例を示す図である。注文処理装置100は、ネットワーク200を介して、利用者装置301,302,303と、取引装置401,402と、に接続する。利用者装置301,302,303は、注文処理装置100に対して注文データの送信を依頼する顧客が利用するコンピュータである。取引装置401,402は、注文データを送信する取引先のコンピュータである。
FIG. 2 is a diagram illustrating a system configuration example according to the second embodiment. The
注文処理装置100は、ネットワーク200を介して利用者装置301,302,303から送られてきた注文データを取引装置401,402に送信する。なお、注文処理装置100は、利用者装置301,302,303から入力した注文データを入力順に順次送信するとしてもよい。また、注文処理装置100は、注文データを一旦記憶部に格納しておき、注文データごとに設定されている送信の指定日時などにしたがって、注文データを取引装置401,402に送信するとしてもよい。
The
図3は、第2の実施形態の注文処理装置のハードウェア構成例を示す図である。注文処理装置100は、CPU(Central Processing Unit)101によって装置全体が制御されている。CPU101には、バス108を介してRAM(Random Access Memory)102と複数の周辺機器が接続されている。
FIG. 3 is a diagram illustrating a hardware configuration example of the order processing apparatus according to the second embodiment. The
RAM102は、注文処理装置100の主記憶装置として使用される。RAM102には、CPU101に実行させるOS(Operating System)のプログラムやアプリケーションプログラムの少なくとも一部が一時的に格納される。また、RAM102には、CPU101による処理に必要な各種データが格納される。
The
バス108に接続されている周辺機器としては、ハードディスクドライブ(HDD:Hard Disk Drive)103、グラフィック処理装置104、入力インタフェース105、光学ドライブ装置106、及び通信インタフェース107がある。
Peripheral devices connected to the
HDD103は、内蔵したディスクに対して、磁気的にデータの書き込み及び読み出しを行う。HDD103は、注文処理装置100の二次記憶装置として使用される。HDD103には、OSのプログラム、アプリケーションプログラム、及び各種データが格納される。なお、二次記憶装置としては、フラッシュメモリなどの半導体記憶装置を使用することもできる。
The
グラフィック処理装置104には、モニタ11が接続されている。グラフィック処理装置104は、CPU101からの命令にしたがって、画像をモニタ11の画面に表示させる。モニタ11としては、CRT(Cathode Ray Tube)を用いた表示装置や液晶表示装置などがある。
A monitor 11 is connected to the
入力インタフェース105には、キーボード12とマウス13とが接続されている。入力インタフェース105は、キーボード12やマウス13から送られてくる信号をCPU101に送信する。なお、マウス13は、ポインティングデバイスの一例であり、他のポインティングデバイスを使用することもできる。他のポインティングデバイスとしては、タッチパネル、タブレット、タッチパッド、トラックボールなどがある。
A
光学ドライブ装置106は、レーザ光などを利用して、光ディスク14に記録されたデータの読み取りを行う。光ディスク14は、光の反射によって読み取り可能なようにデータが記録された可搬型の記録媒体である。光ディスク14には、DVD(Digital Versatile Disc)、DVD−RAM、CD−ROM(Compact Disc Read Only Memory)、CD−R(Recordable)/RW(ReWritable)などがある。
The
通信インタフェース107は、ネットワーク200に接続されている。通信インタフェース107は、ネットワーク200を介して、他のコンピュータまたは通信機器との間でデータの送受信を行う。
The
以上のようなハードウェア構成によって、本実施形態の処理機能を実現することができる。なお、図3には注文処理装置100のハードウェア構成を示したが、利用者装置301,302,303及び取引装置401,402も同様のハードウェア構成を有する。
With the hardware configuration as described above, the processing functions of this embodiment can be realized. Although FIG. 3 shows the hardware configuration of the
図4は、第2の実施形態の注文処理装置の機能構成例を示す図である。注文処理装置100は、注文処理部110と、入力部120と、表示部130と、通信制御部140と、要求パス150と、通知パス160と、を有する。
FIG. 4 is a diagram illustrating a functional configuration example of the order processing apparatus according to the second embodiment. The
注文処理部110は、記憶部111と、要求処理部112と、状態管理部113と、要求制御部114と、通知制御部115と、を有する。注文処理部110では、記憶部111に格納された注文データを、通信制御部140を利用して取引装置401に送信する処理を行う。注文処理部110は、CPU101が注文処理プログラムを実行することによりその処理機能が実現される。
The order processing unit 110 includes a
記憶部111は、注文キュー111aと、注文管理情報111bと、を記憶する。記憶部111には、例えば、RAM102の一部の記憶領域が割り当てられる。注文キュー111aは、顧客から取得した注文データを一時的に保持するFIFO(First In First Out)型のキューである。注文データは、入力部120を介して順次登録され、要求処理部112から順次取り出される。なお、注文キュー111aでは、登録によって注文データが記憶領域に書き込まれ、取り出しによって記憶領域から削除されるとする。入力部120を介して登録される注文データの登録間隔が注文データの1件当たりの処理時間より短くなると、注文キュー111aには注文データが滞留していく。注文管理情報111bには、注文処理の進行状態を示す情報が、注文データごとに登録される。
The
要求処理部112は、注文キュー111aから1件ずつ注文データを取り出し、要求制御部114に対して送信要求を行う。このとき、注文キュー111aに含まれる注文データの件数を算出し、取り出した注文データとともに要求制御部114へ通知する。注文データの件数は、記憶部111の記憶領域の注文データを数えるとしてもよいが、対象の注文データの数が多い場合にはCPU101に負荷がかかる。例えば、注文データの計数用のカウンタを設けるとともに、入力部120が注文キュー111aに注文データを登録するごとに要求処理部112に通知が入力されるように構成する。要求処理部112は、入力部120から通知を受けるごとにカウンタをインクリメントし、要求制御部114から復帰の指示を受けるごとにカウンタをディクリメントするとしてもよい。この場合、カウンタの値が注文データの登録件数になる。また、要求処理部112は、要求制御部114に対して送信要求を行う際に、状態管理部113に対し、取り出した注文データを注文管理情報111bに新規登録するように依頼する。なお、要求処理部112は、上記の処理が終了した時点で処理を停止し、要求制御部114からの復帰指示を待つ。要求処理部112では、要求制御部114に対する送信要求は1件ずつ行われ、仕掛中の送信要求が復帰しない限り次の注文データの送信要求は出力されない。
The
状態管理部113は、注文データの送信処理の進行状態に応じて、注文管理情報111bを更新する。状態管理部113は、注文キュー111aから取り出した注文データの新規登録依頼を要求処理部112から取得し、注文データを注文管理情報111bに新規登録する。状態管理部113は、要求を受けた注文データの識別情報に対応付けて注文処理の進行状態(新規)を含むレコードを作成し、注文管理情報111bに登録する。また、状態管理部113は、要求制御部114から送信処理の進行状態を受付に更新する更新依頼を受けて注文管理情報111bの対応する注文データの情報を更新する。また、状態管理部113は、通知制御部115から送信処理の進行状態を完了に更新する更新依頼を受けて注文管理情報111bの対応する注文データの情報を更新する。
The
要求制御部114は、要求処理部112からの要求を受け、送信要求の方式を判定する。第1の方式は、通信制御部140による先の注文データの送信が完了した後、次の注文データの送信要求を行うというものである。注文を1件ずつ確実に処理することができるため、注文データの件数が少ないときの送信処理に適している。第1の方式では、注文処理部110は通信制御部140の送信処理と同期して動作することから、以下の説明では同期型と表記する。第2の方式は、通信制御部140による先の注文データの受け付けが終了したら、送信完了を待たずに次の注文データの送信要求を行うというものである。第1の方式より次の注文データの送信要求を行うまでの期間が短くなるため、注文の滞留を抑制することができる。第2の方式では、注文処理部110は通信制御部140の送信処理と同期して動作しないことから、非同期型と表記する。要求制御部114は、要求処理部112から注文データとともに取得した注文キュー111aに登録される注文データの登録件数を所定の閾値と比較し、登録件数が閾値以下のときは同期型を選択し、多いときは非同期型を選択する。要求制御部114は、同期型を選択したときは、同期型を指定して通信制御部140に対して送信要求を行う。そして、要求制御部114は、通知制御部115を介して通信制御部140から送信完了通知を受けたことを検出したときは、要求処理部112に処理の復帰を通知する。また、要求制御部114は、非同期型を選択したときは、非同期型を指定して通信制御部140に対して送信要求を行う。そして、要求制御部114は、通信制御部140からの受付完了通知を取得し、要求処理部112に処理の復帰を通知する。さらに、状態管理部113に対し、注文管理情報111bの対応する注文データの注文処理の進行状態を、受付完了に更新するように依頼する。
The
通知制御部115は、通信制御部140から送信完了通知を取得し、同期型を選択しているときは、要求制御部114に対し連携完了を通知する。連携完了通知は、連携して注文データの送信処理を行う要求制御部114に送信の完了を通知するものである。また、通知制御部115は、状態管理部113に対し、注文管理情報111bの対応する注文データの注文処理の状態を、送信の完了に更新するように依頼する。
The
入力部120は、利用者装置301、キーボード12などに接続し、注文データを入力する。利用者装置301からは、顧客の新規注文データが適宜入力する。新規注文データは、例えば、寄り付きや引けの時間帯には大量に入力し、寄り付きと引けの間のザラ場では少なくなる傾向がある。キーボード12からは、例えば、オペレータがキーボード12を操作して入力した新規注文データが入力する。入力部120は、利用者装置301及びキーボード12などから入力した新規注文データを記憶部111の注文キュー111aに受け付けた順に登録する。このとき、登録したことを要求処理部112に通知するとしてもよい。なお、注文データに送信日時の指定があるような場合には、一旦入力部120が管理する記憶領域に注文データを記憶しておき、指定日時に到達したときに注文キュー111aに登録するようにしてもよい。また、入力部120は、キーボード12を操作してオペレータが入力した指示を表示部130などに通知する。
The
表示部130は、入力部120を介して注文処理の進行状態の表示要求を受けたときは、注文管理情報111bに基づいて注文処理の進行状態をモニタ11に表示する。例えば、注文処理部110が受け付けた注文データと、その注文データの注文処理の進行状態とを対応付けた一覧情報を表示する。
When the
通信制御部140は、要求制御部114から要求された注文データを電文に変換し、取引装置401に対して送信する処理を行う。同期型処理と非同期型処理を実装し、要求制御部114からの指定により切り替えて動作する。同期型処理では、通信制御部140は、要求制御部114から注文データの送信要求を入力し、送信要求を受け付けた後、取引装置401に向けて送信する。送信完了後、通信制御部140は、通知制御部115に対し、送信完了を通知する。非同期型処理では、通信制御部140は、要求制御部114から注文データの送信要求を入力し、送信要求を受け付けた後、受付完了通知を要求制御部114へ通知する。その後、通信制御部140は、注文データを取引装置401に向けて送信し、送信終了後に通知制御部115に対し、送信完了を通知する。通信制御部140は、CPU101が通信制御プログラムを実行することによりその処理機能が実現される。
The
要求パス150は、注文処理部110と、通信制御部140とを繋ぐ通信経路であり、主として要求制御部114が通信制御部140に出力する送信要求を伝達する。また、非同期型の場合に通信制御部140が要求制御部114に通知する受付完了通知も伝達する。
The
通知パス160は、注文処理部110と、通信制御部140とを繋ぐ通信経路であり、主として通知制御部115に通知する送信完了通知を伝達する。
図5は、注文管理情報の一例を示す図である。注文管理情報1111は、注文ID、状態、要求ID及び注文詳細の情報項目を含む。
The
FIG. 5 is a diagram illustrating an example of order management information. The order management information 1111 includes information items of order ID, status, request ID, and order details.
注文IDの項目には、注文データを識別するための識別情報が登録される。
状態の項目には、注文データの注文処理の進行状態を示す情報が登録される。「新規」は、要求処理部112が取り出した注文データを注文管理情報1111に新たに登録したことを示す。「受付」は、通信制御部140が、要求制御部114から受けた注文データの送信要求を受け付けたことを示す。「完了」は、通信制御部140による送信処理が終了したことを示す。同期型が選択された注文データは、登録時に状態の項目が「新規」になり、通信制御部140の送信完了通知を受けて「完了」となる。非同期型が選択された注文データは、状態の項目は、登録時に「新規」になり、通信制御部140の受付完了通知で「受付」の状態になり、通信制御部140の送信完了通知を受けて「完了」となる。
Identification information for identifying order data is registered in the item of order ID.
In the status item, information indicating the progress status of the order processing of the order data is registered. “New” indicates that the order data extracted by the
要求IDの項目は、非同期型処理の場合に、要求制御部114が送信要求を行った注文データと、通信制御部140が受付完了及び送信完了の通知を発行した注文データとを紐付けする情報である。要求制御部114は、送信要求時に付与した要求IDを注文管理情報1111に記憶しておく。要求制御部114及び通知制御部115は、通信制御部140からの通知に含まれる要求IDと、注文管理情報1111の要求IDとを照合し、通知を受けた注文データを特定する。なお、要求IDは、要求制御部114による非同期型の送信要求を受け付けた通信制御部140が付与し、受付完了の通知と共に要求制御部114へ通知するとしてもよい。
The request ID item is information for associating the order data for which the
注文詳細の情報項目は、注文データの詳しい内容を示す情報である。注文管理情報1111の例では、「注文種別」と「注文数量」などが登録されている。
なお、注文管理情報1111を構成する項目は一例であり、項目は必要に応じて適宜設定される。
The order detail information item is information indicating the detailed contents of the order data. In the example of the order management information 1111, “order type”, “order quantity”, and the like are registered.
Note that the items constituting the order management information 1111 are examples, and the items are appropriately set as necessary.
次に、要求処理部112、要求制御部114及び通知制御部115の各処理部が行う処理についてフローチャートを用いて説明する。
図6は、要求処理部の要求発行処理の手順を示すフローチャートである。以下、図6に示す処理をステップ番号に沿って説明する。
Next, processing performed by the processing units of the
FIG. 6 is a flowchart illustrating a procedure of request issue processing of the request processing unit. In the following, the process illustrated in FIG. 6 will be described in order of step number.
[ステップS10]要求処理部112は、注文キュー111aに登録される注文データの登録件数を算出する。また、注文キュー111aから注文データを1件取り出す。
[ステップS11]要求処理部112は、送信処理の進行状態を示す状態の項目を「新規」として、取り出した注文データを注文管理情報111bに登録するように状態管理部113に依頼する。
[Step S10] The
[Step S11] The
状態管理部113は、依頼を受け、その注文データのレコードを新たに生成し、注文管理情報111bに登録する。注文管理情報111bの対応する注文データの状態の項目には、「新規」を登録する。
Upon receiving the request, the
[ステップS12]要求処理部112は、注文データと、登録件数と、を要求制御部114に引き渡し、送信要求を発行する。
[ステップS13]要求処理部112は、送信要求を発行した仕掛中の要求処理を停止し、要求制御部114からの復帰指示を待つ。要求処理部112は、要求制御部114から復帰指示を取得したか否かを判定し、復帰指示を取得していなければ、仕掛中の要求処理の停止を継続する。復帰指示を取得していれば、処理をステップS10に進め、次の注文データの処理を行う。
[Step S12] The
[Step S13] The
以上の処理手順が実行されることにより、要求処理部112は、注文キュー111aに登録される注文データを1件ずつ取り出し、要求制御部114に対して送信要求を行い、復帰が指示されるまで処理を停止する。要求処理部112は、復帰が指示されたときは、この注文データの処理を終了し、次の注文データの処理を開始する。
By executing the above processing procedure, the
図7は、要求制御部の要求制御処理の手順を示すフローチャートである。以下、図7に示す処理をステップ番号に沿って説明する。
[ステップS21]要求制御部114は、要求処理部112から発行された送信要求を受け付ける。送信要求には、送信する注文データと、注文キュー111aに登録されている注文データの登録件数が含まれている。
FIG. 7 is a flowchart illustrating a procedure of request control processing of the request control unit. In the following, the process illustrated in FIG. 7 will be described in order of step number.
[Step S21] The
[ステップS22]要求制御部114は、注文データの登録件数と閾値とを比較し、注文データの登録件数が閾値以下であるか否かを判定する。注文データの登録件数が閾値以下である時は、処理をステップS23に進める。登録件数が閾値を超えているときは、処理をステップS25に進める。
[Step S22] The
[ステップS23]要求制御部114は、注文データの登録件数が閾値以下であるので、注文データは滞留していないと判断し、同期型を指定して通信制御部140に送信要求を出力する。具体的には、要求制御部114は、通信制御部140の同期型処理を呼び出す。
[Step S23] The
[ステップS24]要求制御部114は、通知制御部115から連携完了通知を取得するまで待つ。連携完了通知は、通知制御部115が通信制御部140から送信完了通知を受け取ったときに、要求制御部114に対して発行する通知である。連携完了通知を取得したときは、処理をステップS28に進める。
[Step S24] The
[ステップS25]要求制御部114は、注文データの登録件数が閾値より多いので、注文の滞留が発生するおそれがあると判断し、非同期型を指定して通信制御部140に送信要求を出力する。具体的には、要求制御部114は、通信制御部140の非同期型処理を呼び出す。非同期型処理を呼び出す場合には、1件の注文データの送信処理が終了する前に次の注文データを送信することができるので、注文データを識別するため、送信要求ごとに要求IDを付与する。通信制御部140は、非同期型処理を呼び出されたときは、完了通知に要求IDを付与する。要求制御部114は、通信制御部140から取得した完了通知がどの注文データに対応するものであるかを要求IDで識別する。
[Step S25] The
[ステップS26]要求制御部114は、通信制御部140から受付完了通知を取得するまで待つ。受付完了通知は、通信制御部140が要求制御部114の送信要求の受付処理を完了したときに、要求制御部114に対して発行する通知である。受付完了通知を取得したときは、処理をステップS27に進める。
[Step S <b> 26] The
[ステップS27]要求制御部114は、対応する注文データに関する注文管理情報111bの状態の項目を「受付」に更新するように状態管理部113に対して依頼する。状態管理部113は、依頼に応じて、対応する注文データに関する注文管理情報111bの状態の項目を「受付」に更新する。
[Step S27] The
[ステップS28]要求制御部114は、要求処理部112より受け付けた送信要求の仕掛けを復帰するように復帰指示を要求処理部112に出力する。
以上の処理手順が実行されることにより、要求制御部114は、注文キュー111aの登録件数が閾値以下であれば、同期型処理を呼び出し、送信処理の完了後に要求処理部112を復帰させる。注文キュー111aの登録件数が閾値を超えていれば、非同期型処理を呼び出し、注文データの送信要求の受付完了後に要求処理部112を復帰させる。
[Step S <b> 28] The
By executing the processing procedure described above, the
図8は、通知制御部の通知制御処理の手順を示すフローチャートである。以下、図8に示す処理をステップ番号に沿って説明する。
[ステップS31]通知制御部115は、通信制御部140が発行する送信完了通知を取得するのを待つ。通信制御部140は、送信完了通知を取得したときは、処理をステップS32に進める。
FIG. 8 is a flowchart illustrating a procedure of notification control processing of the notification control unit. In the following, the process illustrated in FIG. 8 will be described in order of step number.
[Step S31] The
[ステップS32]通知制御部115は、送信完了通知を取得した注文データに対応する注文データを特定し、注文管理情報111bの該当する注文データの状態の項目を「完了」に更新するように状態管理部113に依頼する。状態管理部113は、注文管理情報111bの該当する注文データの状態の項目を「完了」に更新する。同期型処理が行われているときは、送信処理を行っている注文データは1件であるので、通知制御部115は、対応する注文データを容易に特定できる。非同期型処理が行われているときは、通知制御部115は、要求IDに基づいて対応する注文データを特定する。
[Step S32] The
[ステップS33]通知制御部115は、送信処理が同期型で行われたか否かを判定する。同期型処理であるか、非同期型処理であるかは、通信制御部140から通知されるとする。また、例えば、要求IDの有無で判定するとしてもよい。通知制御部115は、同期型であれば処理をステップS34に進め、非同期型であれば、処理をステップS31に進める。
[Step S33] The
[ステップS34]通知制御部115は、同期型で行われているときは、要求制御部114に対し、連携完了通知を送り、処理をステップS31に進める。
このように、通知制御部115は、通信制御部140の送信完了通知を検出し、該当する注文データの注文管理情報111bの状態を更新する。また、同期型であれば、連携完了通知を要求制御部114へ通知する。
[Step S34] When the
Thus, the
次に、同期型で要求制御処理が行われる場合の処理の流れについて説明する。図9は、同期型の要求制御処理の例を示すシーケンス図である。以下、図9に示す処理をステップ番号に沿って説明する。 Next, the flow of processing when request control processing is performed synchronously will be described. FIG. 9 is a sequence diagram illustrating an example of a synchronous request control process. In the following, the process illustrated in FIG. 9 will be described in order of step number.
[ステップST01]要求処理部112は、注文キュー111aから注文データを1件取り出す。このとき、注文キュー111aに登録される注文データの登録件数も算出する。
[Step ST01] The
[ステップST02]要求処理部112は、状態管理部113に対し、取り出した注文データを注文管理情報111bに新たに登録するように、新規登録の依頼を行う。
[ステップST03]状態管理部113は、新規登録の依頼を受けた注文データのレコードを新たに作成し、注文管理情報111bに登録する。
[Step ST02] The
[Step ST03] The
[ステップST04]要求処理部112は、取り出した注文データの送信要求を要求制御部114に対して発行する。要求処理部112は、送信要求とともに登録件数と注文データとを要求制御部114に出力する。要求処理部112は、その後、待機601の状態に移行する。
[Step ST04] The
[ステップST05]要求制御部114は、要求処理部112から送信要求の注文データと、注文キュー111aの注文データの登録件数とを取得し、注文データの登録件数と閾値とを比較する。図9に示す要求制御部114の場合は、注文データの登録件数が閾値以下であるので、通信制御部140に対して同期型処理の呼び出しを行う。
[Step ST05] The
[ステップST06]通信制御部140は、同期型処理の呼び出しを受け、注文データの送信要求の受付処理を行う。同期型処理であるので、受付完了時に通知は行わない。通信制御部140は、受け付けた注文データを電文に変換し、取引装置401に送信する。
[Step ST06] The
[ステップST07]通信制御部140は、送信が完了したので、送信完了通知を通知制御部115に対して発行する。
[ステップST08]通知制御部115は、通信制御部140の発行した送信完了通知を取得し、連携完了通知を要求制御部114に対して発行する。
[Step ST07] Since the transmission is completed, the
[Step ST08] The
[ステップST09]要求制御部114は、連携完了通知を取得したことによって送信が完了したことを検出し、要求処理部112に対して復帰指示を行う。要求処理部112は、待機601の状態から復帰し、次の注文データの取り出しが可能な状態になる。
[Step ST09] The
[ステップST10]通知制御部115は、注文管理情報111bの送信完了通知を受けた注文データに該当する状態の項目を「完了」に更新するように、状態管理部113に対して依頼する。
[Step ST10] The
[ステップST11]状態管理部113は、注文管理情報111bの該当する注文データの状態の項目を更新する。
このように同期型の処理手順が行われる。
[Step ST11] The
In this way, a synchronous processing procedure is performed.
次に、非同期型で要求制御処理が行われる場合の処理の流れについて説明する。図10は、非同期型の要求制御処理の例を示すシーケンス図である。以下、図10に示す処理をステップ番号に沿って説明する。 Next, the flow of processing when request control processing is performed asynchronously will be described. FIG. 10 is a sequence diagram illustrating an example of asynchronous request control processing. In the following, the process illustrated in FIG. 10 will be described in order of step number.
[ステップST21]要求処理部112は、注文キュー111aから注文データを1件取り出す。このとき、注文キュー111aに登録される注文データの登録件数も算出する。
[Step ST21] The
[ステップST22]要求処理部112は、状態管理部113に対し、取り出した注文データを注文管理情報111bに新たに登録するように、新規登録の依頼を行う。
[ステップST23]状態管理部113は、新規登録の依頼を受けた注文データを新たに注文管理情報111bに登録する。
[Step ST22] The
[Step ST23] The
[ステップST24]要求処理部112は、取り出した注文データの送信要求を要求制御部114に対して発行する。要求処理部112は、送信要求とともに注文データの登録件数と注文データとを要求制御部114に出力する。要求処理部112は、その後、待機602の状態に移行する。
[Step ST24] The
[ステップST25]要求制御部114は、注文キュー111aに登録される注文データの登録件数と閾値とを比較し、注文データの登録件数が閾値を超えているので、通信制御部140に対して非同期型処理の呼び出しを行う。非同期型処理の呼び出しの際、要求IDも付加する。
[Step ST25] The
[ステップST26]通信制御部140は、非同期型処理の呼び出しを受け、注文データの送信要求の受付処理を行う。通信制御部140は、受付処理終了後、受付完了通知を要求制御部114に対して発行する。
[Step ST26] The
[ステップST27]通信制御部140は、受け付けが完了した注文データを電文に変換し、取引装置401に送信する。
[ステップST28]要求制御部114は、受付完了通知を取得し、状態管理部113に対し、受付完了通知を受けた注文データに対応する注文管理情報111bの状態の項目を、受付完了を示す「受付」に更新するように依頼を行う。
[Step ST <b> 27] The
[Step ST28] The
[ステップST29]状態管理部113は、要求制御部114の依頼を受け、受付完了通知に対応する注文データの状態の項目を「受付」に更新する。
[ステップST30]要求制御部114は、受付完了通知を取得したので、要求処理部112に対して復帰指示を発行する。要求処理部112は、待機602の状態から復帰し、次の注文データの取り出しが可能な状態になる。
[Step ST29] In response to the request from the
[Step ST30] Since the
[ステップST31]要求処理部112は、復帰指示に応じて待機602の状態から復帰したので、次の注文データの処理を開始する。要求処理部112は、注文キュー111aから注文データを1件取り出す。このとき、注文キュー111aに登録される注文データの登録件数も算出する。また、図10では省略しているが、状態管理部113に対し、取り出した注文データを注文管理情報111bに新規登録するように依頼する。
[Step ST31] Since the
[ステップST32]要求処理部112は、取り出した注文データの送信要求を要求制御部114に対して発行する。要求処理部112は、送信要求とともに登録件数と注文データとを要求制御部114に出力する。図示はしていないが、要求処理部112は、その後、待機状態に移行する。
[Step ST32] The
[ステップST33]要求制御部114は、注文キュー111aに登録される注文データの登録件数と閾値とを比較し、注文データの登録件数が閾値を超えているので、通信制御部140に対して非同期型処理の呼び出しを行う。非同期型処理の呼び出しの際、要求IDも付加する。なお、このとき、注文データの登録件数が閾値を超えていないときは、同期型処理の呼び出しを行う。
[Step ST33] The
[ステップST34]通信制御部140は、ステップST27で送信処理を行った注文データの送信が完了したので、送信完了通知を通知制御部115に対し発行する。通信制御部140は、送信完了通知に送信した注文データの要求IDを付加する。
[Step ST34] The
[ステップST35]通知制御部115は、通信制御部140の発行した送信完了通知を取得し、要求IDに基づいて対応する注文データを特定する。通知制御部115は、送信完了通知を受けた注文データに対応する注文管理情報111bの状態の項目を「完了」に更新するように、状態管理部113に対して依頼する。
[Step ST35] The
[ステップST36]状態管理部113は、注文管理情報111bの該当する注文データの状態の項目を更新する。
このように非同期型の処理手順が行われる。
[Step ST36] The
In this way, an asynchronous processing procedure is performed.
注文処理装置100によれば、送信要求を受けた注文データの登録件数に応じて自動的に同期型または非同期型を選択して送信処理を行うので、注文の滞留を抑制することができる。なお、注文処理装置100では、注文データの登録件数を算出し、同期型と非同期型の選択を行っている。これによれば、正確に注文の滞留の可能性を予測することができるが、注文の滞留の可能性を推測できる指標であれば他の指標を用いるとしてもよい。例えば、一定時間に入力する注文データの頻度を算出し、基準値以上の頻度で注文データが入力することを検出した場合に送信処理を同期型から非同期型に切り替えるとしてもよい。また、予め、注文が殺到する時間帯が予測できれば、時間で送信処理を同期型から非同期型に切り替えるとしてもよい。また、これらの指標を組み合わせるとしてもよい。
According to the
なお、上記の処理機能は、コンピュータによって実現することができる。その場合、注文処理装置が有すべき機能の処理内容を記述したプログラムが提供される。そのプログラムをコンピュータで実行することにより、上記処理機能がコンピュータ上で実現される。処理内容を記述したプログラムは、コンピュータで読み取り可能な記録媒体に記録しておくことができる。コンピュータで読み取り可能な記録媒体としては、磁気記憶装置、光ディスク、光磁気記録媒体、半導体メモリなどがある。磁気記憶装置には、ハードディスク装置(HDD)、フレキシブルディスク(FD)、磁気テープなどがある。光ディスクには、DVD、DVD−RAM、CD−ROM/RWなどがある。光磁気記録媒体には、MO(Magneto-Optical disk)などがある。 The above processing functions can be realized by a computer. In that case, a program describing the processing contents of the functions that the order processing apparatus should have is provided. By executing the program on a computer, the above processing functions are realized on the computer. The program describing the processing contents can be recorded on a computer-readable recording medium. Examples of the computer-readable recording medium include a magnetic storage device, an optical disk, a magneto-optical recording medium, and a semiconductor memory. Examples of the magnetic storage device include a hard disk device (HDD), a flexible disk (FD), and a magnetic tape. Optical discs include DVD, DVD-RAM, CD-ROM / RW, and the like. Magneto-optical recording media include MO (Magneto-Optical disk).
プログラムを流通させる場合には、例えば、そのプログラムが記録されたDVD、CD−ROMなどの可搬型記録媒体が販売される。また、プログラムをサーバコンピュータの記憶装置に格納しておき、ネットワークを介して、サーバコンピュータから他のコンピュータにそのプログラムを転送することもできる。 When distributing the program, for example, a portable recording medium such as a DVD or a CD-ROM in which the program is recorded is sold. It is also possible to store the program in a storage device of a server computer and transfer the program from the server computer to another computer via a network.
プログラムを実行するコンピュータは、例えば、可搬型記録媒体に記録されたプログラムもしくはサーバコンピュータから転送されたプログラムを、自己の記憶装置に格納する。そして、コンピュータは、自己の記憶装置からプログラムを読み取り、プログラムに従った処理を実行する。なお、コンピュータは、可搬型記録媒体から直接プログラムを読み取り、そのプログラムに従った処理を実行することもできる。また、コンピュータは、ネットワークを介して接続されたサーバコンピュータからプログラムが転送されるごとに、逐次、受け取ったプログラムに従った処理を実行することもできる。 The computer that executes the program stores, for example, the program recorded on the portable recording medium or the program transferred from the server computer in its own storage device. Then, the computer reads the program from its own storage device and executes processing according to the program. The computer can also read the program directly from the portable recording medium and execute processing according to the program. In addition, each time a program is transferred from a server computer connected via a network, the computer can sequentially execute processing according to the received program.
また、上記の処理機能の少なくとも一部を、DSP(Digital Signal Processor)、ASIC(Application Specific Integrated Circuit)、PLD(Programmable Logic Device)などの電子回路で実現することもできる。 In addition, at least a part of the above processing functions can be realized by an electronic circuit such as a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), or a PLD (Programmable Logic Device).
本発明は上記の実施形態そのままに限定されるものではなく、実施段階でのその要旨を逸脱しない範囲で構成要素を変形して具体化することができる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成することができる。例えば、実施形態に示される全構成要素を適宜組み合わせてもよい。さらに、異なる実施形態にわたる構成要素を適宜組み合わせてもよい。このような、発明の趣旨を逸脱しない範囲内において種々の変形や応用が可能である。 The present invention is not limited to the above-described embodiments as they are, and can be embodied by modifying the components without departing from the scope of the invention in the implementation stage. Moreover, various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. For example, all the constituent elements shown in the embodiments may be appropriately combined. Furthermore, constituent elements over different embodiments may be appropriately combined. Various modifications and applications are possible without departing from the spirit of the invention.
1 記憶部
1a 注文情報
2 注文処理部
3 通信制御部
100 注文処理装置
110 注文処理部
111 記憶部
111a 注文キュー
111b 注文管理情報
112 要求処理部
113 状態管理部
114 要求制御部
115 通知制御部
120 入力部
130 表示部
140 通信制御部
150 要求パス
160 通知パス
DESCRIPTION OF
Claims (5)
前記注文情報に含まれる前記注文データの件数が、所定の閾値以下のときは第1の方式を、前記閾値より多いときは第2の方式を選択して、前記注文情報から第1の注文データを取り出し、
前記第1の方式を選択したときは、通信制御部に前記第1の注文データの送信を要求し、前記通信制御部が前記第1の注文データの送信完了時に発行する送信完了通知を取得した後に第2の注文データの送信要求を可とし、
前記第2の方式を選択したときは、前記通信制御部に前記第1の注文データの送信を要求し、前記通信制御部が前記第1の注文データの送信要求の受付完了時に発行する受付完了通知を取得した後に前記第2の注文データの送信要求を可とし、
前記第2の方式を選択して前記通信制御部に対して前記第1の注文データの送信を要求する際に、前記送信要求を識別する要求識別情報を前記第1の注文データに付加して前記要求識別情報を前記記憶部に記憶し、
前記第1の注文データの送信完了時に前記通信制御部が前記要求識別情報を付加して発行する前記送信完了通知を取得し、前記送信完了通知に付加された前記要求識別情報と前記記憶部に記憶された前記要求識別情報とを照合して、送信処理が終了した前記第1の注文データを特定する、
処理を実行させる注文処理プログラム。 In a computer that stores in the storage unit order information in which order data to be transmitted is registered,
The first order data is selected from the order information by selecting the first method when the number of the order data included in the order information is equal to or less than a predetermined threshold, and selecting the second method when the number is greater than the threshold. Take out
When the first method is selected, the communication control unit is requested to transmit the first order data, and the communication control unit acquires a transmission completion notification issued when the transmission of the first order data is completed. Later, the second order data transmission request is permitted,
When the second method is selected, the communication control unit is requested to transmit the first order data, and the communication control unit issues a reception completion issued upon completion of reception of the first order data transmission request. After obtaining the notification, the transmission request for the second order data is permitted.
When selecting the second method and requesting the communication control unit to transmit the first order data, request identification information for identifying the transmission request is added to the first order data. Storing the request identification information in the storage unit ;
Upon completion of transmission of the first order data, the communication control unit acquires the transmission completion notification issued by adding the request identification information, and stores the request identification information added to the transmission completion notification and the storage unit. Collating with the stored request identification information to identify the first order data for which the transmission process has ended,
An order processing program that executes processing.
前記注文データが前記注文情報に登録されたことを検出してインクリメントし、前記第2の注文データの送信要求を可としたときにディクリメントするカウンタを設け、前記カウンタによって前記注文情報に含まれる前記注文データの件数を計数する、
処理を実行させる請求項1に記載の注文処理プログラム。 In the computer,
A counter is provided to detect that the order data has been registered in the order information, and to increment when the transmission request for the second order data is accepted, and is included in the order information by the counter. Counting the number of orders data;
The order processing program according to claim 1, wherein the order is executed.
前記注文データに対応付けて前記注文データの送信処理の進行状態を示す情報を注文管理情報として前記記憶部に記憶し、
外部からの要求に応じて、前記注文管理情報に基づく前記注文データの送信処理の進行状態を表示装置に表示する、
処理を実行させる請求項1または2に記載の注文処理プログラム。 In the computer,
Information indicating the progress of the order data transmission process in association with the order data is stored in the storage unit as order management information,
In response to a request from outside, the progress status of the order data transmission process based on the order management information is displayed on a display device.
The order processing program according to claim 1 or 2, wherein the order is executed.
前記注文データを、前記注文データに基づく接続先の取引装置に送信する通信制御部と、
前記注文情報に含まれる前記注文データの件数が、所定の閾値以下のときは第1の方式を、前記閾値より多いときは第2の方式を選択して、前記注文情報から第1の注文データを取り出し、前記第1の方式を選択したときは、前記通信制御部に前記第1の注文データの送信を要求し、前記通信制御部が前記第1の注文データの送信完了時に発行する送信完了通知を取得した後に第2の注文データの送信要求を可とし、前記第2の方式を選択したときは、前記通信制御部に前記第1の注文データの送信を要求し、前記通信制御部が前記第1の注文データの送信要求の受付完了時に発行する受付完了通知を取得した後に前記第2の注文データの送信要求を可とする注文処理部と、
を有し、
前記注文処理部は、前記第2の方式を選択して前記通信制御部に対して前記第1の注文データの送信を要求する際に、前記送信要求を識別する要求識別情報を前記第1の注文データに付加して前記要求識別情報を前記記憶部に記憶し、前記第1の注文データの送信完了時に前記通信制御部が前記要求識別情報を付加して発行する前記送信完了通知を取得し、前記送信完了通知に付加された前記要求識別情報と前記記憶部に記憶された前記要求識別情報とを照合して、送信処理が終了した前記第1の注文データを特定する、
注文処理装置。 A storage unit for storing order information in which order data to be transmitted is registered;
A communication control unit that transmits the order data to a transaction apparatus connected to based on the order data;
The first order data is selected from the order information by selecting the first method when the number of the order data included in the order information is equal to or less than a predetermined threshold, and selecting the second method when the number is greater than the threshold. When the first method is selected, the communication control unit requests the communication control unit to transmit the first order data, and the communication control unit issues a transmission completion when the transmission of the first order data is completed. If the second order data transmission request is permitted after the notification is acquired and the second method is selected, the communication control unit is requested to transmit the first order data, and the communication control unit An order processing unit that allows a transmission request for the second order data after obtaining a reception completion notification issued upon completion of reception of the transmission request for the first order data;
Have
The order processing unit selects request identification information for identifying the transmission request when selecting the second method and requesting the communication control unit to transmit the first order data. The request identification information is added to order data and stored in the storage unit, and the transmission control unit adds the request identification information and issues the transmission completion notification when the transmission of the first order data is completed. The request identification information added to the transmission completion notification is collated with the request identification information stored in the storage unit, and the first order data for which the transmission process is completed is specified.
Order processing device.
送信対象の注文データが登録され、記憶部に記憶される注文情報を読み出し、
前記注文情報に含まれる前記注文データの件数が、所定の閾値以下のときは第1の方式を、前記閾値より多いときは第2の方式を選択して、前記注文情報から第1の注文データを取り出し、
前記第1の方式を選択したときは、通信制御部に前記第1の注文データの送信を要求し、前記通信制御部が前記第1の注文データの送信完了時に発行する送信完了通知を取得した後に第2の注文データの送信要求を可とし、
前記第2の方式を選択したときは、前記通信制御部に前記第1の注文データの送信を要求し、前記通信制御部が前記第1の注文データの送信要求の受付完了時に発行する受付完了通知を取得した後に前記第2の注文データの送信要求を可とし、
前記第2の方式を選択して前記通信制御部に対して前記第1の注文データの送信を要求する際に、前記送信要求を識別する要求識別情報を前記第1の注文データに付加して前記要求識別情報を前記記憶部に記憶し、
前記第1の注文データの送信完了時に前記通信制御部が前記要求識別情報を付加して発行する前記送信完了通知を取得し、前記送信完了通知に付加された前記要求識別情報と前記記憶部に記憶された前記要求識別情報とを照合して、送信処理が終了した前記第1の注文データを特定する、
注文処理方法。 Computer
Order data to be transmitted is registered, and order information stored in the storage unit is read,
The first order data is selected from the order information by selecting the first method when the number of the order data included in the order information is equal to or less than a predetermined threshold, and selecting the second method when the number is greater than the threshold. Take out
When the first method is selected, the communication control unit is requested to transmit the first order data, and the communication control unit acquires a transmission completion notification issued when the transmission of the first order data is completed. Later, the second order data transmission request is permitted,
When the second method is selected, the communication control unit is requested to transmit the first order data, and the communication control unit issues a reception completion issued upon completion of reception of the first order data transmission request. After obtaining the notification, the transmission request for the second order data is permitted.
When selecting the second method and requesting the communication control unit to transmit the first order data, request identification information for identifying the transmission request is added to the first order data. Storing the request identification information in the storage unit ;
Upon completion of transmission of the first order data, the communication control unit acquires the transmission completion notification issued by adding the request identification information, and stores the request identification information added to the transmission completion notification and the storage unit. Collating with the stored request identification information to identify the first order data for which the transmission process has ended,
Order processing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015106938A JP6558950B2 (en) | 2015-05-27 | 2015-05-27 | Order processing program, order processing apparatus and order processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015106938A JP6558950B2 (en) | 2015-05-27 | 2015-05-27 | Order processing program, order processing apparatus and order processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2016224488A JP2016224488A (en) | 2016-12-28 |
JP6558950B2 true JP6558950B2 (en) | 2019-08-14 |
Family
ID=57745856
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015106938A Active JP6558950B2 (en) | 2015-05-27 | 2015-05-27 | Order processing program, order processing apparatus and order processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6558950B2 (en) |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11232294A (en) * | 1998-02-16 | 1999-08-27 | Ntt Communication Ware Kk | Www system and session managing method in www system |
JP4270992B2 (en) * | 2002-09-20 | 2009-06-03 | 株式会社リコー | Information processing apparatus, information processing method, information processing program, service providing apparatus, service providing method, service providing program, and recording medium |
JP4497875B2 (en) * | 2003-09-19 | 2010-07-07 | 株式会社三菱東京Ufj銀行 | Financial transaction support apparatus and program |
JP2006011889A (en) * | 2004-06-28 | 2006-01-12 | Hitachi Ltd | Order data check processing method |
JP2007299308A (en) * | 2006-05-02 | 2007-11-15 | Ricoh Co Ltd | Job processing system, job processing method, program, and recording medium |
JP5216299B2 (en) * | 2006-10-30 | 2013-06-19 | 株式会社日立製作所 | Order system |
AU2011200733B2 (en) * | 2011-02-21 | 2015-08-13 | Zomojo Pty Ltd | A market access system and method |
-
2015
- 2015-05-27 JP JP2015106938A patent/JP6558950B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2016224488A (en) | 2016-12-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9594585B2 (en) | Virtual machine control method, apparatus, and medium | |
JP6273927B2 (en) | Information processing system, monitoring device, monitoring program, and monitoring method | |
JP6064734B2 (en) | Workflow control program, apparatus and method | |
JPH1091357A (en) | Data storage device and method therefor | |
JP2007193471A (en) | Reservation management program, reservation management apparatus, and reservation management method | |
US10126980B2 (en) | Managing data operations in a quorum-based data replication system | |
JP2015022606A (en) | Information processing apparatus, job scheduling method, and job scheduling program | |
US20100194920A1 (en) | Behaviorally-based software acceleration for digital camera operations | |
JP6939327B2 (en) | Programs and information processing equipment | |
CN110134488A (en) | A container application monitoring method and system | |
TW201814502A (en) | Performing distributed branch prediction using fused processor cores in processor-based systems | |
US20160246656A1 (en) | Event management method and distributed system | |
CN100533390C (en) | Resource node and its determination method and equipment, its control method and computer product | |
JP2017228241A (en) | Screen transmission method, screen transmission device, and program | |
JP6558950B2 (en) | Order processing program, order processing apparatus and order processing method | |
US9052796B2 (en) | Asynchronous handling of an input stream dedicated to multiple targets | |
US7089265B1 (en) | Database management system for implementing independent database actions in response to events of interest | |
WO2009157062A1 (en) | Configuration management device, configuration management program, and configuration management method | |
US9852154B2 (en) | Methods for transferring reserves when moving virtual machines across systems | |
CN113448755B (en) | Transaction routing method and device for switching between new and old systems | |
CN113886500A (en) | A data processing method, device, server and storage medium | |
US20230195497A1 (en) | Container resource designing device, container resource designing method, and program | |
CN113253924A (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
JP5080636B2 (en) | Replica processing method, program and apparatus | |
JP6171494B2 (en) | Information processing apparatus, processing request program, and processing request method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170607 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20180531 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180703 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20180903 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20190212 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190510 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20190520 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20190709 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190716 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6558950 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |