JP5594393B2 - Data processing apparatus and program - Google Patents
Data processing apparatus and program Download PDFInfo
- Publication number
- JP5594393B2 JP5594393B2 JP2013082574A JP2013082574A JP5594393B2 JP 5594393 B2 JP5594393 B2 JP 5594393B2 JP 2013082574 A JP2013082574 A JP 2013082574A JP 2013082574 A JP2013082574 A JP 2013082574A JP 5594393 B2 JP5594393 B2 JP 5594393B2
- Authority
- JP
- Japan
- Prior art keywords
- source code
- item
- business
- argument
- processing
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Stored Programmes (AREA)
Description
本発明は、データ処理装置及びプログラムに関する。 The present invention relates to a data processing apparatus and a program.
従来から、WS(Work Station)やPC(Personal Computer)等の業務処理を行うデータ処理装置では、汎用的なプログラム言語を用いて作成されたアプリケーションプログラムにより、上記業務処理を行っている。具体的には、プログラム言語を用いて処理を記述したソースコードをCPU(Central Processing Unit)が実行可能なオブジェクトコードに変換するコンパイル処理を行うことで、業務処理に関するアプリケーションプログラムを作成する。データ処理装置は、上記コンパイル処理により作成されたアプリケーションプログラムとCPUとの協働により業務処理を実行する。 Conventionally, in a data processing apparatus such as WS (Work Station) and PC (Personal Computer) that performs business processing, the business processing is performed by an application program created using a general-purpose program language. Specifically, an application program related to a business process is created by performing a compile process for converting a source code describing a process using a program language into an object code executable by a CPU (Central Processing Unit). The data processing device executes the business process in cooperation with the application program created by the compiling process and the CPU.
データ処理装置において、アプリケーションプログラムを作成する有用な技術としては、特許文献1〜3が知られている。この特許文献1〜3には、ソースコードをコンパイルしてアプリケーションプログラムを生成するアプリケーション生成装置、コンパイル装置等が開示されている。
特に業務処理に関するアプリケーションプログラムの作成では、業務分野のデータ処理をモデル化し、各種業務処理ごとにプログラムを部品化して再利用する開発手法が知られている。例えば、伝票作成に関するアプリケーションプログラムを作成する場合は、伝票に記載する売上、数量などの項目に関するプログラム部品や、参照すべきデータベースへのアクセスに関するプログラム部品を組合せることでソースコードを作成し、コンパイルして、業務処理に関するアプリケーションプログラムを作成している。 In particular, in the creation of an application program related to business processing, a development method is known in which data processing in a business field is modeled, and the program is divided into parts for each business processing and reused. For example, when creating an application program for creating slips, compile the source code by combining program parts related to items such as sales and quantity described in the slip, and program parts related to access to the database to be referenced. Thus, an application program related to business processing is created.
また、業務処理における項目処理については、他の項目の値を使用して処理を行うものがある。このため、項目に関するプログラム部品を組み合わせてアプリケーションプログラムを作成する際には、各項目の存在をチェックするシステム関数を組み込む必要があった。 Some item processing in business processing is performed using values of other items. For this reason, when creating an application program by combining program parts related to items, it is necessary to incorporate a system function for checking the existence of each item.
しかしながら、上記システム関数を組み込んだアプリケーションプログラムについては、実行時において各項目の存在をチェックする処理が行われるため、本来行うべき業務処理の処理速度に影響が生じる虞があった。 However, the application program incorporating the system function is subjected to a process of checking the existence of each item at the time of execution, which may affect the processing speed of the business process that should be originally performed.
本発明は、プログラム部品を組み合わせてアプリケーションプログラムを作成する際に、本来行うべき処理の処理速度への影響を低減させる技術を提供することである。 The present invention, when creating the application program by combining program parts is to provide a technique for reducing the influence on the processing speed of the processing that Ki downy performed originally.
請求項1に記載の発明は、
ソースコードに含まれる関数が、当該ソースコード上における特定の項目の有無をチェックして当該特定の項目への置き換えを行うシステム関数であるか否かを判別する関数判別手段と、
前記関数判別手段による判別結果が前記システム関数である場合、当該システム関数の引数を解析する解析手段と、
前記解析手段により解析された引数に含まれる前記特定の項目がソースコードに含まれるか否かを判別する判別手段と、
前記判別手段の判別結果に基づいて、前記ソースコードに含まれるシステム関数を前記解析手段により解析された引数に置き換える置換手段と、
を備える。
The invention described in
Functions included in the source Sukodo is, a function determination means for determining whether or not by checking the presence or absence of a particular item on the source code is a system function to be replaced to the specific item,
If the determination result by the pre-Symbol function determining means is the system function, analyzing means for analyzing the arguments of the system function,
A determining means for the specific items included in the argument, which is analyzed by pre-Symbol analyzing means determines whether or not included in the source code,
Based on the discrimination result of the previous SL discriminating means, a replacement means for replacing the system functions included in the source code as an argument that has been analyzed by said analyzing means,
Is provided.
本発明によれば、プログラム部品を組み合わせてアプリケーションプログラムを作成する際に、本来行うべき処理の処理速度への影響を低減させる。
According to the present invention, when creating the application program by combining program parts, reduce the influence on the processing speed of the processing that Ki downy performed originally.
以下、本発明の実施の形態について図を参照して説明するが、この発明の範囲は以下の実施の形態に限定されない。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. However, the scope of the present invention is not limited to the following embodiments.
先ず、本実施の形態に係るデータ処理装置の構成について、図1を参照して説明する。図1は、データ処理装置1の機能的構成を模式的に示すブロック図である。
First, the configuration of the data processing apparatus according to the present embodiment will be described with reference to FIG. FIG. 1 is a block diagram schematically showing a functional configuration of the
図1に示すように、データ処理装置1は、制御装置11、記憶装置12、表示装置13、入力装置14、通信装置15、印刷装置16を有する。上記データ処理装置1の各部はバス17により電気的に接続されている。データ処理装置1は、WSやPC等の情報機器などであってよい。
As shown in FIG. 1, the
制御装置11は、CPU、RAM(Random Access Memory)、ROM(Read Only Memory)などを有しており(いずれも図示しない)、データ処理装置1の動作を中央制御する。具体的には、制御装置11は、RAMの作業領域に展開されたROMや記憶装置12に記憶されたプログラムデータとCPUとの協働により各部を統括制御する。
The
記憶装置12は、プログラムデータや各種設定データ等のデータを制御装置11から読み書き可能に記憶する。例えば、記憶装置12は、HDD(Hard Disk Drive)、半導体メモリであってよい。
The
上記記憶装置12が記憶するデータとしては、業務プログラムファイル121、業務スケルトンテンプレート122、項目部品123、印刷部品124、DB処理部品125、業務処理部品126、設定ファイル127、各種参照ファイル128及び業務アプリケーション生成プログラム129などがある。
The data stored in the
業務プログラムファイル121は、業務処理に関するアプリケーションプログラムである。業務プログラムファイル121は、制御装置11のCPUとの協働により、データ処理装置1における業務アプリケーションの実行処理を実行させる。具体的には、業務プログラムファイル121は、制御装置11においてCPUが実行可能なオブジェクトコードであり、コンパイル処理によりソースコードから生成されたデータである。
The
業務スケルトンテンプレート122は、売上伝票入力処理、請求書処理、顧客情報管理処理などの事務処理業務における処理の雛形をソースコードで定義したファイルである。業務スケルトンテンプレート122は、コンパイル処理により業務プログラムファイル121を生成する際の元となるソースコードである。すなわち、業務プログラムファイル121は、処理の雛形である業務スケルトンテンプレート122に業務処理の詳細を部品化したソースコードである項目部品123、印刷部品124、DB処理部品125、業務処理部品126を挿入したソースコードをコンパイルして生成される。なお、業務スケルトンテンプレート122は、上述した各種処理ごとにソースコードが分割された、各種処理ごとのデータファイルであってよい。
The
項目部品123は、業務スケルトンテンプレート122における各処理の雛形において、各項目における入力や表示を行うための定義や処理に関するソースコードを含むデータファイルである。ここにおける項目とは、例えば販売管理に関する売上伝票や受注伝票をユニークに扱う伝票番号、取引先や得意先を示す得意先コード、商品を示す商品コード、当該商品コードに対応する商品名などである。項目部品123は、上述した各項目ごとに定義や処理に関するソースコードが分割された、各項目ごとのデータファイルであってよい。
The
印刷部品124は、業務スケルトンテンプレート122における各処理の雛形において、伝票や帳票などの印刷を行うための定義情報、書式情報、印字制御などに関するソースコードを含むデータファイルである。なお、印刷部品124については、印刷する項目単位に定義や処理に関するソースコードが分割された、各項目ごとのデータファイルであってよい。
The
DB処理部品125は、業務処理における顧客情報、商品情報、売買記録などの業務情報を格納するデータベースDBに対し、データの更新、登録又は抽出など、当該データベースDBへの整合性の取れたデータアクセスを行う処理内容や定義情報に関するソースコードを含むデータファイルである。
The
業務処理部品126は、上述した部品で呼び出させて使用されるサブルーチン的な処理に関するソースコードを含むデータファイルである。業務処理部品126におけるサブルーチン的な処理の例としては、入力可能な項目をリスト表示し、選択することでデータ入力の補助を行う処理、伝票入力などのトランザクション処理の途中で新たにデータベースに対してレコード追加する処理、各部品で共通な処理又は問い合わせ・確認のダイアログを表示する処理などがある。
The
設定ファイル127は、アプリケーションプログラムを作成する際に必要な補助的な情報を管理するためのファイルである。具体的には、設定ファイル127には、その業務アプリケーションプログラムの実行時に参照する各種参照ファイル128を、その実体が格納されたフォルダから実行時に参照可能なフォルダへコピーするためのデータなどが格納されている。
The
例えば、設定ファイル127は、ソースコード上で利用されるシステム関数の名目や、当該システム関数と、ライブラリデータとの対応関係などを示すシステム関数テーブルなどであってよい。データ処理装置1では、このシステム関数テーブルを参照することで、コンパイル時におけるシステム関数のチェックを行うことができる。また、データ処理装置1では、システム関数テーブルを参照することで、ソースコードをコンパイルする際に、ソースコードに含まれるシステム関数に対応するライブラリデータを、アプリケーションプログラムの実行時に参照可能なフォルダへコピーすることが可能となる。
For example, the
各種参照ファイル128は、上述した業務スケルトンテンプレート122やプログラム部品で組み合わされた業務処理において、画面表示や演算等の処理で参照されるデータファイルである。具体的には、CPUが直接読み出して処理が可能なライブラリデータ(オブジェクトファイル)であり、ソースコードのシステム関数として予め用意されたライブラリデータ、業務処理時の処理に関する実行モジュール、JPEG(Joint Photographic Experts Group)等の業務処理時の表示画面に関するイメージデータ、制御内容や定義内容を含むテキストデータなどがある。
The
業務アプリケーション生成プログラム129は、ソースコードの作成や、ソースコードのコンパイル等の処理に関するアプリケーションプログラムである。業務アプリケーション生成プログラム129は、制御装置11のCPUとの協働により、データ処理装置1におけるソースコード作成処理を実行させる。また、業務アプリケーション生成プログラム129は、制御装置11のCPUとの協働により、データ処理装置1におけるコンパイル処理を実行させる。
The business
表示装置13は、制御装置11から出力された表示制御信号に基づいた画像を表示画面に表示する。表示装置13は、LCD(Liquid Crystal Display)やCRT(Cathode Ray Tube)などのディスプレイであってよい。
The
入力装置14は、ユーザからの操作入力を受け付け、当該操作入力に応じた操作信号を制御装置11へ出力する。例えば、通信装置15は、文字入力キー、数字入力キー、その他各種機能に対応付けられたキーを備えたキーボード、マウス等のポインティングデバイスであってよい。
The
通信装置15は、制御装置11の制御の下、所定の通信プロトコルを用いて、互いに通信可能に接続する他の機器との間でデータ通信を行う。具体的には、通信装置15は、無線通信回路及びアンテナや、有線で通信を行うための通信インターフェイスを備えた通信回路であり、無線/有線LAN(Local Aria Network)、インターネットなどの通信ネットワークと接続し、当該通信ネットワークと接続する他の情報機器との間でデータ通信を行う。データ処理装置1は、この通信装置15を介したデータ通信により、業務データが格納されたデータベースDBへのアクセスを行う。
The
印刷装置16は、制御装置11の制御の下、用紙などに画像形成を行う。具体的には、印刷装置16は、電子写真方式やインクジェット方式などのプリンタなどである。
The
次に、データ処理装置1における業務アプリケーションの実行についての概要を図2、図3を参照して説明する。図2は、業務処理に関するソースコードの作成から業務実行までの処理を示す概念図である。図3は、データ処理装置1における業務アプリケーション処理の概要を示す概念図である。
Next, an outline of execution of a business application in the
図2に示すように、データ処理装置1では、業務スケルトンテンプレート122に項目部品123、印刷部品124、DB処理部品125、業務処理部品126を組み合わせてソースコードを作成するソースコード作成処理が行われ(ステップS1)、その作成されたソースコードをコンパイルするコンパイル処理が行われることで(ステップS2)、業務アプリケーションプログラムであるオブジェクトコード121aが生成される。上記ステップS1、S2は、前述したとおり、制御装置11のCPUと業務アプリケーション生成プログラム129との協働により、実行される処理である。
As shown in FIG. 2, in the
ステップS2により生成されるオブジェクトコード121aは、制御装置11のCPUとの協働により実行される業務アプリケーションプログラムである。この業務アプリケーションプログラムは、上述したステップS2、S3により、図3に示すように、業務処理における全体制御・画面制御・データ制御などの基本処理が定義された業務スケルトンテンプレート122に項目部品123、印刷部品124、DB処理部品125及び業務処理部品126を組み合わせて作成されている。
The
具体的には、制御装置11が実行する業務アプリケーションプログラムにおいて、表示装置13や入力装置14で表示又は入力されるデータ項目については、業務スケルトンテンプレート122と項目部品123とで定義される。また、データベースDBをSQL(Structured Query Language)などで検索、更新制御する場合の動作は、業務スケルトンテンプレート122とDB処理部品125とで定義される。さらに、データベースDBで検索した結果などのデータ出力を印刷装置16から印刷する場合の動作は印刷部品124で定義される。また、上述した各処理のサブルーチン的な処理については、業務処理部品126で定義される。例えば、業務処理部品126には、日付情報を業務スケルトンテンプレート122と項目部品123との定義に従って和暦で受け付けて、その和暦を元に西暦に変化する日付変換処理などが定義されている。
Specifically, in the business application program executed by the
次いで、データ処理装置1では、ステップS2により作成されたオブジェクトコード121aを制御装置11のCPUが順次解析して実行することで、業務アプリケーションの実行処理が行われる(ステップS3)。このステップS3では、オブジェクトコード121aの元となるソースコードで定義されたシステム関数など、必要に応じてシステム用ライブラリデータ128aが参照される。
Next, in the
次に、ソースコード作成処理(ステップS1)の詳細について、図4〜図7を参照して説明する。図4は、データ処理装置1が実行するソースコード作成処理を示すフローチャートである。図5は、ソースコード作成処理における編集画面を例示する概念図である。図6は、項目値をチェックするシステム関数を例示する概念図である。図7は、ソースコードの記載内容を例示する概念図である。
Next, the details of the source code creation process (step S1) will be described with reference to FIGS. FIG. 4 is a flowchart showing source code creation processing executed by the
図4に示すように、ソースコード作成処理が開始されると、入力装置14からの操作入力に基づいて、ソースコードを作成するアプリケーション名の設定が行われる(ステップS101)。 As shown in FIG. 4, when the source code creation process is started, an application name for creating a source code is set based on an operation input from the input device 14 (step S101).
次いで、入力装置14からの操作により選択された業務処理の内容に基づいて、業務スケルトンテンプレート122の選択が行われる(ステップS102)。具体的には、このステップS102では、売上伝票入力処理、請求書処理、顧客情報管理処理などの業務スケルトンテンプレート122として用意された各種業務処理の中から、ユーザが作成を所望する処理が選択され、その選択された業務内容に関するデータファイルが選択される。
Next, the
次いで、入力装置14からの操作入力に基づいて、ステップS102により選択された業務スケルトンのプロパティが設定される(ステップS103)。このステップS103で設定される業務スケルトンのプロパティとは、処理の定義などであってよい。例えば、プロパティによる設定としては、売上伝票入力処理における税率設定などがある。 Next, the property of the business skeleton selected in step S102 is set based on the operation input from the input device 14 (step S103). The property of the business skeleton set in step S103 may be a process definition or the like. For example, setting by property includes tax rate setting in sales slip input processing.
次いで、入力装置14からの操作により選択された参照すべきデータベース名などに基づいて、DB処理部品125の選択が行われる(ステップS104)。例えば、ステップS104では、得意先情報が格納された得意先データベース、担当者情報が格納された担当者データベース、売上情報が格納された売上データベースなどの中から、ユーザが利用したいデータベースが選択され、その選択されたデータベースの利用に必要なDB処理部品125が選択される。
Next, the
次いで、ステップS102により選択された業務スケルトンテンプレート122の定義内容に基づいて、表示装置13に実際の処理画面、印刷紙面を模した編集画面が表示され、項目や印刷レイアウトの編集を入力装置14からの操作入力に基づいて行う編集作業が開始される(ステップS105)。
Next, based on the definition content of the
例えば、ステップS105において、ステップS102により選択された業務スケルトンテンプレート122が売上伝票入力である場合は、図5に示すように、売上伝票入力を行う実際の画面や、売上伝票入力時の印刷紙面と同じレイアウトの編集画面が表示装置13に表示される。
For example, in step S105, when the
この売上伝票入力に関する業務スケルトンテンプレート122には、入力項目としていくつかの項目テンプレートが予め用意されている。同様に、業務スケルトンテンプレート122には、印刷紙面や画面などの構成を示すいくつかの印刷テンプレートなど用意されている。編集開始時には、上記テンプレートの中から標準のテンプレートが使用される。例えば、図5の例では、標準の入力項目として、項目K1〜K9が使用されている。
In the
次いで、編集作業が開始されると、入力装置14からの操作入力に基づいた編集作業内容の判定処理が行われる(ステップS106)。
Next, when the editing work is started, an editing work content determination process based on an operation input from the
ステップS106において、入力装置14からの操作指示が項目の削除であると判定された場合は、入力装置14からの操作入力に基づいて、削除すべき項目テンプレートの選択が受け付けられ(ステップS107)、削除選択された項目テンプレートに基づいた項目や、その項目に関してコントロールを行うボタンなどが編集画面上から削除される(ステップS108)。
If it is determined in step S106 that the operation instruction from the
ステップS106において、入力装置14からの操作指示が項目処理の編集であると判定された場合は、入力装置14からの操作指示に基づいて、編集すべき項目テンプレートの選択が受け付けられ(ステップS109)、選択された項目テンプレートの内容を変更するテンプレート編集が行われる(ステップS110)。このテンプレート編集では、例えば、項目のプロパティの変更、編集画面上における項目の配置位置の変更などが行われる。
If it is determined in step S106 that the operation instruction from the
ステップS106において、入力装置14からの操作指示が印刷処理の編集であると判定された場合は、入力装置14からの操作指示に基づいて、編集すべき印刷テンプレートの選択が受け付けられ(ステップS111)、選択された印刷テンプレートの内容を変更する印刷レイアウト編集が行われる(ステップS112)。この印刷レイアウト編集では、例えば、印刷領域の大きさやサイズ変更、印刷位置の調整などが行われる。
If it is determined in step S106 that the operation instruction from the
ステップS106において、入力装置14からの操作指示が編集作業の終了であると判定された場合は、上述したステップS107〜S112で変更した内容の定義ファイル(ソースコード)を保存するか否かが入力装置14からの保存実行指示の有無などに基づいて判定される(ステップS113)。
If it is determined in step S106 that the operation instruction from the
ステップS113の判定において、定義ファイルを保存すると判定された場合(YES)は、上述したステップS107〜S112で変更した内容に基づいて、業務スケルトンテンプレート122に項目部品123、印刷部品124、業務処理部品126を組み込んだ定義ファイルが保存される(ステップS114)。
If it is determined in step S113 that the definition file is to be saved (YES), the
具体的には、ステップS114において、上述した編集作業において項目の削除が行われた場合は、当該削除された項目に関する項目部品123が組み込まれることなく、削除された項目の処理や定義を含まないソースコードが作成される。また、編集作業において項目処理の編集が行われた場合は、編集対象となった項目に関する項目部品123の内容が編集内容に基づいて修正される。同様に、編集作業において印刷処理の編集が行われた場合は、編集対象となった印刷テンプレートに関する印刷部品124の内容が編集内容に基づいて修正される。
Specifically, if an item is deleted in the editing operation described above in step S114, the
ソース生成処理により、項目の削除が行われた場合に生成されるソースコードでは、当該削除された項目に関する項目部品123が組み込まれることがなくなるため、削除された項目を利用する他の項目がある場合にエラーとなってしまう。そこで、業務スケルトンテンプレート122、項目部品123、印刷部品124、DB処理部品125、業務処理部品126などにおいて、項目を利用する処理については、図6に例示した項目値の有無をチェックするシステム関数が記載されている。
図6に示すように、項目値をチェックするシステム関数である「@項目値取得」は、引数1で指定された項目名が画面上(ソースコード上)に存在しない場合、引数2で指定された所定値を戻す処理を行う関数である。従って、上記システム関数を利用することで、処理に必要な項目が削除された場合であっても、引数2の所定値が代入されるために、正常に処理を実行することが可能となる。
In the source code generated when an item is deleted by the source generation process, the
As shown in FIG. 6, “@ item value acquisition” which is a system function for checking an item value is specified by an argument 2 when the item name specified by the
具体的には、図7に示すように、業務スケルトンテンプレート122、項目部品123、印刷部品124、DB処理部品125、業務処理部品126などにおける雛形のソースコードでは、売上単価や売上金額の項目で利用される他の項目について「@項目値取得」の引数1で指定してチェックを行い、存在しない場合の値を引数2で指定している。例えば、売上単価の項目では、取引区分が商品割引である条件で利用される値引単価について、ソースコード上に存在しない場合は0を代入するように設定されている。
Specifically, as shown in FIG. 7, in the template source code of the
次に、コンパイル処理(ステップS2)の詳細について、図8、図9を参照して説明する。図8は、データ処理装置1が実行するコンパイル処理を示すフローチャートである。図9は、項目値を取得するシステム関数の置き換えを例示する概念図である。
Next, details of the compiling process (step S2) will be described with reference to FIGS. FIG. 8 is a flowchart showing a compilation process executed by the
図8に示すように、コンパイル処理が開始されると、コンパイル対象のソースコードが読み出され、当該ソースコード上の関数名が取得される(ステップS201)。 As shown in FIG. 8, when the compilation process is started, the source code to be compiled is read, and the function name on the source code is acquired (step S201).
次いで、前述したシステム関数テーブルが読み出され、ステップS201で取得されたソースコード上の関数名と比較されることで、ソースコード上の各関数のチェックが行われ(ステップS202)、項目値を取得するシステム関数(「@項目値取得」など)であるか否かが判定される(ステップS203)。 Next, the above-described system function table is read and compared with the function name on the source code acquired in step S201, thereby checking each function on the source code (step S202). It is determined whether it is a system function to be acquired (such as “@ item value acquisition”) (step S203).
ステップS203において、項目値を取得するシステム関数でないと判定された場合(NO)は、関数の引数が取得されて値を解析する解析処理が行われ(ステップS204)、解析した引数の情報がメモリ展開される(ステップS205)。 If it is determined in step S203 that the function is not a system function for acquiring an item value (NO), an argument of the function is acquired and an analysis process for analyzing the value is performed (step S204), and the analyzed argument information is stored in the memory. Expanded (step S205).
次いで、関数の処理自体について、該当するライブラリデータを用いるライブラリ関数を参照するように設定される(ステップS206)。このステップS206では、ステップS202によりチェックされた関数をどのように処理するかを設定する。システム関数は、予め用意されたシステム関数用のライブラリデータを参照して処理を行っている。ステップS206では、どのライブラリデータを参照して関数の処理を行うかを設定する。 Next, the function processing itself is set so as to refer to the library function using the corresponding library data (step S206). In step S206, how to process the function checked in step S202 is set. System functions are processed by referring to library data for system functions prepared in advance. In step S206, it is set which library data is referred to perform the function processing.
次いで、引数の処理自体について、該当するライブラリデータを用いるライブラリ関数及び項目を参照するように設定される(ステップS207)。このステップS207では、引数内に設定している処理について、システム関数用のライブラリデータや項目値を参照して行うように設定される。 Next, the argument processing itself is set so as to refer to the library function and item using the corresponding library data (step S207). In step S207, the processing set in the argument is set so as to be performed with reference to the library data and item values for the system function.
従って、ステップS202でチェックされた関数について、項目値を取得するシステム関数でないと判定された場合(NO)では、既存のコンパイル処理が行われることとなる。 Therefore, if it is determined that the function checked in step S202 is not a system function for acquiring item values (NO), existing compilation processing is performed.
ステップS203において、項目値を取得するシステム関数あると判定された場合(YES)は、当該システム関数の引数が解析され(ステップS208)、引数の値が取得される(ステップS209)。具体的には、前述した「@項目値取得」における引数1、引数2が取得される。
If it is determined in step S203 that there is a system function for obtaining an item value (YES), the argument of the system function is analyzed (step S208), and the value of the argument is obtained (step S209). Specifically, the
次いで、ステップS209において取得された引数1に該当する項目がソースコード上に存在するか否かがチェックされ(ステップS210)、そのチェック結果に基づいて引数1に該当する項目の存在の有無が判定される(ステップS211)。
Next, it is checked whether or not the item corresponding to the
ステップS211において、引数1に該当する項目がソースコード上に存在すると判定された場合(YES)は、本システム関数の処理が引数1で指定した項目に置き換えられる(ステップS212)。
If it is determined in step S211 that the item corresponding to
具体的には、図9に示すように、項目値を取得するシステム関数として、引数1として値引単価、引数2として0が指定されており、ソースコード上に値引単価の項目が存在する場合は、引数1で指定した値引単価に置き換えられることとなる。
Specifically, as shown in FIG. 9, as a system function for acquiring an item value, a discount unit price is specified as
また、ステップS211において、引数1に該当する項目がソースコード上に存在しないと判定された場合(NO)は、引数2で指定された所定値に置き換えられる(ステップS213)。
If it is determined in step S211 that the item corresponding to the
具体的には、図9に示すように、項目値を取得するシステム関数として、引数1として値引単価、引数2として0が指定されており、ソースコード上に値引単価の項目が存在しない場合は、引数2で指定した値である0に置き換えられることとなる。
Specifically, as shown in FIG. 9, as a system function for acquiring an item value, a discount unit price is designated as
次いで、関数内の引数内の情報として、ステップS212、S213で置き換えられた情報がメモリに展開され(ステップS214)、引数の処理自体について、該当するライブラリデータを用いるライブラリ関数及び項目を参照するように設定される(ステップS215)。 Next, the information replaced in steps S212 and S213 is expanded in the memory as information in the argument in the function (step S214), and the library function and item using the corresponding library data are referred to for the argument processing itself. (Step S215).
従って、ステップS202でチェックされた関数について、項目値を取得するシステム関数であると判定された場合(YES)では、当該システム関数を実行した後にコンパイル処理が行われることとなる。 Therefore, if it is determined that the function checked in step S202 is a system function for acquiring an item value (YES), compilation processing is performed after the system function is executed.
以上のように、データ処理装置1は、ソースコードをコンパイルしてオブジェクトコードに変換し、各種業務項目を処理する業務アプリケーションプログラムを作成するコンパイル手段(制御装置11、ステップS2)と、コンパイル手段のコンパイル時に、ソースコードに含まれる関数が、当該ソースコード上における特定の業務項目の有無をチェックして当該特定の業務項目への置き換えを行うシステム関数であるか否かを判別する関数判別手段(制御装置11、ステップS203)、コンパイル手段のコンパイル時に、関数判別手段による判別結果が上記システム関数である場合、当該システム関数の引数を解析する解析手段(制御装置11、ステップS208)と、コンパイル手段のコンパイル時に、解析手段により解析された引数に含まれる特定の業務項目がソースコードに含まれるか否かを判別する判別手段(制御装置11、ステップS210、S211)と、コンパイル手段のコンパイル時に、判別手段の判別結果に基づいて、ソースコードに含まれるシステム関数を解析手段により解析された引数に置き換える置換手段(制御装置11、ステップS212、S213)と、を備える。
As described above, the
従って、データ処理装置1は、ソースコード上において、特定の業務項目の有無をチェックして当該特定の業務項目への置き換えを行うシステム関数がある場合に、当該システム関数を実行した後にコンパイル手段によるコンパイルが行われることとなる。
Therefore, when there is a system function that checks the presence of a specific business item and replaces it with the specific business item on the source code, the
このため、データ処理装置1では、コンパイル処理により作成されたオブジェクトコードを実行する際において(ステップS3)、上記システム関数の処理を実行する必要が無くなるため、本来行うべき業務処理の処理速度への影響を低減させることができる。
For this reason, in the
また、データ処理装置1では、図10に示すように、コンパイル処理により作成されたオブジェクトコードを実行する際に、上記システム関数の実行に必要なシステム用ライブラリデータ128aが不要となるため、ライブラリデータの読出時間を短縮することができる。従って、データ処理装置1では、コンパイル処理により作成されたオブジェクトコードの実行時における処理速度を向上させることができる。
Further, as shown in FIG. 10, in the
また、データ処理装置1の解析手段は、特定の業務項目を含む第1の引数、及び、当該特定の業務項目がソースコードに含まれない場合に置き換えるべき値を含む第2の引数を解析する。また、データ処理装置1の置換手段は、判別手段の判別結果が特定の業務項目を含む場合、ソースコードに含まれるシステム関数を第1の引数に置き換える。また、データ処理装置1の置換手段は、判別手段の判別結果が特定の業務項目を含まない場合、ソースコードに含まれるシステム関数を第2の引数に置き換える。
The analysis unit of the
従って、データ処理装置1では、特定の業務項目を含む第1の引数、及び、当該特定の業務項目がソースコードに含まれない場合に置き換えるべき値を含む第2の引数により、ソースコード上における特定の業務項目の有無をチェックして当該特定の業務項目への置き換えを行うシステム関数について、対応することが可能となる。
Therefore, the
[変形例]
次に、業務処理に関するソースコードの作成から業務実行までの処理の変形例について、図11、図12を参照して説明する。図11は、業務処理に関するソースコードの作成から業務実行までの処理の変形例を示す概念図である。図12は、実行モード設定時の表示画面例を示す概念図である。
[Modification]
Next, a modified example of processing from creation of source code related to business processing to business execution will be described with reference to FIGS. FIG. 11 is a conceptual diagram showing a modified example of processing from creation of source code related to business processing to business execution. FIG. 12 is a conceptual diagram showing an example of a display screen when the execution mode is set.
前述した実施の形態では、項目の存在をチェックするシステム関数の処理をコンパイル処理後のアプリケーションプログラム実行時に行うのではなく、オブジェクトコードを作成する時に行うようにしている。これに対し、変形例は、図11に示すように、前述した実施の形態の処理に実行モードを設定する処理(ステップS30)を追加したものである。 In the above-described embodiment, the processing of the system function for checking the existence of an item is not performed at the time of executing the application program after the compiling process, but is performed at the time of creating the object code. On the other hand, in the modification, as shown in FIG. 11, a process (step S30) for setting an execution mode is added to the process of the above-described embodiment.
ステップS30における実行モードの設定では、前述したシステム関数「@項目値取得」の処理をどのように行うかについてが設定される。具体的には、ステップS30における実行モードの設定は、図12に示すような画面が表示装置13に表示され、入力装置14からの操作入力に基づいて設定される。例えば、図12の画面例は、システム関数「@項目値取得」で項目が存在しない場合にエラーとするか否かの設定を行う画面である。
In the setting of the execution mode in step S30, how to perform the process of the above-described system function “@item value acquisition” is set. Specifically, the execution mode in step S30 is set based on an operation input from the
ステップS30において設定された情報は、各種参照ファイル128と同種の制御情報128bとして保持される。従って、アプリケーションプログラム実行時には、制御情報128bも参照されることとなる。例えば、項目の非存在を許可しないようなアプリケーションプログラムを実行する場合、アプリケーションプログラムを修正することなく、ステップS30における実行モードの設定で動作を切り替えて使用することができる。
The information set in step S30 is held as
なお、上述した実施の形態における記述は、一例を示すものであり、これに限定するものではない。上述した実施の形態における構成及び動作に関しては、適宜変更が可能である。 Note that the description in the above-described embodiment shows an example, and the present invention is not limited to this. The configuration and operation in the embodiment described above can be changed as appropriate.
例えば、以上の説明では、本発明に係るプログラムのコンピュータ読み取り可能な媒体としてROMを使用した例を開示したが、この例に限定されない。その他のコンピュータ読み取り可能な媒体として、フラッシュメモリ等の不揮発性メモリ、CD-ROM等の可搬型記録媒体を適用することが可能である。また、本発明に係るプログラムのデータを通信回線を介して提供する媒体として、キャリアウエーブ(搬送波)も本発明に適用される。 For example, the above description discloses an example in which a ROM is used as a computer-readable medium for the program according to the present invention, but the present invention is not limited to this example. As other computer-readable media, a non-volatile memory such as a flash memory and a portable recording medium such as a CD-ROM can be applied. Further, a carrier wave (carrier wave) is also applied to the present invention as a medium for providing program data according to the present invention via a communication line.
1 データ処理装置
11 制御装置
12 記憶装置
13 表示装置
14 入力装置
15 通信装置
16 印刷装置
17 バス
121 業務プログラムファイル
121a オブジェクトコード
122 業務スケルトンテンプレート
123 項目部品
124 印刷部品
125 DB処理部品
126 業務処理部品
127 設定ファイル
127a システム関数テーブル
128 各種参照ファイル
128a システム用ライブラリデータ
128b 制御情報
129 業務アプリケーション生成プログラム
DB データベース
K1〜K9 項目
1
Claims (4)
前記関数判別手段による判別結果が前記システム関数である場合、当該システム関数の引数を解析する解析手段と、
前記解析手段により解析された引数に含まれる前記特定の項目がソースコードに含まれるか否かを判別する判別手段と、
前記判別手段の判別結果に基づいて、前記ソースコードに含まれるシステム関数を前記解析手段により解析された引数に置き換える置換手段と、
を備えるデータ処理装置。 Functions included in the source Sukodo is, a function determination means for determining whether or not by checking the presence or absence of a particular item on the source code is a system function to be replaced to the specific item,
If the determination result by the pre-Symbol function determining means is the system function, analyzing means for analyzing the arguments of the system function,
A determining means for the specific items included in the argument, which is analyzed by pre-Symbol analyzing means determines whether or not included in the source code,
Based on the discrimination result of the previous SL discriminating means, a replacement means for replacing the system functions included in the source code as an argument that has been analyzed by said analyzing means,
A data processing apparatus comprising:
前記置換手段は、前記判別手段の判別結果が前記特定の項目を含む場合、前記ソースコードに含まれるシステム関数を前記第1の引数に置き換える請求項1に記載のデータ処理装置。 Said analyzing means, a first argument including the specific items, and to analyze the second argument to which the particular item contains the value to be replaced if it is not included in the source code,
The replacement unit, when the judgment result of said discriminating means comprises said specific item, the data processing apparatus according to claim 1 to replace the system functions included in the source code to the first argument.
前記置換手段は、前記判別手段の判別結果が前記特定の項目を含まない場合、前記ソースコードに含まれるシステム関数を前記第2の引数に置き換える請求項1に記載のデータ処理装置。 Said analyzing means, a first argument including the specific items, and to analyze the second argument to which the particular item contains the value to be replaced if it is not included in the source code,
The replacement unit, when the judgment result of said judgment means does not include the specific item, the data processing apparatus according to claim 1 to replace the system functions included in the source code to the second argument.
ソースコードに含まれる関数が、当該ソースコード上における特定の項目の有無をチェックして当該特定の項目への置き換えを行うシステム関数であるか否かを判別する関数判別手段、
前記関数判別手段による判別結果が前記システム関数である場合、当該システム関数の引数を解析する解析手段、
前記解析手段により解析された引数に含まれる前記特定の項目がソースコードに含まれるか否かを判別する判別手段、
前記判別手段の判別結果に基づいて、前記ソースコードに含まれるシステム関数を前記解析手段により解析された引数に置き換える置換手段、
として機能させるためのプログラム。 Computer
Function, function determination means for determining whether the system function to check the presence or absence of a particular item on the source code performs replacement of the specific items included in the source Sukodo,
If the determination result by the pre-Symbol function determining means is the system function, analyzing means for analyzing the arguments of the system function,
Discriminating means for the specific items included in the argument, which is analyzed by pre-Symbol analyzing means determines whether or not included in the source code,
Based on the discrimination result of the previous SL discrimination means, replacing means for replacing a system functions included in the source code as an argument that has been analyzed by said analyzing means,
Program to function as.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013082574A JP5594393B2 (en) | 2013-04-11 | 2013-04-11 | Data processing apparatus and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013082574A JP5594393B2 (en) | 2013-04-11 | 2013-04-11 | Data processing apparatus and program |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008021228A Division JP5586076B2 (en) | 2008-01-31 | 2008-01-31 | Data processing apparatus and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2013137838A JP2013137838A (en) | 2013-07-11 |
JP5594393B2 true JP5594393B2 (en) | 2014-09-24 |
Family
ID=48913415
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013082574A Expired - Fee Related JP5594393B2 (en) | 2013-04-11 | 2013-04-11 | Data processing apparatus and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5594393B2 (en) |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01259424A (en) * | 1988-04-08 | 1989-10-17 | Matsushita Electric Ind Co Ltd | Automatic software generating device |
JPH03266023A (en) * | 1990-03-16 | 1991-11-27 | Fujitsu Ltd | Dynamic coupling system for variable |
JPH11237980A (en) * | 1998-02-20 | 1999-08-31 | Hitachi Ltd | Device and method for generating object-orientated optimized code |
JPH11305998A (en) * | 1998-04-16 | 1999-11-05 | Hitachi Ltd | Computer system |
JP2001022873A (en) * | 1999-07-12 | 2001-01-26 | Casio Comput Co Ltd | Customizing processor and program recording medium therefor |
JP2002229781A (en) * | 2001-01-30 | 2002-08-16 | Denso Corp | Program, electronic control device, and manufacturing method for program |
JP2003280899A (en) * | 2002-03-22 | 2003-10-02 | Ricoh Co Ltd | Device for generating data type library source code |
JP2007034806A (en) * | 2005-07-28 | 2007-02-08 | Casio Comput Co Ltd | Information processor and program |
JP2007034807A (en) * | 2005-07-28 | 2007-02-08 | Casio Comput Co Ltd | Information processor and program |
JP2007122187A (en) * | 2005-10-25 | 2007-05-17 | Canon Inc | Program code generation device |
JP2007226358A (en) * | 2006-02-21 | 2007-09-06 | Fujitsu Ltd | Application generation device, application generation method, and application generation program |
-
2013
- 2013-04-11 JP JP2013082574A patent/JP5594393B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2013137838A (en) | 2013-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8904283B2 (en) | Extendable meta-data support in final form presentation datastream print enterprises | |
CN108762743B (en) | Data table operation code generation method and device | |
US11361035B2 (en) | Batch generation of links to documents based on document name and page content matching | |
JP2973913B2 (en) | Input sheet system | |
WO2014064803A1 (en) | Document processing program, document processing device, document processing system, and document processing method | |
CN113760266B (en) | Method and device for creating function module file and electronic equipment | |
JP2012098878A (en) | Business form creation processing system and business form creation processing method and program | |
JP4846030B2 (en) | Operation verification apparatus, operation verification method, and operation verification program | |
JP2009093389A (en) | Information processor, information processing method, and program | |
JP5594393B2 (en) | Data processing apparatus and program | |
JP5586076B2 (en) | Data processing apparatus and program | |
JP6551082B2 (en) | Test support apparatus, test support method, and test support program | |
JP6336922B2 (en) | Business impact location extraction method and business impact location extraction device based on business variations | |
JP4957043B2 (en) | Information processing apparatus, program, and business application introduction method | |
JP4867229B2 (en) | Information processing apparatus and program | |
JP2008165497A (en) | Information processor and program | |
US11734506B2 (en) | Information processing apparatus and non-transitory computer readable medium storing program | |
JP2007034806A (en) | Information processor and program | |
JP2007034807A (en) | Information processor and program | |
JP2011043930A (en) | System, server device, apparatus and method for processing business form, and program | |
JP2010152601A (en) | Printer driver | |
JP4054753B2 (en) | Specification definition support system and program for application construction | |
JP2010026589A (en) | Information processor and program | |
JP6437899B2 (en) | Document proofreading support apparatus, document proofreading support method, and document proofreading support program | |
CN118151997A (en) | Method, device, electronic equipment and medium for annotating files by software items |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130423 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20130423 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20131216 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140218 |
|
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: 20140708 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140721 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5594393 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |