JP2001312401A - System and method for structuring processing program, computer-readable recording medium with recorded program for structuring processing program, and computer-readable recording medium with recorded program for document editing processing - Google Patents

System and method for structuring processing program, computer-readable recording medium with recorded program for structuring processing program, and computer-readable recording medium with recorded program for document editing processing

Info

Publication number
JP2001312401A
JP2001312401A JP2000131034A JP2000131034A JP2001312401A JP 2001312401 A JP2001312401 A JP 2001312401A JP 2000131034 A JP2000131034 A JP 2000131034A JP 2000131034 A JP2000131034 A JP 2000131034A JP 2001312401 A JP2001312401 A JP 2001312401A
Authority
JP
Japan
Prior art keywords
component
processing program
program
data
computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000131034A
Other languages
Japanese (ja)
Inventor
Hiroyoshi Yamada
田 広 佳 山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2000131034A priority Critical patent/JP2001312401A/en
Publication of JP2001312401A publication Critical patent/JP2001312401A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a processing program structuring system which can easily and flexibly structure a processing program such as a document editing processing program. SOLUTION: The processing program structuring system is equipped with a document purser 10 which outputs a Java (Trademark) file 22 wherein the association relation among respective prepared base components is prescribed in tree structure on the basis of an XML file 21 wherein the logical structure of a document to be processed is described in XML. The document purser 10 has an XML library 11. Further, the processing program structuring system is equipped with a compiler 12 which integrates the Java file 22 outputted by the document purser 10, a Java file 23 for inputting and outputting document data to and from the base component as the origin of the tree structure among the base components, and a Java file 24 for performing processing characteristic of individual operations.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は処理プログラムを構
築するための処理プログラム構築システムに係り、とり
わけ、各種の業務で広く用いられる帳票編集処理プログ
ラム等の処理プログラムを容易かつ柔軟に構築すること
ができる処理プログラム構築システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a processing program construction system for constructing a processing program, and more particularly, to easily and flexibly constructing a processing program such as a form editing processing program widely used in various tasks. The present invention relates to a processing program construction system that can be used.

【0002】[0002]

【従来の技術】一般に、在庫管理や予約管理、受発注管
理、勘定等の業務で用いられる業務システムにおいて
は、帳票データの編集処理を行う帳票編集処理プログラ
ムが組み込まれている。
2. Description of the Related Art Generally, a business system used for operations such as inventory management, reservation management, order management, and accounting incorporates a form editing program for editing form data.

【0003】このような帳票編集処理プログラムを構築
する際には一般に、帳票編集で必要とされる各種の処理
を機能単位で捉え、その機能を適宜組み合わせることに
よりプログラムを作成している。
In constructing such a form editing processing program, generally, various processes required for form editing are grasped in functional units, and a program is created by appropriately combining the functions.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上述し
た従来の方法では、帳票編集で必要とされる各種の処理
を機能単位で捉えて帳票編集処理プログラムを構築して
いるので、帳票編集処理プログラムの構造が複雑とな
り、帳票編集処理プログラムを新たに構築したり、業務
内容の変更や帳票の仕様変更等に対応して帳票編集処理
プログラムを変更および拡張等することが難しいという
問題がある。
However, in the above-mentioned conventional method, a form editing processing program is constructed by grasping various processes required for form editing in functional units. The structure becomes complicated, and there is a problem that it is difficult to newly construct a form editing processing program, and to change and extend the form editing processing program in response to a change in business content, a change in form specifications, and the like.

【0005】本発明はこのような点を考慮してなされた
ものであり、帳票編集処理プログラム等の処理プログラ
ムを容易かつ柔軟に構築することができる処理プログラ
ム構築システム、その方法、処理プログラム構築用プロ
グラムを記録したコンピュータ読み取り可能な記録媒
体、および帳票編集処理プログラムを記録したコンピュ
ータ読み取り可能な記録媒体を提供することを目的とす
る。
The present invention has been made in view of the above points, and a processing program construction system, method and method for constructing a processing program such as a form editing processing program easily and flexibly. It is an object to provide a computer-readable recording medium on which a program is recorded and a computer-readable recording medium on which a form editing processing program is recorded.

【0006】[0006]

【課題を解決するための手段】本発明は、その第1の解
決手段として、あらかじめ準備された複数のベースコン
ポーネントを組み合わせて処理プログラムを構築するた
めの処理プログラム構築システムにおいて、処理対象と
なるデータの論理構造を記述した定義ファイルを基にし
て、前記各ベースコンポーネント間の連携関係を木構造
により規定した基本コンポーネントであって、前記各ベ
ースコンポーネントとともに処理プログラムを構成する
基本コンポーネントを出力する基本コンポーネント出力
手段を特徴とする処理プログラム構築システムを提供す
る。
According to a first aspect of the present invention, there is provided a processing program construction system for constructing a processing program by combining a plurality of base components prepared in advance. A basic component that defines a cooperative relationship between the base components in a tree structure based on a definition file describing the logical structure of the basic component, and outputs a basic component that constitutes a processing program together with the base components. A processing program construction system characterized by output means is provided.

【0007】なお、上述した第1の解決手段において
は、前記基本コンポーネント出力手段により出力された
基本コンポーネントと、前記複数のベースコンポーネン
トのうち木構造の起点となるベースコンポーネントに対
してデータの入出力を行う入出力コンポーネントとを統
合するプログラム統合手段をさらに備えることが好まし
い。また、前記プログラム統合手段は、前記基本コンポ
ーネントおよび前記入出力コンポーネントとともに、個
々の業務に固有の処理を行うカスタムコンポーネントを
統合することが好ましい。さらに、前記定義ファイルは
XMLにより記述されたXMLファイルであることが好
ましい。さらにまた、前記基本コンポーネントはオブジ
ェクト指向言語により記述されたソースコードからなる
ことが好ましい。なお、前記処理プログラムは帳票編集
処理プログラムであることが好ましい。
In the above-mentioned first solving means, data is input / output to / from a basic component output by the basic component output means and a base component which is a starting point of a tree structure among the plurality of base components. It is preferable to further include a program integrating means for integrating with an input / output component for performing the following. In addition, it is preferable that the program integration unit integrates a custom component that performs a process unique to each business together with the basic component and the input / output component. Further, the definition file is preferably an XML file described in XML. Still further, it is preferable that the basic components include source codes described in an object-oriented language. The processing program is preferably a form editing processing program.

【0008】本発明は、その第2の解決手段として、あ
らかじめ準備された複数のベースコンポーネントを組み
合わせて処理プログラムを構築する処理プログラム構築
方法において、処理対象となるデータの論理構造を記述
した定義ファイルを基にして、前記各ベースコンポーネ
ント間の連携関係を木構造により規定した基本コンポー
ネントであって、前記各ベースコンポーネントとともに
処理プログラムを構成する基本コンポーネントを出力す
るステップと、この出力された基本コンポーネントと、
前記複数のベースコンポーネントのうち木構造の起点と
なるベースコンポーネントに対してデータの入出力を行
う入出力コンポーネントとを統合するステップとを含む
ことを特徴とする処理プログラム構築方法を提供する。
According to a second aspect of the present invention, in a processing program construction method for constructing a processing program by combining a plurality of base components prepared in advance, a definition file describing a logical structure of data to be processed is provided. Outputting a basic component that defines a cooperative relationship between each of the base components by a tree structure and that constitutes a processing program together with each of the base components; and ,
And integrating an input / output component for inputting / outputting data with respect to a base component that is a starting point of a tree structure among the plurality of base components.

【0009】本発明は、その第3の解決手段として、あ
らかじめ準備された複数のベースコンポーネントを組み
合わせて処理プログラムを構築する処理プログラム構築
用プログラムを記録したコンピュータ読み取り可能な記
録媒体において、処理対象となるデータの論理構造を記
述した定義ファイルを基にして、前記各ベースコンポー
ネント間の連携関係を木構造により規定した基本コンポ
ーネントであって、前記各ベースコンポーネントととも
に処理プログラムを構成する基本コンポーネントを出力
させる手順をコンピュータに対して実行させることを特
徴とする処理プログラム構築用プログラムを記録したコ
ンピュータ読み取り可能な記録媒体を提供する。
According to a third aspect of the present invention, there is provided a computer readable recording medium storing a processing program construction program for constructing a processing program by combining a plurality of base components prepared in advance. Based on a definition file describing the logical structure of the data, a basic component which defines a cooperative relationship between the respective base components by a tree structure, and outputs a basic component constituting a processing program together with the respective base components. A computer-readable recording medium on which a processing program construction program characterized by causing a computer to execute a procedure is provided.

【0010】なお、上述した第3の解決手段において
は、前記出力された基本コンポーネントと、前記複数の
ベースコンポーネントのうち木構造の起点となるベース
コンポーネントに対してデータの入出力を行う入出力コ
ンポーネントとを統合させる手順をコンピュータに対し
てさらに実行させることが好ましい。
[0010] In the above-mentioned third solution, the input / output component for inputting / outputting data to / from the output basic component and a base component which is a starting point of a tree structure among the plurality of base components. It is preferable to cause the computer to further execute a procedure for integrating

【0011】本発明は、その第4の解決手段として、帳
票の論理構造に対応する木構造の形式でリンクされた複
数のベースコンポーネントと、前記複数のベースコンポ
ーネントのうち木構造の起点となるベースコンポーネン
トに対して帳票データの入出力を行う帳票入出力コンポ
ーネントとを備え、前記各ベースコンポーネントは、前
記木構造に従って各階層間でやりとりされるデータに対
して帳票編集で必要とされる所定の処理を行うことを特
徴とする帳票編集処理プログラムを記録したコンピュー
タ読み取り可能な記録媒体を提供する。
According to a fourth aspect of the present invention, a plurality of base components linked in the form of a tree structure corresponding to the logical structure of a form, and a base serving as a starting point of the tree structure among the plurality of base components A form input / output component for inputting / outputting form data to / from a component, wherein each of the base components is a predetermined process required for form editing for data exchanged between the respective layers according to the tree structure. And a computer-readable recording medium on which a form editing processing program is recorded.

【0012】なお、上述した第4の解決手段において
は、前記ベースコンポーネントは、個々の業務に固有の
処理を行うカスタムコンポーネントと連携するよう構成
されていることが好ましい。また、前記各ベースコンポ
ーネントおよび前記帳票入出力コンポーネントの機能の
一部は前記コンピュータ上で実行される他のプログラム
によって実現され、前記帳票編集処理プログラムには前
記他のプログラムにより実現される機能を呼び出す命令
が含まれていることが好ましい。
[0012] In the above-described fourth solution, it is preferable that the base component is configured to cooperate with a custom component that performs processing unique to each business. Further, a part of the functions of the base components and the form input / output component is realized by another program executed on the computer, and the form edit processing program calls a function realized by the other program. Preferably, instructions are included.

【0013】本発明は、その第5の解決手段として、コ
ンピュータに帳票データを処理させる帳票編集処理プロ
グラムを記録した記録媒体であって、前記帳票編集処理
プログラムは、少なくとも、最小のデータ単位であるフ
ィールドのコンポーネントであるフィールドコンポーネ
ントと、少なくとも一つの前記フィールドを含むととも
に意味を持つ最小単位であるレコードのコンポーネント
であるレコードコンポーネントとから構成され、前記レ
ポートコンポーネントは前記帳票データの入力に対応し
て前記レコードコンポーネントに前記帳票データを出力
する機能および前記レコードコンポーネントから前記帳
票データの処理結果を入力する機能を有し、前記レコー
ドコンポーネントは前記レコードコンポーネントからの
前記帳票データの入力に対応して前記フィールドコンポ
ーネントに前記帳票データを出力する機能、および前記
フィールドコンポーネントから前記帳票データの処理結
果を入力する機能を有し、前記フィールドコンポーネン
トは前記レコードコンポーネントからの前記帳票データ
の入力に対応して前記フィールドコンポーネント固有の
処理を行って前記レコードコンポーネントにその処理結
果を出力する機能を有することを特徴とする帳票編集処
理プログラムを記録した記録媒体を提供する。
According to a fifth aspect of the present invention, there is provided a recording medium storing a form editing processing program for causing a computer to process form data, wherein the form editing processing program is at least a minimum data unit. A field component that is a component of a field, and a record component that is a component of a record that includes at least one of the fields and is a minimum unit having a meaning, wherein the report component corresponds to the input of the form data. It has a function of outputting the form data to a record component and a function of inputting a processing result of the form data from the record component, and the record component is a function of the form data from the record component. A function of outputting the form data to the field component in response to a force, and a function of inputting a processing result of the form data from the field component, wherein the field component inputs the form data from the record component And a function of performing a process specific to the field component and outputting a result of the process to the record component.

【0014】本発明の第1乃至第3の解決手段によれ
ば、処理対象となるデータの論理構造に従ってベースコ
ンポーネントを組み合わせることにより処理プログラム
を構築するので、データの処理順序等を考慮することな
く、処理プログラムを容易かつ短時間に構築することが
できる。また、データの仕様変更等が発生した場合でも
データの論理構造を再定義することにより対応すること
ができるので、処理プログラムを柔軟かつ短時間に変更
および拡張等することができる。
According to the first to third solutions of the present invention, a processing program is constructed by combining base components in accordance with the logical structure of data to be processed. In addition, a processing program can be constructed easily and in a short time. In addition, even when a change in data specifications occurs, it can be dealt with by redefining the logical structure of the data, so that the processing program can be changed and expanded flexibly and in a short time.

【0015】本発明の第4および第5の解決手段によれ
ば、帳票編集処理プログラムの各ベースコンポーネント
により、木構造に従って各階層間でやりとりされるデー
タに対して帳票編集で必要とされる所定の処理を行うの
で、帳票入出力コンポーネント等のミドルウェアとの間
での入出力の関係を簡素化することができ、帳票入出力
コンポーネント等が変更された場合でも木構造の起点と
なるベースコンポーネントのみを変更することにより対
応することができる。
According to the fourth and fifth solving means of the present invention, each base component of the form editing processing program allows the data exchanged between the respective hierarchies according to the tree structure to have the predetermined format required for form editing. , It is possible to simplify the input / output relationship with the middleware such as the form input / output component, and even if the form input / output component etc. is changed, only the base component which is the starting point of the tree structure Can be dealt with by changing.

【0016】[0016]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態について説明する。なお、本実施の形態では、
処理プログラムとして帳票編集処理プログラムを構築す
る場合を例に挙げて説明する。
Embodiments of the present invention will be described below with reference to the drawings. In the present embodiment,
The case where a form editing processing program is constructed as the processing program will be described as an example.

【0017】[帳票編集処理プログラムの概要]まず、
図8乃至図10により、本実施の形態で構築される帳票
編集処理プログラムの概要について説明する。
[Outline of Form Editing Processing Program]
With reference to FIGS. 8 to 10, an outline of a form editing processing program constructed in the present embodiment will be described.

【0018】図8は帳票編集処理プログラムにより出力
される帳票の一例を示す図である。図8に示す帳票は、
ある系列店における特定分野での売上を記録する「売り
上げ伝票」であり、大きく3つの部分(例えば、ここで
は3つの部分を「ページボディ」、「ページヘッダ」お
よび「ページフッタ」という)を有している。このう
ち、ページボディは、帳票の中央部分に位置するもので
あり、売上情報等がリスト形式で印刷された部分であ
る。また、ページヘッダおよびページフッタはそれぞ
れ、帳票の上方部分および下方部分に位置するものであ
り、頁数や集計日、小計等が印刷された部分である。な
お、これらの部分の名称や位置、含まれる項目(頁数、
集計日等)は、必ずしも図8に示す例には限定されな
い。
FIG. 8 is a diagram showing an example of a form output by the form editing processing program. The form shown in FIG.
This is a “sales slip” that records sales in a specific field at a certain affiliated store, and has three main parts (eg, three parts are called “page body”, “page header”, and “page footer”). are doing. The page body is located at the center of the form, and is a portion where sales information and the like are printed in a list format. The page header and the page footer are located at the upper part and the lower part of the form, respectively, and are the parts where the number of pages, the total date, the subtotal, and the like are printed. In addition, the names and positions of these parts, the included items (number of pages,
The counting date) is not necessarily limited to the example shown in FIG.

【0019】ここで、このような帳票の構造は、レポー
ト(Report)、グループ(Group)、レコード(Recor
d)およびフィールド(Field)の4種類の構成要素の組
合せによって表現することができる。すなわち、図8に
示すように、ページボディは売上情報等の集合体であ
り、グループ(Group)として定義される。ここで、グ
ループ(Group)は、各行のレコード(Record)を有
し、また各行のレコード(Record)はそれぞれ個々のフ
ィールド(Field)を有している。また、ページヘッダ
およびページフッタはそれぞれ単一のレコード(Recor
d)として定義される。ここで、各レコード(Record)
は個々のフィールド(Field)を有している。なお、帳
票全体はレポート(Report)として定義される。
Here, the structure of such a form includes a report, a group, and a record.
It can be expressed by a combination of four types of components, d) and a field. That is, as shown in FIG. 8, a page body is an aggregate of sales information and the like, and is defined as a group. Here, the group has a record of each row, and the record of each row has an individual field. Also, the page header and page footer are each a single record (Recor
d) is defined. Here, each record (Record)
Has individual fields. Note that the entire form is defined as a report.

【0020】本実施の形態では、このようにして定義さ
れる帳票の構造(論理構造)を前提として、その各構成
要素ごとに、当該構成要素で必要とされる処理を行うコ
ンポーネント(ベースコンポーネント)をあらかじめ準
備しておき、これらのベースコンポーネントを帳票の論
理構造に従って組み合わせることにより、帳票編集処理
プログラムを構築する。図9は図8に示す帳票の論理構
造に対応して構築される帳票編集処理プログラムの構造
(木構造)を示す図である。
In the present embodiment, on the premise of the structure (logical structure) of the form defined in this way, a component (base component) for performing processing required by the component for each component Is prepared in advance, and a form editing processing program is constructed by combining these base components according to the logical structure of the form. FIG. 9 is a diagram showing a structure (tree structure) of a form editing processing program constructed corresponding to the logical structure of the form shown in FIG.

【0021】なお、本実施の形態では、個々の業務で用
いられる帳票の論理構造はXML(extensible markup
language)により記述される(図10参照)。
In the present embodiment, the logical structure of a form used in each business is XML (extensible markup).
language) (see FIG. 10).

【0022】[処理プログラム構築システムの構成およ
び動作]次に、図1乃至図5により、上述したような帳
票編集処理プログラムを構築するための処理プログラム
構築システムの一実施の形態について説明する。
[Configuration and Operation of Processing Program Construction System] Next, an embodiment of a processing program construction system for constructing the above-described form editing processing program will be described with reference to FIGS.

【0023】まず、図1により、本実施の形態に係る処
理プログラム構築システムの構成について説明する。
First, the configuration of the processing program construction system according to the present embodiment will be described with reference to FIG.

【0024】図1に示すように、本実施の形態に係る処
理プログラム構築システムは、処理対象となる帳票の論
理構造をXMLにより記述したXMLファイル(定義フ
ァイル)21を基にして、あらかじめ準備された各ベー
スコンポーネント間の連携関係を木構造により規定した
Javaファイル(基本コンポーネント)22を出力す
る帳票パーサ(基本コンポーネント出力手段)10を備
えている。なお、帳票パーサ10は、XMLライブラリ
11を有している。
As shown in FIG. 1, the processing program construction system according to the present embodiment is prepared in advance based on an XML file (definition file) 21 in which the logical structure of a form to be processed is described in XML. A form parser (basic component output means) 10 for outputting a Java file (basic component) 22 in which a cooperative relationship between the base components is defined by a tree structure. The form parser 10 has an XML library 11.

【0025】また、本実施の形態に係る処理プログラム
構築システムは、帳票パーサ10により出力されたJa
vaファイル(基本コンポーネント)22と、複数のベ
ースコンポーネントのうち木構造の起点となるベースコ
ンポーネント(図9に示す場合にはレポート(Report)
のベースコンポーネント)に対して帳票データの入出力
を行うJavaファイル(帳票入出力コンポーネント)
23と、個々の業務に固有の処理を行うJavaファイ
ル(カスタムコンポーネント)24とを統合するコンパ
イラ(プログラム統合手段)12を備えている。
Further, the processing program construction system according to the present embodiment
The va file (basic component) 22 and a base component which is a starting point of a tree structure among a plurality of base components (a report (Report) in the case shown in FIG. 9)
Java file (form input / output component) for inputting / outputting form data to / from the base component
And a compiler (program integration means) 12 for integrating a Java file (custom component) 24 for performing a process unique to each task.

【0026】ここで、Javaファイル22,23,2
4はオブジェクト指向言語であるJava言語により記
述されたJavaソースコードからなり、コンパイラ1
2でのコンパイル処理により、クラスファイル25が作
成されるようになっている。なお、クラスファイル25
は、あらかじめ準備されたベースコンポーネント用のク
ラスファイル26と結合され、帳票編集処理プログラム
(Javaプログラム)27が形成される。ここで、J
avaファイル23,24は必ずしも必要ではなく、予
め対応する機能を有するクラスファイルを作成および用
意しておいてもよい。
Here, the Java files 22, 23, 2
Reference numeral 4 denotes a Java source code described in the Java language, which is an object-oriented language.
2, the class file 25 is created. The class file 25
Is combined with a base component class file 26 prepared in advance to form a form editing processing program (Java program) 27. Where J
The ava files 23 and 24 are not necessarily required, and a class file having a corresponding function may be created and prepared in advance.

【0027】次に、図1乃至図5により、図1に示す処
理プログラム構築システムの動作について説明する。
Next, the operation of the processing program construction system shown in FIG. 1 will be described with reference to FIGS.

【0028】図1に示す処理プログラム構築システムに
おいては、まず、帳票パーサ10により、XMLファイ
ル21を基にして、あらかじめ準備された各ベースコン
ポーネント間の連携関係を木構造により規定したJav
aファイル22を出力する。
In the processing program construction system shown in FIG. 1, first, the form parser 10 uses a tree structure to define a cooperative relationship between base components prepared in advance based on an XML file 21 in a tree structure.
a file 22 is output.

【0029】ここで、XMLファイル21は、図10に
示すようなものであり、帳票の論理構造に対応して、帳
票の各構成要素に対応するコンポーネントの種類や名称
等がひとまとまりのノード(<“タグの種類”>および</
“タグの種類”>に囲まれる部分)として記述されてい
る。ここで、帳票の各構成要素に対応するベースコンポ
ーネントは、レポート(Report)、グループ(Grou
p)、レコード(Record)およびフィールド(Field)の
4種類のカテゴリーのいずれかに分類されており、この
カテゴリー名がタグの種類として記述される。なお、図
示はしないが、帳票の各構成要素に対応するベースコン
ポーネントに関連して追加されるカスタムコンポーネン
トの情報もXMLファイル21内で記述することができ
る。
Here, the XML file 21 is as shown in FIG. 10. According to the logical structure of the form, the type and name of the component corresponding to each component of the form are grouped into a node ( <“Tag type”> and </
(The part surrounded by “tag type”>). Here, base components corresponding to each component of the form are a report (Report) and a group (Grou).
p), a record (Record), and a field (Field). The category name is described as a tag type. Although not shown, information of a custom component added in association with a base component corresponding to each component of the form can also be described in the XML file 21.

【0030】図2および図3は帳票パーサ10における
処理を説明するための図である。なお、図2は帳票パー
サ10における処理を説明するためのフローチャート、
図3は帳票パーサ10により処理されるデータのイメー
ジを示す図である。
FIGS. 2 and 3 are views for explaining the processing in the form parser 10. FIG. FIG. 2 is a flowchart for explaining processing in the form parser 10,
FIG. 3 is a diagram showing an image of data processed by the form parser 10.

【0031】図2に示すように、帳票パーサ10は、X
MLファイル21を読み込んだ後、XMLライブラリ1
1を呼び出してXMLファイル21内に含まれるノード
の構造を抽出する(ステップ101)。具体的には、図
3に示す場合であれば、符号41で示すXMLファイル
を基にして、符号42で示すようなノードの構造(ノー
ドオブジェクト)が抽出される。なお、このようにして
抽出されたノードの構造は、所定の記憶領域上に保存さ
れた上で、その先頭ノードの情報がXMLライブラリ1
1から帳票パーサ10の呼び出し元へと返却される(ス
テップ102)。
As shown in FIG. 2, the form parser 10
After reading the ML file 21, the XML library 1
1 is called to extract the structure of the node contained in the XML file 21 (step 101). More specifically, in the case shown in FIG. 3, a node structure (node object) as indicated by reference numeral 42 is extracted based on the XML file indicated by reference numeral 41. The structure of the node thus extracted is stored in a predetermined storage area, and the information of the first node is stored in the XML library 1.
1 is returned to the caller of the form parser 10 (step 102).

【0032】次に、帳票パーサ10は、最終的に出力さ
れるJavaファイル22のヘッダ部としてクラスファ
イル名等の出力ソースコードを書き出した後(ステップ
103)、上述したステップ101により抽出されたノ
ードの構造に従ってノードごとに出力ソースコードを書
き出す(ステップ104)。このとき、帳票パーサ10
は、ステップ102により返却された先頭ノードの情報
を基にして、XMLライブラリ11によりノードの構造
を順に辿るとともに、XMLライブラリ11から返却さ
れたノードの情報を基にして出力ソースコードを書き出
す(ステップ105)。
Next, the form parser 10 writes an output source code such as a class file name as a header part of the finally output Java file 22 (step 103), and then outputs the node extracted in step 101 described above. The output source code is written for each node according to the structure of (step 104). At this time, the form parser 10
Is sequentially traversed by the XML library 11 on the basis of the node information returned from the step 102, and writes an output source code on the basis of the node information returned from the XML library 11 (step 105).

【0033】最後に、帳票パーサ10は、Javaファ
イル22のフッタ部として共通の後処理等を書き出す
(ステップ106)。
Finally, the form parser 10 writes out common post-processes and the like as a footer portion of the Java file 22 (step 106).

【0034】なお、図3に示す場合であれば、ステップ
103乃至106の処理により、符号42で示すノード
の構造を基にして、符号43で示すようなJavaソー
スコードが作成される。
In the case shown in FIG. 3, a Java source code indicated by reference numeral 43 is created based on the structure of the node indicated by reference numeral 42 by the processing of steps 103 to 106.

【0035】以下、図4および図5(a)(b)(c)(d)によ
り、帳票パーサ10によるステップ104および105
の処理の詳細について説明する。なお、図4は帳票パー
サ10による処理の一部をソフトウェアにより実現する
場合のコーディング例を示す図、図5(a)(b)(c)(d)は図
4に示すプログラムによる木構造の処理を説明するため
の概念図である。
4 and 5 (a), (b), (c) and (d), steps 104 and 105 by the form parser 10 will be described.
The details of the processing will be described. FIG. 4 is a diagram showing a coding example when a part of the processing by the form parser 10 is realized by software, and FIGS. 5 (a), 5 (b), 5 (c), and 5 (d) show tree structures of the program shown in FIG. It is a conceptual diagram for explaining a process.

【0036】図4に示すwriteTree()関数は、ノードの
情報(位置情報)を引数として受け取り、そのノードの
情報を基にしてJavaファイル22に出力ソースコー
ドを書き出すものである。なお、writeTree()関数は、
その内部で再帰的に呼び出される(図4の符号参
照)。
The writeTree () function shown in FIG. 4 receives node information (position information) as an argument and writes an output source code to the Java file 22 based on the node information. Note that the writeTree () function is
It is called recursively within it (see the reference numbers in FIG. 4).

【0037】まず、writeTree()関数は、先頭ノードの
情報を引数として呼び出される。この場合には、switch
文により先頭ノードのタグの種類が判別され、その種類
に応じて処理が分岐する(図4の符号参照)。なお、
先頭ノードのタグの種類は、node.getTag()関数により
取得される。
First, the writeTree () function is called with the information of the first node as an argument. In this case, switch
The type of the tag of the head node is determined from the sentence, and the process branches according to the type (see the reference numeral in FIG. 4). In addition,
The type of the tag of the first node is obtained by the node.getTag () function.

【0038】ここで、図3に示す場合であれば、先頭ノ
ードのタグの種類はレポート(report)であるので、ca
se "report":の部分の処理が実行され、Javaファイ
ル22にノードの情報が書き出される。具体的には、先
頭ノードのタグの名称等がnode.getData()関数により取
得され(図4の符号参照)、write()関数により書き
出される(図4の符号および図5(a)参照)。なおこ
こでは、名称等を設定するための文(name="uriageDenp
yo";)の他、レポート(report)のコンポーネントに対
応するオブジェクトを作成するための文(uriageDenpyo
=new Report(name,line);)等が書き出される。なお、
このようにして書き出される内容は図4の右側に示され
ており、図3に示すJavaソースコード43では符号
43aの位置に書き出される。
Here, in the case shown in FIG. 3, since the tag type of the head node is a report, ca
The processing of the part of “se“ report ”:” is executed, and node information is written to the Java file 22. Specifically, the name of the tag of the head node and the like are obtained by the node.getData () function (see the reference numeral in FIG. 4), and are written out by the write () function (see the reference numeral in FIG. 4 and FIG. 5A). . Note that here, a sentence for setting the name etc. (name = "uriageDenp
yo ";) and a statement (uriageDenpyo) for creating an object corresponding to the report component
= new Report (name, line);) etc. are written out. In addition,
The contents written out in this way are shown on the right side of FIG. 4, and are written out at the position 43a in the Java source code 43 shown in FIG.

【0039】その後、自ノードに子ノードがあるか否か
が判別される(図4の符号参照)。その結果、自ノー
ドに子ノードがある場合には子ノード以下の部分木につ
いてwriteTree()関数が再帰的に呼び出される(図4の
符号および図5(b)参照)。
Thereafter, it is determined whether or not the own node has a child node (see the reference numeral in FIG. 4). As a result, when the own node has a child node, the writeTree () function is recursively called for the subtree below the child node (see the reference numerals in FIG. 4 and FIG. 5B).

【0040】そして、部分木の書き出しが終了した時点
で、自ノードのコンポーネントと部分木のコンポーネン
トとの間をリンクするための文(uriageDenpyo.setChil
d(recordX))が書き出される(図4の符号および図5
(c)参照)。なお、このようにして書き出される内容は
図4の右側に示されており、図3に示すJavaソース
コード43では符号43bの位置に書き出される。
When the writing of the subtree is completed, a statement (uriageDenpyo.setChil) for linking between the component of the own node and the component of the subtree is obtained.
d (recordX)) is written out (code in FIG. 4 and FIG. 5).
(c)). The contents written out in this way are shown on the right side of FIG. 4, and are written out at a position 43b in the Java source code 43 shown in FIG.

【0041】なお、上述した処理は自ノードの2番目以
降の子ノードについても同様に行われる(図4の符号
および図5(d)参照)。
Note that the above-described processing is similarly performed for the second and subsequent child nodes of the own node (see reference numerals in FIG. 4 and FIG. 5D).

【0042】[帳票編集処理プログラムの構成および動
作]次に、図6、図7および図9により、このようにし
て構築される帳票編集処理プログラムの構成および動作
について説明する。
[Configuration and Operation of Form Editing Processing Program] Next, the configuration and operation of the form editing processing program constructed in this way will be described with reference to FIGS. 6, 7 and 9.

【0043】図6は図1に示す処理プログラム構築シス
テムにより構築される帳票編集処理プログラムの概要を
説明するための図である。図6に示すように、帳票編集
処理プログラム27は、帳票の論理構造に対応する木構
造の形式でリンクされた複数のベースコンポーネント2
7a,27b,27c,27dと、複数のベースコンポ
ーネント27a,27b,27c,27dのうち木構造
の起点となるレポート(Report)のベースコンポーネン
ト27aに対して帳票データの入出力を行う帳票入力コ
ンポーネント27eおよび帳票出力コンポーネント27
fとを備えている。
FIG. 6 is a diagram for explaining an outline of a form editing processing program constructed by the processing program construction system shown in FIG. As shown in FIG. 6, the form editing processing program 27 includes a plurality of base components 2 linked in a tree structure format corresponding to the logical structure of the form.
7a, 27b, 27c, 27d and a form input component 27e for inputting / outputting form data to / from a base component 27a of a report (Report) serving as a starting point of a tree structure among a plurality of base components 27a, 27b, 27c, 27d. And form output component 27
f.

【0044】ここで、帳票編集処理プログラム27の各
ベースコンポーネント27a,27b,27c,27d
は、帳票編集処理プログラム27の基本骨格をなすもの
であり、木構造に従って各階層間でやりとりされるデー
タに対して帳票編集で必要とされる所定の処理を行うも
のである。
Here, each base component 27a, 27b, 27c, 27d of the form editing processing program 27
Is a basic skeleton of the form editing processing program 27, and performs predetermined processing required for form editing on data exchanged between layers according to a tree structure.

【0045】このうち、レポート(Report)のベースコ
ンポーネント(レポートコンポーネント)27aは、帳
票全体の処理を定義するとともに帳票全体の処理の起点
となるオブジェクトであり、帳票入力コンポーネント2
7eから1レコードずつデータを受け取り、下位階層の
ベースコンポーネントに対してデータを引き渡すととも
に、帳票編集が行われた後の1ページ分のレコード(処
理結果)を帳票出力コンポーネント27fへ引き渡すよ
うになっている。なお、レポート(Report)のベースコ
ンポーネント27aは、下位階層のベースコンポーネン
トとして、グループ(Group)およびレコード(Recor
d)のベースコンポーネント27b,27cを含む。
The base component (report component) 27a of the report is an object that defines the processing of the entire form and serves as a starting point for the processing of the entire form.
7e, the data is received one record at a time, and the data is delivered to the base component of the lower hierarchy, and the record (processing result) for one page after the form editing is performed is delivered to the form output component 27f. I have. Note that the base component 27a of the report is a group and a record (Recor) as lower-level base components.
d) includes the base components 27b and 27c.

【0046】グループ(Group)のベースコンポーネン
ト(グループコンポーネント)27bは、帳票の主要な
データを処理するためのオブジェクトであり、上位階層
のベースコンポーネントから受け取ったデータをその種
類に応じて適切な下位階層のコンポーネントへ振り分け
るようになっている。なお、グループ(Group)のベー
スコンポーネント27bは、下位階層のベースコンポー
ネントとして、レコード(Record)およびフィールド
(Field)のベースコンポーネント27c,27dを含
む。
The base component (group component) 27b of the group is an object for processing the main data of the form, and converts the data received from the base component of the upper hierarchy into an appropriate lower hierarchy according to its type. Components. The base component 27b of the group includes base components 27c and 27d of a record and a field as lower-level base components.

【0047】レコード(Record)のベースコンポーネン
ト(レコードコンポーネント)27cは、帳票の1レコ
ード分のデータを処理するためのオブジェクトであり、
上位階層のベースコンポーネントから受け取ったデータ
を格納する出力ハッシュテーブルを作成してその処理結
果を上位階層のベースコンポーネントへ返すようになっ
ている。なお、レコード(Record)のベースコンポーネ
ント27cは、下位階層のベースコンポーネントとし
て、フィールド(Field)のベースコンポーネント27
dを含む。
A base component (record component) 27c of a record is an object for processing data of one record of a form.
An output hash table for storing data received from the upper layer base component is created, and the processing result is returned to the upper layer base component. The base component 27c of a record is a base component 27c of a field as a base component of a lower hierarchy.
d.

【0048】フィールド(Field)のベースコンポーネ
ント(フィールドコンポーネント)27dは、帳票での
最小単位のデータを格納するオブジェクトであり、当該
ベースコンポーネント固有の処理として、文字列や数
値、日付等の種別に応じて準備された各種の出力形式で
データを入出力するようになっている。
The base component (field component) 27d of the field is an object for storing the data of the minimum unit in the form. As the processing specific to the base component, the base component 27d corresponds to the type of character string, numerical value, date, and the like. Input and output data in various prepared output formats.

【0049】ここで、各ベースコンポーネント27a,
27b,27c,27dのうち、レポート(Report)、
グループ(Group)およびフィールド(Field)のベース
コンポーネント27a,27b,27dは、個々の業務
に固有の処理を行うカスタムコンポーネント27dと連
携することができるよう構成されている。図7はベース
コンポーネント27a,27b,27dとカスタムコン
ポーネント27gとの関係を示す図である。図7に示す
ように、ベースコンポーネント27a,27b,27d
内にカスタムコンポーネント27dの呼び出しを含める
ことにより、ベースコンポーネント27a,27b,2
7dと、個々の業務に固有の処理を行うカスタムコンポ
ーネント27gとを連携させることができる。
Here, each base component 27a,
Of 27b, 27c and 27d, Report,
The base components 27a, 27b, 27d of the group (Group) and the field (Field) are configured so as to be able to cooperate with the custom component 27d that performs processing unique to each business. FIG. 7 is a diagram showing the relationship between the base components 27a, 27b, 27d and the custom component 27g. As shown in FIG. 7, the base components 27a, 27b, 27d
By including the call of the custom component 27d in the base component 27a, 27b, 2
7d can be linked with a custom component 27g that performs processing unique to each task.

【0050】具体的には、レポート(Report)のベース
コンポーネント27aに対してカスタムコンポーネント
27gを追加することにより、ページ制御(改ページ、
ページ番号発番)や出力制御(ページブレイク)等の各
種の処理を行うことができる。
Specifically, by adding a custom component 27g to the base component 27a of the report (Report), page control (page break, page break,
Various processes such as page numbering and output control (page break) can be performed.

【0051】また、グループ(Group)のベースコンポ
ーネント27bに対してカスタムコンポーネント27g
を追加することにより、集計処理(ページ小計、伝票総
計)や出力制御(GE)等の各種の処理を行うことがで
きる。さらに、フィールド(Field)のベースコンポー
ネント27dに対してカスタムコンポーネント27gを
追加することにより、データの出力形式として特殊な符
号装飾等の出力形式を指定することができる。ここで、
出力制御のうち、ページブレイクとは、改ページの際に
行われる処理(例えば小計出力)をいう。また、GEと
は、同じ内容のデータが連続した際に2件目以降の出力
を抑制する処理をいう。具体的には、図8に示す帳票で
は、ページボディの3行目および4行目において「日
付」および「地域名」について同じ内容のデータが連続
するので、このGEの処理を用いて4行目の内容につい
ては空欄としている。なお、このようなGEは、同じ内
容のデータが連続した場合に常に行われるものではな
く、例えばその間で改ページが行われた場合には、同じ
データが次ページの先頭部分に出力されることとなる。
Also, a custom component 27g is added to the group base component 27b.
, Various processes such as a totaling process (page subtotal and slip total) and output control (GE) can be performed. Further, by adding a custom component 27g to the base component 27d of the field (Field), it is possible to specify an output format such as a special code decoration as a data output format. here,
In output control, a page break refers to a process (for example, subtotal output) performed at the time of a page break. GE refers to a process of suppressing the output of the second and subsequent records when data having the same content continues. Specifically, in the form shown in FIG. 8, data having the same content for “date” and “region name” is continuous in the third and fourth lines of the page body. The contents of the eyes are blank. Note that such GE is not always performed when data having the same content continues. For example, when a page break is performed during that time, the same data is output to the beginning of the next page. Becomes

【0052】なお、このような構成からなる帳票編集処
理プログラム27は、図6に示すように、マネージャ3
1を介して印刷プラットフォーム32上で動作するよう
になっている。帳票編集処理プログラム27は、外部ア
プリケーション36から印刷プラットフォーム32に対
してジョブが投入された時点で、データベース34から
帳票入力コンポーネント27eを介して帳票データを受
け取り、ベースコンポーネント27aおよびカスタムコ
ンポーネント27dにより、帳票編集に必要とされる所
定の処理を行うようになっている。また、帳票編集処理
プログラム27は、このようにして所定の帳票編集を行
った後、帳票出力コンポーネント27fを介して、実際
の帳票上の各欄に印字するためのデータを含むCSVフ
ァイル35を出力するようになっている。なお、このよ
うにして出力されたCSVファイル35は、印刷プラッ
トフォーム32を介して帳票37として出力するように
なっている。
As shown in FIG. 6, the form editing processing program 27 having such a configuration is
1 to operate on the printing platform 32. The form editing processing program 27 receives form data from the database 34 via the form input component 27e when a job is input from the external application 36 to the printing platform 32, and forms the form by the base component 27a and the custom component 27d. A predetermined process required for editing is performed. The form editing processing program 27 outputs a CSV file 35 including data to be printed in each column on the actual form via the form output component 27f after performing the predetermined form editing in this manner. It is supposed to. The CSV file 35 output in this manner is output as a form 37 via the printing platform 32.

【0053】ここで、帳票編集処理プログラム27にお
いて、帳票入力コンポーネント27eから入力されたデ
ータは1レコードずつレポート(Report)のベースコン
ポーネント27aに投入され、図9に示すように、グル
ープ(Group)、レコード(Record)およびフィールド
(Field)のベースコンポーネント27b,27c,2
7dによりデータの振り分けおよび基本的な処理が行わ
れ、カスタムコンポーネント27gにより個々の業務に
固有な処理が行われる。
Here, in the form editing processing program 27, data input from the form input component 27e is input to the base component 27a of the report (Report) one record at a time, and as shown in FIG. Base components 27b, 27c, 2 of Record and Field
Data distribution and basic processing are performed by 7d, and processing unique to each task is performed by the custom component 27g.

【0054】具体的には、レポート(Report)のベース
コンポーネント27aからの指示により、ページヘッダ
およびページフッタ用のレコード(Record)のベースコ
ンポーネント27cが改ページの都度起動され、そこで
編集処理が行われる。なお、ページヘッダ用のベースコ
ンポーネント27cでは、処理中のページ番号が格納さ
れ、ページフッタ用のベースコンポーネント27cでは
そこまでの集計金額が設定される。一方、グループ(Gr
oup)のベースコンポーネント27bに対してはデータ
が順次投入され、その都度レコード(Record)およびフ
ィールド(Field)のベースコンポーネント27c,2
7dにより金額の集計が行われる。
More specifically, in response to an instruction from the base component 27a of the report (Report), the base component 27c of the record for the page header and page footer (Record) is activated each time a page break is performed, and editing processing is performed there. . The page component being processed is stored in the base component 27c for the page header, and the total amount up to that is set in the base component 27c for the page footer. On the other hand, the group (Gr
oup), the data is sequentially input to the base component 27b, and each time the base component 27c, 2 of the record (Field) and the field (Field) are input.
The sum of the amounts is calculated by 7d.

【0055】このように本実施の形態によれば、帳票の
論理構造を前提として、その各構成要素ごとに、当該構
成要素で必要とされる処理を行うベースコンポーネント
27a,27b,27c,27dをあらかじめ準備して
おき、これらのベースコンポーネント27a,27b,
27c,27dを帳票の論理構造に従って組み合わせる
ことにより帳票編集処理プログラム27を構築するの
で、データの処理順序や帳票の物理構造(印字位置等)
等を考慮することなく、帳票編集処理プログラム27を
容易かつ短時間に構築することができる。また、帳票の
仕様変更等が発生した場合でも帳票の論理構造を再定義
することにより対応することができるので、帳票編集処
理プログラム27を柔軟かつ短時間に変更および拡張等
することができる。
As described above, according to the present embodiment, based on the logical structure of a form, base components 27a, 27b, 27c, and 27d that perform processes required by the components are provided for each component. Be prepared in advance, these base components 27a, 27b,
Since the form editing processing program 27 is constructed by combining the forms 27c and 27d according to the logical structure of the form, the data processing order and the physical structure of the form (print position, etc.)
The form editing processing program 27 can be constructed easily and in a short time without taking into account the above. Further, even when the specification of the form is changed, it can be dealt with by redefining the logical structure of the form, so that the form editing program 27 can be changed and expanded flexibly and in a short time.

【0056】また、本実施の形態によれば、帳票編集処
理プログラム27の各ベースコンポーネント27a,2
7b,27c,27dにより、木構造に従って各階層間
でやりとりされるデータに対して帳票編集で必要とされ
る所定の処理を行うので、帳票入力コンポーネント27
eおよび帳票出力コンポーネント27f等のミドルウェ
アとの間での入出力の関係を簡素化することができ、帳
票入力コンポーネント27eおよび帳票出力コンポーネ
ント27f等が変更された場合でもレコード(Record)
のベースコンポーネント27aのみを変更することによ
り対応することができる。
According to the present embodiment, each base component 27a, 2
7b, 27c, and 27d perform predetermined processing required for form editing on data exchanged between layers according to the tree structure.
e and the input / output relationship with middleware such as the form output component 27f can be simplified, and even when the form input component 27e and the form output component 27f are changed, a record is generated.
Can be dealt with by changing only the base component 27a.

【0057】また、本実施の形態によれば、帳票編集処
理プログラム27を論理的な3種類(Report, Record,
Field)又は論理的な4種類(Report, Group, Record,
Field)のコンポーネントとして実現し、その単位で必
要な処理を切り分け、機能を細分化・単純化することに
より、再利用性および生産性を高めることができる。
According to the present embodiment, the form editing processing program 27 is divided into three logical types (Report, Record,
Field) or four logical types (Report, Group, Record,
Field), the necessary processing is separated for each unit, and the functions are subdivided and simplified, so that reusability and productivity can be improved.

【0058】ここで、上述の3種類、および4種類のコ
ンポーネントからなる理由を以上に示す。
Here, the reasons for the above three and four types of components will be described.

【0059】まず、帳票を論理構造からコンポーネント
に分解する。最小のデータ単位としては、個々のフィー
ルドがある。これは、上述した実施の形態の売上伝票の
例では、1,800円という金額を示していたり、3個
という売上個数を示していたりする。データ単位である
が、これは意味の単位ではない。3個、というデータが
あっても、何が3個あるのか、という情報が揃わなけれ
ば意味を持たないからである。
First, the form is decomposed from the logical structure into components. The smallest data unit is an individual field. This indicates an amount of 1,800 yen or an amount of sales of three in the example of the sales slip of the embodiment described above. It is a data unit, but it is not a unit of meaning. This is because even if there is data of three, it is meaningless unless information on what is three is available.

【0060】このため、意味の単位としてレコードを導
入する。この伝票では、中央部の1行がレコードに相当
する。ここでは、例えば、「9月4日にA地域のa店で
は、A−0054という単価8,510円の商品が1個
売れ、8,510円の売り上げになった」ということを
示している。この意味をもつ最小単位がレコードであ
る。
For this reason, a record is introduced as a unit of meaning. In this slip, one line at the center corresponds to a record. Here, for example, it is shown that "on September 4, at the store a in the region A, one product with a unit price of A-0054 of 8,510 yen was sold, and the sales were 8,510 yen." . The minimum unit having this meaning is a record.

【0061】次に、全体を示すものとして帳票そのもの
がある。帳票は一般的に1枚限りであるとは限らず、複
数ページ存在する。このとき、2頁以降も同一の構造を
持つのが通常であり、基本的には頁単位での処理を繰り
返すことになる。
Next, a form itself is shown as the whole. In general, the form is not limited to one sheet, but includes a plurality of pages. At this time, the second and subsequent pages usually have the same structure, and basically the processing is repeated in page units.

【0062】以上の3つの構成要素から、一般の帳票の
論理構造を定義することができる。
From the above three components, the logical structure of a general form can be defined.

【0063】しかし、ここでは、もうひとつ、グルー
プ、という構成要素を導入している。グループは意味の
まとまりを示す。これは、レコードもしくはフィールド
とは異なっており「最小の」という形容はつかない。例
えば、売上伝票の例では、中央部分で同様レコードが複
数件繰り返されており、これを一つのまとまりと考える
ことができる。また、これを含めた帳票全体も一つのま
とまりであり、帳票全体はグループの特殊形であると考
えることもできる。
However, here, another component called a group is introduced. Groups represent a unity of meaning. This is different from a record or a field and does not have a "minimal" description. For example, in the example of a sales slip, a plurality of similar records are repeated in the central portion, and this can be considered as one unit. Also, the entire form including this is a single unit, and the entire form can be considered to be a special form of the group.

【0064】以上のように、帳票は、帳票全体、レコー
ド、フィールドという3つ又は、帳票全体、グループ、
レコード、フィールドという4つの論理的な構成要素に
より体系付けることができる。ここで、グループは多段
に構成することが可能であり、複雑な帳票でもグループ
を細分化していくことにより表現の単純化が可能であ
る。
As described above, there are three forms: the entire form, record, and field, or the entire form, group,
It can be organized by four logical components, record and field. Here, the groups can be configured in multiple stages, and the expression can be simplified by subdividing the groups even for complicated forms.

【0065】さらに、本実施の形態によれば、帳票編集
処理プログラム27を構成する複数のベースコンポーネ
ント27a,27b,27c,27dに対してカスタム
コンポーネント27gを追加することができるので、個
々の業務に固有な処理を行うカスタムコンポーネント2
7gを適宜作成することにより、個々の業務に適した帳
票編集処理プログラム27を容易かつ短時間に構築する
ことができる。なお、カスタムコンポーネント27g
は、帳票の論理構造に対応して木構造の形式でリンクさ
れる複数のベースコンポーネント27a,27b,27
dを前提として作成されるので、帳票の仕様変更等が発
生した場合でも、該当するベースコンポーネント27
a,27b,27dに対応するカスタムコンポーネント
27gのみを変更することにより帳票編集処理プログラ
ム27を柔軟かつ短時間に変更および拡張等することが
できる。
Furthermore, according to the present embodiment, a custom component 27g can be added to a plurality of base components 27a, 27b, 27c, 27d constituting the form editing program 27, so that individual tasks can be performed. Custom component 2 that performs unique processing
By appropriately creating 7 g, a form editing processing program 27 suitable for each business can be easily and quickly constructed. In addition, custom component 27g
Are a plurality of base components 27a, 27b, 27 linked in the form of a tree structure corresponding to the logical structure of a form.
d, it is created on the premise that even if the specification of the form is changed, the corresponding base component 27 is changed.
By changing only the custom component 27g corresponding to a, 27b, and 27d, the form editing processing program 27 can be flexibly and quickly changed and expanded.

【0066】さらにまた、本実施の形態によれば、帳票
の論理構造をXMLにより記述しているので、帳票の論
理構造を簡潔に記述することができる。また、ベースコ
ンポーネント間の連携関係を規定した基本ファイルをJ
avaソースコードとして出力するので、帳票編集処理
プログラムの汎用性を高めることができる。
Furthermore, according to the present embodiment, since the logical structure of a form is described in XML, the logical structure of the form can be described simply. Also, the basic file that defines the cooperative relationship between the base components
Since the data is output as ava source code, the versatility of the form editing processing program can be enhanced.

【0067】なお、上述した実施の形態において、帳票
パーサ10およびコンパイラ12はいずれも、コンピュ
ータ上で動作するプログラムコンポーネントとして実現
することができる。このようなプログラムコンポーネン
トを含む帳票編集処理プログラム構築用プログラムは、
各種の記録媒体に記録され、コンピュータから読み出さ
れた上述したような処理が行われる。同様に、帳票編集
処理プログラム構築システムにより構築された帳票編集
処理プログラムも、各種の記録媒体に記録され、コンピ
ュータから読み出された上述したような処理が行われ
る。
In the above-described embodiment, both the form parser 10 and the compiler 12 can be realized as program components operating on a computer. A program for constructing a form editing processing program including such a program component is:
The above-described processing that is recorded on various recording media and read from a computer is performed. Similarly, the form editing processing program constructed by the form editing processing program construction system is also recorded on various recording media, and the above-described processing read from the computer is performed.

【0068】ここで、本実施の形態で用いられる記録媒
体としては、磁気ディスク、フロッピー(登録商標)デ
ィスク、ハードディスク、光ディスク(CD−ROM、
CD−RおよびDVD等)、光磁気ディスク(MO等)
および半導体メモリ等を含み、プログラムを記録するこ
とができ、かつコンピュータ読み取り可能なものであれ
ば、その記録形式はどのようなものでもよい。また、記
録媒体としては、ネットワーク上で伝送される際の搬送
波等の情報伝達媒体を含む。さらに、記録媒体は、コン
ピュータと独立したものに限らず、LANやインターネ
ット等により伝送されたプログラムをダウンロードして
記憶または一時記憶した記録媒体も含まれる。さらにま
た、記録媒体は1つであるとは限らず、複数の記録媒体
から本実施の形態で行われる処理が実現される場合も本
発明における記録媒体の概念に含まれる。
The recording medium used in the present embodiment includes a magnetic disk, a floppy (registered trademark) disk, a hard disk, an optical disk (CD-ROM,
CD-R and DVD, etc.), magneto-optical disk (MO, etc.)
Any recording format may be used as long as it can store a program and can be read by a computer, including a semiconductor memory and the like. Further, the recording medium includes an information transmission medium such as a carrier wave when transmitted on a network. Further, the recording medium is not limited to a medium independent of a computer, and includes a recording medium in which a program transmitted by a LAN, the Internet, or the like is downloaded and stored or temporarily stored. Furthermore, the number of recording media is not limited to one, and the case where the processing performed in the present embodiment is realized from a plurality of recording media is also included in the concept of the recording medium in the present invention.

【0069】また、本実施の形態においては、記録媒体
からコンピュータにインストールされた帳票編集処理プ
ログラム構築用プログラムまたは帳票編集処理プログラ
ムの指示(命令)に基づき、コンピュータ上で稼働して
いるオペレーティングシステム(OS)、データベース
管理ソフトおよびネットワークソフト等の他のプログラ
ム(ミドルウェア等)により、本実施の形態で行われる
処理の一部を実現するようにしてもよい。
Also, in the present embodiment, the operating system running on the computer (instruction) based on the form editing program construction program or the form editing program installed from the recording medium into the computer. A part of the processing performed in the present embodiment may be realized by another program (middleware or the like) such as an OS (OS), database management software, and network software.

【0070】[0070]

【発明の効果】以上説明したように本発明によれば、帳
票編集処理プログラム等の処理プログラムを容易かつ柔
軟に構築することができる。
As described above, according to the present invention, a processing program such as a form editing processing program can be easily and flexibly constructed.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明による処理プログラム構築システムの一
実施の形態を示すブロック図。
FIG. 1 is a block diagram showing an embodiment of a processing program construction system according to the present invention.

【図2】図1に示す帳票パーサにおける処理を説明する
ためのフローチャート。
FIG. 2 is a flowchart for explaining processing in a form parser shown in FIG. 1;

【図3】図1に示す帳票パーサにより処理されるデータ
のイメージを示す図。
FIG. 3 is a view showing an image of data processed by the form parser shown in FIG. 1;

【図4】図1に示す帳票パーサによる処理の一部をソフ
トウェアにより実現する場合のコーディング例を示す図
である。
FIG. 4 is a diagram showing a coding example when a part of the processing by the form parser shown in FIG. 1 is realized by software.

【図5】図4に示すプログラムによる木構造の処理を説
明するための概念図。
FIG. 5 is a conceptual diagram for explaining processing of a tree structure by the program shown in FIG. 4;

【図6】図1に示す処理プログラム構築システムにより
構築される帳票編集処理プログラムを示すブロック図。
FIG. 6 is a block diagram showing a form editing processing program constructed by the processing program construction system shown in FIG. 1;

【図7】図6に示す帳票編集処理プログラムに含まれる
ベースコンポーネントとカスタムコンポーネントとの関
係を示す図。
FIG. 7 is a view showing a relationship between a base component and a custom component included in the form editing processing program shown in FIG. 6;

【図8】帳票編集処理プログラムにより出力される帳票
(売り上げ伝票)の一例を示す図。
FIG. 8 is a diagram showing an example of a form (sales form) output by a form editing processing program.

【図9】図8に示す帳票の論理構造に対応して構築され
る帳票編集処理プログラムの構造(木構造)を示す図。
9 is a view showing a structure (tree structure) of a form editing processing program constructed corresponding to the logical structure of the form shown in FIG. 8;

【図10】帳票編集処理プログラムを構築するために準
備されるXMLファイルの一例を示す図。
FIG. 10 is a diagram showing an example of an XML file prepared for constructing a form editing processing program.

【符号の説明】[Explanation of symbols]

10 帳票パーサ(基本コンポーネント出力手段) 11 XMLライブラリ 12 コンパイラ(プログラム統合手段) 21 帳票定義ファイル(XMLファイル) 22 Javaファイル(基本コンポーネント) 23 Javaファイル(帳票入出力コンポーネント) 24 Javaファイル(カスタムコンポーネント) 25 クラスファイル 26 クラスファイル(ベースコンポーネント) 27 帳票編集処理プログラム(Javaプログラム) 27a,27b,27c,27d ベースコンポーネン
ト 27e 帳票入力コンポーネント 27f 帳票出力コンポーネント 27g カスタムコンポーネント 31 マネージャ 32 印刷プラットフォーム 34 データベース 35 CSVファイル 36 外部アプリケーション 37 帳票 41 XMLファイル 42 ノードの構造 43 Javaソースコード
10 Form Parser (Basic Component Output Means) 11 XML Library 12 Compiler (Program Integration Means) 21 Form Definition File (XML File) 22 Java File (Basic Component) 23 Java File (Form Input / Output Component) 24 Java File (Custom Component) 25 class file 26 class file (base component) 27 form editing processing program (Java program) 27a, 27b, 27c, 27d base component 27e form input component 27f form output component 27g custom component 31 manager 32 printing platform 34 database 35 CSV file 36 External application 37 Form 41 XML file 2 node structure 43 Java source code of

───────────────────────────────────────────────────── フロントページの続き (54)【発明の名称】 処理プログラム構築システム、その方法、処理プログラム構築用プログラムを記録したコンピュ ータ読み取り可能な記録媒体、および帳票編集処理プログラムを記録したコンピュータ読み取り 可能な記録媒体 ──────────────────────────────────────────────────続 き Continuation of front page (54) [Title of Invention] Processing program construction system, method, computer readable recording medium recording processing program construction program, and computer reading recording form editing processing program Possible recording media

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】あらかじめ準備された複数のベースコンポ
ーネントを組み合わせて処理プログラムを構築するため
の処理プログラム構築システムにおいて、 処理対象となるデータの論理構造を記述した定義ファイ
ルを基にして、前記各ベースコンポーネント間の連携関
係を木構造により規定した基本コンポーネントであっ
て、前記各ベースコンポーネントとともに処理プログラ
ムを構成する基本コンポーネントを出力する基本コンポ
ーネント出力手段を備えたことを特徴とする処理プログ
ラム構築システム。
1. A processing program construction system for constructing a processing program by combining a plurality of base components prepared in advance, wherein each of the bases is defined based on a definition file describing a logical structure of data to be processed. A processing program construction system, comprising basic component output means for outputting a basic component that constitutes a processing program together with each of the base components, wherein the basic component defines a cooperative relationship between components in a tree structure.
【請求項2】前記基本コンポーネント出力手段により出
力された基本コンポーネントと、前記複数のベースコン
ポーネントのうち木構造の起点となるベースコンポーネ
ントに対してデータの入出力を行う入出力コンポーネン
トとを統合するプログラム統合手段をさらに備えたこと
を特徴とする請求項1記載の処理プログラム構築システ
ム。
2. A program for integrating a basic component output by said basic component output means and an input / output component for inputting / outputting data to / from a base component which is a starting point of a tree structure among the plurality of base components. 2. The processing program construction system according to claim 1, further comprising an integrating unit.
【請求項3】前記プログラム統合手段は、前記基本コン
ポーネントおよび前記入出力コンポーネントとともに、
個々の業務に固有の処理を行うカスタムコンポーネント
を統合することを特徴とする請求項2記載の処理プログ
ラム構築システム。
3. The program integrating means, together with the basic component and the input / output component,
3. The processing program construction system according to claim 2, wherein a custom component that performs processing unique to each task is integrated.
【請求項4】前記定義ファイルはXMLにより記述され
たXMLファイルであることを特徴とする請求項1記載
の処理プログラム構築システム。
4. The processing program construction system according to claim 1, wherein said definition file is an XML file described in XML.
【請求項5】前記基本コンポーネントはオブジェクト指
向言語により記述されたソースコードからなることを特
徴とする請求項1記載の処理プログラム構築システム。
5. The processing program construction system according to claim 1, wherein said basic component comprises a source code described in an object-oriented language.
【請求項6】前記処理プログラムは帳票編集処理プログ
ラムであることを特徴とする請求項1記載の処理プログ
ラム構築システム。
6. The processing program construction system according to claim 1, wherein said processing program is a form editing processing program.
【請求項7】あらかじめ準備された複数のベースコンポ
ーネントを組み合わせて処理プログラムを構築する処理
プログラム構築方法において、 処理対象となるデータの論理構造を記述した定義ファイ
ルを基にして、前記各ベースコンポーネント間の連携関
係を木構造により規定した基本コンポーネントであっ
て、前記各ベースコンポーネントとともに処理プログラ
ムを構成する基本コンポーネントを出力するステップ
と、 この出力された基本コンポーネントと、前記複数のベー
スコンポーネントのうち木構造の起点となるベースコン
ポーネントに対してデータの入出力を行う入出力コンポ
ーネントとを統合するステップとを含むことを特徴とす
る処理プログラム構築方法。
7. A processing program constructing method for constructing a processing program by combining a plurality of base components prepared in advance, wherein said base components are connected based on a definition file describing a logical structure of data to be processed. Outputting a basic component that constitutes a processing program together with each of the base components, wherein the basic component defines a cooperation relationship of a tree structure, and the output basic component and a tree structure of the plurality of base components. Integrating an input / output component for inputting / outputting data with respect to a base component serving as a starting point of the processing program.
【請求項8】あらかじめ準備された複数のベースコンポ
ーネントを組み合わせて処理プログラムを構築するため
の処理プログラム構築用プログラムを記録したコンピュ
ータ読み取り可能な記録媒体において、 処理対象となるデータの論理構造を記述した定義ファイ
ルを基にして、前記各ベースコンポーネント間の連携関
係を木構造により規定した基本コンポーネントであっ
て、前記各ベースコンポーネントとともに処理プログラ
ムを構成する基本コンポーネントを出力させる手順をコ
ンピュータに対して実行させることを特徴とする処理プ
ログラム構築用プログラムを記録したコンピュータ読み
取り可能な記録媒体。
8. A logical structure of data to be processed is described on a computer-readable recording medium storing a processing program construction program for constructing a processing program by combining a plurality of base components prepared in advance. A computer is caused to execute a procedure for outputting a basic component that defines a cooperative relationship between the base components in a tree structure based on a definition file and that constitutes a processing program together with the base components. A computer-readable recording medium having recorded thereon a processing program construction program.
【請求項9】前記出力された基本コンポーネントと、前
記複数のベースコンポーネントのうち木構造の起点とな
るベースコンポーネントに対してデータの入出力を行う
入出力コンポーネントとを統合させる手順をコンピュー
タに対してさらに実行させることを特徴とする請求項8
記載の処理プログラム構築用プログラムを記録したコン
ピュータ読み取り可能な記録媒体。
9. A computer according to claim 1, further comprising a step of integrating said output basic component and an input / output component for inputting / outputting data to / from a base component which is a starting point of a tree structure among said plurality of base components. 9. The method according to claim 8, further comprising:
A computer-readable recording medium on which the program for constructing the processing program described above is recorded.
【請求項10】帳票の論理構造に対応する木構造の形式
でリンクされた複数のベースコンポーネントと、 前記複数のベースコンポーネントのうち木構造の起点と
なるベースコンポーネントに対して帳票データの入出力
を行う帳票入出力コンポーネントとを備え、 前記各ベースコンポーネントは、前記木構造に従って各
階層間でやりとりされるデータに対して帳票編集で必要
とされる所定の処理を行うことを特徴とする帳票編集処
理プログラムを記録したコンピュータ読み取り可能な記
録媒体。
10. Input / output of form data to / from a plurality of base components linked in the form of a tree structure corresponding to the logical structure of a form, and a base component which is a starting point of the tree structure among the plurality of base components. A form input / output component for performing the form editing processing, wherein each of the base components performs a predetermined process required for form editing on data exchanged between the respective hierarchies according to the tree structure. A computer-readable recording medium on which a program is recorded.
【請求項11】前記ベースコンポーネントは、個々の業
務に固有の処理を行うカスタムコンポーネントと連携す
るよう構成されていることを特徴とする請求項10記載
の帳票編集処理プログラムを記録したコンピュータ読み
取り可能な記録媒体。
11. The computer readable recording form recording program according to claim 10, wherein the base component is configured to cooperate with a custom component that performs processing unique to each business. recoding media.
【請求項12】前記各ベースコンポーネントおよび前記
帳票入出力コンポーネントの機能の一部は前記コンピュ
ータ上で実行される他のプログラムによって実現され、
前記帳票編集処理プログラムには前記他のプログラムに
より実現される機能を呼び出す命令が含まれていること
を特徴とする請求項10記載の帳票編集処理プログラム
を記録したコンピュータ読み取り可能な記録媒体。
12. A part of the functions of each of the base components and the form input / output component is realized by another program executed on the computer.
11. The computer-readable recording medium according to claim 10, wherein the form editing processing program includes an instruction for calling a function realized by the other program.
【請求項13】コンピュータに帳票データを処理させる
帳票編集処理プログラムを記録した記録媒体であって、 前記帳票編集処理プログラムは、 少なくとも、最小のデータ単位であるフィールドのコン
ポーネントであるフィールドコンポーネントと、少なく
とも一つの前記フィールドを含むとともに意味を持つ最
小単位であるレコードのコンポーネントであるレコード
コンポーネントとから構成され、 前記レポートコンポーネントは前記帳票データの入力に
対応して前記レコードコンポーネントに前記帳票データ
を出力する機能および前記レコードコンポーネントから
前記帳票データの処理結果を入力する機能を有し、 前記レコードコンポーネントは前記レコードコンポーネ
ントからの前記帳票データの入力に対応して前記フィー
ルドコンポーネントに前記帳票データを出力する機能、
および前記フィールドコンポーネントから前記帳票デー
タの処理結果を入力する機能を有し、 前記フィールドコンポーネントは前記レコードコンポー
ネントからの前記帳票データの入力に対応して前記フィ
ールドコンポーネント固有の処理を行って前記レコード
コンポーネントにその処理結果を出力する機能を有する
ことを特徴とする帳票編集処理プログラムを記録した記
録媒体。
13. A recording medium recording a form editing processing program for causing a computer to process form data, wherein the form editing processing program comprises: a field component which is a component of a field which is a minimum data unit; A record component that is a component of a record that includes one of the fields and is a minimum unit having a meaning. The report component is a function of outputting the form data to the record component in response to the input of the form data. And a function of inputting the processing result of the form data from the record component, wherein the record component corresponds to the input of the form data from the record component. A function of outputting the form data to a component,
And a function of inputting the processing result of the form data from the field component, wherein the field component performs a process specific to the field component in response to the input of the form data from the record component, and A recording medium having recorded thereon a form editing processing program having a function of outputting the processing result.
JP2000131034A 2000-04-28 2000-04-28 System and method for structuring processing program, computer-readable recording medium with recorded program for structuring processing program, and computer-readable recording medium with recorded program for document editing processing Pending JP2001312401A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000131034A JP2001312401A (en) 2000-04-28 2000-04-28 System and method for structuring processing program, computer-readable recording medium with recorded program for structuring processing program, and computer-readable recording medium with recorded program for document editing processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000131034A JP2001312401A (en) 2000-04-28 2000-04-28 System and method for structuring processing program, computer-readable recording medium with recorded program for structuring processing program, and computer-readable recording medium with recorded program for document editing processing

Publications (1)

Publication Number Publication Date
JP2001312401A true JP2001312401A (en) 2001-11-09

Family

ID=18640012

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000131034A Pending JP2001312401A (en) 2000-04-28 2000-04-28 System and method for structuring processing program, computer-readable recording medium with recorded program for structuring processing program, and computer-readable recording medium with recorded program for document editing processing

Country Status (1)

Country Link
JP (1) JP2001312401A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005063404A (en) * 2003-07-31 2005-03-10 Fujitsu Ltd Information processing method and program in xml-driven architecture

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005063404A (en) * 2003-07-31 2005-03-10 Fujitsu Ltd Information processing method and program in xml-driven architecture
US8533207B2 (en) 2003-07-31 2013-09-10 Fujitsu Limited Information processing method, apparatus and program in XML driven architecture

Similar Documents

Publication Publication Date Title
US6408311B1 (en) Method for identifying UML objects in a repository with objects in XML content
US6502112B1 (en) Method in a computing system for comparing XMI-based XML documents for identical contents
JP4977128B2 (en) Method for dynamically generating an XML document from a database
AU2006200047B2 (en) Data store for software application documents
KR100694238B1 (en) Structure edit method, video structure edit method, contents structure management method of object, contents structure display method, contents management method, and a computer-readable storage medium
JP4141556B2 (en) Structured document management method, apparatus for implementing the method, and medium storing the processing program
US20030233374A1 (en) Dynamic workflow process
JP2012194986A (en) Programmability for binding data
GB2419436A (en) Extensible object-modelling mechanism
WO2009105994A1 (en) Method and device of dealing with documents meeting the document database standard
US6327698B1 (en) Method for integrating models in a modelling tool into an object oriented repository
JP2003030066A (en) Method and system for managing network device, and processing program for managing network device
JPH09146931A (en) Document type definition generating device
US20060004887A1 (en) Method and device for generating distributed java applications by means of a central xml configuration file
JP2001312401A (en) System and method for structuring processing program, computer-readable recording medium with recorded program for structuring processing program, and computer-readable recording medium with recorded program for document editing processing
US7716653B2 (en) Configurable importers and resource writers for converting data into another format
JPH02297284A (en) Document processing system and version control system
JP2001273125A (en) Method and system for automatically generating source program, and program recording medium therefor
JPH11327884A (en) System for re-constituting and using existing system processing information
JP2012164177A (en) Program automatic generation system
JP3446472B2 (en) Object model generation method and apparatus
JP2000076358A (en) System and method for document output management with re-outputting function
CN117539565A (en) Data rendering visualization method and system based on PowerPoint document as template
JP2001067251A (en) Electronic data integration data management system and data base system
JPH09101886A (en) Device for automatically extracting/reusing program component

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060523

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060724

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070216