JP2002157386A - Workflow management method, its device, its processing program and recording medium with its processing program stored - Google Patents

Workflow management method, its device, its processing program and recording medium with its processing program stored

Info

Publication number
JP2002157386A
JP2002157386A JP2001220830A JP2001220830A JP2002157386A JP 2002157386 A JP2002157386 A JP 2002157386A JP 2001220830 A JP2001220830 A JP 2001220830A JP 2001220830 A JP2001220830 A JP 2001220830A JP 2002157386 A JP2002157386 A JP 2002157386A
Authority
JP
Japan
Prior art keywords
state transition
workflow
work
definition
workflow management
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
JP2001220830A
Other languages
Japanese (ja)
Inventor
Toyohito Suzuki
豊人 鈴木
Nobuo Kureyama
伸夫 紅山
Yoshiki Matsuda
芳樹 松田
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2001220830A priority Critical patent/JP2002157386A/en
Publication of JP2002157386A publication Critical patent/JP2002157386A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To switch the state transition processing method of a work by a fine unit such as workflow definition, state, and transition. SOLUTION: Workflow definition includes synchronization information being information for designation a processing system corresponding to state transition request API calling. A workflow definition tool is able to set the synchronization information of the workflow definition. A state transmission request synchronization processing program performs state transition processing in a synchronization processing system for performing the state transition processing of a work since the input of the state transition request is accepted until a reply is returned. The state transition request asynchronization processing program performs state transition processing in an asynchronization processing system for operating the state transition processing of a work after the input of the state transition request is accepted, and a reply is returned. Then, whether the state transition processing should be executed by the synchronization processing system or the asynchronization processing system is decided by referring to the synchronization information in the workflow definition.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ワークフロー管理
システムの制御技術に関する。
[0001] The present invention relates to a control technique for a workflow management system.

【0002】[0002]

【従来の技術】ワークフロー管理システムは、あらかじ
め定義されたワークフローに基づき、ワークの状態と作
業者へのワークの割り当てを管理するソフトウェアのこ
とである。以降、定義されたワークフローの内容を表す
情報を、ワークフロー定義と呼ぶ。ワークフロー管理シ
ステムについては、例えば、WfMC:The Wor
kflow Reference Model(TC0
0−1003 Jan−1995 1.1)及び、Wf
MC:Workflow ManagementApp
lication Programming Inte
rface(Interface2&3)Specif
ication(WFMC―TC−1009 July
−1998 2.0)に記載されている。
2. Description of the Related Art A workflow management system is software for managing the state of a work and the assignment of the work to a worker based on a predefined workflow. Hereinafter, information indicating the content of the defined workflow is referred to as a workflow definition. For the workflow management system, for example, WfMC: The Wor
kflow Reference Model (TC0
0-1003 Jan-1995 1.1) and Wf
MC: Workflow ManagementApp
ligation Programming Inte
rface (Interface2 & 3) Specif
ication (WFMC-TC-1009 July
-1998 2.0).

【0003】それらによれば、ワークフロー管理システ
ムは、クライアントアプリケーションプログラムが用い
るプログラミングインタフェースを提供する。以降で
は、このクライアントアプリケーションプログラムのこ
とをワークフローアプリケーションプログラムと呼ぶ。
また、以降では、プログラミングインタフェースのこと
をAPI(Application Programm
ing Interface)と呼ぶ。
[0003] According to them, the workflow management system provides a programming interface used by a client application program. Hereinafter, this client application program is referred to as a workflow application program.
In the following, the programming interface will be referred to as API (Application Programmable).
ing Interface).

【0004】ワークフロー管理システムがワークフロー
アプリケーションプログラムに提供するAPIは、ワー
クの投入、検索、開始や終了などの状態遷移、削除とい
った、ワークに対する操作を要求するためのインタフェ
ースである。ワークフローアプリケーションプログラム
がこれらのAPIを用いて操作を行うと、ワークフロー
管理システムは、ワークフロー定義に従って、ワークの
状態の管理やユーザへのワークの割り当てを行う。以
後、ワークフロー管理システムへのワークの状態遷移操
作の要求を状態遷移要求と呼ぶ。また、ワークの状態遷
移操作を要求するためのインターフェースを状態遷移要
求APIと呼ぶ。
[0004] The API provided by the workflow management system to the workflow application program is an interface for requesting operations on the work, such as inputting, searching, state transition such as start and end, and deletion. When the workflow application program operates using these APIs, the workflow management system manages the state of the work and assigns the work to the user according to the workflow definition. Hereinafter, a request for a work state transition operation to the workflow management system is referred to as a state transition request. An interface for requesting a state transition operation of a work is called a state transition request API.

【0005】ワークフロー管理システムの、ワークフロ
ーアプリケーションプログラムからの状態遷移要求に対
する処理方式は、非同期処理方式と同期処理方式の2つ
に分類される。非同期処理方式は、状態遷移要求に関す
る情報を永続的な記憶手段に格納する処理のみ行い、呼
び出し元ワークフローアプリケーションプログラムに応
答を返し、実際の状態遷移処理は、後のあるタイミング
で状態遷移要求の情報を永続的な記憶手段から取出して
実行する方式である。同期処理方式は、状態遷移要求か
ら、ワークフローアプリケーションプログラムに応答を
返すまでの間に、実際の状態遷移処理を実行する方式で
ある。
[0005] The processing system for the state transition request from the workflow application program in the workflow management system is classified into two types: an asynchronous processing system and a synchronous processing system. The asynchronous processing method only performs processing for storing information related to a state transition request in a permanent storage unit, returns a response to the calling workflow application program, and performs actual state transition processing at a later timing with information on the state transition request. Is taken out from the permanent storage means and executed. The synchronous processing method is a method in which an actual state transition process is executed between a state transition request and a response to a workflow application program.

【0006】状態遷移の性能に関する観点では、非同期
処理方式は、状態遷移要求時の処理が少ないため、状態
遷移要求から応答がワークフローアプリケーションプロ
グラムに戻るまでの時間である、ターンアラウンド時間
(APIレスポンス時間)は小さい。反面、即時実行の
保証が無い点と、状態遷移要求に関する情報の永続的な
記憶手段への格納・取出し操作が入る点から、状態遷移
要求から実際の状態遷移処理が完了するまでの時間であ
る、状態遷移時間は大きくなる。
[0006] From the viewpoint of the performance of state transition, the asynchronous processing method has a small number of processes at the time of a state transition request, and therefore, a turnaround time (API response time), which is a time from a state transition request to a response returning to the workflow application program. ) Is small. On the other hand, from the point that there is no guarantee of immediate execution and the point that information relating to the state transition request is stored / retrieved in the permanent storage means, it is the time from the state transition request to the completion of the actual state transition processing. , The state transition time becomes longer.

【0007】一方、同期処理方式は、状態遷移要求時の
処理が多いため、ターンアラウンド時間は大きくなる。
反面、状態遷移要求の永続的な記憶手段への格納・取出
し操作を行わない点と、即時実行の保証がある点から、
状態遷移時間は短くなる。一般に、ターンアラウンド時
間が小さいほどワークフローアプリケーションプログラ
ムの操作性は良く、また、状態遷移時間が小さいほど次
の作業者が作業を開始できるタイミングが早くなる。
On the other hand, in the synchronous processing method, since there are many processes at the time of a state transition request, the turnaround time becomes long.
On the other hand, from the point that the operation of storing and retrieving the state transition request to the permanent storage means is not performed, and there is a guarantee of immediate execution,
The state transition time becomes shorter. Generally, the shorter the turnaround time, the better the operability of the workflow application program, and the shorter the state transition time, the earlier the next worker can start work.

【0008】従来、ワークフロー管理システムの適用範
囲は、企業における発注業務や旅費精算など補助業務で
あったため、状態遷移時間はあまり問題にされておら
ず、むしろワークフローアプリケーションプログラムの
操作性向上のため、APIレスポンス時間の短縮が重視
されていた。そのため従来のワークフロー管理システム
のAPI呼び出しに対する処理方式は、非同期処理方式
が中心であった。
Conventionally, the application range of the workflow management system has been an auxiliary business such as an ordering business and a travel expense settlement in a company. Therefore, the state transition time is not so much a problem, but rather, to improve the operability of a workflow application program. Emphasis was placed on reducing API response time. Therefore, the processing method for the API call of the conventional workflow management system has mainly been the asynchronous processing method.

【0009】近年、ワークフロー管理システムの適用範
囲が基幹業務へと広がり、窓口業務などの顧客を待たせ
た状態で処理される業務への適用も行われている。その
場合、状態遷移時間の短縮が重要となるため、同期処理
方式のワークフロー管理システムが有効である。
[0009] In recent years, the application range of the workflow management system has been expanded to core business, and it has also been applied to business such as window business that is processed with customers waiting. In such a case, it is important to reduce the state transition time, so a synchronous processing type workflow management system is effective.

【0010】ワークフロー管理システム導入の主要なメ
リットの1つは、業務の一連の作業の流れを、ワークフ
ロー管理システムに制御させることによって、各作業を
実行するワークフローアプリケーションプログラムの開
発者が、業務の各作業のビジネスロジックの実現のみに
集中でき、かつ、業務の作業の流れが変更された場合に
も、プログラムのソースコードは変更が必要ないことで
ある。以後、各作業のビジネスロジックを実現するプロ
グラムを、ワークフロー業務処理プログラムと呼ぶ。ま
た、ワークフローアプリケーションプログラムの開発者
が開発するソースコードをユーザ開発コードと呼ぶ。
One of the major advantages of the introduction of the workflow management system is that the workflow management system controls the flow of a series of operations so that the developer of the workflow application program that executes each operation can execute each operation. In other words, it is possible to concentrate only on the realization of the business logic of the work, and even if the work flow of the work is changed, the source code of the program does not need to be changed. Hereinafter, a program that implements the business logic of each task is referred to as a workflow business processing program. The source code developed by the developer of the workflow application program is called user development code.

【0011】[0011]

【発明が解決しようとする課題】従来のワークフロー管
理システムでは、状態遷移要求API呼び出しに対する
処理方式がワークフロー管理システムごとに固定であっ
たため、柔軟性の点で問題があった。本発明の目的は、
柔軟なワークフロー管理システムを提供することであ
る。
In the conventional workflow management system, the processing method for calling the state transition request API is fixed for each workflow management system, and thus has a problem in flexibility. The purpose of the present invention is
The purpose is to provide a flexible workflow management system.

【0012】[0012]

【課題を解決するための手段】本発明の目的を達成する
ために本発明では、下記の処理を提供する。
In order to achieve the object of the present invention, the present invention provides the following processing.

【0013】第1に、本発明のワークフロー管理システ
ムは、ワークフロー定義に、状態遷移要求API呼び出
しに対する処理方式を指定する情報である同期情報を含
み、ワークフロー定義の同期情報を設定可能なワークフ
ロー定義ツールを有し、同期処理方式の状態遷移処理を
行う状態遷移要求同期処理プログラムと、非同期処理方
式の状態遷移処理を行う状態遷移要求非同期処理プログ
ラムと、ワークフロー定義内の同期情報を参照し状態遷
移処理を同期処理方式で実行するか非同期処理方式で実
行するかを決定する、処理方法決定プログラムを有する
ことを特徴とする。
First, a workflow management system according to the present invention includes a workflow definition tool which includes synchronization information, which is information for specifying a processing method for a state transition request API call, in a workflow definition, and which can set synchronization information of the workflow definition. A state transition request synchronous processing program that performs state transition processing of a synchronous processing method, a state transition request asynchronous processing program that performs state transition processing of an asynchronous processing method, and a state transition processing that refers to synchronization information in a workflow definition And a processing method determining program for determining whether to execute by a synchronous processing method or an asynchronous processing method.

【0014】第2に、本発明のワークフロー管理システ
ムは、同期処理方式の状態遷移処理を指定する同期状態
遷移要求APIと、非同期処理方式の状態遷移処理を指
定する非同期状態遷移要求APIを提供し、同期処理方
式の状態遷移処理を行う状態遷移要求同期処理プログラ
ムと、非同期処理方式の状態遷移処理を行う状態遷移要
求非同期処理プログラムを有し、ワークフローアプリケ
ーションプログラムにリンクされ、ワークフロー管理シ
ステムの状態遷移要求APIを呼び出す状態遷移要求発
行プログラムのソースコードを生成するツールであっ
て、状態遷移要求の処理方式を指定する情報である同期
情報を入力することによって、同期状態遷移要求API
または非同期状態遷移要求APIを呼び出す状態遷移要
求発行プログラムのソースコードを生成し分けるワーク
フローアプリケーションプログラム生成ツールを持つこ
とを特徴とする。
Second, the workflow management system of the present invention provides a synchronous state transition request API for designating state transition processing of a synchronous processing method and an asynchronous state transition request API for designating state transition processing of an asynchronous processing method. A state transition request synchronous processing program that performs state transition processing of a synchronous processing method, and a state transition request asynchronous processing program that performs state transition processing of an asynchronous processing method. The state transition of the workflow management system is linked to the workflow application program. A tool for generating a source code of a state transition request issuing program for calling a request API, wherein a synchronous state transition request API is input by inputting synchronization information which is information for specifying a processing method of a state transition request.
Alternatively, there is provided a workflow application program generation tool for generating and separately selecting a source code of a state transition request issuing program that calls an asynchronous state transition request API.

【0015】第3における、本発明のワークフロー管理
システムは、同期処理方式の状態遷移処理を指定する同
期状態遷移要求APIと、非同期処理方式の状態遷移処
理を指定する非同期状態遷移要求APIを提供し、同期
処理方式の状態遷移処理を行う状態遷移要求同期処理プ
ログラムと、非同期処理方式の状態遷移処理を行う状態
遷移要求非同期処理プログラムを有し、ワークフローア
プリケーションプログラム内からアクセス可能な情報で
あるワークフローアプリケーション実行環境情報に、状
態遷移要求の処理方式を指定する情報である同期情報を
含み、ワークフローアプリケーション実行環境情報の同
期情報を設定可能なワークフロー定義ツールを有し、ワ
ークフローアプリケーションプログラムにリンクされ、
ワークフロー管理システムの状態遷移要求APIを呼び
出す状態遷移要求発行プログラムであって、ワークフロ
ーアプリケーション実行環境情報の同期情報を参照して
同期状態遷移要求APIを呼び出すか、非同期状態遷移
要求APIを呼び出すかの切り替えを行う状態遷移要求
発行プログラムを有することを特徴とする。
In a third aspect, the workflow management system of the present invention provides a synchronous state transition request API for designating a state transition process of a synchronous processing method and an asynchronous state transition request API for designating a state transition process of an asynchronous processing method. A workflow application which has a state transition request synchronous processing program for performing a state transition processing of a synchronous processing method and a state transition request asynchronous processing program for performing a state transition processing of an asynchronous processing method, and is information accessible from within the workflow application program. The execution environment information includes synchronization information, which is information for specifying a processing method of the state transition request, has a workflow definition tool capable of setting synchronization information of the workflow application execution environment information, is linked to the workflow application program,
A state transition request issuing program that calls a state transition request API of a workflow management system, and switches between calling a synchronous state transition request API with reference to synchronization information of workflow application execution environment information and calling an asynchronous state transition request API. A state transition request issuance program that performs

【0016】[0016]

【発明の実施の形態】以下、図を用いて本発明の実施の
形態を説明する。第一の実施例は、解決手段1の実施形
態の1実施例を示すものである。図1から図15を用い
て説明する。第一の実施例のワークフロー管理システム
は、ワークフロー管理プログラムが提供する状態遷移要
求APIを1種類とし、ワークフロー管理プログラム内
で、ワークフロー定義データに予め定義された同期情報
を参照し、状態遷移要求に対する処理を同期で行うか非
同期で行うか切り替えることにより、ワークフロー業務
処理プログラムのソ−スコード中から状態遷移要求の処
理方法に関する情報を排除している点に特徴がある。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below with reference to the drawings. The first example shows one example of the embodiment of the solving means 1. This will be described with reference to FIGS. The workflow management system according to the first embodiment uses one type of state transition request API provided by the workflow management program, refers to synchronization information predefined in the workflow definition data in the workflow management program, and responds to the state transition request. It is characterized in that information on the processing method of the state transition request is excluded from the source code of the workflow business processing program by switching between performing the processing synchronously or asynchronously.

【0017】ここで、本実施例の基本的な動作原理の概
略について説明する。説明には図3を用いる。ワークフ
ロー管理システムのユーザは、ワークフロー定義ツール
141を用いて、ワークのとりうる状態と各状態間の遷
移をワークフロー定義として定義し、ワークフロー定義
データ142に格納する。このときワークフロー定義の
各遷移に対して、対応する遷移処理を同期で行うか非同
期で行うかを設定することができる。
Here, the outline of the basic operation principle of this embodiment will be described. FIG. 3 is used for the description. The user of the workflow management system uses the workflow definition tool 141 to define the possible states of the work and the transition between the states as a workflow definition, and stores the workflow definition data 142. At this time, for each transition of the workflow definition, it is possible to set whether the corresponding transition process is performed synchronously or asynchronously.

【0018】ワークフローアプリケーションプログラム
150は業務データ153の参照・更新や、ワークフロ
ー管理プログラム140の状態遷移要求API発行など
を行い、ビジネスロジックを実現するワークフロー業務
処理プログラム3207を有する。
The workflow application program 150 has a workflow business processing program 3207 for referring to and updating business data 153, issuing a state transition request API of the workflow management program 140, and implementing business logic.

【0019】状態遷移要求受付プログラム206は、ワ
ークフローアプリケーションプログラム150の状態遷
移要求API呼び出しを受け、処理方法決定プログラム
200を呼び出す、処理方法決定プログラム200は、
ワークフロー定義データ142を参照し、要求の遷移を
同期処理するか、非同期処理するかを決定し、同期処理
に決定した場合には状態遷移要求同期処理プログラム2
01を呼び出し、非同期処理に決定した場合には状態遷
移要求非同期処理プログラム202を呼び出す。状態遷
移要求同期処理プログラム201は直接、状態遷移処理
プログラム203を呼び出し、ワークの状態遷移が完了
するまで、呼び出し元に応答を返さない。状態遷移要求
非同期処理プログラム202は、状態遷移処理要求を一
旦永続記憶に保持する処理のみ実行し、呼び出し元に応
答を返し、実際の状態遷移処理は、後に永続記憶から状
態遷移要求をとりだして、状態遷移処理プログラム20
3を呼び出すことにより行う。状態遷移処理プログラム
203は、ワークフロー定義データ142を参照し、作
業者決定プログラム204を呼び出してワークの作業者
を決定し、ワークフローデータ143を更新して状態遷
移処理を実行する。作業者決定プログラム204はワー
クフロー定義データ142を参照し、必要に応じて業務
データ153を参照し、作業者を決定する。
The state transition request receiving program 206 receives a state transition request API call of the workflow application program 150 and calls the processing method determination program 200. The processing method determination program 200
With reference to the workflow definition data 142, it is determined whether the request transition is to be processed synchronously or asynchronously. If the synchronous processing is determined, the state transition request synchronous processing program 2
01 is called, and when it is determined that the processing is asynchronous, the state transition request asynchronous processing program 202 is called. The state transition request synchronization processing program 201 directly calls the state transition processing program 203 and does not return a response to the caller until the state transition of the work is completed. The state transition request asynchronous processing program 202 executes only processing for temporarily holding the state transition processing request in the permanent storage, returns a response to the caller, and in the actual state transition processing, retrieves the state transition request from the persistent storage later. State transition processing program 20
3 is called. The state transition processing program 203 refers to the workflow definition data 142, calls the worker determination program 204, determines the worker of the work, updates the workflow data 143, and executes the state transition processing. The worker determination program 204 refers to the workflow definition data 142 and, if necessary, refers to the business data 153 to determine a worker.

【0020】次に、本実施例のワークフロー管理システ
ムの構成を、図2を用いて説明する。本実施例のワーク
フロー管理システムは、ワークフローアプリケーション
プログラム150に状態遷移要求APIをはじめとする
ワークの状態を操作するAPIを提供し、ワークフロー
定義データ142やワークフローデータ143や業務デ
ータ153にアクセスしながらワークの状態や作業者へ
の割り当てを管理するワークフロー管理プログラム14
0と、ワークフローを定義しワークフロー定義データ1
42に格納するワークフロー定義ツール141と、ワー
クのとりうる状態や遷移や、作業者の決定ルールなどの
ワークフロー定義を格納するワークフロー定義データ1
42と、ワークの状態を格納するワークフローデータ1
43と、ワークフロー管理システム適用業務の業務デー
タ153にアクセスし、ワークフロー管理プログラム1
40が提供するAPIを呼び出しながら実行するワーク
フローアプリケーションプログラム150と、業務に依
存するデータを格納する業務データ153で構成され
る。
Next, the configuration of the workflow management system of this embodiment will be described with reference to FIG. The workflow management system according to the present embodiment provides the workflow application program 150 with an API for operating the state of a work, such as a state transition request API, and accesses the workflow definition data 142, the workflow data 143, and the business data 153 to access the work. Management program 14 for managing the status of jobs and assignment to workers
0 and workflow definition data 1 that defines the workflow
42, and workflow definition data 1 for storing workflow definitions such as possible states and transitions of a work and rules for determining a worker.
42 and workflow data 1 for storing the state of the work
43 and the workflow management program 1 by accessing the workflow management system application
It comprises a workflow application program 150 that executes while calling an API provided by 40, and business data 153 that stores data depending on the business.

【0021】ワークフロー定義データ142は、各ワー
クフロー定義に従属するワークがとりうる各状態の定義
を格納する状態定義テーブル210と、各ワークフロー
定義に従属するワークがとりうる状態間遷移の定義を格
納する遷移定義テーブル211と、各状態での作業者決
定に用いる作業者決定ルールの定義を格納する作業者決
定ルール定義テーブル212と、作業者の定義を格納す
る作業者定義テーブル213で構成される。本実施例で
は、作業者の定義情報をワークフロー管理システムに含
む構成を示しているが、何らかの外部データベースに格
納されたデータとする構成も可能であり、いずれの場合
も、業務依存の作業者管理機構により管理されることを
想定している。
The workflow definition data 142 stores a state definition table 210 that stores definitions of states that can be taken by a work that depends on each workflow definition, and a definition of transition between states that can be taken by a work that depends on each workflow definition. It comprises a transition definition table 211, a worker determination rule definition table 212 for storing the definition of a worker determination rule used for determining the worker in each state, and a worker definition table 213 for storing the definition of the worker. In the present embodiment, a configuration including the definition information of the worker in the workflow management system is shown. However, a configuration in which data is stored in some external database is also possible. It is assumed to be managed by PMDA.

【0022】ワークフローデータ143は、ワークの状
態を格納するワーク状態テーブル214と、状態遷移要
求を格納する状態遷移要求テーブル215で構成され
る。本実施例の業務データ153は、本実施例で用いる
窓口業務に依存するデータを格納する窓口業務テーブル
216で構成される。
The workflow data 143 includes a work state table 214 for storing work states and a state transition request table 215 for storing state transition requests. The business operation data 153 according to the present embodiment includes a window operation table 216 that stores data depending on the window operation used in the embodiment.

【0023】ワークフロー管理プログラム140は、遷
移定義テーブル211の内容に応じて、状態遷移要求同
期処理プログラム201または状態遷移要求非同期処理
プログラム202に処理を振り分ける、処理方法決定プ
ログラム200と、状態遷移処理プログラム203を呼
び出すことによって状態遷移要求の同期処理を実現する
状態遷移要求同期処理プログラム201と、状態遷移要
求を状態遷移要求テーブル215へ格納し、状態遷移要
求一定間隔起動プログラム205に呼び出されるタイミ
ングで状態遷移要求を状態遷移要求テーブル215から
取出し、状態遷移処理プログラム203を呼び出すこと
により、状態遷移要求の非同期処理を実現する状態遷移
要求非同期処理プログラム202と、ワークフロー定義
データ142を参照し、作業者決定プログラム204を
呼び出し、ワーク状態テーブル214を更新することに
よりワークの状態遷移を実現する状態遷移処理プログラ
ム203と、作業者決定ルール定義テーブル212を参
照し、作業者決定ルールを評価し、必要に応じて、作業
者定義テーブル213と窓口業務テーブル216にアク
セスし、作業者の決定を行う作業者決定プログラム20
4と、状態遷移要求非同期処理プログラム202を定期
的に呼び出すことにより、状態遷移の非同期実行のトリ
ガを与える状態遷移要求一定間隔起動プログラム205
と、状態遷移要求APIの呼び出しを受け付け、処理方
法決定プログラム200を呼び出す、状態遷移要求受付
プログラム206を有する。
The workflow management program 140 distributes the processing to the state transition request synchronous processing program 201 or the state transition request asynchronous processing program 202 according to the contents of the transition definition table 211. A state transition request synchronous processing program 201 for realizing synchronous processing of a state transition request by calling the state transition request 203 and a state transition request are stored in a state transition request table 215, and the state transition request is executed by a state transition request fixed interval start program 205 at a timing called. A transition request is extracted from the state transition request table 215, and the state transition request program 203 is called to refer to the state transition request asynchronous processing program 202 for realizing the asynchronous processing of the state transition request and the workflow definition data 142. Then, the worker decision program 204 is called, and the work state table 214 is updated. The state transition processing program 203 for realizing the state transition of the work and the worker decision rule definition table 212 are referred to, and the worker decision rules are evaluated. Then, if necessary, the worker definition program 213 accesses the worker definition table 213 and the window work table 216 to determine the worker.
4 and a state transition request fixed interval start-up program 205 that periodically triggers the state transition request asynchronous processing program 202 to trigger the asynchronous execution of the state transition.
And a state transition request reception program 206 that receives a call of the state transition request API and calls the processing method determination program 200.

【0024】ワークフロー定義ツール141は、ワーク
フロー定義者にワークフロー定義作成のGUIを提供
し、作成したワークフロー定義をワークフロー定義デー
タ142に格納するワークフロー定義プログラム209
を有する。
The workflow definition tool 141 provides a workflow definition user with a GUI for creating a workflow definition, and stores the created workflow definition in the workflow definition data 142.
Having.

【0025】以下、本実施例をより詳細に説明する。ワ
ークフロー定義データ142を構成するテーブルについ
て図4から図7を用いて説明する。
Hereinafter, this embodiment will be described in more detail. A table constituting the workflow definition data 142 will be described with reference to FIGS.

【0026】図4は状態定義テーブル210の構造であ
る。状態定義テーブル210は、ワークフロー定義名4
00、状態名401、作業者決定ルール名402で構成
される表データである。ワークフロー定義名400は、
状態が属するワークフロー定義を示す。状態名401
は、同一ワークフロー定義内の状態を一意に識別するデ
ータである。作業者決定ルール名402は、作業者決定
ルール定義テーブル212の作業者決定ルール名600
を参照する。状態定義テーブル210のレコードは、ワ
ークフロー定義プログラム209のワークフロー定義格
納手続き2602で格納され、状態遷移処理プログラム
203の状態遷移処理手続き1600で参照される。
FIG. 4 shows the structure of the state definition table 210. The state definition table 210 has the workflow definition name 4
00, state name 401, and worker determination rule name 402. The workflow definition name 400 is
Indicates the workflow definition to which the state belongs. State name 401
Is data that uniquely identifies a state in the same workflow definition. The worker determination rule name 402 is the worker determination rule name 600 in the worker determination rule definition table 212.
See The records of the state definition table 210 are stored in the workflow definition storage procedure 2602 of the workflow definition program 209, and are referred to in the state transition processing procedure 1600 of the state transition processing program 203.

【0027】図5は遷移定義テーブル211の構造であ
る。遷移定義テーブル211は、ワークフロー定義名5
00、遷移ID501、遷移元状態名502、遷移先状
態名503、同期情報504で構成される表データであ
る。ワークフロー定義名500は、遷移が属するワーク
フロー定義を示す。遷移ID501は同一ワークフロー
定義内の遷移を一意に識別するデータである。遷移元状
態名502は遷移の遷移元となる状態の状態名を示す、
遷移先状態名503は遷移の遷移先となる状態の状態名
を示す、同期情報504は状態遷移要求を同期処理する
か非同期処理するかの指定であり、「同期」または「非
同期」いずれかの値をとる。
FIG. 5 shows the structure of the transition definition table 211. The transition definition table 211 has the workflow definition name 5
00, a transition ID 501, a transition source state name 502, a transition destination state name 503, and synchronization information 504. The workflow definition name 500 indicates the workflow definition to which the transition belongs. The transition ID 501 is data for uniquely identifying a transition in the same workflow definition. The transition source state name 502 indicates the state name of the state that is the transition source of the transition.
The transition destination state name 503 indicates a state name of a state to be a transition destination of the transition. The synchronization information 504 is a specification of whether to synchronously or asynchronously process the state transition request, and is either “synchronous” or “asynchronous”. Take a value.

【0028】遷移定義テーブル211のレコードは、ワ
ークフロー定義プログラム209のワークフロー定義格
納手続き2602で格納され、処理方法決定プログラム
200の処理方法決定手続き1300および状態遷移処
理プログラム203の状態遷移処理手続き1600で参
照される。
The record of the transition definition table 211 is stored in the workflow definition storage procedure 2602 of the workflow definition program 209, and is referred to in the processing method determination procedure 1300 of the processing method determination program 200 and the state transition processing procedure 1600 of the state transition processing program 203. Is done.

【0029】図6は作業者決定ルール定義テーブル21
2の構造である。作業者決定ルール定義テーブル212
は、作業者決定ルール名600、作業者決定ルール60
1で構成される表データである。作業者決定ルール名6
00は、作業者決定ルール601を一意に識別するデー
タである。作業者決定ルール601は、作業者決定プロ
グラム204により解釈実行される文字列データであ
る。
FIG. 6 shows an operator determination rule definition table 21.
This is the structure of FIG. Worker determination rule definition table 212
Are the worker determination rule name 600 and the worker determination rule 60
1 is table data. Worker determination rule name 6
00 is data for uniquely identifying the worker determination rule 601. The worker determination rule 601 is character string data interpreted and executed by the worker determination program 204.

【0030】作業者決定ルール定義テーブル212のレ
コードは、該当レコードの作業者決定ルール名600を
参照する状態定義テーブル210のレコードが格納され
るより前に、何らかの方法で格納され、作業者決定プロ
グラム204の作業者決定手続き1700で参照され
る。
The record of the worker decision rule definition table 212 is stored by some method before the record of the state definition table 210 which refers to the worker decision rule name 600 of the record is stored. Reference is made to the operator determination procedure 1700 of 204.

【0031】図7は作業者定義テーブル213の構造で
ある。作業者定義テーブル213は、作業者ID70
0、ロールID701で構成される表データである。作
業者ID700は、作業者を一意に識別するデータであ
る。ロールID701は、本実施例の作業者決定ルール
の評価で参照する作業者の属性の1例である。
FIG. 7 shows the structure of the worker definition table 213. The worker definition table 213 stores the worker ID 70
The table data is composed of 0 and a role ID 701. The worker ID 700 is data for uniquely identifying the worker. The role ID 701 is an example of an attribute of a worker referred to in the evaluation of the worker determination rule according to the present embodiment.

【0032】作業者定義テーブル213のレコードは、
業務依存の作業者管理機構と連動して管理され、何らか
の方法で格納・変更・削除が行われる。ワークフロー管
理システムでは作業者決定プログラム204の作業者決
定手続き1700で必要に応じて参照する。
The record of the worker definition table 213 is
The information is managed in conjunction with a job-dependent worker management mechanism, and is stored, changed, and deleted in some way. In the workflow management system, the worker is referred to in the worker determination procedure 1700 of the worker determination program 204 as necessary.

【0033】次にワークフローデータ143を構成する
テーブルについて図8と図9を用いて説明する。図8は
ワーク状態テーブル214の構造である。ワーク状態テ
ーブル214は、ワークID800、ワークフロー定義
名801、状態名802、作業者ID803、状態完了
フラグ804で構成される表データである。ワークID
800は、ワークを一意に識別するデータである。ワー
クフロー定義名801は、ワークが従属するワークフロ
ー定義の名称である。状態名802はワークの状態を示
すデータである。作業者ID803はワークの、状態名
802の状態の作業者として決定された作業者の識別情
報である。状態完了フラグ804は当該状態が、完了し
たか否かを示すフラグである。
Next, a table constituting the workflow data 143 will be described with reference to FIGS. FIG. 8 shows the structure of the work state table 214. The work state table 214 is tabular data including a work ID 800, a workflow definition name 801, a state name 802, an operator ID 803, and a state completion flag 804. Work ID
800 is data for uniquely identifying a work. The workflow definition name 801 is the name of the workflow definition to which the work depends. The state name 802 is data indicating the state of the work. The worker ID 803 is identification information of the worker determined as the worker in the state of the state name 802 of the work. The status completion flag 804 is a flag indicating whether or not the status has been completed.

【0034】本実施例のワークフロー管理システムでは
状態遷移の処理を、遷移元状態の状態完了フラグ804
をTRUEにし、遷移先の状態の状態名を状態名802
として状態完了フラグ804をFALSEのレコードを
ワーク状態テーブル214に、挿入することによって実
現する。ワーク状態テーブル214のレコードは、状態
遷移処理プログラム203の状態遷移処理手続き160
0で、格納・更新され、処理方法決定手続き1300で
参照される。
In the workflow management system according to the present embodiment, the state transition processing is performed by the state completion flag 804 of the transition source state.
Is set to TRUE, and the state name of the state of the transition destination is the state name 802.
The state completion flag 804 is realized by inserting a FALSE record into the work state table 214. The record of the work state table 214 is stored in the state transition processing procedure 160 of the state transition processing program 203.
0, stored and updated, and referred to in the processing method determination procedure 1300.

【0035】図9は状態遷移要求テーブル215の構造
である。状態遷移要求テーブル215は、ワークID9
00、ワークフロー定義名901、遷移ID902で構
成される表データである。ワークID900は、状態遷
移要求の対象となっているワークの識別子である。ワー
クフロー定義名901は状態遷移要求の対象となってい
るワークが従属するワークフロー定義の名称である。遷
移ID902は、状態遷移要求APIで指定された状態
を遷移元状態とする遷移の識別子である。
FIG. 9 shows the structure of the state transition request table 215. The state transition request table 215 contains the work ID 9
The table data is composed of 00, a workflow definition name 901, and a transition ID 902. The work ID 900 is an identifier of the work that is the target of the state transition request. The workflow definition name 901 is the name of the workflow definition to which the work for which the state transition request is made depends. The transition ID 902 is an identifier of a transition having the state specified by the state transition request API as the transition source state.

【0036】状態遷移要求テーブル215のレコード
は、状態遷移要求非同期処理プログラム202の状態遷
移要求格納手続き1501で格納され、状態遷移要求非
同期処理プログラム202の状態遷移要求取出し手続き
1502で参照・削除される。
The records of the state transition request table 215 are stored in the state transition request storage procedure 1501 of the state transition request asynchronous processing program 202, and are referenced and deleted by the state transition request fetch procedure 1502 of the state transition request asynchronous processing program 202. .

【0037】次に業務データ153を構成するテーブル
について図10を用いて説明する。窓口業務テーブル2
16は本実施例で参照する窓口業務の業務依存データを
格納する、ワークID1000、取引額1001で構成
される表データである。窓口業務テーブル216のレコ
ードは、ワークフロー業務処理プログラム3207で格
納・参照・更新され、必要に応じて、作業者決定プログ
ラム204の作業者決定手続き1700で参照される。
Next, a table constituting the business data 153 will be described with reference to FIG. Counter business table 2
Reference numeral 16 denotes table data that stores work-dependent data of the window work referred to in the present embodiment and includes a work ID 1000 and a transaction amount 1001. The records in the window business table 216 are stored, referenced, and updated by the workflow business processing program 3207, and are referred to by the worker determination procedure 1700 of the worker determination program 204 as necessary.

【0038】以下、図11から図13を用い、ワークフ
ロー管理プログラム140の動作の詳細を説明する。図
11は、ワークフロー管理プログラム140が提供する
APIであり、状態遷移要求API1100を含んでい
る。状態遷移要求API1100は、入力引数として、
ワークID、状態名をとる。
Hereinafter, the operation of the workflow management program 140 will be described in detail with reference to FIGS. FIG. 11 shows an API provided by the workflow management program 140, and includes a state transition request API 1100. The state transition request API 1100 includes, as an input argument,
A work ID and a state name are taken.

【0039】各プログラムの構成を説明する。状態遷移
要求受付プログラム206は、状態遷移要求API11
00の処理を実装する、状態遷移要求手続き1200で
構成される。
The configuration of each program will be described. The state transition request reception program 206 executes the state transition request API 11
It is composed of a state transition request procedure 1200 that implements the process of 00.

【0040】処理方法決定プログラム200は、ワーク
フローデータ143とワークフロー定義データ142を
参照し、状態遷移要求の処理方式を決定する、処理方法
決定手続き1300で構成される。
The processing method determining program 200 is composed of a processing method determining procedure 1300 which determines the processing method of the state transition request with reference to the workflow data 143 and the workflow definition data 142.

【0041】状態遷移要求同期処理プログラム201
は、状態遷移要求同期処理手続き1400で構成され
る。
State transition request synchronous processing program 201
Is composed of a state transition request synchronization processing procedure 1400.

【0042】状態遷移要求非同期処理プログラム202
は、状態遷移要求非同期処理手続き1500と、状態遷
移要求を永続記憶に格納する、状態遷移要求格納手続き
1501と、状態遷移要求を永続記憶から取り出す、状
態遷移要求取出し手続き1502と、一定期間ごとに呼
び出され、永続記憶に格納されている状態遷移要求を取
出し状態遷移処理プログラム203を起動する、状態遷
移処理起動手続き1503で構成される。
State transition request asynchronous processing program 202
Is a state transition request asynchronous processing procedure 1500, a state transition request storage procedure 1501 for storing a state transition request in permanent storage, a state transition request retrieval procedure 1502 for extracting a state transition request from permanent storage, and A state transition processing start procedure 1503 is called up, takes out the state transition request stored in the permanent storage, and starts the state transition processing program 203.

【0043】状態遷移処理プログラム203は、実際の
状態遷移処理を実行する、状態遷移処理手続き1600
で構成される。
The state transition processing program 203 executes an actual state transition processing.
It consists of.

【0044】作業者決定プログラム204は、ワークフ
ロー定義データ142を参照し、必要に応じて業務デー
タ153を参照し、作業者を決定する作業者決定手続き
1700で構成される。
The worker decision program 204 is composed of a worker decision procedure 1700 which decides a worker by referring to the workflow definition data 142 and, if necessary, the business data 153.

【0045】状態遷移要求一定間隔起動プログラム20
5は、ワークフロー管理プログラム140起動時に呼び
出され、一定間隔ごとに状態遷移処理起動手続き150
3を呼び出す、監視開始手続き1800で構成される。
State transition request fixed interval start program 20
5 is called when the workflow management program 140 is started, and the state transition processing start procedure 150 is executed at regular intervals.
3 comprises a monitoring start procedure 1800.

【0046】つづいて、各手続きの動作を説明する。ま
ず、状態遷移要求手続き1200は、状態遷移要求AP
I1100を実装する手続きであり、引数をそのまま渡
して、処理方法決定手続き1300を呼び出す。
Next, the operation of each procedure will be described. First, the state transition request procedure 1200 includes a state transition request AP.
This is a procedure that implements I1100, and calls the processing method determination procedure 1300 by passing the argument as it is.

【0047】次に、処理方法決定手続き1300の動作
を、図12を用いて説明する。処理方法決定手続き13
00は、ワークIDと状態名を入力引数としてとる。ま
ず、引数のワークIDと、状態名の値をキーとして、ワ
ーク状態テーブル214を検索する1900。ここで、
ワーク状態テーブル214のレコードがヒットしない、
または、ヒットしたレコードの状態完了フラグ804の
フィールド値がTRUEの場合1901、呼び出し元に
エラーを返答し1909、終了。それ以外の場合、19
00の検索でヒットしたレコードの状態完了フラグ80
4のフィールド値をTRUEに更新1902。次に19
00の検索でヒットしたレコードのワークフロー定義名
801フィールド値と引数の状態名の値がそれぞれ、遷
移定義テーブル211のワークフロー定義名500と遷
移元状態名502に一致することを条件に検索を実行1
903。1903の検索でレコードがヒットした場合1
905へ進み、ヒットしなかった場合1908へ進む1
904。1905では、1903でヒットしたレコード
の同期情報504フィールド値を判断する。「同期」の
場合、1906へ進む。「非同期」の場合、1907へ
進む。1906では、引数のワークIDの値と1904
の検索でヒットしたレコードのワークフロー定義名50
0フィールド値と、遷移ID501フィールド値を引数
に、状態遷移要求同期処理手続き1400を呼び出す。
1907では、引数のワークIDの値と1904の検索
でヒットしたレコードのワークフロー定義名500フィ
ールド値と、遷移ID501フィールド値を引数に、状
態遷移要求非同期処理手続き1500を呼び出す。終
了。
Next, the operation of the processing method decision procedure 1300 will be described with reference to FIG. Processing method determination procedure 13
00 takes a work ID and a state name as input arguments. First, the work state table 214 is searched 1900 using the work ID of the argument and the value of the state name as keys. here,
The record of the work state table 214 does not hit,
Alternatively, if the field value of the status completion flag 804 of the hit record is TRUE 1901, an error is returned to the calling source 1909, and the processing ends. Otherwise, 19
State completion flag 80 of the record that was hit in the search of 00
Update 1902 the field value of 4 to TRUE. Then 19
The search is executed on condition that the workflow definition name 801 field value and the argument state name value of the record hit in the search of 00 match the workflow definition name 500 and the transition source state name 502 of the transition definition table 211, respectively.
903. 1 when a record is hit in the search of 1903
Go to 905, if no hit, go to 1908 1
904. In 1905, the synchronization information 504 field value of the record hit in 1903 is determined. In the case of “synchronization”, the process proceeds to 1906. In the case of "asynchronous", the process proceeds to 1907. In 1906, the value of the work ID of the argument and 1904
Definition name 50 of the record that was hit in the search
The state transition request synchronization processing procedure 1400 is called using the 0 field value and the transition ID 501 field value as arguments.
In step 1907, the state transition request asynchronous processing procedure 1500 is called using the work ID value of the argument, the workflow definition name 500 field value of the record hit in the search in 1904, and the transition ID 501 field value as arguments. End.

【0048】次に、状態遷移要求同期処理手続き140
0の動作を説明する。状態遷移要求同期処理手続き14
00は、ワークIDとワークフロー定義名と遷移IDを
入力引数としてとる。実際の処理は、引数の値をそのま
ま状態遷移処理手続き1600に渡すのみである。
Next, the state transition request synchronization processing procedure 140
The operation of 0 will be described. State transition request synchronization processing procedure 14
00 takes a work ID, a workflow definition name, and a transition ID as input arguments. In actual processing, only the value of the argument is passed to the state transition processing procedure 1600 as it is.

【0049】次に、状態遷移要求非同期処理手続き15
00の動作を説明する。状態遷移要求非同期処理手続き
1500は、ワークIDとワークフロー定義名と遷移I
Dを入力引数としてとる。実際の処理は、引数の値をそ
のまま状態遷移要求格納手続き1501に渡すのみであ
る。
Next, the state transition request asynchronous processing procedure 15
00 will be described. The state transition request asynchronous processing procedure 1500 includes a work ID, a workflow definition name, and a transition I.
Take D as an input argument. In the actual processing, only the value of the argument is passed to the state transition request storage procedure 1501 as it is.

【0050】次に、状態遷移要求格納手続き1501の
動作を説明する。状態遷移要求格納手続き1501は、
ワークIDとワークフロー定義名と遷移IDを入力引数
としてとり、各引数の値をそれぞれワークID900と
ワークフロー定義名901と遷移ID902のフィール
ド値とするレコードを状態遷移要求テーブル215に挿
入し、終了する。
Next, the operation of the state transition request storage procedure 1501 will be described. The state transition request storage procedure 1501 is:
A work ID, a workflow definition name, and a transition ID are taken as input arguments, and a record in which the value of each argument is a field value of the work ID 900, the workflow definition name 901, and the transition ID 902 is inserted into the state transition request table 215, and the process ends.

【0051】次に、状態遷移要求取出し手続き1502
の動作を説明する。状態遷移要求取出し手続き1502
は、ワークIDとワークフロー定義名と遷移IDを出力
引数としてとり、真偽値を返す。
Next, a state transition request fetch procedure 1502
Will be described. Status transition request fetch procedure 1502
Takes a work ID, a workflow definition name, and a transition ID as output arguments and returns a boolean value.

【0052】まず、状態遷移要求テーブル215から、
任意の1レコードを選択する。選択されなかった場合
は、呼び出し元にFALSEを返し、終了。レコードが
選択された場合は、選択されたレコードのワークID9
00フィールド値と、ワークフロー定義名901フィー
ルド値と遷移ID902フィールド値をそれぞれ出力引
数に設定し、選択されたレコードを、状態遷移要求テー
ブル215から削除する。次に、呼び出し元にTRUE
を返し、終了。
First, from the state transition request table 215,
Select any one record. If not selected, FALSE is returned to the caller, and the processing ends. If a record is selected, the work ID 9 of the selected record
The 00 field value, the workflow definition name 901 field value, and the transition ID 902 field value are set as output arguments, respectively, and the selected record is deleted from the state transition request table 215. Next, call the TRUE
And exit.

【0053】次に、状態遷移処理起動手続き1503の
動作を説明する。まず、状態遷移要求取出し手続き15
02を呼び出す。返答がFALSEの場合は終了。TR
UEの場合は、出力引数の値をそのまま状態遷移処理手
続き1600に渡して呼び出し、終了。
Next, the operation of the state transition processing start procedure 1503 will be described. First, a state transition request fetching procedure 15
Call 02. If the answer is FALSE, end. TR
In the case of the UE, the value of the output argument is passed as it is to the state transition processing procedure 1600 and called, and the processing ends.

【0054】次に、状態遷移処理手続き1600の動作
を、図13を用いて説明する。状態遷移処理手続き16
00は、ワークIDとワークフロー定義名と遷移IDを
入力引数としてとる。
Next, the operation of the state transition processing procedure 1600 will be described with reference to FIG. State transition processing procedure 16
00 takes a work ID, a workflow definition name, and a transition ID as input arguments.

【0055】まず、引数のワークフロー定義名と遷移I
Dの値が、遷移定義テーブル211のワークフロー定義
名500と遷移ID501フィールド値に一致すること
を条件に検索する2300。引数のワークフロー定義名
の値と、2300にてヒットしたレコードの遷移先状態
名503フィールド値が、状態定義テーブル210のワ
ークフロー定義名400フィールド値と状態名401フ
ィールド値と一致することを条件に検索実行2301。
2301にてヒットしたレコードの作業者決定ルール名
402フィールド値と、引数のワークIDを渡して、作
業者決定手続き1700を呼び出す2302。引数のワ
ークIDとワークフロー定義名の値と、2300で検索
したデータの遷移先状態名503のフィールド値と、2
302にて取得した作業者IDの値と、「FALSE」
値をそれぞれワークID800とワークフロー定義名8
01と状態名802と作業者ID803と状態完了フラ
グ804のフィールド値として設定して、ワーク状態テ
ーブルに挿入する2303。終了。
First, the workflow definition name of the argument and the transition I
A search is performed 2300 based on the condition that the value of D matches the workflow definition name 500 and the transition ID 501 field value of the transition definition table 211. A search is performed on condition that the value of the workflow definition name of the argument and the transition destination state name 503 field value of the record hit in 2300 match the workflow definition name 400 field value and the state name 401 field value of the state definition table 210. Execution 2301.
A worker determination procedure 1700 is called 2302 by passing the worker determination rule name 402 field value of the record hit in 2301 and the work ID of the argument. The values of the work ID and the workflow definition name of the argument, the field value of the transition destination state name 503 of the data retrieved in 2300, and 2
The value of the worker ID acquired in 302 and “FALSE”
The values are Work ID 800 and Workflow Definition Name 8, respectively.
01, state name 802, worker ID 803, and state completion flag 804 are set as field values and inserted into the work state table 2303. End.

【0056】次に、作業者決定手続き1700の動作を
説明する。作業者決定手続き1700は、ワークIDと
作業者決定ルール名を入力引数し、作業者IDを出力引
数とする。
Next, the operation of the worker determination procedure 1700 will be described. The worker determination procedure 1700 takes a work ID and a worker determination rule name as input arguments and a worker ID as an output argument.

【0057】まず、引数の作業者決定ルール名をキー
に、作業者決定ルール定義テーブル212を検索し、当
該レコードの作業者決定ルール601のフィールド値
に、必要に応じて引数のワークIDを埋め込んで、作業
者定義テーブル213を検索する。例えば、埋め込み変
数が"%ワークID%"であるとし、引数のワークIDの値
が「80010」とすると、図6の一行目の作業者決定
ルールについては、 「IF 窓口業務テーブル.ワークID = 8001
0 AND 窓口業務テーブル.取引額 >= 100
0000 THEN ロールID = 60010 ELSE ロールID = 60011 」 と展開される。このルールの評価の結果、ロールID
= 60010が得られ、作業者ID 90020 の
作業者定義テーブル213のレコードが得られる。出力
引数作業者IDに、当該レコードの作業者ID700の
フィールド値を設定し終了。
First, the worker determination rule definition table 212 is searched using the worker determination rule name of the argument as a key, and the work ID of the argument is embedded as needed in the field value of the worker determination rule 601 of the record. Then, the operator definition table 213 is searched. For example, assuming that the embedded variable is “% work ID%” and the value of the work ID of the argument is “80010”, the worker determination rule on the first line in FIG. 6 becomes “IF window business table.work ID = 8001
0 AND Service window table. Transaction amount> = 100
0000 THEN role ID = 60010 ELSE role ID = 60011 ". As a result of evaluating this rule, the role ID
= 60010, and the record of the worker definition table 213 of the worker ID 90020 is obtained. The field value of the worker ID 700 of the record is set in the output argument worker ID, and the processing ends.

【0058】次に、監視開始手続き1800の動作を説
明する。監視開始手続き1800は、ワークフロー管理
プログラム140起動時に呼び出される。手続き中で参
照している実行中フラグは、起動時はTRUEで、終了
時にFALSEになるとする。
Next, the operation of the monitoring start procedure 1800 will be described. The monitoring start procedure 1800 is called when the workflow management program 140 is started. It is assumed that the running flag referred to in the procedure is TRUE at startup and FALSE at termination.

【0059】まず、状態遷移処理起動手続き1503を
呼び出す。一定間隔、または、実行中フラグがFALS
Eになるまで待つ。実行中フラグがTRUEか判断し、
YESの場合は手続き開始点へ戻る。NOの場合は終
了。
First, the state transition processing start procedure 1503 is called. At regular intervals or when the running flag is FALS
Wait until it becomes E. Determine whether the running flag is TRUE,
If YES, return to the procedure start point. If NO, end.

【0060】以下、図2および、図14、図15を用
い、ワークフロー定義ツール141の動作の詳細を説明
する。
Hereinafter, the operation of the workflow definition tool 141 will be described in detail with reference to FIG. 2, FIG. 14, and FIG.

【0061】ワークフロー定義プログラム209は、ワ
ークフロー定義のメインの流れであるワークフロー定義
手続き2600と、ワークフロー定義画面の表示、画面
上の各オブジェクトの管理、オブジェクトの属性を取得
して内部データ構造への変換を行うワークフロー定義画
面表示手続き2601と、ワークフロー定義画面表示手
続き2601が生成した、内部データ構造をワークフロ
ー定義データ142に格納するワークフロー定義格納手
続き2602で構成される。
The workflow definition program 209 is a workflow definition procedure 2600 which is a main flow of the workflow definition, displays a workflow definition screen, manages each object on the screen, acquires an attribute of the object, and converts it into an internal data structure. And a workflow definition storage procedure 2602 for storing the internal data structure generated by the workflow definition screen display procedure 2601 in the workflow definition data 142.

【0062】つづいて、各手続きの動作を説明する。ワ
ークフロー定義手続き2600の動作を説明する。ま
ず、ワークフロー定義画面表示手続き2601を呼び出
す。次に、ワークフロー定義画面表示手続き2601か
らの返り値がTRUEか否か判断する。NOの場合は終
了。YESの場合はワークフロー定義格納手続き260
2を呼び出し、終了。
Next, the operation of each procedure will be described. The operation of the workflow definition procedure 2600 will be described. First, the workflow definition screen display procedure 2601 is called. Next, it is determined whether the return value from the workflow definition screen display procedure 2601 is TRUE. If NO, end. If YES, workflow definition storage procedure 260
Call 2 and end.

【0063】次に、ワークフロー定義画面表示手続き2
601の動作を説明する。まず、図14は、ワークフロ
ー定義画面表示手続き2601において、ディスプレイ
123の画面に表示するイメージを示している。また、
ワークフロー定義ツール141はキーボードにより文字
や記号の入力を受け付けたり、マウスを用いて画面の一
点を示すマウスポインタ2906を操作することが出来
る。ユーザはツールボックス2901から状態オブジェ
クト2907や遷移オブジェクト2908をレイアウト
ボックス2900へドラッグアンドドロップすることで
ワークフローの定義が可能である。ワークフロー定義名
は、テキストボックス2911で設定する。レイアウト
ボックス2900にはりつけられた状態オブジェクト2
909や遷移オブジェクト2910は、マウスでダブル
クリックすることにより、それぞれ、状態属性設定ダイ
アログ2903と、遷移属性設定ダイアログ2902を
開くことが出来、属性を設定することが可能である。特
に遷移属性設定ダイアログ2902では遷移の処理方式
とリンクした属性の設定が遷移方法ラジオボックス29
12で可能である。
Next, workflow definition screen display procedure 2
The operation of 601 will be described. First, FIG. 14 shows an image displayed on the screen of the display 123 in the workflow definition screen display procedure 2601. Also,
The workflow definition tool 141 can receive input of characters and symbols from a keyboard, and can operate a mouse pointer 2906 indicating a point on the screen using a mouse. The user can define a workflow by dragging and dropping the state object 2907 and the transition object 2908 from the tool box 2901 to the layout box 2900. The workflow definition name is set in a text box 2911. State object 2 attached to layout box 2900
By double-clicking the mouse 909 or the transition object 2910 with a mouse, a state attribute setting dialog 2903 and a transition attribute setting dialog 2902 can be opened, respectively, and attributes can be set. In particular, in the transition attribute setting dialog 2902, the setting of the attribute linked to the transition processing method is performed by the transition method radio box 29.
12 is possible.

【0064】作成した、ワークフロー定義をワークフロ
ー定義データ142に格納する場合はOKボタン290
4を、取り消す場合はCANCELボタン2905をク
リックすることにより終了する。レイアウトボックス2
900上の各オブジェクトの属性は、ワークフロー定義
画面表示手続き2601から参照することが出来る。
When the created workflow definition is stored in the workflow definition data 142, an OK button 290 is displayed.
4 is canceled by clicking the CANCEL button 2905. Layout box 2
The attributes of each object 900 can be referred to from the workflow definition screen display procedure 2601.

【0065】OKボタン2904またはCANCELボ
タン2905がクリックされ制御がワークフロー定義画
面表示手続き2601に戻り、押されたボタンがOKか
否かを判断する。NOの場合は、レイアウトボックス2
900とツールボックス2901を消去し、呼び出し元
にFALSEを返答し、終了する。YESの場合は、レ
イアウトボックス2900上に配置されている遷移以外
の各オブジェクトの属性を、ワークフロー定義ツール1
41内でアクセス可能なワークフロー定義構造変数に格
納する。ワークフロー定義構造変数の構造は、図15に
示されるワークフロー定義構造3000である。状態構
造体3001と遷移構造体3002は可変長のリスト管
理されている。次にレイアウトボックス2900上に配
置された、各遷移オブジェクト2910に該当ワークフ
ロー定義内でユニークなIDを割り当てる。各遷移オブ
ジェクト2910の属性をワークフロー構造変数に格納
する。この時、同期情報3003には、遷移方法ラジオ
ボックス2912での選択がレスポンス重視の場合は
「非同期」を、遷移時間重視の場合は、「同期」を設定
する。レイアウトボックス2900とツールボックス2
901を消去し、呼び出し元にTRUEを返答し、終了
する。
An OK button 2904 or a CANCEL button 2905 is clicked, and control returns to the workflow definition screen display procedure 2601 to determine whether or not the pressed button is OK. If no, layout box 2
900 and the tool box 2901 are erased, FALSE is returned to the caller, and the process ends. If YES, the attributes of each object other than the transitions arranged on the layout box 2900 are copied to the workflow definition tool 1
41, stored in a workflow definition structure variable accessible. The structure of the workflow definition structure variable is a workflow definition structure 3000 shown in FIG. The state structure 3001 and the transition structure 3002 are managed in a variable-length list. Next, a unique ID in the corresponding workflow definition is assigned to each transition object 2910 arranged on the layout box 2900. The attribute of each transition object 2910 is stored in a workflow structure variable. At this time, “asynchronous” is set in the synchronization information 3003 when the selection in the transition method radio box 2912 is focused on the response, and “synchronous” is set in the transition time radio box 2912 when the transition time is emphasized. Layout box 2900 and tool box 2
901 is deleted, TRUE is returned to the caller, and the processing is ended.

【0066】次にワークフロー定義格納手続き2602
の動作を説明する。ワークフロー定義格納手続き260
2は、ワークフロー定義構造変数の各属性を、状態定義
テーブル210、遷移定義テーブル211にそれぞれ格
納し、終了。次に、本発明を適用したワークフロー管理
システムを装置として実現した1例のブロック図を図1
に示す。サーバ計算機100と複数のクライアント計算
機101がネットワーク102により接続されている。
Next, a workflow definition storage procedure 2602
Will be described. Workflow definition storage procedure 260
2 stores the respective attributes of the workflow definition structural variables in the state definition table 210 and the transition definition table 211, respectively, and ends. Next, FIG. 1 is a block diagram of an example in which a workflow management system to which the present invention is applied is realized as an apparatus.
Shown in A server computer 100 and a plurality of client computers 101 are connected by a network 102.

【0067】サーバ計算機100はCPU120とキー
ボード121とマウス122とディスプレイ123と通
信装置124と補助記憶装置125と主記憶装置126
及びバス127で構成され、補助記憶装置125上にワ
ークフロー定義データ142とワークフローデータ14
3を格納し、主記憶装置126上にワークフロー管理プ
ログラム140とワークフロー定義ツール141をロー
ドし実行する。ワークフロー定義データ142およびワ
ークフローデータ143は、ワークフロー管理プログラ
ム140のインストール時に作成される。ワークフロー
定義データ142は、ワークフロー定義ツール141で
のワークフロー定義作成時に更新され、ワークフロー管
理プログラム140でのワークの操作時に参照される。
ワークフローデータ143はワークフロー管理プログラ
ム140でのワークの操作時に参照・更新される。
The server computer 100 has a CPU 120, a keyboard 121, a mouse 122, a display 123, a communication device 124, an auxiliary storage device 125, and a main storage device 126.
And the bus 127, and the workflow definition data 142 and the workflow data 14 on the auxiliary storage device 125.
3 is loaded, and the workflow management program 140 and the workflow definition tool 141 are loaded on the main storage device 126 and executed. The workflow definition data 142 and the workflow data 143 are created when the workflow management program 140 is installed. The workflow definition data 142 is updated when the workflow definition tool 141 creates a workflow definition, and is referred to when the workflow management program 140 operates a work.
The workflow data 143 is referred to and updated when a work is operated by the workflow management program 140.

【0068】また、クライアント計算機101はCPU
130とキーボード131とマウス132とディスプレ
イ133と通信装置134と補助記憶装置135と主記
憶装置136及びバス137で構成され、補助記憶装置
135上に業務データ153とワークフローアプリケー
ション実行環境情報154を格納し、主記憶装置136
上にワークフローアプリケーションプログラム150と
ワークフローアプリケーションプログラム生成ツール1
51とワークフローアプリケーション実行環境情報設定
ツール152をロードし実行する。業務データ153は
サーバ計算機100からのネットワーク102を通した
アクセスが可能である。ワークフローアプリケーション
実行環境情報154は、ワークフローアプリケーション
プログラム150のインストール時に作成され、ワーク
フローアプリケーションプログラム150の実行時に参
照される。ワークフローアプリケーション実行環境情報
154はワークフローアプリケーション実行環境情報設
定ツール152によって参照・更新することが可能であ
る。業務データは、ワークフローアプリケーションプロ
グラム150実行以前に作成されている必要があり、ワ
ークフローアプリケーションプログラム150実行時に
参照・更新され、必要に応じて、ワークフロー管理プロ
グラム140によって参照される。
The client computer 101 has a CPU
130, a keyboard 131, a mouse 132, a display 133, a communication device 134, an auxiliary storage device 135, a main storage device 136, and a bus 137. The auxiliary storage device 135 stores business data 153 and workflow application execution environment information 154. , Main storage device 136
Workflow application program 150 and workflow application program generation tool 1
51 and the workflow application execution environment information setting tool 152 are loaded and executed. The business data 153 can be accessed from the server computer 100 via the network 102. The workflow application execution environment information 154 is created when the workflow application program 150 is installed, and is referred to when the workflow application program 150 is executed. The workflow application execution environment information 154 can be referred to and updated by the workflow application execution environment information setting tool 152. The business data needs to be created before the execution of the workflow application program 150, is referred / updated when the workflow application program 150 is executed, and is referred to by the workflow management program 140 as needed.

【0069】本実施例と同様の方法で、状態ごとに同期
情報をもつ場合、ワークフローごとに同期情報を持つ場
合、同期情報がワークフロー管理プログラムの環境情報
に含まれる場合についても実現可能である。
In the same manner as in the present embodiment, it is possible to realize the case where the synchronization information is provided for each state, the case where the synchronization information is provided for each workflow, and the case where the synchronization information is included in the environment information of the workflow management program.

【0070】第二の実施例は、解決手段2の実施形態の
1実施例を示すものである。図16から図23を用いて
説明する。第二の実施例のワークフロー管理システム
は、ワークフロー管理プログラムは同期状態遷移要求A
PIと非同期状態遷移要求APIの2種類の状態遷移要
求APIを提供するが、同期情報を入力とし、1種類の
状態遷移要求インターフェースを提供する状態遷移要求
発行プログラムソースコードを自動生成するワークフロ
ーアプリケーションプログラム生成ツールであって、入
力の同期情報によりワークフロー管理プログラムの同期
状態遷移要求APIを発行するコードを生成するか、非
同期状態遷移要求APIを発行するコードを生成するか
を決定するワークフローアプリケーションプログラム生
成ツールを提供し、ワークフロー業務処理プログラム3
207のソ−スコード中では、状態遷移要求発行プログ
ラムのインターフェースを使用して状態遷移要求を発行
することにより、ユーザ開発コード中から状態遷移処理
方法の情報を排除している点に特徴がある。本実施例の
ワークフロー管理システムのブロック図は、図1と同様
である。
The second example shows an example of the embodiment of the solving means 2. This will be described with reference to FIGS. In the workflow management system according to the second embodiment, the workflow management program includes a synchronous state transition request A
A workflow application program that provides two types of state transition request APIs, a PI and an asynchronous state transition request API, but receives synchronization information and provides one type of state transition request interface. A workflow application program generation tool that determines whether to generate a code for issuing a synchronous state transition request API of a workflow management program or a code for issuing an asynchronous state transition request API based on input synchronization information. And provide a workflow business processing program 3
The source code 207 is characterized in that a state transition request is issued using the interface of the state transition request issuing program, thereby excluding information on the state transition processing method from the user development code. The block diagram of the workflow management system of the present embodiment is the same as FIG.

【0071】本実施例のワークフロー管理システムの構
成を、図16を用いて説明する。本システムは、実行シ
ステム3210と開発システム3220から構成されて
いる。実行システム3210は、ワークフローアプリケ
ーションプログラム150に状態遷移要求APIをはじ
めとするワークの状態を操作するAPIを提供し、ワー
クフロー定義データ142やワークフローデータ143
や業務データ153にアクセスしながらワークの状態や
作業者への割り当てを管理するワークフロー管理プログ
ラム140と、ワークのとりうる状態や遷移や、作業者
の決定ルールなどのワークフロー定義を格納するワーク
フロー定義データ142と、ワークの状態を格納するワ
ークフローデータ143と、ワークフロー管理システム
適用業務の業務データ153にアクセスし、ワークフロ
ー管理プログラム140が提供するAPIを呼び出しな
がら実行するワークフローアプリケーションプログラム
150と、業務に依存するデータを格納する業務データ
153で構成される。開発システム3220はワークフ
ローアプリケーションプログラム生成ツール151で構
成される。
The configuration of the workflow management system of this embodiment will be described with reference to FIG. This system includes an execution system 3210 and a development system 3220. The execution system 3210 provides the workflow application program 150 with an API for operating the state of the work including the state transition request API, and the workflow definition data 142 and the workflow data 143.
Management program 140 that manages the state of work and assignment to workers while accessing the work data and the work data 153, and workflow definition data that stores workflow definitions such as possible states and transitions of work and rules for determining workers 142, a workflow data 143 that stores the state of the work, and a workflow application program 150 that accesses the business data 153 of the workflow management system application business and calls and executes an API provided by the workflow management program 140, and depends on the business. It is composed of business data 153 for storing data. The development system 3220 includes a workflow application program generation tool 151.

【0072】ワークフロー定義データ142は、各ワー
クフロー定義に従属するワークがとりうる各状態の定義
を格納する状態定義テーブル210と、各ワークフロー
定義に従属するワークがとりうる状態間遷移の定義を格
納する遷移定義テーブル3211と、各状態での作業者
決定に用いる作業者決定ルールの定義を格納する作業者
決定ルール定義テーブル212と、作業者の定義を格納
する作業者定義テーブル213で構成される。ワークフ
ローデータ143は、ワークの状態を格納するワーク状
態テーブル214と、状態遷移要求を格納する状態遷移
要求テーブル3215で構成される。本実施例の業務デ
ータ153は、本実施例で用いる窓口業務に依存するデ
ータを格納する窓口業務テーブル216で構成される。
The workflow definition data 142 stores a state definition table 210 that stores definitions of states that can be taken by a work that depends on each workflow definition, and a definition of transition between states that can be taken by a work that depends on each workflow definition. It is composed of a transition definition table 3211, a worker determination rule definition table 212 for storing the definition of a worker determination rule used for determining the worker in each state, and a worker definition table 213 for storing the definition of the worker. The workflow data 143 includes a work state table 214 for storing a state of a work and a state transition request table 3215 for storing a state transition request. The business operation data 153 according to the present embodiment includes a window operation table 216 that stores data depending on the window operation used in the embodiment.

【0073】ワークフロー管理プログラム140は、状
態遷移処理プログラム3203を呼び出すことによって
状態遷移要求の同期処理を実現する状態遷移要求同期処
理プログラム3201と、状態遷移要求を状態遷移要求
テーブル3215へ格納し、状態遷移要求一定間隔起動
プログラム205に呼び出されるタイミングで状態遷移
要求を状態遷移要求テーブル3215から取出し、状態
遷移処理プログラム3203を呼び出すことにより、状
態遷移要求の非同期処理を実現する状態遷移要求非同期
処理プログラム3202と、ワークフロー定義データ1
42を参照し、作業者決定プログラム204を呼び出
し、ワーク状態テーブル214を更新することによりワ
ークの状態遷移を実現する状態遷移処理プログラム32
03と、作業者決定ルール定義テーブル212を参照
し、作業者決定ルールを評価し、必要に応じて、作業者
定義テーブル213と窓口業務テーブル216にアクセ
スし、作業者の決定を行う、作業者決定プログラム20
4と、状態遷移要求非同期処理プログラム3202を定
期的に呼び出すことにより、状態遷移の非同期実行のト
リガを与える状態遷移要求一定間隔起動プログラム20
5と、同期状態遷移要求APIと非同期状態遷移要求A
PIの呼び出しを受け付け、状態遷移要求同期処理プロ
グラム3201または状態遷移要求非同期処理プログラ
ム3202を呼び出す、状態遷移要求受付プログラム3
206を有する。
The workflow management program 140 stores the state transition request in the state transition request table 3215 and the state transition request synchronous processing program 3201 for realizing the synchronous processing of the state transition request by calling the state transition processing program 3203. A state transition request is extracted from the state transition request table 3215 at a timing called by the transition request fixed interval start program 205, and the state transition request asynchronous processing program 3202 that implements the asynchronous processing of the state transition request by calling the state transition processing program 3203. And workflow definition data 1
A state transition processing program 32 that implements the state transition of the work by calling the worker determination program 204 and updating the work state table 214 with reference to the program 42.
03 and the worker determination rule definition table 212 to evaluate the worker determination rule, and access the worker definition table 213 and the window work table 216 as necessary to determine the worker. Decision program 20
4 and the state transition request asynchronous processing program 3202 which is periodically invoked to trigger the state transition asynchronous execution at regular intervals.
5, synchronous state transition request API and asynchronous state transition request A
A state transition request receiving program 3 that accepts a call to a PI and calls the state transition request synchronous processing program 3201 or the state transition request asynchronous processing program 3202
206.

【0074】ワークフロー定義データ142を構成する
テーブルについて図17を用いて説明する。図17は遷
移定義テーブル3211の構造である。遷移定義テーブ
ル3211は、ワークフロー定義名3300、遷移ID
3301、遷移元状態名3302、遷移先状態名330
3、で構成される表データである。ワークフロー定義名
3300は、遷移が属するワークフロー定義を示す。遷
移ID3301は同一ワークフロー定義内の遷移を一意
に識別するデータである。遷移元状態名3302は遷移
の遷移元となる状態の状態名を示す、遷移先状態名33
03は遷移の遷移先となる状態の状態名を示す。
The table constituting the workflow definition data 142 will be described with reference to FIG. FIG. 17 shows the structure of the transition definition table 3211. The transition definition table 3211 includes a workflow definition name 3300, a transition ID
3301, transition source state name 3302, transition destination state name 330
3 is tabular data. The workflow definition name 3300 indicates the workflow definition to which the transition belongs. The transition ID 3301 is data that uniquely identifies a transition within the same workflow definition. The transition source state name 3302 indicates the state name of the state that is the transition source of the transition.
03 indicates a state name of a state to be a transition destination of the transition.

【0075】遷移定義テーブル3211のレコードは、
ワークフロー定義プログラム209のワークフロー定義
格納手続き2602で格納され、状態遷移処理プログラ
ム3203の状態遷移処理手続き3900で参照され
る。状態定義テーブル210、作業者決定ルール定義テ
ーブル212、作業者定義テーブル213は、第一の実
施例と同様である。
The record of the transition definition table 3211 is
It is stored in the workflow definition storage procedure 2602 of the workflow definition program 209, and is referred to by the state transition processing procedure 3900 of the state transition processing program 3203. The state definition table 210, the worker determination rule definition table 212, and the worker definition table 213 are the same as in the first embodiment.

【0076】次にワークフローデータ143を構成する
テーブルについて図18を用いて説明する。図18は状
態遷移要求テーブル3215の構造である。状態遷移要
求テーブル3215は、ワークID3400、ワークフ
ロー定義名3401、状態名3402で構成される表デ
ータである。ワークID3400は、状態遷移要求の対
象となっているワークの識別子である。ワークフロー定
義名3401は状態遷移要求の対象となっているワーク
が従属するワークフロー定義の名称である。状態名34
02は、状態遷移要求APIで指定された状態名であ
る。
Next, a table constituting the workflow data 143 will be described with reference to FIG. FIG. 18 shows the structure of the state transition request table 3215. The state transition request table 3215 is tabular data including a work ID 3400, a workflow definition name 3401, and a state name 3402. The work ID 3400 is the identifier of the work that is the target of the state transition request. The workflow definition name 3401 is the name of the workflow definition to which the work that is the target of the state transition request depends. State name 34
02 is the state name specified by the state transition request API.

【0077】状態遷移要求テーブル3215のレコード
は、状態遷移要求非同期処理プログラム3202の状態
遷移要求格納手続き3801で格納され、状態遷移要求
非同期処理プログラム3202の状態遷移要求取出し手
続き3802で参照・削除される。ワーク状態テーブル
214は、第一の実施例と同様である。また、業務デー
タ153を構成するテーブルの構造については第一の実
施例と同様である。
The record of the state transition request table 3215 is stored in the state transition request storage procedure 3801 of the state transition request asynchronous processing program 3202, and is referred / deleted by the state transition request fetch procedure 3802 of the state transition request asynchronous processing program 3202. . The work state table 214 is the same as in the first embodiment. The structure of the table constituting the business data 153 is the same as in the first embodiment.

【0078】以下、図19から図22を用い、ワークフ
ロー管理プログラム140の動作の詳細を説明する。図
19は、ワークフロー管理プログラム140が提供する
APIであり、同期状態遷移要求API3500と非同
期状態遷移要求API3501を含んでいる。同期状態
遷移要求API3500と非同期状態遷移要求API3
501は、入力引数として、ワークID、状態名をと
る。
Hereinafter, the operation of the workflow management program 140 will be described in detail with reference to FIGS. 19 to 22. FIG. 19 shows an API provided by the workflow management program 140, which includes a synchronous state transition request API 3500 and an asynchronous state transition request API 3501. Synchronous state transition request API3500 and asynchronous state transition request API3
Reference numeral 501 denotes a work ID and a state name as input arguments.

【0079】各プログラムの構成を説明する。状態遷移
要求受付プログラム3206は、同期状態遷移要求AP
I3500の処理を実装する同期状態遷移要求手続き3
600と、非同期状態遷移要求API3501の処理を
実装する非同期状態遷移要求手続き3601で構成され
る。
The configuration of each program will be described. The state transition request receiving program 3206 executes the synchronization state transition request AP
Synchronous state transition request procedure 3 that implements I3500 processing
600, and an asynchronous state transition request procedure 3601 that implements the processing of the asynchronous state transition request API 3501.

【0080】状態遷移要求同期処理プログラム3201
は、状態遷移要求同期処理手続き3700で構成され
る。
State transition request synchronous processing program 3201
Is composed of a state transition request synchronization processing procedure 3700.

【0081】状態遷移要求非同期処理プログラム320
2は、状態遷移要求非同期処理手続き3800と、状態
遷移要求を永続記憶に格納する、状態遷移要求格納手続
き3801と、状態遷移要求を永続記憶から取り出す、
状態遷移要求取出し手続き3802と、一定期間ごとに
呼び出され、永続記憶に格納されている状態遷移要求を
取出し、状態遷移処理プログラム3203を起動する、
状態遷移処理起動手続き3803で構成される。
State transition request asynchronous processing program 320
2 is a state transition request asynchronous processing procedure 3800, a state transition request is stored in a permanent storage, a state transition request storage procedure 3801, and a state transition request is extracted from a permanent storage.
A state transition request fetch procedure 3802, which is called at regular intervals, fetches a state transition request stored in the persistent storage, and starts a state transition processing program 3203;
It comprises a state transition processing start procedure 3803.

【0082】状態遷移処理プログラム3203は、実際
の状態遷移処理を実行する、状態遷移処理手続き390
0で構成される。
The state transition processing program 3203 executes the actual state transition processing.
0.

【0083】作業者決定プログラム204と状態遷移要
求一定間隔起動プログラム205は第一の実施例と同様
である。
The worker determination program 204 and the state transition request fixed interval activation program 205 are the same as in the first embodiment.

【0084】つづいて、各手続きの動作を説明する。ま
ず、同期状態遷移要求手続き3600の動作を、図20
を用いて説明する。同期状態遷移要求手続き3600は
ワークIDと状態名を入力引数としてとる。
Next, the operation of each procedure will be described. First, the operation of the synchronization state transition request procedure 3600 will be described with reference to FIG.
This will be described with reference to FIG. The synchronous state transition request procedure 3600 takes a work ID and a state name as input arguments.

【0085】まず、引数のワークIDと、状態名の値を
キーとして、ワーク状態テーブル214を検索する43
00。ここで、ワーク状態テーブル214のレコードが
ヒットしない、または、ヒットしたレコードの状態完了
フラグ804のフィールド値がTRUEの場合430
1、呼び出し元にエラーを返答し4304、終了。それ
以外の場合、4300の検索でヒットしたレコードの状
態完了フラグ804のフィールド値をTRUEに更新4
302。次に4300の検索でヒットしたレコードのワ
ークフロー定義名801フィールド値と引数のワークI
Dと状態名の値を渡して状態遷移要求同期処理手続き3
700を呼び出す。終了。
First, the work state table 214 is searched using the work ID of the argument and the value of the state name as keys 43.
00. Here, when the record of the work state table 214 does not hit, or when the field value of the state completion flag 804 of the hit record is TRUE 430
1. An error is returned to the caller 4304, and the processing ends. In other cases, the field value of the status completion flag 804 of the record hit in the search of 4300 is updated to TRUE.
302. Next, the workflow definition name 801 field value of the record hit in the search of 4300 and the work I of the argument
State transition request synchronization processing procedure 3 by passing D and the value of the state name
Call 700. End.

【0086】次に、非同期状態遷移要求手続き3601
の動作を、図21を用いて説明する。非同期状態遷移要
求手続き3601はワークIDと状態名を入力引数とし
てとる。まず、引数のワークIDと、状態名の値をキー
として、ワーク状態テーブル214を検索する440
0。ここで、ワーク状態テーブル214のレコードがヒ
ットしない、または、ヒットしたレコードの状態完了フ
ラグ804のフィールド値がTRUEの場合4401、
呼び出し元にエラーを返答し4404、終了。それ以外
の場合、4400の検索でヒットしたレコードの状態完
了フラグ804のフィールド値をTRUEに更新440
2。次に4400の検索でヒットしたレコードのワーク
フロー定義名801フィールド値と引数のワークIDと
状態名の値を渡して状態遷移要求非同期処理手続き38
00を呼び出す。終了。
Next, the asynchronous state transition request procedure 3601
Will be described with reference to FIG. The asynchronous state transition request procedure 3601 takes a work ID and a state name as input arguments. First, the work state table 214 is searched 440 using the work ID of the argument and the value of the state name as keys.
0. Here, when the record of the work state table 214 does not hit, or when the field value of the state completion flag 804 of the hit record is TRUE 4401,
An error is returned to the caller, and 4404 ends. Otherwise, the field value of the status completion flag 804 of the record hit in the search of 4400 is updated to TRUE 440.
2. Next, the workflow definition name 801 field value of the record hit in the search in 4400, the work ID of the argument, and the value of the state name are passed, and the state transition request asynchronous processing procedure 38
Call 00. End.

【0087】次に、状態遷移要求同期処理手続き370
0は、ワークIDとワークフロー定義名と状態名を入力
引数としてとる。実際の処理は、引数の値をそのまま状
態遷移処理手続き3900に渡すのみである。
Next, the state transition request synchronization processing procedure 370
0 takes a work ID, a workflow definition name, and a state name as input arguments. In actual processing, only the value of the argument is passed to the state transition processing procedure 3900 as it is.

【0088】次に、状態遷移要求非同期処理手続き38
00は、ワークIDとワークフロー定義名と状態名を入
力引数としてとる。実際の処理は、引数の値をそのまま
状態遷移要求格納手続き3801に渡すのみである。
Next, the state transition request asynchronous processing procedure 38
00 takes a work ID, a workflow definition name, and a state name as input arguments. In actual processing, only the value of the argument is passed to the state transition request storage procedure 3801 as it is.

【0089】次に、状態遷移要求格納手続き3801の
動作を説明する。状態遷移要求格納手続き3801は、
ワークIDとワークフロー定義名と状態名を入力引数と
してとり、引数のワークIDとワークフロー定義名と状
態名の値を各フィールド値とするレコードを状態遷移要
求テーブル3215に挿入し、終了。
Next, the operation of the state transition request storage procedure 3801 will be described. The state transition request storage procedure 3801 is:
A work ID, a workflow definition name, and a state name are taken as input arguments, and a record in which the values of the work ID, the workflow definition name, and the state name of the arguments are field values is inserted into the state transition request table 3215, and the processing ends.

【0090】次に、状態遷移要求取出し手続き3802
の動作を説明する。状態遷移要求取出し手続き3802
は、ワークIDとワークフロー定義名と状態名を出力引
数としてとり、真偽値を返す。まず、状態遷移要求テー
ブル3215から、任意の1レコードを選択する。レコ
ードが選択されたか判断し、選択されなかった場合は、
呼び出し元にFALSEを返し、終了。選択された場合
は、選択されたレコードのワークID3400フィール
ド値と、ワークフロー定義名3401フィールド値と状
態名3402フィールド値をそれぞれ出力引数に設定
し、選択されたレコードを、状態遷移要求テーブル32
15から削除する。呼び出し元にTRUEを返し、終
了。
Next, a state transition request fetch procedure 3802
Will be described. State transition request fetch procedure 3802
Takes a work ID, a workflow definition name, and a state name as output arguments and returns a boolean value. First, an arbitrary record is selected from the state transition request table 3215. Determine if a record was selected, and if not,
Returns FALSE to the caller and ends. When the selected record is selected, the work ID 3400 field value, the workflow definition name 3401 field value, and the state name 3402 field value of the selected record are set as output arguments, and the selected record is stored in the state transition request table 32.
15 to delete. Returns TRUE to the caller and ends.

【0091】次に、状態遷移処理起動手続き3803の
動作を説明する。まず、状態遷移要求取出し手続き38
02を呼び出す。返答がFALSEの場合は終了。TR
UEの場合は、出力引数の値をそのまま状態遷移処理手
続き3900に渡して呼び出し。終了。
Next, the operation of the state transition processing start procedure 3803 will be described. First, a state transition request fetch procedure 38
Call 02. If the answer is FALSE, end. TR
In the case of the UE, the value of the output argument is passed to the state transition processing procedure 3900 as it is and called. End.

【0092】次に、状態遷移処理手続き3900の動作
を、図22を用いて説明する。状態遷移処理手続き39
00は、ワークIDとワークフロー定義名と状態名を入
力引数とする。
Next, the operation of the state transition procedure 3900 will be described with reference to FIG. State transition processing procedure 39
00 takes a work ID, a workflow definition name, and a state name as input arguments.

【0093】まず、引数のワークフロー定義名と状態名
の値が、遷移定義テーブル3211のワークフロー定義
名3300と遷移元状態名3302フィールド値に一致
することを条件に検索する4500。次に、引数のワー
クフロー定義名の値と、4500にてヒットしたレコー
ドの遷移先状態名3303フィールド値が、状態定義テ
ーブル210のワークフロー定義名400フィールド値
と状態名401フィールド値と一致することを条件に検
索実行4501。4501にてヒットしたレコードの作
業者決定ルール名402フィールド値と、引数のワーク
IDを渡して、作業者決定手続き1700を呼び出す4
502。引数のワークIDとワークフロー定義名の値
と、4500で検索したデータの遷移先状態名3303
のフィールド値と、4502にて取得した作業者IDの
値と、「FALSE」値をそれぞれワークID800と
ワークフロー定義名801と状態名802と作業者ID
803と状態完了フラグ804のフィールド値として設
定して、ワーク状態テーブル214に挿入する450
3。終了。
First, a search is performed 4500 on condition that the values of the workflow definition name and the state name of the argument match the workflow definition name 3300 and the transition source state name 3302 field value of the transition definition table 3211. Next, it is confirmed that the value of the workflow definition name of the argument and the transition destination state name 3303 field value of the record hit in 4500 match the workflow definition name 400 field value and the state name 401 field value of the state definition table 210. Search execution 4501 as a condition.Worker determination procedure 1700 is called by passing the worker determination rule name 402 field value of the record hit in 4501 and the work ID of the argument 4
502. The work ID of the argument, the value of the workflow definition name, and the transition destination state name 3303 of the data retrieved by 4500
, The value of the worker ID acquired in 4502, and the “FALSE” value are respectively assigned to the work ID 800, the workflow definition name 801, the state name 802, and the worker ID.
450 which is set as the field value of the state completion flag 803 and the state completion flag 804 and inserted into the work state table 214
3. End.

【0094】以下、ワークフロー管理プログラム140
の状態遷移要求に対する処理方法を選択可能な本実施例
のワークフローアプリケーションプログラム生成ツール
151の、動作の詳細を、図16および図23を用い説
明する。
Hereinafter, the workflow management program 140
Details of the operation of the workflow application program generation tool 151 according to the present embodiment, which can select a processing method for the state transition request, will be described with reference to FIGS.

【0095】ワークフローアプリケーションプログラム
生成ツール151は、ユーザに状態遷移要求に対するワ
ークフロー管理プログラム140の処理方法を選択させ
る、遷移方法選択手続き4600と、状態遷移要求発行
プログラムを生成する、状態遷移要求発行プログラム生
成手続き4601と、ワークフローアプリケーションプ
ログラム150のメインの流れを制御するメイン処理手
続き4602を有する。
The workflow application program generation tool 151 allows the user to select a processing method of the workflow management program 140 for a state transition request, a transition method selection procedure 4600, generates a state transition request issuing program, and generates a state transition request issuing program. It has a procedure 4601 and a main processing procedure 4602 for controlling the main flow of the workflow application program 150.

【0096】ワークフローアプリケーションプログラム
生成ツール151が生成する状態遷移要求発行プログラ
ム3208は、ワークフロー業務処理プログラム320
7から呼び出すことが可能な、状態遷移要求発行手続き
4700を有する。
The state transition request issuing program 3208 generated by the workflow application program generation tool 151 is a workflow business processing program 320.
7 that can be called from the server 7.

【0097】状態遷移要求発行手続き4700は、ワー
クIDと、状態名を入力引数とし、ワークフロー管理プ
ログラム140の同期状態遷移要求API3500、ま
たは、非同期状態遷移要求API3501に渡して呼び
出す。
The state transition request issuing procedure 4700 is called by passing the work ID and the state name as input arguments to the synchronous state transition request API 3500 or the asynchronous state transition request API 3501 of the workflow management program 140.

【0098】以下、ワークフローアプリケーションプロ
グラム生成ツール151が有する各手続きについて、図
23を用いて説明する。まず、メイン処理手続き460
2の動作を説明する。メイン処理手続き4602は、何
らかのタイミングで、遷移方法選択手続き4600を呼
び出す。そしてその後、何らかのタイミングで、状態遷
移要求発行プログラム生成手続き4601を呼び出す。
終了。
Hereinafter, each procedure of the workflow application program generation tool 151 will be described with reference to FIG. First, the main processing procedure 460
Operation 2 will be described. The main processing procedure 4602 calls the transition method selection procedure 4600 at some timing. After that, the state transition request issuing program generation procedure 4601 is called at some timing.
End.

【0099】次に、遷移方法選択手続き4600の動作
を、図23を用いて説明する。
Next, the operation of the transition method selection procedure 4600 will be described with reference to FIG.

【0100】まず、遷移方法選択手続き4600は、遷
移方法選択画面5000をディスプレイ133の画面に
表示し、ユーザの選択を待つ。ユーザは、遷移方法リス
トボックス5001内のアイテムをマウス132で選択
し、選択ボタン5002をクリックすることによって、
遷移方法を選択することが出来る。
First, the transition method selection procedure 4600 displays a transition method selection screen 5000 on the screen of the display 133 and waits for a user selection. The user selects an item in the transition method list box 5001 with the mouse 132 and clicks the selection button 5002 to select the item.
A transition method can be selected.

【0101】次に、遷移方法選択画面5000にて選択
された遷移方法を、ワークフローアプリケーションプロ
グラム生成ツール151内でアクセス可能な遷移方法変
数に記憶し、終了する。
Next, the transition method selected on the transition method selection screen 5000 is stored in a transition method variable accessible in the workflow application program generation tool 151, and the processing ends.

【0102】次に、状態遷移要求発行プログラム生成手
続き4601の動作を説明する。まず、ワークフローア
プリケーションプログラム生成ツール151内でアクセ
ス可能な遷移方法変数に記憶されている値を判断する。
本実施例では、遷移時間重視を意味する値の場合は、ワ
ークフロー管理プログラム140の同期状態遷移要求A
PI3500を呼び出すコードを生成し、レスポンス重
視を意味する値の場合は非同期状態遷移要求API35
01を呼び出すコードを生成する。
Next, the operation of the state transition request issuing program generation procedure 4601 will be described. First, the value stored in the transition method variable accessible in the workflow application program generation tool 151 is determined.
In the present embodiment, if the value indicates that the transition time is important, the synchronization state transition request A of the workflow management program 140 is executed.
A code for calling the PI 3500 is generated, and if the value indicates that importance is placed on the response, the asynchronous state transition request API 35
Generate code to call 01.

【0103】ワークフローアプリケーションプログラム
生成ツール151が同期状態遷移要求API3500を
呼び出す状態遷移要求発行プログラム3208を生成し
た場合の状態遷移要求発行手続き4700は、引数で渡
されたワークIDと状態名の値を引数としてワークフロ
ー管理プログラム140の同期状態遷移要求API35
00を呼び出し、受け取った返答をそのまま返し、終了
する。
When the workflow application program generation tool 151 generates the state transition request issuance program 3208 for calling the synchronous state transition request API 3500, the state transition request issuance procedure 4700 uses the values of the work ID and the state name passed as arguments as arguments. As the synchronous state transition request API 35 of the workflow management program 140
00, returns the received reply as it is, and ends.

【0104】ワークフローアプリケーションプログラム
生成ツール151が非同期状態遷移要求API3501
を呼び出す状態遷移要求発行プログラム3208を生成
した場合の状態遷移要求発行手続き4700は、引数で
渡されたワークIDと状態名の値を引数としてワークフ
ロー管理プログラム140の非同期状態遷移要求API
3501を呼び出し、受け取った返答をそのまま返し、
終了する。
When the workflow application program generation tool 151 executes the asynchronous state transition request API 3501
The state transition request issuance procedure 4700 in the case of generating the state transition request issuance program 3208 that calls the asynchronous state transition request API of the workflow management program 140 using the values of the work ID and the state name passed as arguments as arguments
Call 3501 and return the received reply as it is,
finish.

