JP5978008B2 - Transaction management system, transaction management method, and transaction management program - Google Patents
Transaction management system, transaction management method, and transaction management program Download PDFInfo
- Publication number
- JP5978008B2 JP5978008B2 JP2012121682A JP2012121682A JP5978008B2 JP 5978008 B2 JP5978008 B2 JP 5978008B2 JP 2012121682 A JP2012121682 A JP 2012121682A JP 2012121682 A JP2012121682 A JP 2012121682A JP 5978008 B2 JP5978008 B2 JP 5978008B2
- Authority
- JP
- Japan
- Prior art keywords
- transaction
- execution
- individual
- processing
- cancellation
- 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
- 238000007726 management method Methods 0.000 title claims description 163
- 238000000034 method Methods 0.000 claims description 260
- 238000012545 processing Methods 0.000 claims description 228
- 230000005540 biological transmission Effects 0.000 description 7
- 230000010365 information processing Effects 0.000 description 4
- 238000012790 confirmation Methods 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000012958 reprocessing Methods 0.000 description 1
- 230000033772 system development Effects 0.000 description 1
Images
Landscapes
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Description
本発明は、複数の処理を連携して実行する場合に、一部の処理で発生したエラーの対応を支援するための取引管理システム、取引管理方法及び取引管理プログラムに関する。 The present invention relates to a transaction management system, a transaction management method, and a transaction management program for supporting the handling of errors that occur in some processes when a plurality of processes are executed in cooperation.
クライアント端末から受信した処理要求に基づいて、情報処理システムにおいて各種情報処理を実行する場合、エラーが発生することがある。このようなエラーに対しては、迅速かつ効率的に対応することが望ましい。そこで、エラーが発生した場合に、要求元にエラーを返さずにロールバックや再処理を実行するための技術が検討されている(例えば、特許文献1参照。)。この文献に記載された技術においては、要求元端末からの第1サーバに対するリクエストを代理するリクエスト代理装置と、リクエスト代理装置から端末要求情報を受信し記憶する要求情報管理装置と、バックエンドサーバ又は他の外部デバイスへの第1サーバからの処理要求を代理し、接続情報を管理する接続代理装置とで構成される。そして、リクエスト代理装置は、サーバに障害を検知し、要求情報管理装置から端末要求情報を読み出して第2サーバへ送信する。第2サーバは、端末要求情報を用いて要求元端末からのリクエストを構成するトランザクション処理を継続する。そして、バックエンドサーバ又は外部デバイスへの処理要求を接続代理装置へ送信する際には、接続情報を用いて処理結果をリクエスト代理装置へ送信する。 An error may occur when various types of information processing are executed in the information processing system based on the processing request received from the client terminal. It is desirable to respond quickly and efficiently to such errors. Therefore, a technique for performing rollback or reprocessing without returning an error to the request source when an error occurs has been studied (for example, see Patent Document 1). In the technique described in this document, a request proxy device proxying a request for a first server from a request source terminal, a request information management device receiving and storing terminal request information from the request proxy device, a back-end server, or It is composed of a connection proxy device that acts as a proxy for processing requests from the first server to other external devices and manages connection information. Then, the request proxy device detects a failure in the server, reads the terminal request information from the request information management device, and transmits it to the second server. The second server continues the transaction processing that constitutes the request from the request source terminal using the terminal request information. When transmitting a processing request to the back-end server or the external device to the connection proxy device, the processing result is transmitted to the request proxy device using the connection information.
また、このような情報処理においては、複数の個別処理を組み合わせて、ホストシステムにおいて行なうこともある。そこで、クライアント端末からのデータをホストシステムに転送するためのデータ転送システムも検討されている(例えば、特許文献2参照。)。この文献に記載された技術においては、電文を受信した締上げ管理サーバは、締上げ処理を実行する。そして、この電文を送信電文保管部に保管し、稼動状態のメインHUBを介して電文の送信処理を実行する。そして、この文献には、一つの取引電文の取引を完了させるために、複数の個別処理を組み合わせた取引フロー(連携処理)を行なうことが記載されている。ここで、連携処理とは、複数の個別処理(例えば、営業店毎の売上げ管理や、顧客毎の顧客情報ファイル管理(CIF)、口座管理等)を連続して一連の取引として扱う処理である。 In addition, such information processing may be performed in the host system by combining a plurality of individual processes. Therefore, a data transfer system for transferring data from the client terminal to the host system has also been studied (see, for example, Patent Document 2). In the technique described in this document, the tightening management server that has received the message executes a tightening process. Then, this message is stored in the transmission message storage unit, and a message transmission process is executed via the main HUB in the operating state. And in this document, in order to complete the transaction of one transaction message, it is described that a transaction flow (cooperation processing) combining a plurality of individual processes is performed. Here, the linkage process is a process in which a plurality of individual processes (for example, sales management for each branch office, customer information file management (CIF) for each customer, account management, etc.) are continuously handled as a series of transactions. .
ところで、エラーが発生する原因は多様であり、情報処理を実行するために必要な条件が整合していない場合に生じる業務エラーや、システム的な障害により発生するシステムエラー等がある。そして、このようなエラーの種類によって対応の仕方は異なる。ここで、業務エラーとシステムエラーとでは、既に実行済みの処理を取り消す場合にも、その取消方法が異なる。すなわち、業務エラーの場合には健全なシステムを前提として取り消すことが可能であるが、システムエラーの場合にはシステムに障害が発生しているために、業務エラーとは異なる対応が必要である。 By the way, there are various causes of the error, and there are a business error that occurs when conditions necessary for executing information processing are not consistent, a system error that occurs due to a system failure, and the like. The way of handling varies depending on the type of error. Here, the cancellation method differs between the business error and the system error even when the already executed processing is canceled. That is, in the case of a business error, it is possible to cancel on the premise of a sound system, but in the case of a system error, a failure has occurred in the system, and therefore, a response different from the business error is required.
また、特許文献2に記載されている連携処理においては、連携処理を構成する個別処理の順番が大切であり、取消時においても取り消す順番を考慮する必要がある。
本発明は、上述した問題に鑑みてなされたものであり、その目的は、複数の処理を連携して実行する場合に、一部の処理で発生したエラーに対して効率的な対応を支援するための取引管理システム、取引管理方法及び取引管理プログラムを提供することにある。
In the cooperation process described in Patent Document 2, the order of the individual processes constituting the cooperation process is important, and it is necessary to consider the order of cancellation even when canceling.
The present invention has been made in view of the above-described problems, and an object of the present invention is to support efficient responses to errors generated in some processes when a plurality of processes are executed in cooperation. To provide a transaction management system, a transaction management method and a transaction management program.
上記問題点を解決するために、請求項1に記載の発明は、取引端末と、取引のための個別処理を実行する実行装置とに接続された制御部と、取引のために連携して行なう複数の個別処理に関する情報を記憶した連携情報記憶部と、前記取引端末から受信した取引電文に対応して実行した個別処理の完了情報を記録した実行情報記憶部と、前記連携情報記憶部に記録された連携処理を実行する連携アプリケーションを実行するアプリケーション実行手段の実行状況を監視する管理部とを備えた取引管理システムであって、前記制御部が、前記取引端末から受信した取引電文に対応する連携アプリケーションにより、個別処理を実行するアプリケーション実行手段を起動し、前記アプリケーション実行手段が、前記連携アプリケーションにより前記連携情報記憶部において特定される個別処理について、前記実行装置に対して、順次、前記個別処理の処理依頼を送信し、前記個別処理を完了した場合、前記個別処理についての完了情報を前記実行情報記憶部に記録し、前記アプリケーション実行手段が、複数の個別処理を組み合わせた連携処理の一部の個別処理においてエラーを検知した場合、前記連携アプリケーションにより、前記実行情報記憶部において完了情報が記録された実行済み個別処理を特定し、前記実行済み個別処理を連携処理において取り消す取消要求電文を、順次、生成して、前記実行装置に送信するフロー取消処理を実行し、前記管理部が、前記アプリケーション実行手段によって実行されている前記連携アプリケーションにおいてシステムエラーを検知した場合には、前記実行情報記憶部から個別処理の完了情報を取得し、前記完了情報に基づいて、前記実行済み個別処理を取り消すための取消実行手段を起動し、前記取消実行手段を用いて、前記実行済み個別処理のロールバック取消処理を実行することを要旨とする。 In order to solve the above problems, the invention described in claim 1 is performed in cooperation with a transaction terminal, a control unit connected to an execution device that executes individual processing for transaction, and for transaction. A cooperation information storage unit that stores information related to a plurality of individual processes, an execution information storage unit that records completion information of individual processes executed in response to a transaction message received from the transaction terminal, and a record in the cooperation information storage unit A transaction management system comprising: a management unit that monitors an execution status of an application execution unit that executes a linked application that executes a linked process , wherein the control unit corresponds to a transaction message received from the transaction terminal the cooperative application, then start the application execution means for executing the individual process, said application executing means, before by the cooperative application For the individual process specified in the cooperation information storage unit, the processing request for the individual process is sequentially transmitted to the execution device, and when the individual process is completed, the completion information about the individual process is displayed as the execution information. When the application execution means detects an error in a part of the individual processing of the cooperation processing combining a plurality of individual processing , the completion information is recorded in the execution information storage unit by the cooperation application. The executed individual process is identified, a cancellation request message for canceling the executed individual process in the cooperation process is sequentially generated, and the flow cancellation process is transmitted to the execution device, and the management unit executes the application When a system error is detected in the cooperative application being executed by the execution means Acquires completion information of the individual process from the execution information storage unit, starts cancellation execution means for canceling the executed individual process based on the completion information, and uses the cancellation execution means to execute the execution The gist is to execute the rollback cancellation processing of the completed individual processing .
請求項2に記載の発明は、請求項1に記載の取引管理システムにおいて、前記実行済み個別処理の取消処理を実行する場合には、前記実行済み個別処理の実行順番の逆順に前記各個別処理の取消処理を実行することを要旨とする。 According to a second aspect of the present invention, in the transaction management system according to the first aspect, when executing the cancellation process of the executed individual processes, the individual processes are performed in the reverse order of the execution order of the executed individual processes. The main point is to execute the cancellation process.
請求項3に記載の発明は、取引端末と、取引のための個別処理を実行する実行装置とに接続された制御部と、取引のために連携して行なう複数の個別処理に関する情報を記憶した連携情報記憶部と、前記取引端末から受信した取引電文に対応して実行した個別処理の完了情報を記録した実行情報記憶部と、前記連携情報記憶部に記録された連携処理を実行する連携アプリケーションを実行するアプリケーション実行手段の実行状況を監視する管理部とを備えた取引管理システムを用いて、取引を管理するための方法であって、前記制御部が、前記取引端末から受信した取引電文に対応する連携アプリケーションにより、個別処理を実行するアプリケーション実行手段を起動し、前記アプリケーション実行手段が、前記連携アプリケーションにより前記連携情報記憶部において特定される個別処理について、前記実行装置に対して、順次、前記個別処理の処理依頼を送信し、前記個別処理を完了した場合、前記個別処理についての完了情報を前記実行情報記憶部に記録し、前記アプリケーション実行手段が、複数の個別処理を組み合わせた連携処理の一部の個別処理においてエラーを検知した場合、前記連携アプリケーションにより、前記実行情報記憶部において完了情報が記録された実行済み個別処理を特定し、前記実行済み個別処理を連携処理において取り消す取消要求電文を、順次、生成して、前記実行装置に送信するフロー取消処理を実行し、前記管理部が、前記アプリケーション実行手段によって実行されている前記連携アプリケーションにおいてシステムエラーを検知した場合には、前記実行情報記憶部から個別処理の完了情報を取得し、前記完了情報に基づいて、前記実行済み個別処理を取り消すための取消実行手段を起動し、前記取消実行手段を用いて、前記実行済み個別処理のロールバック取消処理を実行することを要旨とする。 Invention of Claim 3 memorize | stored the information regarding the control part connected to the transaction terminal, the execution apparatus which performs the separate process for a transaction, and the several separate process cooperated for a transaction A cooperation information storage unit, an execution information storage unit that records completion information of an individual process executed in response to a transaction message received from the transaction terminal, and a cooperation application that executes the cooperation process recorded in the cooperation information storage unit And a transaction management system comprising a management unit that monitors the execution status of the application execution means for executing the transaction, wherein the control unit receives the transaction message received from the transaction terminal. the corresponding cooperative application, then start the application execution means for executing the individual process, said application executing means, the cooperative application Ri for individual process specified in the linkage information storage section, to the execution unit sequentially transmits a processing request of the individual processing, if completed the individual processing, the completion information of the individual processing When the application execution unit detects an error in a part of the individual processing of the cooperation process that combines a plurality of individual processes , the completion information is stored in the execution information storage unit by the cooperation application. The recorded individual executed process is identified, a cancellation request message for canceling the executed individual process in the cooperation process is sequentially generated, and a flow cancellation process is transmitted to the execution device . A system error is detected in the cooperative application being executed by the application execution means. In this case, the completion information of the individual process is acquired from the execution information storage unit, and based on the completion information, a cancellation execution unit for canceling the executed individual process is started, and the cancellation execution unit is used. The gist of the present invention is to execute rollback cancellation processing of the executed individual processing .
請求項4に記載の発明は、取引端末と、取引のための個別処理を実行する実行装置とに接続された制御部と、取引のために連携して行なう複数の個別処理に関する情報を記憶した連携情報記憶部と、前記取引端末から受信した取引電文に対応して実行した個別処理の完了情報を記録した実行情報記憶部と、前記連携情報記憶部に記録された連携処理を実行する連携アプリケーションを実行するアプリケーション実行手段の実行状況を監視する管理部とを備えた取引管理システムを用いて、取引を管理するためのプログラムであって、前記制御部を、前記取引端末から受信した取引電文に対応する連携アプリケーションにより、個別処理を実行するアプリケーション実行手段を起動し、前記アプリケーション実行手段が、前記連携アプリケーションにより前記連携情報記憶部において特定される個別処理について、前記実行装置に対して、順次、前記個別処理の処理依頼を送信し、前記個別処理を完了した場合、前記個別処理についての完了情報を前記実行情報記憶部に記録し、前記アプリケーション実行手段が、複数の個別処理を組み合わせた連携処理の一部の個別処理においてエラーを検知した場合、前記連携アプリケーションにより、前記実行情報記憶部において完了情報が記録された実行済み個別処理を特定し、前記実行済み個別処理を連携処理において取り消す取消要求電文を、順次、生成して、前記実行装置に送信するフロー取消処理を実行し、前記管理部が、前記アプリケーション実行手段によって実行されている前記連携アプリケーションにおいてシステムエラーを検知した場合には、前記実行情報記憶部から個別処理の完了情報を取得し、前記完了情報に基づいて、前記実行済み個別処理を取り消すための取消実行手段を起動し、前記取消実行手段を用いて、前記実行済み個別処理のロールバック取消処理を実行する手段として機能させることを要旨とする。 Invention of Claim 4 memorize | stored the information regarding the control part connected to the transaction terminal, the execution apparatus which performs the separate process for transaction, and the several separate process cooperated for transaction A cooperation information storage unit, an execution information storage unit that records completion information of individual processing executed in response to a transaction message received from the transaction terminal, and a cooperation application that executes the cooperation process recorded in the cooperation information storage unit A program for managing transactions using a transaction management system comprising a management unit that monitors the execution status of the application execution means for executing the control, and the control unit is connected to the transaction message received from the transaction terminal. the corresponding cooperative application, then start the application execution means for executing an individual process, said application executing means, wherein the linkage Apurikeshi The individual process specified in the linkage information storing unit by emissions, to the execution unit sequentially transmits a processing request of the individual processing, if completed the individual processing, the completion information of the individual processing When the application execution means detects an error in a part of the individual processing of the cooperation process that combines a plurality of individual processes , the completion information is recorded in the execution information storage unit by the cooperation application. The execution individual process in which the executed individual process is recorded , the cancellation request message for canceling the executed individual process in the cooperation process is sequentially generated, and the flow cancellation process is transmitted to the execution device, and the management unit A system error in the cooperative application being executed by the application executing means. If known, the completion information of the individual process is acquired from the execution information storage unit, and based on the completion information, a cancellation execution unit for canceling the executed individual process is started, and the cancellation execution unit is used. Thus, the gist is to function as means for executing the rollback cancellation processing of the individual processing that has been executed .
(作用)
請求項1、3又は4に記載の発明によれば、制御部が、取引端末から受信した取引電文に対応する個別処理を実行するためのアプリケーション実行手段を起動し、アプリケーション実行手段が、連携情報記憶部において特定される個別処理について、実行装置に対して、順次、個別処理の処理依頼を送信する。個別処理を完了した場合、個別処理についての完了情報を実行情報記憶部に記録する。そして、一部の個別処理においてエラーを検知した場合、実行情報記憶部において完了情報が記録された実行済み個別処理を特定し、実行済み個別処理の取消処理を実行する。これにより、エラーが生じた場合に、実行済みの処理を取り消して、効率的に処理前の状態に戻すことができる。
(Function)
According to invention of Claim 1, 3 or 4 , a control part starts the application execution means for performing the separate process corresponding to the transaction message received from the transaction terminal, and an application execution means is cooperation information. For the individual processes specified in the storage unit, processing requests for the individual processes are sequentially transmitted to the execution device. When the individual process is completed, the completion information about the individual process is recorded in the execution information storage unit. When an error is detected in some of the individual processes, the executed individual process in which the completion information is recorded in the execution information storage unit is specified, and the executed individual process is canceled. Thereby, when an error occurs, the executed process can be canceled and the state before the process can be efficiently restored.
請求項2に記載の発明によれば、実行済み個別処理の取消処理を実行する場合には、実行済み個別処理の実行順番の逆順に各個別処理の取消処理を実行する。これにより、個別処理を実行した順番を考慮して、処理前の状態に戻すことができる。 According to the second aspect of the present invention, when executing the cancellation processing of the executed individual processing, the cancellation processing of each individual processing is executed in the reverse order of the execution order of the executed individual processing. Thereby, it is possible to return to the state before the processing in consideration of the order in which the individual processing is executed.
本発明によれば、実行済み個別処理の取消処理を実行する場合には、アプリケーション実行手段が、実行情報記憶部から個別処理の完了情報を取得し、完了情報に基づいて、実行装置に対して取消要求電文を送信する。これにより、業務エラー等のように、予め想定されるエラーに対して、アプリケーションにより、実行済み処理を取り消すことができる。 According to the present invention, when executing the cancellation process of the executed individual process, the application execution unit acquires the completion information of the individual process from the execution information storage unit and, based on the completion information, the execution apparatus Send a cancellation request message. As a result, an executed process can be canceled by an application for a previously assumed error such as a business error.
本発明によれば、アプリケーション実行手段においてシステムエラーを検知した場合には、アプリケーション実行手段を監視する管理部が、実行情報記憶部から個別処理の完了情報を取得する。そして、完了情報に基づいて、実行済み個別処理を取り消すための取消実行手段を起動し、取消実行手段を用いて個別処理の取消を行なう。これにより、システムエラー等のように、アプリケーションで制御できない場合にも、実行済みの処理を取り消すことができる。 According to the present invention, when a system error is detected in the application execution unit, the management unit that monitors the application execution unit acquires completion information of the individual process from the execution information storage unit. Then, based on the completion information, a cancel execution means for canceling the executed individual process is activated, and the individual process is canceled using the cancel execution means. As a result, even when the application cannot be controlled, such as a system error, the executed process can be canceled.
本発明によれば、複数の処理を連携して実行する場合に、一部の処理で発生したエラーに対して効率的な対応を支援するための取引管理システム、取引管理方法及び取引管理プログラムを提供することができる。 According to the present invention, a transaction management system, a transaction management method, and a transaction management program for supporting an efficient response to an error occurring in a part of processing when a plurality of processes are executed in cooperation with each other. Can be provided.
以下、本発明を具体化した一実施形態を図1〜図6に基づいて説明する。本実施形態では、取引要求に対応して、複数のプロセスを組み合わせた個別処理により各取引を実行する場合を想定する。 Hereinafter, an embodiment embodying the present invention will be described with reference to FIGS. In the present embodiment, it is assumed that each transaction is executed by individual processing combining a plurality of processes in response to a transaction request.
図1に示すように、ここでは、ネットワークを介して接続された取引端末10、取引共通システム20、サービス管理サーバ30を用いる。
取引端末10は、ディスプレイ等の出力手段や、キーボードやポインティングデバイス等の入力手段を備えている。
As shown in FIG. 1, here, a
取引端末10は、取引担当者によって入力された取引電文を送信するコンピュータ端末である。この取引端末10は、例えば、店頭に設置されたフロント端末等を用いることが可能である。取引端末10は、取引電文に対して取引種別コード、顧客コードや取引内容を取引情報記憶部(図示せず)に記録する。そして、取引端末10は、この取引電文を、ネットワークを介して、取引共通システム20に転送する。また、取引端末10は、取引共通システム20から受信した取引応答電文を出力手段に出力する。
The
取引共通システム20は、取引電文の内容に基づいて必要な個別処理を特定し、この個別処理を実行するサービス管理サーバ30に処理依頼電文を送信するコンピュータ装置である。ここで、制御部21は、取引電文の内容に応じて後続の個別処理の実行が必要な場合には、新たに処理依頼電文を生成し、この個別処理を実行するサービス管理サーバ30に送信する。そして、取引電文に対応するすべての個別処理を終了した場合には、取引電文に対応する取引応答電文を、取引端末10に返信する。
The
取引共通システム20は、制御部21、連携情報記憶部22、取引管理情報記憶部24、エラー情報記憶部26、取消実行ルーチン記憶部28を備えている。
制御部21は、制御手段(CPU、RAM、ROM等)を備えている。そして、この制御部21は、後述する処理(取引フロー管理段階、例外処理実行段階等の各処理等)を行なう。そのための取引管理プログラムを実行することにより、この制御部21は、図1に示すように、取引フロー管理手段211、例外処理実行手段212等の各手段として機能する。
The
The control unit 21 includes control means (CPU, RAM, ROM, etc.). And this control part 21 performs the process (each process of a transaction flow management stage, an exception process execution stage, etc.) mentioned later. By executing a transaction management program for this purpose, the control unit 21 functions as each unit such as a transaction
取引フロー管理手段211はアプリケーション実行手段として機能し、取引アプリケーションに基づいて、取引端末10から受信した取引電文に対応して取引を行なう各種処理を実行する。具体的には、取引フロー管理手段211は、取引実行手段A1及びフロー取消手段A2を起動して各種処理を実行させる。取引実行手段A1は、取引を行なうために必要な取引フローを特定し、この取引フローに含まれる取引プロセス(個別処理)を行なうサービス管理サーバ30に、処理依頼電文を送信する処理を実行する。一方、フロー取消手段A2は、サービス管理サーバ30において実行される個別処理において業務エラーを検知した場合、実行済みの個別処理を取り消す処理を行なう。
The transaction
例外処理実行手段212は、取引フロー管理手段211を監視する管理部として機能し、取引フロー管理手段211においてシステムエラーが生じた場合に、実行済みの個別処理を取り消す取消実行手段B1を起動する処理を行なう。ここでは、取引アプリケーションが実行されるシステム環境(実行環境)においてロールバック取消処理を実行する。
The exception
連携情報記憶部22には、図2(a)に示すように、取引電文の取引を実現するために連携して行なう個別処理を特定するための連携管理レコード220が記録されている。この連携管理レコード220は、取引において必要な個別処理が登録された場合に記録される。連携管理レコード220には、取引種別、処理種別に関するデータが記録される。
As shown in FIG. 2A, a
取引種別データ領域には、取引電文における取引種別を特定するための識別子に関するデータが記録される。
処理種別データ領域には、この取引電文の取引を完了させるために必要な個別処理の処理種別を特定するための識別子に関するデータが記録される。ここでは、個別処理を実行する順番を特定できるように記録されている。
In the transaction type data area, data relating to an identifier for specifying the transaction type in the transaction message is recorded.
In the process type data area, data relating to an identifier for specifying the process type of the individual process necessary for completing the transaction of the transaction message is recorded. Here, it records so that the order which performs an individual process can be specified.
取引管理情報記憶部24は実行情報記憶部として機能する。この取引管理情報記憶部24には、図2(b)に示すように、取引端末10から受信した取引電文を管理するための取引管理レコード240が記録される。この取引管理レコード240は、取引端末10から取引電文を受信した場合に登録される。取引管理レコード240には、取引電文コード、電文受信日時、取引種別、取引内容、取引結果に関するデータが記録される。更に、この取引管理レコード240には、処理種別に対して処理結果に関するデータが記録される。
The transaction management
取引電文コードデータ領域には、各取引電文を特定するための識別子に関するデータが記録される。
電文受信日時データ領域には、この取引電文を受信した年月日及び時刻に関するデータが記録される。
Data relating to an identifier for identifying each transaction message is recorded in the transaction message code data area.
Data related to the date and time when this transaction message is received is recorded in the message reception date and time data area.
取引種別データ領域には、この取引電文における取引種別を特定するための識別子に関するデータが記録される。
取引内容データ領域には、この取引電文における取引の詳細に関するデータが記録される。この取引内容には、取引金額に関するデータが含まれる。
In the transaction type data area, data relating to an identifier for specifying the transaction type in the transaction message is recorded.
In the transaction content data area, data relating to the details of the transaction in the transaction message is recorded. This transaction content includes data relating to the transaction amount.
取引結果データ領域には、この取引電文における取引の最終結果に関するデータが記録される。本実施形態では、取引を完了した場合には完了フラグが記録される。一方、エラーが発生して取引を完了できなかった場合には、エラーフラグが記録される。 In the transaction result data area, data relating to the final result of the transaction in this transaction message is recorded. In the present embodiment, when the transaction is completed, a completion flag is recorded. On the other hand, when an error occurs and the transaction cannot be completed, an error flag is recorded.
処理種別データ領域には、この取引電文に基づいて、連携して行なわれる個別処理の処理種別を特定するための識別子に関するデータが記録される。
処理結果データ領域には、この個別処理についての処理結果に関するデータが記録される。本実施形態では、この処理種別の個別処理を完了した場合には完了フラグ(個別処理の完了情報)が記録される。また、エラー発生に対応して、個別処理を取り消した場合には、取消フラグが記録される。
In the process type data area, data relating to an identifier for specifying the process type of the individual process performed in cooperation with each other is recorded based on this transaction message.
In the processing result data area, data related to the processing result for the individual processing is recorded. In the present embodiment, when the individual processing of this processing type is completed, a completion flag (individual processing completion information) is recorded. When an individual process is canceled in response to the occurrence of an error, a cancellation flag is recorded.
エラー情報記憶部26には、図2(c)に示すように、取引電文に基づいて行なわれた個別処理において発生したエラーについてのエラー管理レコード260が記録される。このエラー管理レコード260は、エラーが発生した個別処理を行なったサービス管理サーバ30からエラー情報を取得した場合に登録される。エラー管理レコード260には、取引電文コード、エラー発生日時、処理種別、エラーコード、エラー詳細に関するデータが記録される。
In the error
取引電文コードデータ領域には、エラーが発生した取引電文を特定するための識別子に関するデータが記録される。
エラー発生日時データ領域には、エラーが発生した年月日及び時刻に関するデータが記録される。
In the transaction message code data area, data relating to an identifier for identifying a transaction message in which an error has occurred is recorded.
In the error occurrence date and time data area, data related to the date and time when the error occurred is recorded.
処理種別データ領域には、エラーが発生した個別処理を特定するための識別子に関するデータが記録される。
エラーコードデータ領域、エラー詳細データ領域には、それぞれ、発生したエラーの内容を特定するための識別子や詳細内容に関するデータが記録される。
In the process type data area, data relating to an identifier for specifying an individual process in which an error has occurred is recorded.
In the error code data area and the error detailed data area, an identifier for specifying the content of the error that has occurred and data relating to the detailed content are recorded.
取消実行ルーチン記憶部28には、ロールバック取消において用いるプログラム(取消実行ルーチン)が記録されている。この取消実行ルーチンを呼び出すことにより、取消実行手段B1を起動させることができる。取消実行ルーチン記憶部28において、取消実行ルーチンは、処理種別毎に記録されている。
The cancellation execution
サービス管理サーバ30は実行装置として機能し、処理依頼電文に対応するために必要な各個別処理を実行するコンピュータ装置(例えば、ホストコンピュータ)である。各サービス管理サーバ30における個別処理には、例えば、営業店毎の売上げ管理や、顧客毎の顧客情報ファイル管理(CIF)、口座管理等の各処理が含まれる。
The
このサービス管理サーバ30は、取引共通システム20から受信した処理依頼電文に基づいて、処理種別に応じた個別処理を実行する。この場合、正常終了する場合と、エラーが発生する場合とがある。そして、サービス管理サーバ30は、処理依頼電文に基づいた個別処理の処理結果を含めた処理結果電文を返信する。この処理結果電文には、取引電文コード、処理種別に関するデータを含める。更に、エラーが発生することなく個別処理を正常終了した場合には、処理結果電文において処理結果として完了メッセージを含める。一方、エラーを検知し、個別処理を正常終了できなかった場合には、処理結果電文において処理結果としてエラーメッセージを含める。このエラーメッセージには、エラー内容を特定するためのエラーコード及びその詳細に関するデータを含める。
The
また、サービス管理サーバ30は、取引共通システム20から取消要求電文を受信した場合、この取消要求電文に含まれる取引電文コードにおいて行なわれた個別処理を取り消して、取引前の状態に戻す取消処理(ロールバック処理)を実行する。
In addition, when the
このサービス管理サーバ30は、取引ログ記憶部32を備えている。この取引ログ記憶部32には、処理依頼電文に対応して実行した個別処理についての実行履歴(取引ログ)が記録される。この取引ログには、取引電文コードに関連付けて、処理内容及び処理結果に関するデータが記録される。
The
(フロー取消の概要)
まず、図3を用いて、フロー取消の概要を説明する。
取引端末10から取引電文を受信した取引共通システム20の制御部21は、この取引電文に応じたアプリケーションにより、取引実行手段A1を起動する。
(Overview of flow cancellation)
First, the outline of the flow cancellation will be described with reference to FIG.
The control unit 21 of the transaction
この取引実行手段A1は、連携情報記憶部22に記録されている処理種別を、順次、特定して、この処理種別の個別処理の実行を要求する。ここでは、図3に示すように、取引フローに含まれる取引プロセス(S11、S12、S13、…)の順番で取引フローを実行する場合を想定する。そこで、取引実行手段A1は、サービス管理サーバ30に対して、順次、取引フローに含まれる取引プロセス(S11、S12、S13、…)に対応した処理種別の処理依頼電文を送信する。この場合、サービス管理サーバ30は、処理依頼電文に対応した個別処理を実施する。ここでは、サービス管理サーバ30においては、取引フローに含まれる取引プロセス(S11、S12、S13、…)に対応した個別処理(S31、S32、S33、…)が行なわれる。
This transaction execution means A1 sequentially specifies the process types recorded in the cooperation
そして、取引実行手段A1は、サービス管理サーバ30から受信した処理結果電文に基づいて、処理結果を取引管理情報記憶部24に記録する。
ここで、処理結果電文において業務エラーを検知した場合、取引実行手段A1は、アプリケーションにより、取消プロセスS1nを実行するため、フロー取消手段A2に処理を引き継ぐ。この場合、フロー取消手段A2は、取引管理情報記憶部24を用いて、実行済みの個別処理を特定する。そして、フロー取消手段A2は、取消フローとして、取消要求電文作成処理S41、電文送信処理S42、取消結果確認処理S43を実行する。
And transaction execution means A1 records a processing result in transaction management
Here, when a business error is detected in the processing result message, the transaction execution unit A1 takes over the processing to the flow cancellation unit A2 in order to execute the cancellation process S1n by the application. In this case, the flow cancellation unit A2 uses the transaction management
この取消要求電文作成処理S41においては、実行済みの取引プロセスを取り消すための取消要求電文を作成する。この取消要求電文には、取消対象の取引電文コードや取引内容に関するデータを含める。 In this cancellation request message creation process S41, a cancellation request message for canceling an executed transaction process is created. This cancellation request message includes data regarding the transaction message code to be canceled and transaction details.
電文送信処理S42においては、作成した取消要求電文を、サービス管理サーバ30に送信する。
取消結果確認処理S43は、サービス管理サーバ30から受信した処理結果電文に基づいて、取消対象の取引プロセスが取り消されたことを確認する。
In the message transmission process S42, the created cancellation request message is transmitted to the
The cancellation result confirmation processing S43 confirms that the transaction process to be canceled has been canceled based on the processing result message received from the
(ロールバック取消の概要)
次に、図4を用いて、アプリケーションにおいてシステムエラーが生じた場合のロールバック取消の概要を説明する。
(Overview of rollback cancellation)
Next, an outline of rollback cancellation when a system error occurs in an application will be described with reference to FIG.
ロールバック取消においても、フロー取消と同様に、取引実行手段A1において取引プロセス(S11、S12、S13、…)を実行し、サービス管理サーバ30に対して、順次、処理依頼電文を送信する。そして、サービス管理サーバ30においては、取引プロセス(S11、S12、S13、…)に対応して、個別処理(S31、S32、S33、…)が行なわれる。
Also in the rollback cancellation, similarly to the flow cancellation, the transaction execution means A1 executes the transaction process (S11, S12, S13,...), And sequentially transmits processing request messages to the
ここで、取引フロー管理手段211においてシステムエラーが発生した場合、フロー取消手段A2を起動することができない。そこで、システムエラーを検知した例外処理実行手段212は、取消実行手段B1を起動する。この取消実行手段B1は、取引管理情報記憶部24を用いて、実行済みの取引プロセス(S11、S12、S13)を特定する。次に、取引プロセスにおける個別処理を実行したサービス管理サーバ30の取引ログ記憶部32にアクセスし、取引ログを取得する。そして、取消実行手段B1は、この取引ログに基づいて、実行済みの個別処理(S33、S32、S31)に対応して、個別処理を取り消すための取消処理(S51、S52、S53)を実行する。
Here, when a system error occurs in the transaction
次に、以上のように構成されたシステムにおいて、取引を行なう場合についての手順を図5〜図6に基づいて説明する。
(取引処理)
まず、図5を用いて、取引管理処理を説明する。
ここでは、取引共通システム20の制御部21は、取引フローの定義処理を実行する(ステップS1−1)。具体的には、店頭において取引を行なう場合、取引担当者は取引端末10に取引情報を入力する。そして、入力を完了した場合、取引端末10は、取引電文を取引共通システム20に送信する。この取引電文には、取引種別、顧客コード、金額に関するデータを含める。取引端末10から取引電文を受信した取引共通システム20の制御部21の取引フロー管理手段211は、取引電文コードを付与するとともに、システムタイマから現在日時を取得し、取引電文コード及び電文受信日時として記録した取引管理レコード240を生成する。更に、この取引管理レコード240には、取引種別、取引内容(取引金額)に関するデータを含める。そして、取引フロー管理手段211は、生成した取引管理レコード240を取引管理情報記憶部24に記録する。
更に、取引フロー管理手段211は、取引電文に含まれる取引種別に基づいて、連携情報記憶部22に記録された連携管理レコード220を特定する。
Next, a procedure for performing a transaction in the system configured as described above will be described with reference to FIGS.
(Transaction processing)
First, the transaction management process will be described with reference to FIG.
Here, the control unit 21 of the transaction
Furthermore, the transaction
次に、取引共通システム20の制御部21は、実行対象の個別処理の特定処理を実行する(ステップS1−2)。具体的には、制御部21の取引フロー管理手段211は、この連携管理レコード220を用いて、取引電文の取引を実現するために必要な個別処理の処理種別を特定し、この処理種別を取引管理レコード240に記録する。そして、取引フロー管理手段211は、個別処理のための処理依頼電文を生成する。処理依頼電文には、取引電文コード、取引内容に関するデータを含める。
Next, the control part 21 of the transaction
次に、取引共通システム20の制御部21は、処理依頼の送信処理を実行する(ステップS1−3)。具体的には、制御部21の取引フロー管理手段211は、生成した処理依頼電文を、サービス管理サーバ30に送信する。ここでは、連携管理レコード220に記録された個別処理の順番に処理依頼電文を送信する。
Next, the control unit 21 of the transaction
処理依頼電文を受信したサービス管理サーバ30は、処理依頼電文に基づいて、個別処理を実行する。そして、サービス管理サーバ30は、個別処理の処理結果を含めた処理結果電文を取引共通システム20に返信する。この処理結果電文には、取引電文コード、処理種別、処理結果(完了メッセージ又はエラーメッセージ)に関するデータを含める。
The
次に、取引共通システム20の制御部21は、取引フローの実行結果の記録処理を実行する(ステップS1−4)。具体的には、制御部21の取引フロー管理手段211は、サービス管理サーバ30から受信した処理結果電文に基づいて、取引管理レコード240に処理種別に対応した処理結果を記録する。
Next, the control part 21 of the transaction
次に、取引共通システム20の制御部21は、エラーが発生したかどうかについての判定処理を実行する(ステップS1−5)。具体的には、制御部21の取引フロー管理手段211は、処理結果電文において処理結果としてエラーメッセージが含まれている場合には、エラーと判定する。
Next, the control part 21 of the transaction
ここで、処理結果電文において処理結果として完了メッセージが含まれており、エラーが発生していないと判定した場合(ステップS1−5において「NO」の場合)、取引共通システム20の制御部21は、すべての個別処理を完了したかどうかについての判定処理を実行する(ステップS1−6)。具体的には、制御部21の取引フロー管理手段211は、取引管理情報記憶部24の取引管理レコード240に記録されている処理結果に基づいて、すべての個別処理を終了したかどうかを判定する。ここで、すべての処理種別に対して処理結果が記録されている場合には、取引フロー管理手段211は、すべての個別処理を完了したと判定する。
Here, when it is determined that the processing result includes a completion message as a processing result and no error has occurred (in the case of “NO” in step S1-5), the control unit 21 of the transaction
すべての個別処理を完了したと判定した場合(ステップS1−6において「YES」の場合)、取引共通システム20の制御部21は、取引管理レコード240の取引結果データ領域に完了フラグを記録し、取引端末10に対して取引応答電文を送信して取引処理を終了する。この取引応答電文には、取引を完了したことを示すメッセージを含める。
When it is determined that all the individual processes have been completed (in the case of “YES” in step S1-6), the control unit 21 of the transaction
一方、処理結果が記録されていない処理種別が残っており、すべての個別処理を完了していないと判定した場合(ステップS1−6において「NO」の場合)、取引共通システム20の制御部21は、ステップS1−2の処理から繰り返す。この場合には、取引管理レコード240において処理結果が記録されていない処理種別において、順番が次の処理種別の処理依頼電文をサービス管理サーバ30に送信する。
On the other hand, if it is determined that there are processing types for which no processing result is recorded and that all individual processing has not been completed (in the case of “NO” in step S1-6), the control unit 21 of the transaction
また、処理結果電文において処理結果としてエラーメッセージが含まれており、エラーが発生したと判定した場合(ステップS1−5において「YES」の場合)、取引共通システム20の制御部21は、業務エラーに基づくフロー取消処理を実行する。ここでは、取引共通システム20の制御部21は、取引フローの実行結果の呼出処理を実行する(ステップS1−7)。具体的には、制御部21の取引フロー管理手段211は、フロー取消手段A2に処理を引き継ぐ。このフロー取消手段A2は、システムタイマから現在日時を取得し、エラー発生日時として設定したエラー管理レコード260を生成する。このエラー管理レコード260には、サービス管理サーバ30から受信した処理結果電文のエラーメッセージに基づいて、取引電文コード、処理種別、エラーコード、エラー詳細を含める。そして、フロー取消手段A2は、生成したエラー管理レコード260をエラー情報記憶部26に登録する。
In addition, when it is determined that an error message has been included as a processing result in the processing result message and an error has occurred (in the case of “YES” in step S1-5), the control unit 21 of the transaction
次に、フロー取消手段A2は、エラーが発生した個別処理の取引電文コードが記録された取引管理レコード240を取引管理情報記憶部24から抽出する。そして、フロー取消手段A2は、取引管理レコード240において、処理種別に関連付けてエラーフラグを記録する。
Next, the flow canceling means A2 extracts from the transaction management information storage unit 24 a
次に、取引共通システム20の制御部21は、取消対象の個別処理の特定処理を実行する(ステップS1−8)。具体的には、制御部21のフロー取消手段A2は、取引管理レコード240において完了フラグが記録されている処理種別を、取消対象の個別処理として特定する。ここでは、元の取引において個別処理を実行した順番の逆順で、取消対象の個別処理を特定する。
Next, the control part 21 of the transaction
次に、取引共通システム20の制御部21は、取消要求の送信処理を実行する(ステップS1−9)。具体的には、制御部21のフロー取消手段A2は、特定した処理種別の個別処理を取り消すための取消要求電文を生成し、サービス管理サーバ30に送信する。この取消要求電文には、取消対象の個別処理を特定するための情報(取引電文コード、取引種別、取引内容等)を含める。
Next, the control part 21 of the transaction
次に、取引共通システム20の制御部21は、取消応答の取得処理を実行する(ステップS1−10)。具体的には、取消要求を受信したサービス管理サーバ30は、取引電文コードに対応した個別処理の取消処理を実行する。そして、サービス管理サーバ30は、取消処理の結果を含めた取消応答電文を取引共通システム20に返信する。取引共通システム20の制御部21のフロー取消手段A2は、サービス管理サーバ30から、取消要求電文に対する取消応答電文を受信する。この場合、フロー取消手段A2は、取引管理レコード240において、取り消した処理種別に関連付けて、取消フラグを記録する。
Next, the control part 21 of the transaction
次に、取引共通システム20の制御部21は、すべてを取り消したかどうかについての判定処理を実行する(ステップS1−11)。具体的には、制御部21のフロー取消手段A2は、取引管理レコード240において、完了フラグが記録されている処理種別が残っていない場合には、すべてを取り消したと判定する。
Next, the control part 21 of the transaction
ここで、すべてを取り消したと判定した場合(ステップS1−11において「YES」の場合)、取引共通システム20の制御部21は、取引管理レコード240の取引結果データ領域にエラーフラグを記録し、取引端末10に対して取引応答電文を送信して取引処理を終了する。この取引応答電文には、業務エラーにより取引を完了できなかったことを示すメッセージを含める。
If it is determined that all have been canceled (“YES” in step S1-11), the control unit 21 of the transaction
一方、完了フラグが記録されている処理種別が残っており、すべての取消を終了していないと判定した場合(ステップS1−11において「NO」の場合)、取引共通システム20の制御部21は、ステップS1−8の処理から繰り返す。
On the other hand, when it is determined that the processing type in which the completion flag is recorded remains and all cancellations are not completed (in the case of “NO” in step S1-11), the control unit 21 of the transaction
(ロールバック取消処理)
次に、図6を用いて、ロールバック取消処理を説明する。この処理は、例外処理実行手段212が、取引フロー管理手段211におけるシステムエラーを検出した場合に実行される。
(Rollback cancellation processing)
Next, rollback cancellation processing will be described with reference to FIG. This process is executed when the exception
まず、取引共通システム20の制御部21は、実行記録の取得処理を実行する(ステップS2−1)。具体的には、制御部21の例外処理実行手段212は、エラーが発生した取引電文コードが記録された取引管理レコード240を取引管理情報記憶部24から抽出する。次に、例外処理実行手段212は、取引管理レコード240において、処理種別に関連付けて、処理結果としてエラーフラグを記録する。そして、例外処理実行手段212は、取引管理レコード240において完了フラグが記録されている処理種別を、取消対象のフロー情報として特定する。
First, the control unit 21 of the transaction
次に、取引共通システム20の制御部21は、取消対象の個別処理の特定処理を実行する(ステップS2−2)。具体的には、制御部21の例外処理実行手段212は、取引管理レコード240において完了フラグが記録されている処理種別を、取消対象の個別処理として特定する。ここでは、元の取引において個別処理を実行した順番の逆順で、取消対象の個別処理を特定する。
Next, the control part 21 of the transaction
次に、取引共通システム20の制御部21は、取消実行ルーチンの呼出処理を実行する(ステップS2−3)。具体的には、制御部21の例外処理実行手段212は、特定した取消対象の個別処理の処理種別に対応する取消実行ルーチンを、取消実行ルーチン記憶部28から呼び出す。そして、例外処理実行手段212は、呼び出した取消実行ルーチンにより、取消実行手段B1を起動する。
Next, the control part 21 of the transaction
この場合、取引共通システム20の制御部21は、取引ログの取得処理を実行する(ステップS3−1)。具体的には、制御部21の取消実行手段B1は、取消対象の処理種別の個別処理を実行するサービス管理サーバ30にアクセスし、取引ログ記憶部32から、取引電文コードに関連付けられた取引ログを取得する。
In this case, the control unit 21 of the transaction
次に、取引共通システム20の制御部21は、取消処理を実行する(ステップS3−2)。具体的には、制御部21の取消実行手段B1は、取得した取引ログに基づいて、個別処理を取り消すための取消要求電文を生成し、サービス管理サーバ30に送信する。この取消要求電文には、取消対象の個別処理を特定するための情報(取引電文コード、取引種別、取引内容等)を含める。
Next, the control part 21 of the transaction
次に、取引共通システム20の制御部21は、取消結果の出力処理を実行する(ステップS3−3)。具体的には、取消要求を受信したサービス管理サーバ30は、取引電文コードに対応した個別処理の取消処理を実行する。そして、サービス管理サーバ30は、取消処理の結果を含めた取消応答電文を取引共通システム20に返信する。取引共通システム20は、サービス管理サーバ30から、取消要求電文に対する取消応答電文を受信し、例外処理実行手段212に対して取消結果を出力する。
Next, the control part 21 of the transaction
次に、取引共通システム20の制御部21は、取消結果の取得処理を実行する(ステップS2−4)。具体的には、制御部21の例外処理実行手段212は、取引管理レコード240において、取り消した処理種別に関連付けて、処理結果として取消フラグを記録する。
Next, the control unit 21 of the transaction
次に、取引共通システム20の制御部21は、すべてを取り消したかどうかについての判定処理を実行する(ステップS2−5)。具体的には、制御部21の例外処理実行手段212は、取引管理レコード240において、完了フラグが記録されている処理種別が残っていない場合には、すべてを取り消したと判定する。
Next, the control part 21 of the transaction
ここで、すべてを取り消したと判定した場合(ステップS2−5において「YES」の場合)、取引共通システム20の制御部21は、システムエラー通知処理を実行する(ステップS2−6)。具体的には、制御部21の例外処理実行手段212は、取引管理レコード240の取引結果データ領域にエラーフラグを記録し、取引端末10に対して取引応答電文を送信して取引処理を終了する。この取引応答電文には、システムエラーにより取引を完了できなかったことを示すメッセージを含める。
Here, when it is determined that all have been canceled (in the case of “YES” in step S2-5), the control unit 21 of the transaction
一方、完了フラグが記録されている処理種別が残っており、すべての取消を終了していないと判定した場合(ステップS2−5において「NO」の場合)、取引共通システム20の制御部21は、ステップS2−3の処理から繰り返す。
On the other hand, when it is determined that the processing type in which the completion flag is recorded remains and all the cancellations are not completed (in the case of “NO” in step S2-5), the control unit 21 of the transaction
以上、本実施形態によれば、以下のような効果を得ることができる。
(1)本実施形態によれば、処理結果電文において処理結果としてエラーメッセージが含まれており、エラーが発生したと判定した場合(ステップS1−5において「YES」の場合)、取引共通システム20の制御部21は、業務エラーに基づくフロー取消処理を実行する。ここでは、取引共通システム20の制御部21は、取引フローの実行結果の呼出処理(ステップS1−7)、取消対象の個別処理の特定処理(ステップS1−8)、取消要求の送信処理(ステップS1−9)を実行する。これにより、業務エラーが発生した場合には、実行済みの個別処理を取り消して、効率的に元の状態に戻すことができる。
As described above, according to the present embodiment, the following effects can be obtained.
(1) According to the present embodiment, when a processing result message contains an error message as a processing result and it is determined that an error has occurred (in the case of “YES” in step S1-5), the transaction
(2)本実施形態によれば、取引共通システム20の制御部21は、システムエラーを検出した場合にロールバック取消処理を実行する。これにより、アプリケーション(取引フロー管理手段211)によりフロー取消を実行できない場合にも、実行済みの個別処理を取り消して、効率的に元の状態に戻すことができる。
(2) According to this embodiment, the control part 21 of the transaction
(3)本実施形態によれば、ロールバック取消処理において、取引共通システム20の制御部21は、取消実行ルーチンの呼出処理を実行する(ステップS2−3)。そして、制御部21は、取消対象の処理種別の取消実行ルーチンを用いて、取引ログの取得処理(ステップS3−1)、取消処理(ステップS3−2)、取消結果の出力処理(ステップS3−3)を実行する。これにより、アプリケーションの実行環境において設けられている機能を用いて、実行済みの個別処理を取り消すことができる。
(3) According to the present embodiment, in the rollback cancellation process, the control unit 21 of the transaction
(4)本実施形態によれば、取引共通システム20の制御部21は、業務エラーに基づくフロー取消処理を実行する。また、制御部21は、システムエラーを検出した場合には、ロールバック取消処理を実行する。これにより、システムのオペレータにおいて、後続のオペレーションを行なうことなく、取引前の状態に戻すことができる。
また、取引共通システム20においては、取引管理情報記憶部24に記録されている情報に基づいて取り消すため、汎用的な一つのフロー取消手段A2を準備することにより、使い回すことができる。システム開発の効率化、メンテナンスビリティを向上させることができる。
一方、サービス管理サーバ30においては、フロー取消、ロールバック取消の違いはなく、それぞれの取消に応じたカスタマイズを行なうことなく、取消を行なうことができる。
(4) According to this embodiment, the control part 21 of the transaction
Moreover, in the transaction
On the other hand, in the
なお、上記実施形態は以下のように変更してもよい。
・上記実施形態では、取引共通システム20の制御部21は、取消対象の個別処理の特定処理(ステップS1−8、S2−2)を実行する。この場合、取引管理レコード240において完了フラグが記録されている処理種別を、元の取引において個別処理を実行した順番の逆順で、取消対象の個別処理を特定する。この取消順番の特定方法は、取引管理レコード240を用いる方法に限定されるものではない。例えば、取引種別を特定して、連携情報記憶部22に記録されている連携管理レコード220を用いて、取消順番を特定することも可能である。
In addition, you may change the said embodiment as follows.
In the above embodiment, the control unit 21 of the transaction
・上記実施形態では、業務エラーにおいてはフロー取消処理を実行し、システムエラーにおいてはロールバック取消処理を実行する。ここで、エラーの内容に応じて、いずれかの取消処理を実行するようにしてもよい。この場合には、制御部21に、エラーコードやエラー内容に応じて、取消方法(フロー取消又はロールバック取消)を決定するための情報を保持させておく。 In the above embodiment, the flow cancel process is executed for a business error, and the rollback cancel process is executed for a system error. Here, any cancellation processing may be executed according to the content of the error. In this case, the control unit 21 holds information for determining a cancellation method (flow cancellation or rollback cancellation) according to the error code and the error content.
・上記実施形態では、ロールバック取消において、取引共通システム20の制御部21は、取消対象の個別処理の特定処理を実行する(ステップS2−2)。ここで、処理種別に応じて、ロールバック取消の実行可否を判定するようにしてもよい。この場合には、制御部21に、ロールバック取消の実行可否を判定するためのロールバック取消条件を保持させておく。また、サービス管理サーバ30の稼動状況に応じてロールバック取消の実行可否を判定するようにしてもよい。この場合には、ロールバック取消条件に、サービス管理サーバ30の稼動状況を設定しておく。そして、ロールバック取消処理を実行する前に、サービス管理サーバ30の稼動状況情報を取得し、ロールバック取消条件に基づいて実行可否を判定する。
-In above-mentioned embodiment, in rollback cancellation, the control part 21 of the transaction
・上記実施形態では、ロールバック取消において、取引共通システム20の制御部21は、取引ログの取得処理(ステップS3−1)、取消処理(ステップS3−2)を実行する。これに代えて、サービス管理サーバ30が取引ログを呼び出して、取消を行なうようにしてもよい。この場合には、取引共通システム20の制御部21は、取引管理情報記憶部24に記録されている取引管理レコード240に基づいて、実行済みの個別処理(取消対象)を特定する。そして、制御部21は、この個別処理を行なったサービス管理サーバ30に取消指示を送信する。取消指示を受信したサービス管理サーバ30は、取消対象の個別処理についての取引を取り消す。これにより、取引共通システム20とは異なるサーバにおいて実行される個別処理について、取引の取消を行なうことができる。
In the above embodiment, in rollback cancellation, the control unit 21 of the transaction
・上記実施形態では、取引共通システム20の制御部21は、フロー取消処理やロールバック取消処理を実行する。ここで、各取消処理の後で、付加的な処理を追加するようにしてもよい。例えば、付加的な処理としては、自動取消(フロー取消処理やロールバック取消処理)のログを、他の取消ログと識別できるように記録するようにしてもよい。また、特定の個別処理の取消を検知した場合のみ、付加的な処理を実行するようにしてもよい。また、例外処理実行手段212がロールバック取消を行なった場合には、付加的な処理として、取引フロー管理手段211の再立ち上げを行なうようにしてもよい。
In the above embodiment, the control unit 21 of the transaction
・上記実施形態では、取引共通システム20の制御部21は、フロー取消処理やロールバック取消処理を実行する。ここで、フロー取消処理やロールバック取消処理の自動取消処理を失敗した場合に、手動取消を行なう。この場合、取引共通システム20の制御部21が、効率的に手動取消を行なえるように、手動取消の支援処理を行なうようにしてもよい。例えば、この手動取消のための情報をディスプレイに出力する。この情報には、手動取消の対象や手順等を含める。
また、取引共通システム20において、手動取消可能な処理種別を記録したテーブルを保持させておき、自動取消処理を失敗した処理種別において手動取消についての可否を示す情報を含めるようにしてもよい。
In the above embodiment, the control unit 21 of the transaction
Further, in the transaction
10…取引端末、20…取引共通システム、21…制御部、211…取引フロー管理手段、212…例外処理実行手段、A1…取引実行手段、A2…フロー取消手段、B1…取消実行手段、22…連携情報記憶部、24…取引管理情報記憶部、26…エラー情報記憶部、28…取消実行ルーチン記憶部、30…サービス管理サーバ。
DESCRIPTION OF
Claims (4)
取引のために連携して行なう複数の個別処理に関する情報を記憶した連携情報記憶部と、
前記取引端末から受信した取引電文に対応して実行した個別処理の完了情報を記録した実行情報記憶部と、
前記連携情報記憶部に記録された連携処理を実行する連携アプリケーションを実行するアプリケーション実行手段の実行状況を監視する管理部とを備えた取引管理システムであって、
前記制御部が、
前記取引端末から受信した取引電文に対応する連携アプリケーションにより、個別処理を実行するアプリケーション実行手段を起動し、
前記アプリケーション実行手段が、前記連携アプリケーションにより前記連携情報記憶部において特定される個別処理について、前記実行装置に対して、順次、前記個別処理の処理依頼を送信し、前記個別処理を完了した場合、前記個別処理についての完了情報を前記実行情報記憶部に記録し、
前記アプリケーション実行手段が、複数の個別処理を組み合わせた連携処理の一部の個別処理においてエラーを検知した場合、前記連携アプリケーションにより、前記実行情報記憶部において完了情報が記録された実行済み個別処理を特定し、前記実行済み個別処理を連携処理において取り消す取消要求電文を、順次、生成して、前記実行装置に送信するフロー取消処理を実行し、
前記管理部が、前記アプリケーション実行手段によって実行されている前記連携アプリケーションにおいてシステムエラーを検知した場合には、前記実行情報記憶部から個別処理の完了情報を取得し、
前記完了情報に基づいて、前記実行済み個別処理を取り消すための取消実行手段を起動し、
前記取消実行手段を用いて、前記実行済み個別処理のロールバック取消処理を実行する
ことを特徴とする取引管理システム。 A control unit connected to a transaction terminal and an execution device that executes individual processing for transaction;
A cooperative information storage unit storing information on a plurality of individual processes performed in cooperation for transactions;
An execution information storage unit that records completion information of individual processing executed in response to the transaction message received from the transaction terminal ;
A transaction management system comprising a management unit that monitors an execution status of an application execution unit that executes a linked application that executes a linked process recorded in the linked information storage unit ;
The control unit is
With the cooperation application corresponding to the transaction message received from the transaction terminal, start the application execution means for executing the individual processing,
When the application execution unit transmits the processing request for the individual processing sequentially to the execution device for the individual processing specified in the cooperation information storage unit by the cooperation application, and completes the individual processing, Recording completion information about the individual processing in the execution information storage unit,
When the application execution unit detects an error in some of the individual processes of the cooperation process that combines a plurality of individual processes , the cooperation application performs an executed individual process in which completion information is recorded in the execution information storage unit. Identify, execute a flow cancellation process that sequentially generates a cancellation request message for canceling the executed individual process in the cooperation process, and transmits it to the execution device ;
When the management unit detects a system error in the cooperative application being executed by the application execution unit, the completion information of the individual processing is acquired from the execution information storage unit,
Based on the completion information, start cancel execution means for canceling the executed individual processing,
The transaction management system, wherein the cancel execution unit is used to execute a rollback cancellation process of the executed individual process .
取引のために連携して行なう複数の個別処理に関する情報を記憶した連携情報記憶部と、
前記取引端末から受信した取引電文に対応して実行した個別処理の完了情報を記録した実行情報記憶部と、
前記連携情報記憶部に記録された連携処理を実行する連携アプリケーションを実行するアプリケーション実行手段の実行状況を監視する管理部とを備えた取引管理システムを用いて、取引を管理するための方法であって、
前記制御部が、
前記取引端末から受信した取引電文に対応する連携アプリケーションにより、個別処理を実行するアプリケーション実行手段を起動し、
前記アプリケーション実行手段が、前記連携アプリケーションにより前記連携情報記憶部において特定される個別処理について、前記実行装置に対して、順次、前記個別処理の処理依頼を送信し、前記個別処理を完了した場合、前記個別処理についての完了情報を前記実行情報記憶部に記録し、
前記アプリケーション実行手段が、複数の個別処理を組み合わせた連携処理の一部の個別処理においてエラーを検知した場合、前記連携アプリケーションにより、前記実行情報記憶部において完了情報が記録された実行済み個別処理を特定し、前記実行済み個別処理を連携処理において取り消す取消要求電文を、順次、生成して、前記実行装置に送信するフロー取消処理を実行し、
前記管理部が、前記アプリケーション実行手段によって実行されている前記連携アプリケーションにおいてシステムエラーを検知した場合には、前記実行情報記憶部から個別処理の完了情報を取得し、
前記完了情報に基づいて、前記実行済み個別処理を取り消すための取消実行手段を起動し、
前記取消実行手段を用いて、前記実行済み個別処理のロールバック取消処理を実行することを特徴とする取引管理方法。 A control unit connected to a transaction terminal and an execution device that executes individual processing for transaction;
A cooperative information storage unit storing information on a plurality of individual processes performed in cooperation for transactions;
An execution information storage unit that records completion information of individual processing executed in response to the transaction message received from the transaction terminal ;
A method for managing a transaction using a transaction management system including a management unit that monitors an execution status of an application execution unit that executes a linked application that executes a linked application recorded in the linked information storage unit. And
The control unit is
With the cooperation application corresponding to the transaction message received from the transaction terminal, start the application execution means for executing the individual processing,
When the application execution unit transmits the processing request for the individual processing sequentially to the execution device for the individual processing specified in the cooperation information storage unit by the cooperation application, and completes the individual processing, Recording completion information about the individual processing in the execution information storage unit,
When the application execution unit detects an error in some of the individual processes of the cooperation process that combines a plurality of individual processes , the cooperation application performs an executed individual process in which completion information is recorded in the execution information storage unit. Identify, execute a flow cancellation process that sequentially generates a cancellation request message for canceling the executed individual process in the cooperation process, and transmits it to the execution device ;
When the management unit detects a system error in the cooperative application being executed by the application execution unit, the completion information of the individual processing is acquired from the execution information storage unit,
Based on the completion information, start cancel execution means for canceling the executed individual processing,
A transaction management method , wherein rollback cancellation processing of the executed individual processing is executed using the cancellation execution means .
取引のために連携して行なう複数の個別処理に関する情報を記憶した連携情報記憶部と、
前記取引端末から受信した取引電文に対応して実行した個別処理の完了情報を記録した実行情報記憶部と、
前記連携情報記憶部に記録された連携処理を実行する連携アプリケーションを実行するアプリケーション実行手段の実行状況を監視する管理部とを備えた取引管理システムを用いて、取引を管理するためのプログラムであって、
前記制御部を、
前記取引端末から受信した取引電文に対応する連携アプリケーションにより、個別処理を実行するアプリケーション実行手段を起動し、
前記アプリケーション実行手段が、前記連携アプリケーションにより前記連携情報記憶部において特定される個別処理について、前記実行装置に対して、順次、前記個別処理の処理依頼を送信し、前記個別処理を完了した場合、前記個別処理についての完了情報を前記実行情報記憶部に記録し、
前記アプリケーション実行手段が、複数の個別処理を組み合わせた連携処理の一部の個
別処理においてエラーを検知した場合、前記連携アプリケーションにより、前記実行情報記憶部において完了情報が記録された実行済み個別処理を特定し、前記実行済み個別処理を連携処理において取り消す取消要求電文を、順次、生成して、前記実行装置に送信するフロー取消処理を実行し、
前記管理部が、前記アプリケーション実行手段によって実行されている前記連携アプリケーションにおいてシステムエラーを検知した場合には、前記実行情報記憶部から個別処理の完了情報を取得し、
前記完了情報に基づいて、前記実行済み個別処理を取り消すための取消実行手段を起動し、
前記取消実行手段を用いて、前記実行済み個別処理のロールバック取消処理を実行する手段として機能させることを特徴とする取引管理プログラム。 A control unit connected to a transaction terminal and an execution device that executes individual processing for transaction;
A cooperative information storage unit storing information on a plurality of individual processes performed in cooperation for transactions;
An execution information storage unit that records completion information of individual processing executed in response to the transaction message received from the transaction terminal ;
A program for managing transactions using a transaction management system including a management unit that monitors an execution status of an application execution unit that executes a linked application that executes a linked application recorded in the linked information storage unit. And
The control unit
With the cooperation application corresponding to the transaction message received from the transaction terminal, start the application execution means for executing the individual processing,
When the application execution unit transmits the processing request for the individual processing sequentially to the execution device for the individual processing specified in the cooperation information storage unit by the cooperation application, and completes the individual processing, Recording completion information about the individual processing in the execution information storage unit,
When the application execution unit detects an error in some of the individual processes of the cooperation process that combines a plurality of individual processes , the cooperation application performs an executed individual process in which completion information is recorded in the execution information storage unit. Identify, execute a flow cancellation process that sequentially generates a cancellation request message for canceling the executed individual process in the cooperation process, and transmits it to the execution device ;
When the management unit detects a system error in the cooperative application being executed by the application execution unit, the completion information of the individual processing is acquired from the execution information storage unit,
Based on the completion information, start cancel execution means for canceling the executed individual processing,
A transaction management program that functions as means for executing rollback cancellation processing of the executed individual processing using the cancellation execution means .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012121682A JP5978008B2 (en) | 2012-05-29 | 2012-05-29 | Transaction management system, transaction management method, and transaction management program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012121682A JP5978008B2 (en) | 2012-05-29 | 2012-05-29 | Transaction management system, transaction management method, and transaction management program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2013246754A JP2013246754A (en) | 2013-12-09 |
JP5978008B2 true JP5978008B2 (en) | 2016-08-24 |
Family
ID=49846435
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012121682A Active JP5978008B2 (en) | 2012-05-29 | 2012-05-29 | Transaction management system, transaction management method, and transaction management program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5978008B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019024583A1 (en) * | 2017-07-31 | 2019-02-07 | 平安科技(深圳)有限公司 | Transaction rollback method and apparatus, computer device and storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11422856B2 (en) * | 2019-06-28 | 2022-08-23 | Paypal, Inc. | Adaptive program task scheduling to blocking and non-blocking queues |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4094752B2 (en) * | 1998-11-27 | 2008-06-04 | 株式会社日立製作所 | Transaction processing method, apparatus for executing the same, and medium storing the processing program |
JP3766772B2 (en) * | 1999-11-26 | 2006-04-19 | 富士通株式会社 | Information processing apparatus, exception recovery processing method, and recording medium |
US7277897B2 (en) * | 2003-08-01 | 2007-10-02 | Oracle International Corporation | Dynamic reassignment of data ownership |
-
2012
- 2012-05-29 JP JP2012121682A patent/JP5978008B2/en active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019024583A1 (en) * | 2017-07-31 | 2019-02-07 | 平安科技(深圳)有限公司 | Transaction rollback method and apparatus, computer device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
JP2013246754A (en) | 2013-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20180240056A1 (en) | Web-based support subscriptions | |
US11315084B2 (en) | Method and system for aggregating diagnostic analyzer related information | |
CN111078140B (en) | Nuclear power station file uploading management method and device, terminal equipment and medium | |
US20100192020A1 (en) | Method and system for remote monitoring subscription service | |
US8214483B2 (en) | Method and system for continuous availability subscription service | |
US20080209409A1 (en) | Method and system for quality assurance subscription service | |
JP2019500680A (en) | Data processing method and apparatus | |
US10360095B2 (en) | Methods and apparatuses for improving failure recovery in a distributed system | |
US20100332904A1 (en) | Testing of Distributed Systems | |
CN114637448B (en) | Data processing method, device, electronic equipment and storage medium | |
CN111045935A (en) | Automatic version auditing method, device, equipment and storage medium | |
CN114879939A (en) | Method, system, electronic device and storage medium for generating micro service | |
JP2006209194A (en) | Repair reception system | |
JP5978008B2 (en) | Transaction management system, transaction management method, and transaction management program | |
CN106201805B (en) | Method and device for detecting server failure | |
US11178549B1 (en) | Information providing method for providing information regarding terminal activation and electronic device performing the same | |
CN113919918A (en) | Order full-flow canceling method and device, electronic equipment and computer storage medium | |
CN113703942A (en) | Script execution method and device and computer equipment | |
CN112445860B (en) | Method and device for processing distributed transaction | |
JP2013228970A (en) | Version-up management method in task system | |
JP6224194B1 (en) | Test process management system, test process management method, and test process management program | |
EP2613256A2 (en) | Retail peripherals management system | |
CN108255629B (en) | Breakpoint data obtaining method and terminal equipment | |
CN108388442A (en) | The patch management method and system of firmware in a kind of Android system | |
JP5596663B2 (en) | Incident management system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150318 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20160112 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160301 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20160428 |
|
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: 20160705 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20160725 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5978008 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |