TWI714390B - Method for controlling operation flow - Google Patents

Method for controlling operation flow Download PDF

Info

Publication number
TWI714390B
TWI714390B TW108145657A TW108145657A TWI714390B TW I714390 B TWI714390 B TW I714390B TW 108145657 A TW108145657 A TW 108145657A TW 108145657 A TW108145657 A TW 108145657A TW I714390 B TWI714390 B TW I714390B
Authority
TW
Taiwan
Prior art keywords
identification
upstream
thread
program
specific
Prior art date
Application number
TW108145657A
Other languages
Chinese (zh)
Other versions
TW202122940A (en
Inventor
金政中
游斯涵
林暉農
陳玟霖
Original Assignee
中華電信股份有限公司
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 中華電信股份有限公司 filed Critical 中華電信股份有限公司
Priority to TW108145657A priority Critical patent/TWI714390B/en
Application granted granted Critical
Publication of TWI714390B publication Critical patent/TWI714390B/en
Publication of TW202122940A publication Critical patent/TW202122940A/en

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention provides a method for controlling an operation flow, which includes: obtaining an operation flow, wherein the operation flow records a plurality of upstream programs and downstream programs and the version number and execution timing of each of the foregoing programs; obtaining a plurality of task connecting identification formats generated by the upstream programs, and accordingly generating a plurality of process connecting identification flags; in response to determining that the specific identification flag in the process connecting identification flags has been verified based on a task connecting identification rule, notifying the downstream programs to execute subsequently.

Description

作業流程調控方法Work flow control method

本發明是有關於一種流程管理機制,且特別是有關於一種作業流程調控方法。The present invention relates to a process management mechanism, and particularly relates to a method of operating process control.

在現有技術中,對於較為複雜的應用系統環境(如:應用系統環境跨多部主機、作業功能上/下架次數頻繁)而言,目前並未有能夠高效率組裝與管理作業流程執行的機制。在此情況下,除了無法明確、有效地管理各作業功能上/下架期程(如:某時間點可切換不同的作業功能)及組裝成新的作業流程之後,還可能因某些作業程序需等待人工啟動而造成不必要的延遲(例如,主機因等待執行所產生的閒置時間)。In the prior art, for relatively complex application system environments (such as: application system environments spanning multiple hosts, operating functions are frequently put on/off shelves), there is currently no mechanism that can efficiently assemble and manage workflow execution . In this case, in addition to the inability to clearly and effectively manage the on/off schedule of each operation function (for example, different operation functions can be switched at a certain point in time) and assembly into a new operation process, it may also be due to certain operation procedures Need to wait for manual start and cause unnecessary delay (for example, the idle time of the host due to waiting for execution).

有鑑於此,本發明提供一種作業流程調控方法,其可用於解決上述技術問題。In view of this, the present invention provides a work flow control method, which can be used to solve the above technical problems.

本發明提供一種作業流程調控方法,包括:由一流程作業執行代理元件從一流程組態設定資料庫取得一作業流程,其中作業流程記錄有前述作業程式中的多個上游作業程式及多個下游作業程式個別的版號與執行時機,且前述上游作業程式形成一上游流程,前述下游作業程式形成接續於上游流程的一下游流程;由一流程串接代理元件取得前述上游作業程式產生的多個業務串接識別格式,並據以產生多個流程串接識別旗標;反應於判定前述流程串接識別旗標中的至少一特定識別旗標已通過一業務串接識別規則,由流程串接代理元件通知前述下游作業程式接續執行。The present invention provides a work flow control method, including: obtaining a work flow from a process configuration setting database by a process execution agent component, wherein the work flow records multiple upstream operating programs and multiple downstream operating programs in the aforementioned operating programs The individual version number and execution timing of the operating program, and the foregoing upstream operating program forms an upstream process, and the foregoing downstream operating program forms a downstream process following the upstream process; a process serial proxy component obtains multiple generated by the foregoing upstream operating program The business cascade identification format, and a plurality of process cascade identification flags are generated accordingly; in response to the determination that at least one specific identification flag in the aforementioned process cascade identification flag has passed a business cascade identification rule, the process is cascaded The agent component notifies the aforementioned downstream operating program to continue execution.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail in conjunction with the accompanying drawings.

概略而言,本發明的方法可實現具備高度擴展性、支援分散式架構的作業流程組裝技術。並且,可動態切換主機系統運行的作業功能版本、流程可支援自動化串接機制以達成具可適應性應用系統環境。藉此,本發明可因應企業內應用系統運作日益複雜且多元的需求。以下將作詳細說明。In summary, the method of the present invention can implement a work flow assembly technology with high scalability and supporting a distributed architecture. In addition, it can dynamically switch the operating function version of the host system and the process can support an automatic serial connection mechanism to achieve an adaptable application system environment. In this way, the present invention can meet the increasingly complex and diversified needs of the application system operation in the enterprise. Details will be described below.

請參照圖1及圖2,其中圖1是依據本發明之一實施例繪示的作業流程調控方法流程圖,圖2是依據本發明之一實施例繪示的應用情境圖。在本發明的實施例中,圖1的方法可由圖2中的流程作業執行代理元件210及流程串接代理元件220協同執行,以下即搭配圖2內容說明圖1的各個步驟。Please refer to FIG. 1 and FIG. 2, where FIG. 1 is a flowchart of a work flow control method according to an embodiment of the present invention, and FIG. 2 is an application scenario diagram according to an embodiment of the present invention. In an embodiment of the present invention, the method in FIG. 1 can be executed by the process job execution agent component 210 and the process cascade agent component 220 in FIG. 2 in cooperation. The following describes each step of FIG. 1 with the content of FIG. 2.

在本發明的實施例中,流程作業執行代理元件210及流程串接代理元件220例如是可同時安裝於一或多台主機上的程式,用以協調位於各主機上作業程式的作業流程。In the embodiment of the present invention, the process execution agent component 210 and the process cascade agent component 220 are, for example, programs that can be installed on one or more hosts at the same time to coordinate the operation processes of the operating programs on each host.

在一實施例中,流程作業執行代理元件210可用於取得各作業程式的版本資訊並同步至流程組態設定資料庫212中。舉例而言,流程作業執行代理元件210可隨時監控各作業程式版本狀態。在一實施例中,反應於流程作業執行代理元件210偵測到被提交(commit)至版本控制工具的任一作業程式,流程作業執行代理元件210可提取此作業程式的作業資訊及版號資訊,並儲存至流程組態設定資料庫212中。因此,流程組態設定資料庫212中可記錄有多個作業程式及其個別的作業資訊及版號資訊,但本發明可不限於此。In one embodiment, the process execution agent component 210 can be used to obtain the version information of each operation program and synchronize it to the process configuration database 212. For example, the process operation execution agent component 210 can monitor the version status of each operation program at any time. In one embodiment, in response to the process operation execution agent component 210 detecting any operation program submitted (commit) to the version control tool, the process operation execution agent component 210 can extract the operation information and version number information of the operation program , And store it in the process configuration setting database 212. Therefore, multiple operating programs and their respective operating information and version information can be recorded in the process configuration setting database 212, but the present invention is not limited to this.

在本發明的實施例中,流程組態設定資料庫212可提供使用者設定管理介面213,用以供使用者設定流程組態設定資料庫212中的一或多個作業程式的作業流程。並且,流程組態設定資料庫212可用於儲存使用首於使用者設定管理介面213所進行的各個設定。例如,使用者可透過使用者設定管理介面213選用一或多個作業程式,並設定這些作業程式的執行主機環境、執行順序、執行時機、程式版本等。In the embodiment of the present invention, the process configuration setting database 212 may provide a user setting management interface 213 for the user to set the operation flow of one or more operating programs in the process configuration setting database 212. In addition, the process configuration setting database 212 can be used to store various settings performed using the user setting management interface 213. For example, the user can select one or more operating programs through the user setting management interface 213, and set the execution host environment, execution sequence, execution timing, and program version of these operating programs.

以圖2為例,假設使用者欲控制作業程式216、217及221需依序執行,使用者即可透過使用者設定管理介面213進行相應的設定。相似地,假設使用者欲控制作業程式223、218需依序執行,使用者亦可透過使用者設定管理介面213進行相應設定。Taking FIG. 2 as an example, assuming that the user wants to control the operating programs 216, 217, and 221 to be executed in sequence, the user can perform corresponding settings through the user setting management interface 213. Similarly, assuming that the user wants to control the operating programs 223 and 218 to be executed in sequence, the user can also make corresponding settings through the user setting management interface 213.

在不同的實施例中,流程組態設定資料庫212可儲存的資料內容可包括:(1)作業程式基本資料:程式序號、程式名稱;(2)作業程式主機環境資料:程式序號、執行緒序號、程式路徑、程式執行參數、主機位址(IP)、執行程式帳號;(3)作業程式版本與可執行範圍:流水號、程式序號、程式版本號、可執行起始時間、可執行截止時間。In different embodiments, the data content that can be stored in the process configuration setting database 212 may include: (1) Basic information of the operating program: program serial number, program name; (2) Operating program host environment data: program serial number, thread Serial number, program path, program execution parameters, host address (IP), execution program account; (3) Operating program version and executable range: serial number, program serial number, program version number, executable start time, executable end time.

此外,使用者還可透過使用者設定管理介面213界定作業程式之間的上、下游關係。以圖2為例,使用者例如可將作業程式216、217及221所形成的集合設定為上游流程214,並將作業程式223、218所形成的集合設定為接續於上游流程214的下游流程215。亦即,下游流程215需在上游流程214完成後方能開始執行。在此情況下,上游流程214及下游流程215可形成一套作業流程,但本發明可不限於此。In addition, the user can also define the upstream and downstream relationships between operating programs through the user setting management interface 213. Taking FIG. 2 as an example, the user can, for example, set the set formed by operating programs 216, 217, and 221 as the upstream process 214, and set the set formed by the operating programs 223, 218 as the downstream process 215 following the upstream process 214. . That is, the downstream process 215 can only be executed after the upstream process 214 is completed. In this case, the upstream process 214 and the downstream process 215 can form a set of work processes, but the present invention is not limited to this.

應了解的是,圖2所示的上、下游流程態樣僅用以舉例,並非用以限定本發明可能的實施方式。在其他實施例中,使用者可依需求而取用更多或更少的作業程式,並還可劃分更多階層的上、下游流程關係。為便於理解本發明的概念,以下即以圖2所示的作業流程(其包括上游流程214及下游流程215)為例說明圖1的各步驟。It should be understood that the upstream and downstream flow patterns shown in FIG. 2 are only for example, and are not intended to limit the possible implementation of the present invention. In other embodiments, users can access more or fewer operating programs according to their needs, and can also divide more levels of upstream and downstream process relationships. In order to facilitate the understanding of the concept of the present invention, the operation process shown in FIG. 2 (which includes the upstream process 214 and the downstream process 215) is taken as an example to illustrate the steps in FIG. 1.

首先,在步驟S110中,流程作業執行代理元件210可從流程組態設定資料庫212取得作業流程(其包括上游流程214及下游流程215)。在圖2中,上游流程214中的作業程式216、217、221可暫稱為上游作業程式,下游流程215中的作業程式223可暫稱為下游作業程式,而流程作業執行代理元件210所取得的作業流程可指示前述上、下游作業程式個別的版號與執行時機,等資訊但可不限於此。First, in step S110, the process operation execution agent component 210 can obtain the operation process (which includes the upstream process 214 and the downstream process 215) from the process configuration setting database 212. In FIG. 2, the operating programs 216, 217, and 221 in the upstream process 214 can be temporarily referred to as upstream operating programs, the operating program 223 in the downstream process 215 can be temporarily referred to as downstream operating programs, and the process operation execution agent component 210 obtains The operation flow can indicate the individual version number and execution timing of the aforementioned upstream and downstream operation programs, but not limited to this.

之後,在步驟S120中,流程串接代理元件220可取得前述上游作業程式產生的多個業務串接識別格式,並據以產生多個流程串接識別旗標。在本發明的實施例中,各上游作業程式可包括一或多個執行緒,而所述一或多個執行緒可執行於一或多台主機上。並且,各上游作業程式的各執行緒在完成執行之後可相應地產生一業務串接識別格式,而流程串接代理元件220可在取得此業務串接識別格式之後,將其轉換為對應的流程串接識別旗標。After that, in step S120, the process cascade proxy component 220 can obtain multiple service cascade identification formats generated by the upstream operating program, and generate multiple process cascade identification flags accordingly. In the embodiment of the present invention, each upstream operating program may include one or more threads, and the one or more threads may be executed on one or more hosts. In addition, each thread of each upstream operating program can generate a business connection identification format correspondingly after completing execution, and the process connection agent component 220 can convert the business connection identification format into a corresponding process after obtaining the business connection identification format. Concatenate the identification flag.

以作業程式216為例,其可包括3個執行緒216a~216c,而這些執行緒216a~216c可個別執行於1台主機上,但可不限於此。在一實施例中,當執行緒216a完成執行後,可相應產生業務串接識別格式A16a,其中業務串接識別格式A16a可包括一動態參數欄位。在一實施例中,業務串接識別格式A16a例如是「DAtoCY_${YYYMMDD}」,而其中的「${YYYMMDD}」即為動態參數欄位,但可不限於此。Taking the operating program 216 as an example, it may include three threads 216a to 216c, and these threads 216a to 216c can be executed on one host individually, but it is not limited to this. In one embodiment, after the execution of the thread 216a is completed, a service connection identification format A16a can be generated accordingly, where the service connection identification format A16a can include a dynamic parameter field. In one embodiment, the service connection identification format A16a is, for example, "DAtoCY_${YYYMMDD}", and "${YYYMMDD}" is the dynamic parameter field, but it is not limited to this.

在一實施例中,當流程串接代理元件220偵測到業務串接識別格式A16a時,流程串接代理元件220可將業務串接識別格式A16a中的動態參數欄位置換為當下系統參數,以產生對應於執行緒216a的流程串接識別旗標B16a。In one embodiment, when the process concatenation proxy component 220 detects the service concatenation identification format A16a, the process concatenation proxy component 220 can change the position of the dynamic parameter column in the service concatenation identification format A16a to the current system parameters. In order to generate the process cascade identification flag B16a corresponding to the thread 216a.

在不同的實施例中,設計者可依需求而選用適合的當下系統參數。假設所選用的當下系統參數為當天日期,則流程串接代理元件220可將業務串接識別格式A16a中的動態參數欄位置換為當天日期,以產生流程串接識別旗標B16a。舉例而言,假設當天日期為「108年07月01日」,則流程串接代理元件220所產生的流程串接識別旗標B16a可以是「DAtoCY_1080701」,但本發明可不限於此。In different embodiments, the designer can select appropriate current system parameters according to requirements. Assuming that the selected current system parameter is today's date, the process concatenation agent component 220 can change the position of the dynamic parameter column in the service concatenation identification format A16a to today's date to generate a process concatenation identification flag B16a. For example, assuming that the date of the day is "July 01, 108", the process connection identification flag B16a generated by the process connection proxy component 220 may be "DAtoCY_1080701", but the present invention is not limited to this.

之後,流程串接代理元件220可將流程串接識別旗標B16a與執行緒216a在作業程式216的執行緒216a~216c中的執行緒編號(例如1號)記錄於流程串接識別資料庫222中。並且,流程串接代理元件220還可將流程串接識別資料庫222中的流程串接識別旗標B16a的使用狀態標示為未使用狀態,以表示流程串接識別旗標B16a尚未被任何下游作業程式取用,但可不限於此。After that, the process connection agent component 220 can record the process connection identification flag B16a and the thread number (for example, number 1) of the thread 216a in the threads 216a~216c of the operating program 216 in the process connection identification database 222 in. In addition, the process connection proxy component 220 may also mark the use status of the process connection identification flag B16a in the process connection identification database 222 as an unused state to indicate that the process connection identification flag B16a has not been operated by any downstream operations. Program access, but not limited to this.

在一實施例中,若流程串接代理元件220日後偵測到流程串接識別旗標B16a已被下游作業程式的任一取用,則流程串接代理元件220可將流程串接識別旗標B16a的使用狀態改變為已使用狀態,藉以避免流程串接識別旗標B16a再被其他的下游作業程式取用,但可不限於此。In one embodiment, if the process cascade proxy component 220 detects that the process cascade identification flag B16a has been used by any downstream operating program, the process cascade proxy component 220 can set the process cascade identification flag The use state of B16a is changed to the used state, so as to prevent the process chain identification flag B16a from being used by other downstream operating programs, but it is not limited to this.

基於以上教示,本領域具通常知識者應可相應理解流程串接代理元件220基於其他作業程式的執行緒所產生的業務串接識別格式而產生對應的流程串接識別旗標的機制,於此不另贅述。Based on the above teachings, those with ordinary knowledge in the field should be able to understand the mechanism of the process cascade proxy component 220 generating the corresponding process cascade identification flag based on the service cascade identification format generated by the threads of other operating programs. Another repeat.

在本發明的實施例中,流程串接識別資料庫222至少可包括以下兩個資料表:(1)業務串接規則(流水號、判斷規則、規則通過門檻);(2)串接識別資料(串接識別旗標、識別產生日期、識別產生來源、識別使用狀態、執行緒編號),串接識別旗標內含有業務資訊,提高識別可讀性;識別產生日期由流程串接代理元件220產生,為上游流程作業完成的時間;識別產生來源值域為各業務別,如:出帳、異動、報表等。In the embodiment of the present invention, the process connection identification database 222 may include at least the following two data tables: (1) business connection rules (serial number, judgment rule, rule passing threshold); (2) connection identification data (Concatenated identification flag, identification generation date, identification generation source, identification use status, thread number), the serial identification flag contains business information to improve the readability of identification; the identification generation date is connected to the proxy component 220 by the process Generated is the time when the upstream process operation is completed; identify the generation source value range for each business category, such as: billing, transaction, report, etc.

在產生流程串接識別旗標(例如流程串接識別旗標B16a)之後,流程串接代理元件220可判斷所產生的流程串接識別旗標中的至少一特定識別旗標是否已通過業務串接識別規則。After generating the process concatenation identification flag (for example, process concatenation identification flag B16a), the process concatenation proxy component 220 can determine whether at least one specific identification flag in the generated process concatenation identification flag has passed the business string Access recognition rules.

在不同的實施例中,業務串接識別規則可記錄流程串接識別旗標中的上述特定識別旗標所需滿足的條件,而在上述特定識別旗標滿足此條件之後,流程串接代理元件220可判定上述特定識別旗標已通過業務串接識別規則,並接續執行步驟S130。In different embodiments, the business cascade identification rules may record the conditions that the above-mentioned specific identification flags in the process cascade identification flags need to meet, and after the above-mentioned specific identification flags meet this condition, the process cascades the proxy component 220 may determine that the above-mentioned specific identification flag has passed the service connection identification rule, and continue to execute step S130.

在一實施例中,上述特定識別旗標可包括對應於某特定上游程式的各執行緒的流程串接識別旗標。在此情況下,假設業務串接識別規則指示需在取得對應於某特定上游程式的各執行緒的流程串接識別旗標(即上述特定識別旗標)之後,方能接續執行下游流程215,則流程串接代理元件220可在取得此特定上游程式的各執行緒的流程串接識別旗標之後,判定上述特定識別旗標已通過業務串接識別規則,並接續執行步驟S130。In an embodiment, the above-mentioned specific identification flag may include a process concatenation identification flag corresponding to each thread of a certain upstream program. In this case, suppose that the business cascade identification rules indicate that the downstream process 215 can be continued after the process cascade identification flags corresponding to each thread of a specific upstream program (ie, the above-mentioned specific identification flags) are obtained. Then, the process cascading agent component 220 can determine that the specific identification flag has passed the service cascading recognition rule after obtaining the process cascading identification flag of each thread of the specific upstream program, and continue to execute step S130.

為便於說明,假設作業程式221即為所考慮的特定上游程式,且其包括執行緒221a~221c。在一實施例中,在各執行緒221a~221c完成執行之後,流程串接代理元件220可依據各執行緒221a~221c提供的業務串接識別格式A21a、A21b、A21c產製對應的流程串接識別旗標B21a、B21b、B21c(即,特定識別旗標)。For the convenience of description, it is assumed that the operating program 221 is the specific upstream program under consideration, and it includes the threads 221a to 221c. In one embodiment, after the execution of each thread 221a~221c is completed, the process connection agent component 220 can produce the corresponding process connection according to the service connection identification format A21a, A21b, A21c provided by each thread 221a~221c Identification flags B21a, B21b, B21c (ie, specific identification flags).

由於流程串接識別旗標B21a、B21b、B21c的數量匹配於執行緒221a~221c的數量,故流程串接代理元件220可判定已取得對應於作業程式221a的各執行緒221a~221c的流程串接識別旗標B21a、B21b、B21c進而可判定流程串接識別旗標B21a、B21b、B21c(即,特定識別旗標)已通過業務串接識別規則,但可不限於此。藉此,當所考慮的特定上游程式的執行緒分別由多個主機執行時,流程串接代理元件220可具體掌控各主機的執行狀況,以利判定是否繼續執行下游流程215。Since the number of process cascade identification flags B21a, B21b, B21c matches the number of threads 221a~221c, the process cascade proxy component 220 can determine that it has obtained the process string corresponding to each thread 221a~221c of the operating program 221a Connecting the identification flags B21a, B21b, and B21c can then determine that the process cascading identification flags B21a, B21b, B21c (ie, specific identification flags) have passed the business cascading identification rules, but it is not limited to this. In this way, when the threads of the considered specific upstream program are executed by multiple hosts, the process cascade proxy component 220 can specifically control the execution status of each host, so as to determine whether to continue the downstream process 215.

此外,在另一實施例中,假設業務串接識別規則指示需在取得符合某特定態樣/預設數量的特定識別旗標之後,方能接續執行下游流程215,則流程串接代理元件220可在判定已取得符合某特定態樣/預設數量的特定識別旗標之後,判定上述特定識別旗標已通過業務串接識別規則,並接續執行步驟S130。In addition, in another embodiment, assuming that the service cascading identification rule indicates that the downstream process 215 can be executed after obtaining the specific identification flag that meets a certain pattern/pre-set number, the process cascading proxy component 220 After it is determined that the specific identification flag that meets a specific pattern/pre-set number has been obtained, it is determined that the specific identification flag has passed the service connection identification rule, and step S130 is continued.

舉例而言,假設業務串接識別規則指示需收到1筆具有「DAtoCY_1080701」態樣(其涵義例如代表需於108/7/1執行每週期費用計算)的特定識別旗標之後,方能接續執行下游流程215,則流程串接代理元件220可持續偵測是否已取得1筆具有「DAtoCY_1080701」態樣的特定識別旗標。若是,則流程串接代理元件220可判定上述特定識別旗標已通過業務串接識別規則,並接續執行步驟S130。For example, suppose that the business cascade identification rules indicate that a specific identification flag with the status "DAtoCY_1080701" (its meaning, for example, needs to be calculated on 108/7/1), can be continued When the downstream process 215 is executed, the process cascade proxy component 220 can continuously detect whether a specific identification flag with the state of "DAtoCY_1080701" has been obtained. If yes, the process connection agent component 220 may determine that the above-mentioned specific identification flag has passed the service connection identification rule, and continue to execute step S130.

在步驟S130中,反應於判定前述流程串接識別旗標中的特定識別旗標已通過業務串接識別規則,流程串接代理元件220可通知下游作業程式(例如作業程式223、218)接續執行。In step S130, in response to determining that the specific identification flag in the aforementioned process cascade identification flag has passed the business cascade identification rules, the process cascade proxy component 220 can notify the downstream operating programs (such as operating programs 223, 218) to continue execution .

綜上所述,本發明可在上游跨主機(多執行緒)作業流程執行結束後,根據業務邏輯各自產製出可識別於不同主機上程式作業的流程串接識別旗標,並透過流程串接代理元件寫入流程串接識別資料庫中,下游作業流程則透過流程串接代理元件偵測上游作業流程是否完成。此外,如果有多主機環境,只要各主機環境皆部署流程作業執行代理元件,即可同步不同主機環境的作業程式的版號資訊到流程組態中。因此,本發明可應用於多執行緒且跨主機的應用環境。In summary, the present invention can produce process serial identification flags that can identify program operations on different hosts after the execution of the upstream cross-host (multi-threading) operation process is completed. The proxy component is written into the process serial identification database, and the downstream operation process detects whether the upstream operation process is completed through the process serial proxy element. In addition, if there is a multi-host environment, as long as each host environment deploys the process operation execution agent component, the version number information of the operating program of different host environments can be synchronized to the process configuration. Therefore, the present invention can be applied to a multi-threaded and cross-host application environment.

更具體言之,本發明特別針對複雜應用系統環境(如:應用系統環境跨多部主機、作業功能上/下架次數頻繁)可有效率組裝與管理其作業流程的執行。透過本發明各項技術和程序,可明確的管理各作業功能上/下架期程(如:某時間點可切換不同的作業功能)且快速組裝成新的作業流程。同時,亦可發展為分散式環境作業流程自動化串接技術以避免需人工啟動作業流程的情形(造成主機因等待執行所產生的閒置時間)。More specifically, the present invention is particularly aimed at complex application system environments (such as: application system environments spanning multiple hosts, frequently operating functions are added/removed frequently), which can efficiently assemble and manage the execution of its operating procedures. Through the various technologies and procedures of the present invention, the on/off schedule of each operation function can be clearly managed (for example, different operation functions can be switched at a certain time) and a new operation process can be quickly assembled. At the same time, it can also be developed into a distributed environment operation process automation serial connection technology to avoid the need to manually start the operation process (causing the host idle time due to waiting for execution).

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of the present invention. The scope of protection of the present invention shall be determined by the scope of the attached patent application.

210:流程作業執行代理元件 211:版本控制工具 212:流程組態設定資料庫 213:使用者設定管理介面 214:上游流程 215:下游流程 216、217、218、221、223:作業程式 216a~216c、221a~221c:執行緒 220:流程串接代理元件 222:流程串接識別資料庫 A16a、A21a、A21b、A21c:業務串接識別格式 B16a、B21a、B21b、B21c:流程串接識別旗標 S110~S130:步驟 210: Process job execution agent component 211: Version Control Tool 212: Process configuration setting database 213: User Settings Management Interface 214: Upstream process 215: Downstream process 216, 217, 218, 221, 223: operating program 216a~216c, 221a~221c: thread 220: Process serial connection proxy component 222: Process serial identification database A16a, A21a, A21b, A21c: Business serial connection identification format B16a, B21a, B21b, B21c: process identification flag S110~S130: steps

圖1是依據本發明之一實施例繪示的作業流程調控方法流程圖。 圖2是依據本發明之一實施例繪示的應用情境圖。 FIG. 1 is a flowchart of a method for controlling a work flow according to an embodiment of the present invention. Fig. 2 is an application scenario diagram drawn according to an embodiment of the present invention.

S110~S130:步驟 S110~S130: steps

Claims (6)

一種作業流程調控方法,包括:由一流程作業執行代理元件從一流程組態設定資料庫取得一作業流程,其中該作業流程記錄有該些作業程式中的多個上游作業程式及多個下游作業程式個別的版號與執行時機,且該些上游作業程式形成一上游流程,該些下游作業程式形成接續於該上游流程的一下游流程;由一流程串接代理元件取得該些上游作業程式產生的多個業務串接識別格式,並據以產生多個流程串接識別旗標;反應於判定該些流程串接識別旗標中的至少一特定識別旗標已通過一業務串接識別規則,由該流程串接代理元件通知該些下游作業程式接續執行,其中該些上游作業程式包括一特定上游程式,該特定上游程式包括個別對應於該至少一特定識別旗標的至少一特定執行緒,且所述方法更包括:反應於判定該至少一特定識別旗標的數量匹配於該至少一特定執行緒的數量,判定該至少一特定識別旗標已通過該業務串接識別規則,或是反應於判定該至少一特定識別旗標的數量達到一預設門檻值,判定該至少一特定識別旗標已通過該業務串接識別規則。 A method for regulating and controlling a working process includes: obtaining a working flow from a flow configuration setting database by a flow execution agent component, wherein the working flow records multiple upstream working programs and multiple downstream working among the working programs The individual version number and execution timing of the program, and the upstream operating programs form an upstream process, and the downstream operating programs form a downstream process following the upstream process; the upstream operating programs are obtained by a process serial proxy component And generate multiple process concatenation identification flags accordingly; in response to determining that at least one of the process concatenation identification flags has passed a business concatenation identification rule, The process connection agent component notifies the downstream operating programs to continue execution, wherein the upstream operating programs include a specific upstream program, and the specific upstream program includes at least one specific thread corresponding to the at least one specific identification flag, and The method further includes: in response to determining that the number of the at least one specific identification flag matches the number of the at least one specific thread, determining that the at least one specific identification flag has passed the business cascade identification rule, or is reflected in the determination The number of the at least one specific identification flag reaches a preset threshold, and it is determined that the at least one specific identification flag has passed the service connection identification rule. 如申請專利範圍第1項所述的方法,更包括:反應於偵測到被提交至一版本控制工具的一特定作業程式,由該流程作業執行代理元件提取該特定作業程式的作業資訊及版號 資訊,並儲存至一流程組態設定資料庫,其中該流程組態設定資料庫記錄有多個作業程式及各該作業程式的作業資訊及版號資訊。 For example, the method described in item 1 of the scope of patent application further includes: in response to detecting a specific operating program submitted to a version control tool, the process operation execution agent component extracts the operating information and version of the specific operating program number The information is stored in a process configuration setting database, where the process configuration setting database records multiple operating programs and the operating information and version number information of each operating program. 如申請專利範圍第1項所述的方法,其中各該業務串接識別格式包括一動態參數欄位,該些流程串接識別旗標記錄於一流程串接識別資料庫,該些上游作業程式包括一第一程式,該第一程式包括至少一執行緒,該至少一執行緒中的一第一執行緒在執行完成後產生一第一業務串接識別格式,且由該流程串接代理元件取得該些上游作業程式產生的該些業務串接識別格式,並據以產生該些流程串接識別旗標的步驟包括:反應於偵測到該第一執行緒產生的該第一業務串接識別格式,由該流程串接代理元件將該第一業務串接識別格式中的該動態參數欄位置換為一當下系統參數,以產生對應於該第一執行緒的一第一流程串接識別旗標;將該第一流程串接識別旗標與該第一執行緒在該至少一執行緒中的一執行緒編號記錄於該流程串接識別資料庫;由該流程串接代理元件將該流程串接識別資料庫中的該第一流程串接識別旗標的使用狀態標示為一未使用狀態。 For example, the method described in item 1 of the scope of patent application, wherein each of the business cascade identification formats includes a dynamic parameter field, the process cascade identification flags are recorded in a process cascade identification database, and the upstream operating programs It includes a first program, the first program includes at least one thread, a first thread in the at least one thread generates a first service connection identification format after the execution is completed, and the proxy component is connected by the process The step of obtaining the business connection identification formats generated by the upstream operating programs and generating the process connection identification flags accordingly includes: responding to the detection of the first business connection identification generated by the first thread Format, the process cascade agent component changes the position of the dynamic parameter column in the first service cascade identification format to a current system parameter to generate a first process cascade identification flag corresponding to the first thread Mark; the first process concatenation identification flag and a thread number of the first thread in the at least one thread are recorded in the process concatenation identification database; the process is concatenated by the proxy component The use state of the first process serial identification flag in the serial identification database is marked as an unused state. 如申請專利範圍第3項所述的方法,更包括:反應於判定該第一流程串接識別旗標已被該些下游作業程式的任一取用,由該流程串接代理元件將該第一流程串接識別旗標的該使用狀態改變為一已使用狀態。 For example, the method described in item 3 of the scope of patent application further includes: in response to determining that the first process cascading identification flag has been used by any of the downstream operating programs, the process cascading agent component performs the first process The use status of a process serial identification flag is changed to a used status. 如申請專利範圍第3項所述的方法,其中業務串接識別規則記錄於該流程串接識別資料庫。 For the method described in item 3 of the scope of patent application, the business connection identification rules are recorded in the process connection identification database. 如申請專利範圍第3項所述的方法,其中該第一業務串接識別格式表徵為DAtoCY_${YYYMMDD},其中${YYYMMDD}為該動態參數欄位,該當下系統參數為一當天日期。 For the method described in item 3 of the scope of patent application, the first service connection identification format is characterized as DAtoCY_${YYYMMDD}, where ${YYYMMDD} is the dynamic parameter field, and the current system parameter is a date of the day.
TW108145657A 2019-12-13 2019-12-13 Method for controlling operation flow TWI714390B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108145657A TWI714390B (en) 2019-12-13 2019-12-13 Method for controlling operation flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108145657A TWI714390B (en) 2019-12-13 2019-12-13 Method for controlling operation flow

Publications (2)

Publication Number Publication Date
TWI714390B true TWI714390B (en) 2020-12-21
TW202122940A TW202122940A (en) 2021-06-16

Family

ID=74669716

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108145657A TWI714390B (en) 2019-12-13 2019-12-13 Method for controlling operation flow

Country Status (1)

Country Link
TW (1) TWI714390B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201428678A (en) * 2012-12-20 2014-07-16 Nvidia Corp Programmable blending in multi-threaded processing units
US20160062800A1 (en) * 2014-09-02 2016-03-03 Ab Initio Technology Llc Controlling data processing tasks
US20180225016A1 (en) * 2014-09-02 2018-08-09 Ab Initio Technology Llc Specifying control and data connections in graph-based programs
TW201913404A (en) * 2017-08-24 2019-04-01 美商谷歌有限責任公司 Method of executing tuple graphics program across the network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201428678A (en) * 2012-12-20 2014-07-16 Nvidia Corp Programmable blending in multi-threaded processing units
US20160062800A1 (en) * 2014-09-02 2016-03-03 Ab Initio Technology Llc Controlling data processing tasks
US20180225016A1 (en) * 2014-09-02 2018-08-09 Ab Initio Technology Llc Specifying control and data connections in graph-based programs
TW201913404A (en) * 2017-08-24 2019-04-01 美商谷歌有限責任公司 Method of executing tuple graphics program across the network

Also Published As

Publication number Publication date
TW202122940A (en) 2021-06-16

Similar Documents

Publication Publication Date Title
TW522297B (en) Automatic over-clock method for CPU
US20070266387A1 (en) Multithreaded computer system and multithread execution control method
JP5326374B2 (en) Processor, performance profiling apparatus, performance profiling program, and performance profiling method
JP4741304B2 (en) Data migration method or data migration system
JP2012079240A (en) Composite event processing device and composite event processing method
JP2009520268A5 (en)
US8453013B1 (en) System-hang recovery mechanisms for distributed systems
JP2007305029A (en) Processing time allocation method in real time os
US20180181553A1 (en) Providing insertion feature with clipboard manager application
TW200825925A (en) System and method for managing system management interrupts in a multiprocessor computer system
WO2020238860A1 (en) Distributed file batch processing method and apparatus, and readable storage medium
TWI714390B (en) Method for controlling operation flow
TW200903338A (en) Transactional debugger for a transactional memory system
JP6011639B2 (en) Information processing apparatus, information processing method, and information processing program
US10657022B2 (en) Input and output recording device and method, CPU and data read and write operation method thereof
TW201506786A (en) System and method for debugging procedure
JP2017107265A (en) Test scenario creation support system and test scenario creation support method
JP2011028438A (en) Application verification system and computer program
WO2017202083A1 (en) Microcode debugging method and single board
US7240348B2 (en) Suspending scenario generation method, server device, and program therefor
JP7097408B2 (en) Methods, devices, electronic devices and storage media for treating local hotspots
JP4962026B2 (en) User level process control device having process management function, method and program thereof
JP2008242633A (en) Control system and method for single user application in multi-user operating system
US7249348B2 (en) Non-interfering status inquiry for user threads
US20150277888A1 (en) Systems and methods to create a clean install of an application