【0105】ワークフローアプリケーションプログラム
150のワークフロー業務処理プログラム3207は、
処理対象のワークIDに対する業務処理を行い、処理対
象のワークIDと状態名を引数に、状態遷移要求発行プ
ログラム3208の状態遷移要求発行手続き4700を
呼び出す。本実施例と同様の方法で、ワークフロー定義
をワークフローアプリケーションプログラム生成ツール
への入力とする場合についても実現可能である。
The workflow operation processing program 3207 of the workflow application program 150
A task process is performed for the work ID to be processed, and the state transition request issuance procedure 4700 of the state transition request issuance program 3208 is called with the work ID and the state name to be processed as arguments. In the same manner as in the present embodiment, it is also possible to realize a case where a workflow definition is input to a workflow application program generation tool.

【0106】第三の実施例は、解決手段3の実施形態の
1実施例を示すものである。図24から図26を用いて
説明する。第三の実施例のワークフロー管理システム
は、ワークフロー管理プログラムは同期状態遷移要求A
PIと非同期状態遷移要求APIの2種類の状態遷移要
求APIを提供するが、ワークフローアプリケーション
プログラムの実行環境情報に同期情報を保持し、該同期
情報を設定可能なワークフローアプリケーション実行環
境情報設定ツールにて設定が可能であり、状態遷移要求
発行プログラムは該同期情報を参照することによって、
実行時に同期・非同期の呼び分けを行う。
The third example shows an example of the embodiment of the solving means 3. This will be described with reference to FIGS. In the workflow management system according to the third embodiment, the workflow management program includes a synchronous state transition request A
Two types of state transition request APIs, PI and asynchronous state transition request API, are provided. A workflow application execution environment information setting tool that holds synchronization information in the execution environment information of the workflow application program and can set the synchronization information Setting is possible, and the state transition request issuance program refers to the synchronization information,
Perform synchronous / asynchronous calls at runtime.

【0107】ユーザ開発コードである、ワークフロー業
務処理プログラム3207のソ−スコード中では、状態
遷移要求発行プログラムのインターフェースを使用して
状態遷移要求を発行することにより、ユーザ開発コード
中から状態遷移処理方法の情報を排除する。本実施例の
ワークフロー管理システムのブロック図は、図1と同様
である。
In the source code of the workflow business processing program 3207, which is a user development code, a state transition request is issued using the interface of the state transition request issuing program, so that the state transition processing method can be performed from the user development code. Eliminate information. The block diagram of the workflow management system of the present embodiment is the same as FIG.

【0108】本実施例のワークフロー管理システムの構
成を、図24を用いて説明する。本システムは、ワーク
フローアプリケーションプログラム150に状態遷移要
求APIをはじめとするワークの状態を操作するAPI
を提供し、ワークフロー定義データ142やワークフロ
ーデータ143や業務データ153にアクセスしながら
ワークの状態や作業者への割り当てを管理するワークフ
ロー管理プログラム140と、ワークのとりうる状態や
遷移や、作業者の決定ルールなどのワークフロー定義を
格納するワークフロー定義データ142と、ワークの状
態を格納するワークフローデータ143と、ワークフロ
ー管理システム適用業務の業務データ153にアクセス
し、ワークフロー管理プログラム140が提供するAP
Iを呼び出しながら実行するワークフローアプリケーシ
ョンプログラム150と、業務に依存するデータを格納
する業務データ153で構成される。
The configuration of the workflow management system of this embodiment will be described with reference to FIG. The present system provides the workflow application program 150 with an API for operating a state of a work including a state transition request API.
A workflow management program 140 that manages the state of the work and the assignment to the worker while accessing the workflow definition data 142, the workflow data 143, and the business data 153; An AP provided by a workflow management program 140 that accesses workflow definition data 142 for storing workflow definitions such as decision rules, workflow data 143 for storing the state of a work, and business data 153 for a workflow management system application business.
It consists of a workflow application program 150 that executes while calling I, and business data 153 that stores data dependent on the business.

【0109】ワークフロー管理プログラム140とワー
クフロー定義データ142とワークフローデータ143
と業務データ153は、第二の実施例のものと同様であ
る。第二の実施例との相違点は、状態遷移要求発行プロ
グラム5500と、ワークフローアプリケーション実行
環境情報154と、ワークフローアプリケーション実行
環境情報設定ツール152である。状態遷移要求発行プ
ログラム5500は、状態遷移要求発行手続き5505
で構成される。
The workflow management program 140, the workflow definition data 142, and the workflow data 143
And the business data 153 are the same as those in the second embodiment. The differences from the second embodiment are a state transition request issuing program 5500, workflow application execution environment information 154, and a workflow application execution environment information setting tool 152. The state transition request issuance program 5500 includes a state transition request issuance procedure 5505.
It consists of.

【0110】まず、ワークフローアプリケーション実行
環境情報154の内容を、図25を用いて説明する。ワ
ークフローアプリケーション実行環境情報154は、ワ
ークフローアプリケーションプログラム150から参照
可能なデータであり、名前と値が関連づけられたデータ
である。例えば、図25では、ワークフローアプリケー
ション実行環境情報154には、同期情報5600とし
て、「非同期」が設定されている。
First, the contents of the workflow application execution environment information 154 will be described with reference to FIG. The workflow application execution environment information 154 is data that can be referenced from the workflow application program 150, and is data in which a name and a value are associated. For example, in FIG. 25, “asynchronous” is set as the synchronization information 5600 in the workflow application execution environment information 154.

【0111】次に、状態遷移要求発行プログラム550
0の状態遷移要求発行手続き5505の処理内容を説明
する。状態遷移要求発行手続き5505は、ワークID
と状態名を入力引数とする。まず、ワークフローアプリ
ケーション実行環境情報154の同期情報5600がど
うか判断する。同期処理の指定を意味するデータが設定
されている場合は、引数のワークIDと状態名を渡して
同期状態遷移要求API3500を呼び出す。非同期処
理の指定を意味するデータが設定されている場合は、引
数のワークIDと状態名を渡して非同期状態遷移要求A
PI3501を呼び出す。API呼び出しの結果受け取
った返答をそのまま返し、終了。
Next, the state transition request issuing program 550
The processing contents of the 0 state transition request issuing procedure 5505 will be described. The state transition request issuance procedure 5505 includes the work ID
And the state name as input arguments. First, it is determined whether the synchronization information 5600 of the workflow application execution environment information 154 is present. If the data indicating the designation of the synchronous processing is set, the synchronous state transition request API 3500 is called by passing the work ID and the state name of the arguments. If the data indicating the designation of the asynchronous process is set, the asynchronous state transition request A is passed by passing the work ID and the state name of the arguments.
Call PI3501. Return the response received as a result of the API call and exit.

【0112】以下、ワークフローアプリケーション実行
環境情報154内の同期情報5600の設定を行うこと
が可能な、ワークフローアプリケーション実行環境情報
設定ツール152の動作の詳細を、図24から図26を
用い説明する。
Hereinafter, the operation of the workflow application execution environment information setting tool 152 capable of setting the synchronization information 5600 in the workflow application execution environment information 154 will be described in detail with reference to FIGS. 24 to 26.

【0113】ワークフローアプリケーション実行環境情
報設定ツール152は、ユーザに、状態遷移要求に対す
るワークフロー管理プログラム140の処理方法を選択
させる、遷移方法選択手続き5800と、ワークフロー
アプリケーション実行環境情報154を設定する、ワー
クフローアプリケーション実行環境情報設定手続き58
01と、ワークフローアプリケーション実行環境情報設
定ツール152のメインの流れを制御するメイン処理手
続き5802を有する。
The workflow application execution environment information setting tool 152 allows the user to select the processing method of the workflow management program 140 for the state transition request, and sets the transition method selection procedure 5800 and the workflow application execution environment information 154. Execution environment information setting procedure 58
01 and a main processing procedure 5802 for controlling the main flow of the workflow application execution environment information setting tool 152.

【0114】以下、ワークフローアプリケーション実行
環境情報設定ツール152が有する各手続きについて説
明する。まず、メイン処理手続き5802の動作を説明
する。メイン処理手続き5802は、何らかのタイミン
グで、遷移方法選択手続き5800を呼び出す。そして
その後、何らかのタイミングで、ワークフローアプリケ
ーション実行環境情報設定手続き5801を呼び出す。
その後終了。
Hereinafter, the procedures of the workflow application execution environment information setting tool 152 will be described. First, the operation of the main processing procedure 5802 will be described. The main processing procedure 5802 calls the transition method selection procedure 5800 at some timing. After that, the workflow application execution environment information setting procedure 5801 is called at some timing.
Then end.

【0115】次に、遷移方法選択手続き5800の動作
を、図26を用いて説明する。まず、遷移方法選択手続
き5800は、図26の遷移方法選択画面6100をデ
ィスプレイ133の画面に表示し、ユーザの選択を待
つ。ユーザは、遷移方法リストボックス6101内のア
イテムをマウス132で選択し、選択ボタン6102を
クリックすることによって、遷移方法を選択することが
出来る。
Next, the operation of the transition method selection procedure 5800 will be described with reference to FIG. First, the transition method selection procedure 5800 displays the transition method selection screen 6100 of FIG. 26 on the screen of the display 133, and waits for a user selection. The user can select a transition method by selecting an item in the transition method list box 6101 with the mouse 132 and clicking a selection button 6102.

【0116】次に、遷移方法選択画面6100にて選択
された遷移方法を、ワークフローアプリケーション実行
環境情報設定ツール152内でアクセス可能な遷移方法
変数に記憶し、終了する。次に、ワークフローアプリケ
ーション実行環境情報設定手続き5801の動作を、図
25を用いて説明する。
Next, the transition method selected on the transition method selection screen 6100 is stored in a transition method variable accessible in the workflow application execution environment information setting tool 152, and the process ends. Next, the operation of the workflow application execution environment information setting procedure 5801 will be described with reference to FIG.

【0117】まず、ワークフローアプリケーション実行
環境情報設定ツール152内でアクセス可能な遷移方法
変数に記憶されている値を判断する。本実施例では、遷
移時間重視を意味する値の場合は、ワークフローアプリ
ケーション実行環境情報154の同期情報5600に同
期処理の指定を意味するデータを設定し、レスポンス重
視を意味する値の場合は、ワークフローアプリケーショ
ン実行環境情報154の同期情報5600に非同期処理
の指定を意味するデータを設定する。
First, the value stored in the transition method variable accessible in the workflow application execution environment information setting tool 152 is determined. In this embodiment, if the value indicates that the transition time is important, the data indicating the designation of the synchronization processing is set in the synchronization information 5600 of the workflow application execution environment information 154. If the value indicates that the response is important, the workflow is used. Data indicating the designation of asynchronous processing is set in the synchronous information 5600 of the application execution environment information 154.

【0118】本実施例と同様の方法で、ワークフロー定
義をワークフローアプリケーションプログラムへの入力
とする場合についても実現可能である。上記第一〜三の
実施例のワークフロー管理システムは、ワークの状態遷
移要求に対する処理方式を、予め定義した情報に基づ
き、同期処理方式・非同期処理方式の切り替えを行うこ
とによって、処理性能を制御する。
In the same manner as in this embodiment, it is possible to realize a case where a workflow definition is input to a workflow application program. The workflow management system according to the first to third embodiments controls the processing performance by switching between the synchronous processing method and the asynchronous processing method based on the predefined information, for the processing method for the work state transition request. .

【0119】以下の実施例では、ワークの状態遷移要求
に対する処理について、予め定義した情報に基づき、優
先度付け・使用可能計算機リソースの制限を行うことに
より、相対的に処理性能の制御を行うワークフロー管理
システムについて述べる。このような相対的な処理性能
制御は、計算機リソースが制限されている環境で複数ユ
ーザにより共有されるシステムにおいて特に有効であ
る。
In the following embodiment, a workflow for relatively controlling the processing performance by setting priorities and restricting the available computer resources based on the predefined information for the processing for the work state transition request. The management system is described. Such relative processing performance control is particularly effective in a system shared by a plurality of users in an environment where computer resources are limited.

【0120】例えばワークフロー管理システムのサービ
スを、近年注目されているASP(Applicati
on Service Provider)等のアプリ
ケーションホスティングサービスの形態で提供する場
合、顧客や業務毎に処理に使用する計算機リソース量の
管理や、処理スケジュールの管理を適切に行い、契約内
容に応じた品質のサービスを提供しなくてはならない。
このような場合にも、本発明の処理性能制御方式は適用
可能である。
For example, the service of the workflow management system is provided by an ASP (Applicati
When providing in the form of an application hosting service such as on service provider, management of the amount of computer resources used for processing and management of the processing schedule for each customer or business are performed appropriately, and quality services according to the contract contents are provided. Must provide.
Even in such a case, the processing performance control method of the present invention can be applied.

【0121】第四の実施例は、予め定義した遷移処理定
義情報に基づき、状態遷移要求の処理優先度制御を行う
ワークフロー管理システムの1実施例として、ワークフ
ロー定義毎に状態遷移要求の処理に優先度を定義し、状
態遷移要求の対象となるワークが属するワークフロー定
義毎に、処理優先度を制御する例を示すものである。図
27から図30を用いて説明する。
The fourth embodiment is an embodiment of a workflow management system for controlling the processing priority of a state transition request based on previously defined transition processing definition information. An example is shown in which the processing priority is defined and the processing priority is controlled for each workflow definition to which the work to be subjected to the state transition request belongs. This will be described with reference to FIGS.

【0122】本実施例のワークフロー管理システムのブ
ロック図は、図1と同様である。図27に、本実施例に
おけるシステム構成を示す。このシステム構成では、図
2に示したシステム構成において、ワークフロー定義デ
ータ142として更にワークフロー定義の各種属性の定
義を格納するワークフロー定義テーブル6201を追加
している。また本実施例では、状態遷移要求取出し手続
き1502およびワークフロー定義画面表示手続き26
01、ワークフロー定義格納手続き2602の処理に変
更を加える。図27中には第一の実施例との差分のみ記
載しており、システム構成全体の詳細に関しては記載し
ていない。以下、本実施例を詳細に説明する。説明の冗
長を避ける為、ここでは第一の実施例との差分のみ示す
こととする。
The block diagram of the workflow management system of this embodiment is the same as that of FIG. FIG. 27 shows a system configuration in this embodiment. In this system configuration, in the system configuration shown in FIG. 2, a workflow definition table 6201 for storing the definition of various attributes of the workflow definition is added as the workflow definition data 142. In this embodiment, the state transition request fetch procedure 1502 and the workflow definition screen display procedure 26
01, the process of the workflow definition storage procedure 2602 is changed. FIG. 27 shows only differences from the first embodiment, and does not describe details of the entire system configuration. Hereinafter, this embodiment will be described in detail. In order to avoid redundant description, only the differences from the first embodiment are shown here.

【0123】図28はワークフロー定義テーブル620
1の構造である。ワークフロー定義テーブル6201
は、ワークフロー定義名6311、優先度6312で構
成される表データである。ワークフロー定義名6311
は、ワークフロー定義を一意に識別するデータである。
優先度6312は、状態遷移要求を処理する際の優先度
の指定であり、任意の数値をとる。
FIG. 28 shows a workflow definition table 620.
This is the structure of FIG. Workflow definition table 6201
Is table data including a workflow definition name 6311 and a priority 6312. Workflow definition name 6311
Is data that uniquely identifies the workflow definition.
The priority 6312 is a designation of a priority when processing a state transition request, and takes an arbitrary numerical value.

【0124】ワークフロー定義テーブル6201のレコ
ードは、ワークフロー定義プログラム209のワークフ
ロー定義格納手続き2602で格納され、状態遷移要求
非同期処理プログラム202の状態遷移要求取出し手続
き1502で参照される。
The record of the workflow definition table 6201 is stored in the workflow definition storage procedure 2602 of the workflow definition program 209, and is referred to by the state transition request fetch procedure 1502 of the state transition request asynchronous processing program 202.

【0125】次に、本実施例における、状態遷移要求取
出し手続き1502の動作を説明する。本実施例におけ
る、状態遷移要求取出し手続き1502は、ワークID
とワークフロー定義名と遷移IDを出力引数としてと
り、真偽値を返す。
Next, the operation of the state transition request fetch procedure 1502 in this embodiment will be described. In this embodiment, the state transition request fetch procedure 1502 is a work ID
And a workflow definition name and a transition ID as output arguments, and return a boolean value.

【0126】まず、状態遷移要求テーブル215のワー
クフロー定義名901とワークフロー定義テーブル62
01のワークフロー定義名6311をキーとして、状態
遷移要求テーブル215とワークフロー定義テーブル6
201を結合し、ワークフロー定義テーブル6201の
優先度6312値の高い順にソートした結果の先頭レコ
ードを選択する。選択されなかった場合は、呼び出し元
にFALSEを返し、終了。レコードが選択された場合
は、選択されたレコードのワークID900フィールド
値と、ワークフロー定義名901フィールド値と遷移I
D902フィールド値をそれぞれ出力引数に設定し、選
択されたレコードを、状態遷移要求テーブル215から
削除する。次に、呼び出し元にTRUEを返し、終了。
First, the workflow definition name 901 and the workflow definition table 62 in the state transition request table 215
01 using the workflow definition name 6311 as a key and the state transition request table 215 and the workflow definition table 6
201 are combined, and the first record of the result of sorting in the descending order of the priority 6312 value of the workflow definition table 6201 is selected. If not selected, FALSE is returned to the caller, and the processing ends. When a record is selected, the work ID 900 field value of the selected record, the workflow definition name 901 field value, and the transition I
The D902 field value is set in each output argument, and the selected record is deleted from the state transition request table 215. Next, return TRUE to the caller and end.

【0127】次に、本実施例における、ワークフロー定
義画面表示手続き2601の動作を説明する。まず、図
29は、本実施例における、ワークフロー定義画面表示
手続き2601において、ディスプレイ123の画面に
表示するイメージを示す図であり、第一の実施例との差
は、ワークフロー定義ごとの状態遷移処理の優先度を指
定するためのテキストボックス6411が追加されてい
る点である。
Next, the operation of the workflow definition screen display procedure 2601 in this embodiment will be described. First, FIG. 29 is a diagram showing an image displayed on the screen of the display 123 in the workflow definition screen display procedure 2601 according to the present embodiment. The difference from the first embodiment is the state transition processing for each workflow definition. Is that a text box 6411 for designating the priority of is added.

【0128】また、図30は、本実施例における、ワー
クフロー定義画面表示手続き2601において、図29
の画面で定義されたワークフロー定義に関する情報を格
納するワークフロー定義構造6511を示す図であり、
第一の実施例との差は、テキストボックス6411に入
力された優先度を格納する優先度フィールド6512が
追加されている点である。
FIG. 30 is a flowchart showing a workflow definition screen display procedure 2601 in this embodiment.
FIG. 35 is a diagram showing a workflow definition structure 6511 for storing information related to the workflow definition defined on the screen of FIG.
The difference from the first embodiment is that a priority field 6512 for storing the priority input in the text box 6411 is added.

【0129】次に、本実施例における、ワークフロー定
義格納手続き2602の動作を説明する。本実施例にお
ける、ワークフロー定義格納手続き2602は、ワーク
フロー定義構造6511の各属性を、ワークフロー定義
テーブル6201、状態定義テーブル210、遷移定義
テーブル211にそれぞれ格納し、終了。
Next, the operation of the workflow definition storage procedure 2602 in this embodiment will be described. In this embodiment, the workflow definition storage procedure 2602 stores the attributes of the workflow definition structure 6511 in the workflow definition table 6201, the state definition table 210, and the transition definition table 211, respectively, and ends.

【0130】本実施例と同様の方法で、優先度を、状態
ごと、遷移ごと、ワークフローアプリケーションプログ
ラムごとに設定する場合についても実現可能である。
In the same manner as in this embodiment, it is also possible to realize a case where the priority is set for each state, each transition, and each workflow application program.

【0131】以上に示したように本実施例のワークフロ
ー管理システムでは、業務毎の用件によって、状態遷移
要求の処理優先度を、ワークフロー定義毎、状態毎、遷
移毎、ワークフローアプリケーションプログラム毎など
の細かい単位で、ツールを使って簡単に設定することが
可能である。
As described above, in the workflow management system according to the present embodiment, the processing priority of the state transition request is determined for each workflow, for each workflow definition, each state, each transition, and each workflow application program. It can be easily set with tools in small units.

【0132】第五の実施例は、予め定義した遷移処理定
義情報に基づき、状態遷移要求の処理において使用する
計算機リソース量の制御を行うワークフロー管理システ
ムの1実施例として、ワークフロー定義毎に状態遷移要
求の処理に使用可能な最大主記憶容量、および1つの状
態遷移要求の処理に必要な主記憶容量を定義し、状態遷
移要求の対象となるワークが属するワークフロー定義毎
に、処理に使用する主記憶容量を制御する例を示すもの
である。図31から図35を用いて説明する。
The fifth embodiment is an example of a workflow management system that controls the amount of computer resources used in processing a state transition request based on predefined transition process definition information. The maximum main storage capacity that can be used for processing a request and the main storage capacity that is required for processing one state transition request are defined. 5 shows an example of controlling the storage capacity. This will be described with reference to FIGS.

【0133】本実施例のワークフロー管理システムのブ
ロック図は、図1と同様である。図31に、本実施例に
おけるシステム構成を示す。このシステム構成では、図
2に示したシステム構成において、ワークフロー定義デ
ータ142として更にワークフロー定義の各種属性の定
義を格納するワークフロー定義テーブル6601を追加
している。また本実施例では、状態遷移要求非同期処理
プログラム202に、ワークフロー定義ごとの、現在の
使用主記憶容量・1状態遷移処理に使用する主記憶容量
・使用可能な最大主記憶容量をそれぞれ保持する変数領
域の確保・初期化を行う、初期化手続き6611を追加
している。また本実施例では、状態遷移要求取出し手続
き1502、状態遷移処理起動手続き1503およびワ
ークフロー定義画面表示手続き2601、ワークフロー
定義格納手続き2602の処理に変更を加える。図31
中には第一の実施例との差分のみ記載しており、システ
ム構成全体の詳細に関しては記載していない。
The block diagram of the workflow management system of this embodiment is the same as that of FIG. FIG. 31 shows a system configuration in this embodiment. In this system configuration, in the system configuration shown in FIG. 2, a workflow definition table 6601 for storing the definition of various attributes of the workflow definition is added as the workflow definition data 142. Further, in the present embodiment, the state transition request asynchronous processing program 202 includes variables for holding the current main storage capacity, the main storage capacity used for one state transition processing, and the maximum usable main storage capacity for each workflow definition. An initialization procedure 6611 for securing and initializing an area is added. Further, in the present embodiment, changes are made to the processing of the state transition request fetch procedure 1502, the state transition processing activation procedure 1503, the workflow definition screen display procedure 2601, and the workflow definition storage procedure 2602. FIG.
Only the differences from the first embodiment are described therein, and details of the entire system configuration are not described.

【0134】図32は、本実施例における、ワークフロ
ー定義テーブル6601の構造である。本実施例におけ
る、ワークフロー定義テーブル6201は、ワークフロ
ー定義名6711、主記憶使用量6712、最大主記憶
使用量6713で構成される表データである。ワークフ
ロー定義名6711は、ワークフロー定義を一意に識別
するデータである。主記憶使用量6712は、該当ワー
クフロー定義のワークに関する状態遷移要求を処理する
際に必要な主記憶容量を表すデータである。最大主記憶
使用量6713は、該当ワークフロー定義のワークに関
する状態遷移要求の処理に使用可能な、最大の主記憶容
量を表すデータである。
FIG. 32 shows the structure of the workflow definition table 6601 in this embodiment. In this embodiment, the workflow definition table 6201 is tabular data including a workflow definition name 6711, a main storage usage 6712, and a maximum main storage usage 6713. The workflow definition name 6711 is data for uniquely identifying the workflow definition. The main storage usage 6712 is data representing a main storage capacity required when processing a state transition request related to a work of the corresponding workflow definition. The maximum main storage use amount 6713 is data representing the maximum main storage capacity that can be used for processing a state transition request related to the work of the corresponding workflow definition.

【0135】本実施例における、ワークフロー定義テー
ブル6601のレコードは、ワークフロー定義プログラ
ム209のワークフロー定義格納手続き2602で格納
され、状態遷移要求非同期処理プログラム202の初期
化手続き6611で参照される。次に、初期化手続き6
611の動作を説明する。初期化手続き6611は、ワ
ークフロー管理プログラム140の起動時に1度だけ実
行される。
In the present embodiment, the record of the workflow definition table 6601 is stored in the workflow definition storage procedure 2602 of the workflow definition program 209, and is referred to in the initialization procedure 6611 of the state transition request asynchronous processing program 202. Next, initialization procedure 6
The operation of 611 will be described. The initialization procedure 6611 is executed only once when the workflow management program 140 is started.

【0136】初期化手続き6611ではまず、ワークフ
ロー定義テーブル6601を検索し、ワークフロー定義
のリストを取得する。次に、各ワークフロー定義に対
し、現在の使用主記憶容量を保持する変数領域(「現在
使用量和」),1状態遷移処理に使用する主記憶容量を
保持する定数領域(「処理毎使用量」),状態遷移処理
に使用可能な最大種記憶容量を保持する定数領域(「使
用量上限」)を確保して、それぞれ0,主記憶使用量6
712値,最大主記憶使用量6713値に初期化する。
In the initialization procedure 6611, first, the workflow definition table 6601 is searched to obtain a list of workflow definitions. Next, for each workflow definition, a variable area (“sum of current usage”) holding the current main storage capacity used, and a constant area (“processing usage amount”) holding the main storage capacity used for one-state transition processing )), A constant area (“Usage limit”) that holds the maximum seed storage capacity that can be used for state transition processing is secured, and 0 and main memory usage are 6 respectively.
It is initialized to a value of 712 and a value of a maximum main memory usage of 6713.

【0137】次に、本実施例における、状態遷移要求取
出し手続き1502の動作を、図33を用いて説明す
る。本実施例における、状態遷移要求取出し手続き15
02は、ワークIDとワークフロー定義名と遷移IDを
出力引数としてとり、真偽値を返す。
Next, the operation of the state transition request fetch procedure 1502 in this embodiment will be described with reference to FIG. State transition request fetching procedure 15 in this embodiment
02 takes a work ID, a workflow definition name, and a transition ID as output arguments and returns a boolean value.

【0138】(ステップ6811)ワークフロー定義テ
ーブル6601を検索し、ワークフロー定義のリストを
取得する。(ステップ6812)ステップ6811で取
得したワークフロー定義のリストから、未チェックのワ
ークフロー定義を1つ選択する。(ステップ6813)
ステップ6812で選択したワークフロー定義のワーク
に関する状態遷移要求を状態遷移要求テーブル215か
ら検索し、1つ選択する。(ステップ6814)ステッ
プ6813での検索結果が空でない場合はステップ68
15へ、空である場合はステップ6819へ分岐する。
(ステップ6815)ステップ6812で選択したワー
クフロー定義に関する、「現在使用量和」と「処理毎使
用量」の和が、「使用量上限」以下の場合はステップ6
816へ、「使用量上限」よりも大きい場合はステップ
6819へ分岐する。(ステップ6816)ステップ6
812で選択したワークフロー定義に関する「現在使用
量和」に、「処理毎使用量」を加算する。(ステップ6
817)出力引数ワークID,ワークフロー定義名,遷
移IDに、ステップ6813で選択した状態遷移要求の
対応する属性をそれぞれ代入し、対応する状態遷移要求
テーブル215のレコードを削除する。(ステップ68
18)呼び出し元にTRUEをリターンし、終了。(ス
テップ6819)ステップ6812で選択したワークフ
ロー定義をチェック済みにマークする。(ステップ68
20)未チェックのワークフロー定義が存在する場合は
ステップ6812へ、存在しない場合はステップ682
1へ分岐する。(ステップ6821)呼び出し元にFA
LSEをリターンし、終了。
(Step 6811) The workflow definition table 6601 is searched to obtain a list of workflow definitions. (Step 6812) One unchecked workflow definition is selected from the list of workflow definitions acquired in Step 6811. (Step 6813)
A state transition request related to the work of the workflow definition selected in step 6812 is searched from the state transition request table 215 and one is selected. (Step 6814) If the search result in Step 6813 is not empty, Step 68
The process branches to step 6819 if it is empty.
(Step 6815) If the sum of “sum of current usage” and “usage for each process” regarding the workflow definition selected in step 6812 is not more than “usage upper limit”, step 6
If it is larger than the “Usage limit”, the process branches to step 6819. (Step 6816) Step 6
The “usage for each process” is added to the “sum of current usage” related to the workflow definition selected in 812. (Step 6
817) The corresponding attribute of the state transition request selected in step 6813 is substituted for the output argument work ID, workflow definition name, and transition ID, and the corresponding record of the state transition request table 215 is deleted. (Step 68
18) Return TRUE to the caller and end. (Step 6819) The workflow definition selected in Step 6812 is marked as checked. (Step 68
20) If there is an unchecked workflow definition, go to step 6812; otherwise, go to step 682.
Branch to 1. (Step 6821) FA is called
Returns LSE and ends.

【0139】次に、本実施例における、状態遷移処理起
動手続き1503の動作を説明する。まず、状態遷移要
求取出し手続き1502を呼び出す。返答がFALSE
の場合は終了。TRUEの場合は、出力引数の値をその
まま状態遷移処理手続き1600に渡して呼び出し、リ
ターン後、該当状態遷移要求の対象となるワークが属す
るワークフロー定義に関する、「現在使用量和」から
「処理毎使用量」を減算し、終了。
Next, the operation of the state transition processing start procedure 1503 in this embodiment will be described. First, a state transition request fetch procedure 1502 is called. The answer is FALSE
If, end. In the case of TRUE, the value of the output argument is passed as it is to the state transition processing procedure 1600 and called. Subtract "amount" and finish.

【0140】次に、本実施例における、ワークフロー定
義画面表示手続き2601の動作を説明する。まず、図
34は、本実施例における、ワークフロー定義画面表示
手続き2601において、ディスプレイ123の画面に
表示するイメージを示す図であり、第一の実施例との差
は、ワークフロー定義ごとの、1状態遷移処理毎に必要
な主記憶容量を指定するためのテキストボックス691
1および状態遷移処理に使用可能な主記憶量の上限を指
定するためのテキストボックス6912が追加されてい
る点である。
Next, the operation of the workflow definition screen display procedure 2601 in this embodiment will be described. First, FIG. 34 is a diagram showing an image displayed on the screen of the display 123 in the workflow definition screen display procedure 2601 in this embodiment. The difference from the first embodiment is that Text box 691 for designating the main storage capacity required for each transition process
1 and a text box 6912 for designating the upper limit of the amount of main storage that can be used for the state transition processing.

【0141】図35は、本実施例における、ワークフロ
ー定義画面表示手続き2601において、図34の画面
で定義されたワークフロー定義に関する情報を格納する
ワークフロー定義構造7011を示す図であり、第一の
実施例との差は、テキストボックス6911に入力され
た主記憶使用量を格納する主記憶使用量フィールド70
12、およびテキストボックス6912に入力された主
記憶使用量を格納する最大主記憶使用量フィールド70
13が追加されている点である。
FIG. 35 is a diagram showing a workflow definition structure 7011 for storing information relating to the workflow definition defined on the screen of FIG. 34 in the workflow definition screen display procedure 2601 according to the present embodiment. The main storage usage field 70 for storing the main storage usage entered in the text box 6911
12 and a maximum main memory usage field 70 for storing the main memory usage entered in the text box 6912
13 is added.

【0142】次に、本実施例における、ワークフロー定
義格納手続き2602の動作を説明する。本実施例にお
ける、ワークフロー定義格納手続き2602は、ワーク
フロー定義構造7011の各属性を、ワークフロー定義
テーブル6601、状態定義テーブル210、遷移定義
テーブル211にそれぞれ格納し、終了。本実施例と同
様の方法で、計算機リソース量を制御する単位を、状態
ごと、遷移ごと、ワークフローアプリケーションプログ
ラムごとに設定する場合についても実現可能である。
Next, the operation of the workflow definition storage procedure 2602 in this embodiment will be described. In this embodiment, the workflow definition storage procedure 2602 stores the attributes of the workflow definition structure 7011 in the workflow definition table 6601, the state definition table 210, and the transition definition table 211, respectively, and ends. In the same manner as in the present embodiment, it is also possible to realize a case where the unit for controlling the computer resource amount is set for each state, each transition, and each workflow application program.

【0143】また、本実施例と同様の方法で、制御対象
の計算機リソースが、処理スレッド数、補助記憶容量等
である場合についても実現可能である。
Further, in the same manner as in the present embodiment, it is possible to realize the case where the computer resources to be controlled are the number of processing threads, the auxiliary storage capacity, and the like.

【0144】以上に示したように本実施例のワークフロ
ー管理システムでは、業務毎の用件によって、状態遷移
要求の処理に使用可能な計算機リソース量を、ワークフ
ロー定義毎、状態毎、遷移毎、ワークフローアプリケー
ションプログラム毎などの細かい単位で、ツールを使っ
て簡単に設定することが可能である。
As described above, in the workflow management system according to the present embodiment, the amount of computer resources available for processing a state transition request is determined for each workflow, for each workflow definition, each state, each transition, and each workflow. It can be easily set using tools in small units, such as for each application program.

【0145】[0145]

【発明の効果】本発明によれば、柔軟なワークフロー管
理システムを提供することが可能となる。
According to the present invention, a flexible workflow management system can be provided.

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

【図1】第一の実施例の、ワークフロー管理システムの
ブロック図
FIG. 1 is a block diagram of a workflow management system according to a first embodiment.

【図2】第一の実施例の、ワークフロー管理システムの
構成図
FIG. 2 is a configuration diagram of a workflow management system according to the first embodiment.

【図3】第一の実施例の、概要図FIG. 3 is a schematic diagram of the first embodiment.

【図4】第一の実施例の、状態定義テーブルの構造FIG. 4 shows the structure of a state definition table according to the first embodiment.

【図5】第一の実施例の、遷移定義テーブルの構造FIG. 5 shows the structure of a transition definition table according to the first embodiment.

【図6】第一の実施例の、作業者決定ルール定義テーブ
ルの構造
FIG. 6 shows a structure of an operator determination rule definition table according to the first embodiment.

【図7】第一の実施例の、作業者定義テーブルの構造FIG. 7 is a structure of an operator definition table according to the first embodiment;

【図8】第一の実施例の、ワーク状態テーブルの構造FIG. 8 shows a structure of a work state table according to the first embodiment.

【図9】第一の実施例の、状態遷移要求テーブルの構造FIG. 9 shows the structure of a state transition request table according to the first embodiment.

【図10】第一の実施例の、窓口業務テーブルの構造FIG. 10 shows the structure of a counter operation table according to the first embodiment.

【図11】第一の実施例の、ワークフロー管理プログラ
ムのAPI
FIG. 11 illustrates an API of a workflow management program according to the first embodiment.

【図12】第一の実施例の、処理方法決定手続きの処理
手順を示すフローチャート
FIG. 12 is a flowchart showing a processing procedure of a processing method determination procedure according to the first embodiment;

【図13】第一の実施例の、状態遷移処理手続きの処理
手順を示すフローチャート
FIG. 13 is a flowchart illustrating a processing procedure of a state transition processing procedure according to the first embodiment;

【図14】第一の実施例の、ワークフロー定義画面FIG. 14 is a workflow definition screen according to the first embodiment.

【図15】第一の実施例の、ワークフロー定義構造の構
FIG. 15 shows a structure of a workflow definition structure according to the first embodiment.

【図16】第二の実施例の、ワークフロー管理システム
の構成図
FIG. 16 is a configuration diagram of a workflow management system according to a second embodiment.

【図17】第二の実施例の、遷移定義テーブルの構造FIG. 17 shows the structure of a transition definition table according to the second embodiment.

【図18】第二の実施例の、状態遷移要求テーブルの構
FIG. 18 shows the structure of a state transition request table according to the second embodiment.

【図19】第二の実施例の、ワークフロー管理プログラ
ムのAPI
FIG. 19 illustrates an API of a workflow management program according to the second embodiment.

【図20】第二の実施例の、同期状態遷移要求手続きの
処理手順を示すフローチャート
FIG. 20 is a flowchart illustrating a processing procedure of a synchronization state transition request procedure according to the second embodiment;

【図21】第二の実施例の、非同期状態遷移要求手続き
の処理手順を示すフローチャート
FIG. 21 is a flowchart illustrating a processing procedure of an asynchronous state transition request procedure according to the second embodiment;

【図22】第二の実施例の、状態遷移処理手続きの処理
手順を示すフローチャート
FIG. 22 is a flowchart illustrating a processing procedure of a state transition processing procedure according to the second embodiment;

【図23】第二の実施例の、遷移方法選択画面FIG. 23 is a transition method selection screen according to the second embodiment.

【図24】第三の実施例の、ワークフロー管理システム
の構成図
FIG. 24 is a configuration diagram of a workflow management system according to the third embodiment.

【図25】第三の実施例の、ワークフローアプリケーシ
ョン実行環境情報の構造
FIG. 25 shows the structure of workflow application execution environment information according to the third embodiment.

【図26】第三の実施例の、遷移方法選択画面FIG. 26 is a transition method selection screen according to the third embodiment.

【図27】第四の実施例の、ワークフロー管理システム
の構成図
FIG. 27 is a configuration diagram of a workflow management system according to a fourth embodiment.

【図28】第四の実施例の、ワークフロー定義テーブル
の構造
FIG. 28 shows the structure of a workflow definition table according to the fourth embodiment.

【図29】第四の実施例の、ワークフロー定義画面FIG. 29 is a workflow definition screen according to the fourth embodiment.

【図30】第四の実施例の、ワークフロー定義構造の構
FIG. 30 shows the structure of a workflow definition structure according to the fourth embodiment.

【図31】第五の実施例の、ワークフロー管理システム
の構成図
FIG. 31 is a configuration diagram of a workflow management system according to a fifth embodiment.

【図32】第五の実施例の、ワークフロー定義テーブル
の構造
FIG. 32 shows the structure of a workflow definition table according to the fifth embodiment.

【図33】第五の実施例の、状態遷移要求取出し手続き
の処理手順を示すフローチャート
FIG. 33 is a flowchart showing a procedure of a state transition request fetching procedure according to the fifth embodiment;

【図34】第五の実施例の、ワークフロー定義画面FIG. 34 is a workflow definition screen according to the fifth embodiment.

【図35】第五の実施例の、ワークフロー定義構造の構
FIG. 35 shows the structure of a workflow definition structure according to the fifth embodiment.

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

───────────────────────────────────────────────────── フロントページの続き (72)発明者 松田 芳樹 神奈川県川崎市幸区鹿島田890番地 株式 会社日立製作所ビジネスソリューション事 業部内 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Yoshiki Matsuda 890 Kashimada, Saiwai-ku, Kawasaki-shi, Kanagawa Prefecture, within the Business Solutions Division of Hitachi, Ltd.

Claims (25)

【特許請求の範囲】[Claims] 【請求項1】複数の状態と状態間の遷移をワークフロー
定義として予め定義し、状態遷移要求を入力として、ワ
ークの状態遷移処理を行うワークフロー管理方法におい
て、 前記状態遷移要求の入力を受け付けてから応答を返すま
での間にワークの状態遷移処理を行う同期処理ステップ
と、前記状態遷移要求の入力を受け付けて応答を返して
からワークの状態遷移処理を行う非同期処理ステップ
と、 前記状態遷移要求の入力に対するワークの状態遷移処理
として、前記同期処理ステップと前記非同期処理ステッ
プとを入力された選択情報に基づいて選択し実行する選
択ステップとを有することを特徴とするワークフロー管
理方法。
1. A workflow management method in which a plurality of states and transitions between states are defined in advance as a workflow definition, and a state transition request is input to perform a state transition process of a work. A synchronous processing step of performing a state transition process of a work before returning a response, an asynchronous processing step of performing a state transition process of a work after receiving a response to the input of the state transition request and returning a response, A workflow management method, comprising: a selection step of selecting and executing the synchronous processing step and the asynchronous processing step based on input selection information as a work state transition processing for an input.
【請求項2】請求項1記載のワークフロー管理方法にお
いて、 前記選択ステップは、入力された選択情報に対応する前
記非同期処理ステップおよび前記同期処理ステップのい
ずれかを呼び出すプログラムを生成することを特徴とす
るワークフロー管理方法。
2. The workflow management method according to claim 1, wherein the selecting step generates a program for calling one of the asynchronous processing step and the synchronous processing step corresponding to the input selection information. Workflow management method.
【請求項3】請求項1記載のワークフロー管理方法にお
いて、 前記選択情報は、予め定義した同期情報であることを特
徴とするワークフロー管理方法。
3. The workflow management method according to claim 1, wherein the selection information is synchronization information defined in advance.
【請求項4】請求項3記載のワークフロー管理方法にお
いて、 前記ワークフロー定義は、前記同期情報を含むことを特
徴とするワークフロー管理方法。
4. The workflow management method according to claim 3, wherein the workflow definition includes the synchronization information.
【請求項5】請求項4記載のワークフロー管理方法にお
いて、 ワークフローアプリケーションプログラムの実行環境の
環境情報は、前記同期情報を含むことを特徴とするワー
クフロー管理方法。
5. The workflow management method according to claim 4, wherein environment information of an execution environment of the workflow application program includes the synchronization information.
【請求項6】請求項3記載のワークフロー管理方法にお
いて、 ワークフロー管理プログラムの実行環境の環境情報は、
前記同期情報を含むことを特徴とするワークフロー管理
方法。
6. The workflow management method according to claim 3, wherein the environment information of the execution environment of the workflow management program is:
A workflow management method comprising the synchronization information.
【請求項7】請求項4記載のワークフロー管理方法にお
いて、 状態間の遷移定義ごとに前記同期情報を有することを特
徴とするワークフロー管理方法。
7. The workflow management method according to claim 4, wherein the synchronization information is provided for each transition definition between states.
【請求項8】請求項4記載のワークフロー管理方法にお
いて、 状態ごとに前記同期情報を有することを特徴とするワー
クフロー管理方法。
8. The workflow management method according to claim 4, wherein the synchronization information is provided for each state.
【請求項9】請求項5記載のワークフロー管理方法にお
いて、 ワークフロー定義ごとに前記同期情報を有することを特
徴とするワークフロー管理方法。
9. The workflow management method according to claim 5, wherein said synchronization information is provided for each workflow definition.
【請求項10】ワークがとりうる複数の状態と状態間の
遷移をワークフロー定義として予め定義し、状態遷移要
求を入力として、ワークの状態遷移処理を行うワークフ
ロー管理装置であって、 前記状態遷移要求の入力を受け付けてから応答を返すま
での間にワークの状態遷移処理を行う同期処理手段と、 前記状態遷移要求の入力を受け付けて応答を返してから
ワークの状態遷移処理を行う非同期処理手段と、 入力された選択情報をもとに、前記状態遷移要求の入力
に対するワークの状態遷移処理を、前記同期処理手段
と、前記非同期処理手段を選択して実行することを特徴
とするワークフロー管理装置。
10. A workflow management device which preliminarily defines a plurality of states that a work can take and transitions between the states as a workflow definition, and performs a state transition process of the work by inputting a state transition request. A synchronous processing means for performing a state transition process of the work between receiving an input of the input and returning a response; and an asynchronous processing means for performing a state transition process of the work after receiving the input of the state transition request and returning a response. A workflow management apparatus for selecting and executing the synchronous processing means and the asynchronous processing means for performing a work state transition process in response to the input of the state transition request based on the input selection information.
【請求項11】ワークがとりうる複数の状態と状態間の
遷移をワークフロー定義として予め定義し、状態遷移要
求を入力として、ワークの状態遷移処理を行うワークフ
ロー管理プログラムを格納した計算機読み取り可能な記
録媒体において、 上記プログラムは、前記状態遷移要求の入力を受け付け
てから応答を返すまでの間にワークの状態遷移処理を行
う同期処理ステップと、前記状態遷移要求の入力を受け
付けて応答を返してからワークの状態遷移処理を行う非
同期処理ステップと、 入力された選択情報をもとに、前記状態遷移要求の入力
に対するワークの状態遷移処理を、前記同期処理ステッ
プと、前記非同期処理ステップを選択して実行する実行
ステップを有するワークフロー管理プログラムを格納し
たことを特徴とする記録媒体。
11. A computer-readable recording in which a plurality of states that can be taken by a work and transitions between the states are defined in advance as a workflow definition, and a workflow management program for performing a state transition process of the work by inputting a state transition request is stored. In the medium, the program is a synchronous processing step of performing a state transition process of a work between receiving the input of the state transition request and returning a response, and receiving a response after receiving the input of the state transition request and returning a response. An asynchronous processing step of performing a state transition process of a work; and a state transition process of the work in response to the input of the state transition request, based on the input selection information, selecting the synchronous processing step and the asynchronous processing step. A recording medium storing a workflow management program having an execution step to be executed.
【請求項12】ワークがとりうる複数の状態と状態間の
遷移をワークフロー定義として予め定義し、状態遷移要
求を入力として、ワークの状態遷移処理を行うワークフ
ロー管理プログラムにおいて、 上記プログラムは、前記状態遷移要求の入力を受け付け
てから応答を返すまでの間にワークの状態遷移処理を行
う同期処理ステップと、前記状態遷移要求の入力を受け
付けて応答を返してからワークの状態遷移処理を行う非
同期処理ステップと、 入力された選択情報をもとに、前記状態遷移要求の入力
に対するワークの状態遷移処理を、前記同期処理ステッ
プと、前記非同期処理ステップを選択して実行する実行
ステップを有するワークフロー管理プログラム。
12. A workflow management program for preliminarily defining a plurality of states that a work can take and transitions between the states as a workflow definition, and performing a state transition process of the work by inputting a state transition request. A synchronous processing step of performing a work state transition process between receiving a transition request input and returning a response, and an asynchronous process of performing a work state transition process after receiving the state transition request input and returning a response A workflow management program comprising: a step of executing a state transition process of a work in response to an input of the state transition request based on the input selection information by selecting the synchronous processing step and the asynchronous processing step .
【請求項13】ワークがとりうる複数の状態と状態間の
遷移をワークフロー定義として予め定義し、 状態遷移要求を入力し、 入力された遷移処理制御情報に基づいて前記状態遷移要
求の入力に対するワークの状態遷移処理の実行を制御す
ることを特徴とするワークフロー管理方法。
13. A plurality of states that can be taken by a work and transitions between the states are defined in advance as a workflow definition, a state transition request is input, and a work for the input of the state transition request is input based on the input transition processing control information. A workflow management method, characterized by controlling execution of a state transition process.
【請求項14】請求項13記載のワークフロー管理方法
において、 前記状態遷移処理制御情報に優先度情報を含み、前記処
理すべき状態遷移要求が複数ある場合は処理する状態遷
移要求を該優先度情報に基づいて選択することを特徴と
するワークフロー管理方法。
14. The workflow management method according to claim 13, wherein the state transition processing control information includes priority information, and when there are a plurality of state transition requests to be processed, the state transition request to be processed is determined by the priority information. A workflow management method, wherein the selection is made based on the following.
【請求項15】請求項13記載のワークフロー管理方法
において、 前記状態遷移処理制御情報に使用可能な計算機リソース
量情報を含み、既に処理している状態遷移要求と前記状
態遷移要求に対する処理に使用する計算機リソース量の
和と、前記使用可能な計算機リソース量情報にて規定さ
れている値とを比較し、該状態遷移要求に対する処理を
実行するか否かを決定することを特徴とするワークフロ
ー管理方法。
15. The workflow management method according to claim 13, wherein the state transition processing control information includes usable computer resource amount information, and is used for a state transition request that has already been processed and a processing for the state transition request. A workflow management method comprising: comparing a sum of computer resource amounts with a value defined by the available computer resource amount information, and determining whether to execute a process for the state transition request or not. .
【請求項16】請求項14記載のワークフロー管理方法
において、 前記計算機リソース量は、前記状態遷移要求に対する処
理に使用する主記憶容量であることを特徴とするワーク
フロー管理方法。
16. The workflow management method according to claim 14, wherein the computer resource amount is a main storage capacity used for processing for the state transition request.
【請求項17】請求項15記載のワークフロー管理方法
において、 前記計算機リソース量は、前記状態遷移要求に対する処
理に使用する補助記憶容量であることを特徴とするワー
クフロー管理方法。
17. The workflow management method according to claim 15, wherein the computer resource amount is an auxiliary storage capacity used for processing for the state transition request.
【請求項18】請求項15記載のワークフロー管理方法
において、 前記計算機リソース量は、前記状態遷移要求に対する処
理に使用するスレッド数であることを特徴とするワーク
フロー管理方法。
18. The workflow management method according to claim 15, wherein the computer resource amount is the number of threads used for processing for the state transition request.
【請求項19】請求項13記載のワークフロー管理方法
において、前記遷移処理制御情報は、予め定義した遷移
処理定義情報であることを特徴とするワークフロー管理
方法。
19. The workflow management method according to claim 13, wherein the transition process control information is predefined transition process definition information.
【請求項20】請求項19記載のワークフロー管理方法
において、前記ワークフロー定義は、前記遷移処理定義
情報を含むことを特徴とするワークフロー管理方法。
20. The workflow management method according to claim 19, wherein said workflow definition includes said transition process definition information.
【請求項21】請求項19記載のワークフロー管理方法
において、 ワークフローアプリケーションプログラムの実行環境の
環境情報は、前記遷移処理定義情報を含むことを特徴と
するワークフロー管理方法。
21. The workflow management method according to claim 19, wherein environment information of an execution environment of the workflow application program includes the transition processing definition information.
【請求項22】請求項19記載のワークフロー管理方法
において、 ワークフロー管理プログラムの実行環境の環境情報は、
前記遷移処理定義情報を含むことを特徴とするワークフ
ロー管理方法。
22. The workflow management method according to claim 19, wherein the environment information of the execution environment of the workflow management program is:
A workflow management method comprising the transition process definition information.
【請求項23】請求項20記載のワークフロー管理方法
において、 状態間の遷移定義ごとに前記遷移処理定義情報を有する
ことを特徴とするワークフロー管理方法。
23. The workflow management method according to claim 20, wherein said transition process definition information is provided for each transition definition between states.
【請求項24】請求項20記載のワークフロー管理方法
において、 状態ごとに前記遷移処理定義情報を有することを特徴と
するワークフロー管理方法。
24. The workflow management method according to claim 20, wherein the transition processing definition information is provided for each state.
【請求項25】請求項20記載のワークフロー管理方法
において、 ワークフロー定義ごとに前記遷移処理定義情報を有する
ことを特徴とするワークフロー管理方法。
25. The workflow management method according to claim 20, wherein said transition process definition information is provided for each workflow definition.
JP2001220830A 2000-09-08 2001-07-23 Workflow management method, its device, its processing program and recording medium with its processing program stored Pending JP2002157386A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001220830A JP2002157386A (en) 2000-09-08 2001-07-23 Workflow management method, its device, its processing program and recording medium with its processing program stored

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2000-278673 2000-09-08
JP2000278673 2000-09-08
JP2001220830A JP2002157386A (en) 2000-09-08 2001-07-23 Workflow management method, its device, its processing program and recording medium with its processing program stored

Publications (1)

Publication Number Publication Date
JP2002157386A true JP2002157386A (en) 2002-05-31

Family

ID=26599931

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001220830A Pending JP2002157386A (en) 2000-09-08 2001-07-23 Workflow management method, its device, its processing program and recording medium with its processing program stored

Country Status (1)

Country Link
JP (1) JP2002157386A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004070516A (en) * 2002-08-02 2004-03-04 Hitachi Information Systems Ltd System for controlling work flow
JP2008065702A (en) * 2006-09-08 2008-03-21 Canon Inc Device and method for managing workflow
JP2009532756A (en) * 2006-03-30 2009-09-10 マイクロソフト コーポレーション Declarative model for concurrency control of lightweight threads
JP2017191393A (en) * 2016-04-12 2017-10-19 日本電気株式会社 State management device, state management method and state management program
JP7463415B2 (en) 2022-02-01 2024-04-08 ソフトバンク株式会社 Information processing system, method and program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004070516A (en) * 2002-08-02 2004-03-04 Hitachi Information Systems Ltd System for controlling work flow
JP2009532756A (en) * 2006-03-30 2009-09-10 マイクロソフト コーポレーション Declarative model for concurrency control of lightweight threads
JP2008065702A (en) * 2006-09-08 2008-03-21 Canon Inc Device and method for managing workflow
JP2017191393A (en) * 2016-04-12 2017-10-19 日本電気株式会社 State management device, state management method and state management program
JP7463415B2 (en) 2022-02-01 2024-04-08 ソフトバンク株式会社 Information processing system, method and program

Similar Documents

Publication Publication Date Title
US20020032692A1 (en) Workflow management method and workflow management system of controlling workflow process
US8577709B2 (en) Workflow system, information processor, and method and program for workflow management
US5887171A (en) Document management system integrating an environment for executing an agent and having means for changing an agent into an object
JP4842305B2 (en) Computing system and method for implicitly committing non-saved data for world wide web applications
US6092048A (en) Task execution support system
US8185578B2 (en) Client server system and method for executing an application utilizing distributed objects
US7974960B2 (en) System for identification of context related information in knowledge sources
AU2003204420B2 (en) Systems and methods for work list prediction
US8166491B2 (en) Method and system for providing a configurable action launchpad
JPH11184699A (en) Method for executing mobile object group and storage medium storing mobile object group
US20080288918A1 (en) Web service tool based on business object layer
US6407751B1 (en) Method and apparatus of generating mobile objects and storage medium storing an object generating mobile objects
US6507844B1 (en) Method and system for minimizing network traffic
JP2002157386A (en) Workflow management method, its device, its processing program and recording medium with its processing program stored
JP2001034493A (en) Work process managing device
US20050120352A1 (en) Meta directory server providing users the ability to customize work-flows
JP2000215244A (en) Work process management device
JPH09160847A (en) Client server-type distribution processing system
US20230251916A1 (en) Database management methods and associated apparatus
JPH1049504A (en) Load distribution batch system
US6032176A (en) Data-independent type computer system: processing machine, data machine and man-machine interface therein
JPH09305366A (en) Screen display optimization method
JP2963077B2 (en) Method and apparatus for generating moving object group, and storage medium storing object for generating moving object group
EP1750222A1 (en) Process instance serialization
JPH09245101A (en) Customer information utilizing system in reservation and ticketing system