TW202125236A - Developing method and developing device for event processing file - Google Patents

Developing method and developing device for event processing file Download PDF

Info

Publication number
TW202125236A
TW202125236A TW109105289A TW109105289A TW202125236A TW 202125236 A TW202125236 A TW 202125236A TW 109105289 A TW109105289 A TW 109105289A TW 109105289 A TW109105289 A TW 109105289A TW 202125236 A TW202125236 A TW 202125236A
Authority
TW
Taiwan
Prior art keywords
business
event
icon
event attribute
flowchart
Prior art date
Application number
TW109105289A
Other languages
Chinese (zh)
Other versions
TWI738216B (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 台達電子工業股份有限公司
Publication of TW202125236A publication Critical patent/TW202125236A/en
Application granted granted Critical
Publication of TWI738216B publication Critical patent/TWI738216B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven

Abstract

This present disclosure provides a developing method. The developing method includes steps of: receiving a drawing instruction from a user and generating a flowchart according to the drawing instruction; receiving a first editing instruction and a second editing instruction from the user and generating an event processing diagram according to the flowchart, the first editing instruction and the second editing instruction, wherein at least one event component is imported into the flowchart according to the first editing instruction, and event attributes of the flowchart are set according to the second editing instruction; and compiling the event processing diagram to generate the event processing file. The developing method and the developing device of the present disclosure can improve the design efficiency of the event processes and the development efficiency of event-driven systems.

Description

事件處理文件的開發方法與裝置Development method and device of event processing file

本案係關於一電腦技術領域,尤指一種事件處理文件的開發方法與裝置。This case is about a computer technology field, especially a method and device for developing event processing files.

在相關技術中,業務流程建模通常使用圖形標記法生成的流程圖來表現複雜的流程語義,以為業務人員提供直觀的協助。然而這種流程圖無法直接轉換為可執行的業務流程文件。特別地,在事件驅動系統中,往往需要根據事件處理過程的中間狀態來達成或者控制業務流程的走向,相關技術也難以滿足此需求。需要說明的是,在上述背景技術部分揭露的資訊僅用於加強對本案背景的理解,因此可以包括不構成對本領域普通技術人員已知的現有技術的資訊。In related technologies, business process modeling usually uses flowcharts generated by graphical notation to express complex process semantics and provide intuitive assistance to business personnel. However, this kind of flowchart cannot be directly converted into an executable business process file. In particular, in event-driven systems, it is often necessary to achieve or control the direction of the business process based on the intermediate state of the event processing process, and related technologies cannot meet this requirement. It should be noted that the information disclosed in the background art section above is only used to enhance the understanding of the background of the case, and therefore may include information that does not constitute the prior art known to those of ordinary skill in the art.

本案的目的在於提供一種事件處理文件的開發方法與事件處理文件的開發裝置,用於至少在一定程度上克服由於相關技術的限制和缺陷而導致的問題。The purpose of this case is to provide an event processing file development method and event processing file development device, which are used to overcome the problems caused by the limitations and defects of related technologies to at least a certain extent.

為達成前述目的,本案遂提供一種事件處理文件的開發方法,包括步驟:接收用戶的一繪製指令,根據繪製指令生成一流程圖;接收用戶的一第一編輯指令與一第二編輯指令,根據流程圖、第一編輯指令和第二編輯指令生成一事件處理圖,其中根據第一編輯指令在流程圖中導入至少一個業務元件,根據第二編輯指令設置流程圖的一事件屬性;以及編譯事件處理圖以生成一事件處理文件。In order to achieve the foregoing objective, this case provides a method for developing event processing files, which includes the steps of: receiving a drawing instruction from the user, and generating a flowchart according to the drawing instruction; receiving a first editing instruction and a second editing instruction from the user, according to The flowchart, the first editing instruction, and the second editing instruction generate an event processing diagram, wherein at least one business element is imported into the flowchart according to the first editing instruction, and an event attribute of the flowchart is set according to the second editing instruction; and the compilation event Process the diagram to generate an event processing file.

於一實施例中,開發方法還包括:為用戶提供用於繪製流程圖的圖示,圖示包括開始圖示、結束圖示、業務元件圖示、決策分支圖示、約束條件圖示和連接圖示。In one embodiment, the development method further includes: providing the user with an icon for drawing a flowchart. The icon includes a start icon, an end icon, a business element icon, a decision branch icon, a constraint condition icon, and a connection. Icon.

於一實施例中,業務元件包括描述文件和功能文件,功能文件包括實現至少一種業務功能的可執行代碼,描述文件包括功能文件的元資料(Metadata)和介面描述資訊。In one embodiment, the business element includes a description file and a function file. The function file includes executable code that implements at least one business function. The description file includes metadata and interface description information of the function file.

於一實施例中,流程圖包括業務元件圖示,第一編輯指令包括:點擊業務元件圖示並將其關聯至業務元件。In one embodiment, the flowchart includes a business element icon, and the first editing instruction includes: clicking on the business element icon and linking it to the business element.

於一實施例中,事件屬性包括開始事件屬性,開始事件屬性的種類包括資料輪詢觸發、資料推送觸發和表現層狀態轉換應用程式介面(Rest API: Representational State Transfer Application Programming Interface)觸發。In one embodiment, the event attributes include start event attributes, and the types of start event attributes include data polling trigger, data push trigger, and presentation layer state transfer application programming interface (Rest API: Representational State Transfer Application Programming Interface) trigger.

於一實施例中,流程圖包括開始圖示,第二編輯指令包括:點擊開始圖示,在打開的開始事件屬性編輯視窗中輸入開始事件屬性的參數。In one embodiment, the flowchart includes a start icon, and the second editing instruction includes: click the start icon, and enter the parameters of the start event attribute in the opened start event attribute editing window.

於一實施例中,事件屬性包括結束事件屬性,結束事件屬性包括結束事件的返回值和結束事件的執行條件。In one embodiment, the event attribute includes an end event attribute, and the end event attribute includes the return value of the end event and the execution condition of the end event.

於一實施例中, 流程圖包括結束圖示,第二編輯指令包括:點擊結束圖示,在打開的結束事件屬性編輯視窗中輸入結束事件屬性的參數。In one embodiment, the flowchart includes an end icon, and the second editing instruction includes: clicking the end icon, and inputting the end event attribute parameter in the opened end event attribute editing window.

於一實施例中,事件屬性包括業務事件屬性,業務事件屬性包括可執行方法,可執行方法為業務元件的至少一業務功能的其中之一。In one embodiment, the event attribute includes a business event attribute, and the business event attribute includes an executable method, and the executable method is one of at least one business function of the business element.

於一實施例中,業務事件屬性包括輸入參數和返回值。In one embodiment, the business event attributes include input parameters and return values.

於一實施例中,業務事件屬性包括執行條件。In one embodiment, the business event attributes include execution conditions.

於一實施例中,業務事件屬性包括執行模式,執行模式為串行或並行。In one embodiment, the business event attribute includes an execution mode, and the execution mode is serial or parallel.

於一實施例中,流程圖包括業務元件圖示和連接圖示,第二編輯指令包括:點擊指向業務元件圖示的連接圖示,在打開的業務事件屬性編輯視窗中輸入業務事件屬性的參數。In one embodiment, the flowchart includes a business element icon and a connection icon, and the second editing instruction includes: clicking the connection icon pointing to the business element icon, and inputting the parameters of the business event attribute in the opened business event attribute editing window .

為達成前述目的,本案更提供一種事件處理文件的開發裝置,包括:繪製模塊,接收用戶的繪製指令,根據繪製指令生成流程圖;編輯模塊,接收用戶的第一編輯指令與第二編輯指令,根據流程圖、第一編輯指令和第二編輯指令生成事件處理圖,其中,編輯模塊根據第一編輯指令在流程圖中導入至少一個業務元件,且根據第二編輯指令設置流程圖的事件屬性;以及編譯模塊,編譯事件處理圖以生成事件處理文件。In order to achieve the foregoing purpose, this case further provides a development device for event processing files, including: a drawing module, which receives user drawing instructions, and generates a flowchart according to the drawing instructions; an editing module, which receives user first editing instructions and second editing instructions, Generate an event processing diagram according to the flowchart, the first editing instruction, and the second editing instruction, wherein the editing module imports at least one business element in the flowchart according to the first editing instruction, and sets the event attribute of the flowchart according to the second editing instruction; And compile the module, compile the event processing diagram to generate the event processing file.

於一實施例中,業務元件包括描述文件和功能文件,功能文件包括實現至少一種業務功能的可執行代碼,描述文件包括功能文件的元資料和介面描述資訊。In one embodiment, the business element includes a description file and a function file. The function file includes executable code for realizing at least one business function. The description file includes metadata and interface description information of the function file.

於一實施例中,流程圖包括業務元件圖示,第一編輯指令包括:點擊業務元件圖示並將其關聯至業務元件。In one embodiment, the flowchart includes a business element icon, and the first editing instruction includes: clicking on the business element icon and linking it to the business element.

於一實施例中,事件屬性包括開始事件屬性,開始事件屬性的種類包括資料輪詢觸發、資料推送觸發和表現層狀態轉換應用程式介面觸發。In one embodiment, the event attributes include start event attributes, and the types of start event attributes include data polling trigger, data push trigger, and presentation layer state transition application program interface trigger.

於一實施例中,流程圖包括開始圖示,第二編輯指令包括:點擊開始圖示,在打開的開始事件屬性編輯視窗中輸入開始事件屬性的參數。In one embodiment, the flowchart includes a start icon, and the second editing instruction includes: click the start icon, and enter the parameters of the start event attribute in the opened start event attribute editing window.

於一實施例中,事件屬性包括結束事件屬性,流程圖包括結束圖示,第二編輯指令包括:點擊結束圖示,在打開的結束事件屬性編輯視窗中輸入結束事件屬性的參數。In one embodiment, the event attribute includes an end event attribute, the flowchart includes an end icon, and the second editing instruction includes: clicking the end icon and inputting the end event attribute parameter in the opened end event attribute editing window.

於一實施例中,事件屬性包括業務事件屬性,業務事件屬性包括可執行方法,可執行方法為業務元件的至少一業務功能的其中之一。In one embodiment, the event attribute includes a business event attribute, and the business event attribute includes an executable method, and the executable method is one of at least one business function of the business element.

於一實施例中,業務事件屬性包括輸入參數和返回值。In one embodiment, the business event attributes include input parameters and return values.

於一實施例中,業務事件屬性包括執行條件。In one embodiment, the business event attributes include execution conditions.

於一實施例中,業務事件屬性包括執行模式,執行模式為串行或並行。In one embodiment, the business event attribute includes an execution mode, and the execution mode is serial or parallel.

於一實施例中,流程圖包括業務元件圖示和連接圖示,第二編輯指令包括:點擊指向業務元件圖示的連接圖示,在打開的業務事件屬性編輯視窗中輸入業務事件屬性的參數。In one embodiment, the flowchart includes a business element icon and a connection icon, and the second editing instruction includes: clicking the connection icon pointing to the business element icon, and inputting the parameters of the business event attribute in the opened business event attribute editing window .

為達成前述目的,本案另提供一種事件處理文件的開發裝置,包括:記憶體;以及耦合到所屬記憶體的處理器,處理器被配置為基於存儲在記憶體中的指令,執行如上述任意一項的方法。In order to achieve the foregoing objective, this case also provides an event processing file development device, including: a memory; and a processor coupled to the associated memory. The processor is configured to execute any of the above based on instructions stored in the memory. Item method.

為達成前述目的,本案再提供一種電腦可讀存儲媒體,其上存儲有程式,該程式被處理器執行時實現在本案的一種示例性實施例中。In order to achieve the foregoing objective, the present case further provides a computer-readable storage medium on which a program is stored, and the program is implemented in an exemplary embodiment of the present case when the program is executed by a processor.

本案提供的事件處理文件的開發方法,根據用戶的繪製指令以及編輯指令,將業務元件導入到流程圖中,並對流程圖中的事件屬性進行設置,生成事件處理圖並進行編譯,以生成可執行的事件處理文件,編譯的過程包含事件處理文件語法語義的智慧校驗,該事件處理文件可以被事件驅動系統加載並生成事件路由,提高了業務流程的設計效率和事件驅動系統的開發效率。另一方面,因本案的事件屬性的編輯獨立於業務元件的功能,也能夠很好地實現業務流程的動態演進和更新。The event processing file development method provided in this case imports business components into the flowchart according to the user’s drawing instructions and editing instructions, sets the event attributes in the flowchart, generates event processing diagrams and compiles them to generate The execution of the event processing file, the compilation process includes the smart verification of the syntax and semantics of the event processing file. The event processing file can be loaded by the event-driven system and generate event routing, which improves the design efficiency of the business process and the development efficiency of the event-driven system. On the other hand, because the editing of event attributes in this case is independent of the functions of business components, it can also well realize the dynamic evolution and update of business processes.

應當理解的是,以上的一般描述和後文的細節描述僅是示例性和解釋性的,並不能限制本案。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the case.

現在將參考附圖更全面地描述示例實施方式。然而,示例實施方式能夠以多種形式實施,且不應被理解為限於在此闡述的範例;相反,提供這些實施方式使得本案將更加全面和完整,並將示例實施方式的構思全面地傳達給本領域的技術人員。所描述的特徵、結構或特性可以以任何合適的方式結合在一個或更多實施方式中。在下面的描述中,提供許多具體細節從而給出對本案的實施方式的充分理解。然而,本領域技術人員將意識到,可以實踐本案的技術方案而省略該特定細節中的一個或更多,或者可以採用其它的方法、組成元件、裝置、步驟等。在其它情況下,不詳細示出或描述公知技術方案以避免喧賓奪主而使得本案的各方面變得模糊。Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms, and should not be construed as being limited to the examples set forth herein; on the contrary, the provision of these embodiments makes this case more comprehensive and complete, and fully conveys the idea of the example embodiments to the present Technicians in the field. The described features, structures or characteristics can be combined in one or more embodiments in any suitable way. In the following description, many specific details are provided to give a full understanding of the implementation of this case. However, those skilled in the art will realize that the technical solutions of the present case can be practiced without one or more of the specific details, or other methods, constituent elements, devices, steps, etc. can be used. In other cases, the known technical solutions are not shown or described in detail to avoid overwhelming the crowd and obscure all aspects of the case.

此外,附圖僅為本案的示意性圖解,圖中相同的附圖示記表示相同或類似的部分,因而將省略對它們的重複描述。附圖中所示的一些方框圖是功能實體,不一定必須與物理或邏輯上獨立的實體相對應。可以採用軟件形式來實現這些功能實體,或在一個或多個硬件模塊或集成電路中實現這些功能實體,或在不同網絡和/或處理器裝置和/或微控制器裝置中實現這些功能實體。In addition, the drawings are only schematic illustrations of the present case, and the same drawing symbols in the drawings indicate the same or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in the form of software, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and/or processor devices and/or microcontroller devices.

下面結合附圖對本案示例實施方式進行詳細說明。The exemplary implementation of this case will be described in detail below with reference to the accompanying drawings.

第1圖是本案一個示例性實施例中事件處理文件的開發方法的流程圖。參考第1圖,事件處理文件的開發方法可以包括:Figure 1 is a flowchart of a method for developing an event processing file in an exemplary embodiment of this case. Referring to Figure 1, the development method of event handling files can include:

步驟S1,接收用戶的一繪製指令,根據該繪製指令生成流程圖;Step S1, receiving a drawing instruction from the user, and generating a flowchart according to the drawing instruction;

步驟S2,接收用戶的一第一編輯指令與一第二編輯指令,根據該流程圖、該第一編輯指令和該第二編輯指令生成事件處理圖,其中根據該第一編輯指令在該流程圖中導入至少一個業務元件,根據該第二編輯指令設置該流程圖的一事件屬性;Step S2, receiving a first editing instruction and a second editing instruction from the user, generating an event processing diagram according to the flowchart, the first editing instruction, and the second editing instruction, wherein the first editing instruction is described in the flowchart according to the first editing instruction. Import at least one business element into the, and set an event attribute of the flowchart according to the second editing instruction;

步驟S3,編譯該事件處理圖以生成一事件處理文件。Step S3, compiling the event processing diagram to generate an event processing file.

本案提供的事件處理文件的開發方法,根據用戶的繪製指令以及編輯指令,將業務元件導入到流程圖中,並對流程圖中的事件屬性進行設置,生成事件處理圖並進行編譯,以生成可執行的業務流程文件,也即事件處理文件,該事件處理文件可以被事件驅動系統加載並生成事件路由,提高了業務流程的設計效率和事件驅動系統的開發效率。另一方面,因本案的事件屬性的設置獨立於業務元件的功能,可通過設置事件屬性來豐富或者控制業務流程的走向,也能夠很好地實現業務流程的動態演進和更新。The event processing file development method provided in this case imports business components into the flowchart according to the user’s drawing instructions and editing instructions, sets the event attributes in the flowchart, generates event processing diagrams and compiles them to generate The executed business process file, that is, the event processing file, can be loaded by the event-driven system and generate event routing, which improves the design efficiency of the business process and the development efficiency of the event-driven system. On the other hand, because the setting of event attributes in this case is independent of the functions of business elements, the trend of business processes can be enriched or controlled by setting event attributes, and the dynamic evolution and update of business processes can also be well realized.

下面對開發方法100的各步驟進行詳細說明。The steps of the development method 100 are described in detail below.

第2圖是本案一個示例性實施例提供的編輯界面及流程圖的示意圖。Figure 2 is a schematic diagram of an editing interface and flowchart provided by an exemplary embodiment of this case.

參考第2圖,在本方法的示例性實施例中,在步驟S1中,方法100還可以包括為用戶提供用於繪製該流程圖的圖示,圖示例如包括但不限於開始圖示21、結束圖示22、業務元件圖示23、決策分支圖示24、約束條件圖示25和連接圖示26,該些圖示可供客戶實現豐富的業務流程描述方案。Referring to Figure 2, in an exemplary embodiment of the method, in step S1, the method 100 may further include providing the user with an illustration for drawing the flowchart. The illustration includes, but is not limited to, the start illustration 21, The end diagram 22, the business component diagram 23, the decision branch diagram 24, the constraint condition diagram 25, and the connection diagram 26, these diagrams can be used for customers to implement rich business process description solutions.

其中,開始圖示21和結束圖示22用於表示業務流程的開始和結束;業務元件圖示23用於表示業務功能;決策分支圖示24用於表示決策條件以及每個決策條件對應的執行路徑;約束條件圖形25用於表示邏輯關係約束條件,例如與、或、異或等;連接圖示26用於表示執行順序,例如,當連接圖示由業務元件圖示A指向業務元件圖示B時,則表示先執行業務元件圖示A所關聯的業務元件,再執行業務元件圖示B所關聯的業務元件。使用者可以根據業務流程的實際需要選擇合適的圖示並將其通過添加、拖放等形式繪製到一使用者編輯界面200上,以形成如第2圖所示的流程圖。上述圖示僅為示意,在其他一些實施例中,還可以為使用者提供更多的圖示種類。在本案另一些實施例中,編輯界面200還可以包括其他設計樣式,第2圖所示的編輯界面200僅為示意。Among them, the start icon 21 and the end icon 22 are used to indicate the beginning and end of the business process; the business element icon 23 is used to indicate the business function; the decision branch icon 24 is used to indicate the decision condition and the corresponding execution of each decision condition Path; Constraint condition graphic 25 is used to represent logical relationship constraint conditions, such as AND, OR, XOR, etc.; connection graphic 26 is used to indicate the execution sequence, for example, when the connection graphic points from the business element icon A to the business element icon When B, it means that the business element associated with business element icon A is executed first, and then the business element associated with business element icon B is executed. The user can select a suitable icon according to the actual needs of the business process and draw it on a user editing interface 200 by adding, dragging and dropping, etc., to form the flowchart shown in FIG. 2. The above-mentioned diagrams are merely illustrative, and in some other embodiments, more types of diagrams may be provided for the user. In other embodiments of the present case, the editing interface 200 may also include other design styles, and the editing interface 200 shown in FIG. 2 is only for illustration.

在步驟S1中,使用者的繪製指令包括但不限於拖放。例如,使用者可以按業務流程的需要,通過點擊圖形編輯界面200左側圖示整理欄裡的圖示將所需圖示放置在使用者編輯界面上,並通過拖放動作調整圖示的大小、絕對位置以及圖示之間的相對位置。本案的開發方法可以多次接收用戶的上述類型的繪製指令,並根據繪製指令在使用者編輯界面200中生成流程圖。需要說明的是,第2圖所示的流程圖僅為示例,流程圖中可以僅包括上述圖示中的部分圖示,例如,流程圖可以僅由開始圖示21、結束圖示22、業務元件圖示24和連接圖示26組成。在本案的另一些實施例中,流程圖還可包括其他類型的圖示,且當前的圖示也可以設計為其他形狀,本案不以此為限。並且,本領域技術人員也可以自行設計流程圖的圖示,即不從第2圖所示的圖示整理欄中調用。In step S1, the user's drawing instruction includes but is not limited to drag and drop. For example, according to the needs of the business process, the user can click the icon in the icon organization column on the left side of the graphical editing interface 200 to place the desired icon on the user editing interface, and adjust the size of the icon by dragging and dropping. The absolute position and the relative position between the icons. The development method of this case can receive the above-mentioned drawing instructions of the user multiple times, and generate a flowchart in the user editing interface 200 according to the drawing instructions. It should be noted that the flowchart shown in Figure 2 is only an example, and the flowchart may only include some of the above illustrations. For example, the flowchart may consist of only the start icon 21, the end icon 22, and the business The component diagram 24 and the connection diagram 26 are composed. In other embodiments of the present case, the flowchart may also include other types of icons, and the current icons may also be designed in other shapes, and the present case is not limited to this. Moreover, those skilled in the art can also design the diagram of the flowchart by themselves, that is, not call it from the diagram column shown in FIG. 2.

在步驟S2,根據第一編輯指令在流程圖中導入至少一個業務元件,根據第二編輯指令設置流程圖的事件屬性。In step S2, at least one service element is imported into the flowchart according to the first editing instruction, and the event attribute of the flowchart is set according to the second editing instruction.

第3圖是本案一個示例性實施例中在第2圖所示的流程圖中導入業務元件的示意圖。參考第3圖,對於業務元件圖示,第一編輯指令包括但不限於點擊業務元件圖示並將其關聯至業務元件。Figure 3 is a schematic diagram of importing business elements into the flowchart shown in Figure 2 in an exemplary embodiment of this case. Referring to Figure 3, for the business element icon, the first editing instruction includes but is not limited to clicking on the business element icon and associating it to the business element.

當使用者點擊業務元件圖示23並將其關聯至業務元件後,本案的開發方法可以根據該第一編輯指令導入業務元件圖示23對應的業務元件。為了提高用戶的設計效率,導入完成後可以在業務元件圖示23上顯示關聯的業務元件的名稱。在本實施例中,第一編輯指令可以在流程圖全部生成之後執行,在另一些實施例中,也可以在流程圖部分生成之後執行第一編輯指令,只要有業務元件圖示即可。After the user clicks on the business element icon 23 and associates it with the business element, the development method of this case can import the business element corresponding to the business element icon 23 according to the first editing instruction. In order to improve the design efficiency of the user, the name of the associated business component can be displayed on the business component icon 23 after the import is completed. In this embodiment, the first editing instruction can be executed after the flowchart is completely generated. In other embodiments, the first editing instruction can also be executed after the flowchart is partially generated, as long as there is a business element icon.

在本案一個示例性實施例中,業務元件包括一描述文件和一功能文件。其中,功能文件為一可執行代碼,用以執行一種或多種業務功能;描述文件包括功能文件的一元資料和一介面描述資訊。可以在功能文件對應的描述文件中根據實際需要添加所有或部分業務功能的介面描述,無需更改功能文件即可實現對業務功能的全部或部分暴露。In an exemplary embodiment of this case, the business element includes a description file and a function file. Among them, the function file is an executable code for executing one or more business functions; the description file includes the metadata of the function file and an interface description information. The interface description of all or part of the business function can be added to the description file corresponding to the function file according to actual needs, and all or part of the business function can be exposed without changing the function file.

在本案的一個示例性實施例中,允許採用一預設描述語言編寫不同業務單元對應的描述文件,不同的業務單元對應的功能文件可以由相同或不同的程式設計語言編寫,具有良好的擴展性。預設描述語言例如可以為XML,但本案不以此為限。此外,可以提供包括常用業務功能的業務元件庫供使用者調用,以進一步提高業務流程的設計效率。在本案的另一些實施例中,使用者也可以根據業務需要自行編寫業務元件。In an exemplary embodiment of this case, it is allowed to use a preset description language to write description files corresponding to different business units. The function files corresponding to different business units can be written in the same or different programming languages, which has good scalability. . The default description language may be XML, for example, but this case is not limited to this. In addition, a business component library including common business functions can be provided for users to call, so as to further improve the design efficiency of business processes. In some other embodiments of this case, users can also write business components by themselves according to business needs.

流程圖雖然能大致表示業務流程的執行方向,但不能根據事件屬性來豐富或者控制業務流程的走向。在步驟S2中,還需要根據第二編輯指令設置流程圖的事件屬性,事件屬性的編輯獨立於業務元件的功能, 能更好地實現業務流程的動態演進和更新。Although flowcharts can roughly indicate the direction of business process execution, they cannot enrich or control the direction of business processes based on event attributes. In step S2, it is also necessary to set the event attribute of the flowchart according to the second editing instruction. The editing of the event attribute is independent of the function of the business element, which can better realize the dynamic evolution and update of the business process.

在本案的一個示例性實施例中,事件屬性包括一開始事件屬性。開始事件屬性決定了業務流程的流程開始模式,即通過何種條件觸發業務流程的執行。In an exemplary embodiment of this case, the event attribute includes the initial event attribute. The start event attribute determines the process start mode of the business process, that is, what conditions trigger the execution of the business process.

第4圖為本案一個示例性實施例中的開始事件屬性的編輯視窗。Figure 4 is an editing window for the attributes of the start event in an exemplary embodiment of the present invention.

參照第3圖和第4圖,使用者的第二編輯指令包括但不限於點擊開始事件圖示,在打開的開始事件屬性的編輯視窗中對開始事件的屬性進行設定。在第4圖所示的實施例中,本案提供了timer、external和空格三種圖示供使用者點擊選擇,依次對應於資料輪詢觸發、資料推送觸發和Rest API觸發這三種等常用的事件驅動系統的觸發模式,提高了使用者的開發效率。但本案不以此為限,本領域技術人員應當知曉,開始事件屬性還可以包括其他種類的常用觸發模式。Referring to FIGS. 3 and 4, the user's second editing command includes but is not limited to clicking the start event icon, and the properties of the start event are set in the opened edit window of the start event properties. In the embodiment shown in Figure 4, this case provides three icons of timer, external, and space for users to click and choose, which in turn correspond to the three commonly used event-driven data polling triggers, data push triggers, and Rest API triggers. The trigger mode of the system improves the user's development efficiency. However, this case is not limited to this, and those skilled in the art should know that the start event attribute can also include other types of commonly used trigger modes.

在本案的一個示例性實施例中,事件屬性包括一業務事件屬性,業務事件屬性包括可執行方法,該可執行方法決定了業務流程中的該業務元件需執行的業務功能。舉例說明如下:假設一業務元件包括A、B、C三個業務功能,通過對可執行方法進行設置,可選擇該三個業務功能的其中之一,靈活運用業務元件。In an exemplary embodiment of this case, the event attribute includes a business event attribute, and the business event attribute includes an executable method, and the executable method determines the business function to be executed by the business element in the business process. An example is as follows: Suppose a business element includes three business functions A, B, and C. By setting the executable method, one of the three business functions can be selected and the business element can be used flexibly.

在本案的另一些實施例中,業務事件屬性還可以包括一輸入參數和一返回值,通過設置輸入參數和返回值可豐富業務邏輯。舉例說明如下:假設在流程圖中業務元件A和業務元件B沒有順序連接的關係,但業務元件A需要調用業務元件B的返回值,則可以通過設置業務元件A的輸入參數為業務元件B的返回值,來實現對業務元件B的返回值的調用。需要說明的是,業務事件屬性的輸入參數和返回值都可設置為空(null),其中,當業務事件屬性的輸入參數設置為空時,該業務元件的實際輸入參數為與之順序相連的上一業務元件的返回值;當業務事件屬性的返回值設置為空時,則表示該業務元件沒有返回值。In some other embodiments of this case, the business event attribute may also include an input parameter and a return value, and the business logic can be enriched by setting the input parameter and return value. An example is as follows: Assuming that there is no sequential connection between business element A and business element B in the flowchart, but business element A needs to call the return value of business element B, you can set the input parameters of business element A to that of business element B The return value is used to implement the call to the return value of business element B. It should be noted that the input parameter and return value of the business event attribute can be set to null, where, when the input parameter of the business event attribute is set to null, the actual input parameter of the business element is connected to it in sequence The return value of the last business element; when the return value of the business event attribute is set to null, it means that the business element has no return value.

本案的另一些實施例中,業務事件屬性還包括一執行模式,該執行模式例如為串行或並行。仍以上述業務元件A和業務元件B舉例,可設置業務元件B的執行模式為串行,則業務元件A會等待業務元件B執行完成取得返回值之後再執行。In some other embodiments of this case, the business event attribute further includes an execution mode, and the execution mode is, for example, serial or parallel. Still taking the above-mentioned service component A and service component B as examples, the execution mode of service component B can be set to serial, and then service component A will wait for service component B to complete execution and obtain a return value before executing.

在本案的另一些實施例中,業務事件屬性還可包括一執行條件,即執行業務元件的的約束條件。In other embodiments of this case, the business event attribute may also include an execution condition, that is, a constraint condition for executing the business element.

當業務元件不變,但需要調整部分業務流程時,通過對業務事件屬性進行設置,無需重新繪製流程圖,也無需重新導入業務元件,即可對業務流程進行修改,生成新的事件處理圖並進行編譯,大大節約了使用者的業務流程的設計階段。When the business components remain unchanged but part of the business process needs to be adjusted, by setting the business event attributes, there is no need to redraw the flowchart or re-import the business components to modify the business process to generate a new event processing diagram and Compiling greatly saves the design phase of the user's business process.

第5圖為本案一個示例性實施例中的業務事件屬性的編輯視窗。Figure 5 is an editing window for business event attributes in an exemplary embodiment of this case.

參考第3圖和第5圖,使用者的第二編輯指令包括但不限於點擊指向目標業務元件圖示的連接圖示,在打開的業務事件屬性的編輯視窗中對業務事件屬性進行設定。With reference to Figures 3 and 5, the user's second editing instruction includes but is not limited to clicking the connection icon pointing to the target business component icon, and setting the business event attribute in the opened business event attribute editing window.

在第5圖中,欄位condition表示執行條件,欄位元mode表示執行模式,欄位元operationId表示可執行方法,欄位inputParam表示輸入參數,欄位return表示返回值,用戶可在打開的編輯視窗的對應欄位元中輸入業務事件屬性的參數。需要注意的是,在本案的另一些實施例中,使用者也可以根據實際情況自行調整或設置業務事件屬性的種類和參數。In Figure 5, the field condition indicates the execution condition, the field mode indicates the execution mode, the field operationId indicates the executable method, the field inputParam indicates the input parameter, and the field return indicates the return value. The user can edit in the open Enter the parameters of the business event attributes in the corresponding fields of the window. It should be noted that in other embodiments of this case, users can also adjust or set the types and parameters of business event attributes by themselves according to actual conditions.

在本案的一個示例性實施例中,流程圖的事件屬性包括結束事件屬性。In an exemplary embodiment of this case, the event attribute of the flowchart includes an end event attribute.

第6圖為本案一個示例性實施例中的結束事件屬性的編輯視窗。Figure 6 shows the editing window of the end event attribute in an exemplary embodiment of this case.

參考第6圖,使用者的第二編輯指令包括但不限於點擊指向結束圖示的連接圖示,在打開的結束事件屬性的編輯視窗中,輸入結束事件屬性的參數。在第6圖中,類似於業務元件的業務事件屬性,結束事件屬性包含結束事件的約束條件、執行模式和輸入參數,分別對應欄位condition、欄位mode和欄位inputParam,用戶可以在對應欄位元中輸入結束事件屬性的參數。例如,當欄位condition、欄位mode和欄位inputParam的參數都為空(null)時,則代表該結束事件無約束條件,執行模式為並行,且輸入參數為為與之順序相連的上一業務元件的返回值,也即為該業務流程的返回值。需要注意的是,在本案的另一些實施例中,使用者也可以根據實際情況自行調整或設置結束事件屬性的種類和參數。Referring to Figure 6, the user's second editing command includes, but is not limited to, clicking on the connection icon pointing to the end icon, and inputting the parameters of the end event attribute in the opened edit window of the end event attribute. In Figure 6, similar to the business event attribute of the business component, the end event attribute includes the constraint condition, execution mode and input parameters of the end event, corresponding to the field condition, field mode and field inputParam respectively. The user can enter the corresponding field Enter the parameter of the end event attribute in the bit. For example, when the parameters of the field condition, field mode, and field inputParam are all empty (null), it means that the end event has no constraint conditions, the execution mode is parallel, and the input parameter is the previous one connected to it in sequence The return value of the business component is the return value of the business process. It should be noted that in other embodiments of this case, the user can also adjust or set the types and parameters of the end event attributes by themselves according to the actual situation.

第7A圖至第7C圖為本案一個示例性實施例的事件屬性編輯示意圖。Figures 7A to 7C are schematic diagrams of editing event attributes of an exemplary embodiment of the present invention.

請先參照第7A圖至第7B圖,分別示出了業務元件“compute”和業務元件“smallHandler”的業務事件屬性的參數。在第7A圖, 欄位condition的參數為空,則代表業務元件“compute”無約束條件;欄位operationId的參數為“0000(compute)”,則代表該業務元件的可執行方法為編碼“0000”對應的業務功能,字元“(compute)”是為了便於使用者識別,該編碼對應的業務功能已在該業務元件的描述文件被定義;欄位inputParam的參數為空,則預設業務元件“compute”的輸入參數為業務元件“process”的返回值;欄位mode的參數為invoke,則代表該業務元件的執行模式為串行;欄位return的參數為var_compute,則代表該業務元件的返回值為var_compute。在第7B圖中,在業務元件“smallHandler”的屬性編輯視窗中,欄位元condition的參數為:$(var_compute).value>10,欄位inputParam 的參數為$(var_compute),欄位operetionId的參數為0000(handle),欄位return和欄位mode設置為空,則代表業務元件“smallHandler”的約束條件需要調用業務元件“compute”的返回值,其輸入參數為業務元件“compute”的返回值(也即var_compute的成員變數value),其可執行方法為參數0000對應的業務功能,其返回值為空,其執行模式為並行。第7C圖示出了該業務流程的結束事件的屬性參數,這些參數設置代表了結束事件無約束條件,執行模式為並行,輸入參數為業務元件“compute”的返回值。Please refer to Figures 7A to 7B first, which respectively show the business event attribute parameters of the business element "compute" and the business element "smallHandler". In Figure 7A, if the parameter of the field condition is empty, it means that the business element "compute" has no constraint conditions; the parameter of the field operationId is "0000(compute)", it means that the executable method of the business element is code "0000" "Corresponding business function, the character "(compute)" is to facilitate user identification, the business function corresponding to this code has been defined in the description file of the business element; the parameter of the field inputParam is empty, the business element is preset The input parameter of "compute" is the return value of the business element "process"; the parameter of the field mode is invoke, which means that the execution mode of the business element is serial; the parameter of the return field is var_compute, which represents the business element's The return value is var_compute. In Figure 7B, in the attribute editing window of the business component "smallHandler", the parameter of the field condition is: $(var_compute).value>10, the parameter of the field inputParam is $(var_compute), and the parameter of the field operationId The parameter is 0000 (handle), the field return and the field mode are set to empty, which means that the constraint condition of the business element "smallHandler" needs to call the return value of the business element "compute", and the input parameter is the return of the business element "compute" Value (that is, the member variable value of var_compute), its executable method is the business function corresponding to parameter 0000, its return value is empty, and its execution mode is parallel. Figure 7C shows the attribute parameters of the end event of the business process. These parameter settings represent that the end event is unconstrained, the execution mode is parallel, and the input parameter is the return value of the business element "compute".

因此,從上述實施例不難得出,儘管根據流程圖,業務元件“compute”、“smallHandler”和結束事件是並行的,但根據事件屬性,業務元件“smallHandler”或結束事件會等待業務元件“compute”執行完成後再執行。事件屬性的編輯獨立於業務元件的業務功能,可通過設置事件屬性來豐富或者控制業務流程的走向,也能夠很好地實現業務流程的動態演進和更新。Therefore, it is not difficult to conclude from the above embodiment that although according to the flowchart, the business elements "compute", "smallHandler" and the end event are parallel, according to the event attributes, the business element "smallHandler" or the end event will wait for the business element "compute" "Execute after the execution is complete. The editing of event attributes is independent of the business functions of business elements, and the trend of business processes can be enriched or controlled by setting event attributes, and the dynamic evolution and update of business processes can also be well realized.

在本案的另一些實施例中,開發方法還可以包括:接收使用者的第三編輯動作,根據第三編輯動作導入URL-mapping文件或groovy指令文件,作為對事件處理文件的補充,進一步豐富業務流程。其中,第三編輯動作包括但不限於在第2圖所示的編輯界面中對上述文件進行關聯。In other embodiments of this case, the development method may further include: receiving a third editing action of the user, and importing a URL-mapping file or a groovy instruction file according to the third editing action, as a supplement to the event processing file, and further enriching the business process. The third editing action includes, but is not limited to, associating the above-mentioned files in the editing interface shown in FIG. 2.

本案提供的事件處理文件的開發方法,根據用戶的繪製指令以及編輯指令,將業務元件導入到流程圖中,並對流程圖中的事件屬性進行設置,生成事件處理圖並進行編譯,以生成可執行的事件處理文件,該事件處理文件可以被事件驅動系統加載並生成事件路由,提高了業務流程的設計效率和事件驅動系統的開發效率。另一方面,因本案的事件屬性的編輯獨立於業務元件的功能,可通過設置事件屬性來豐富或者控制業務流程的走向,也能夠很好地實現業務流程的動態演進和更新。在部分實施例中,提供的圖形編輯界面允許用戶在界面中繪製流程圖並設定事件屬性,提高了用戶的業務開發效率。The event processing file development method provided in this case imports business components into the flowchart according to the user’s drawing instructions and editing instructions, sets the event attributes in the flowchart, generates event processing diagrams and compiles them to generate The executed event processing file can be loaded by the event-driven system and generate event routing, which improves the design efficiency of the business process and the development efficiency of the event-driven system. On the other hand, because the editing of the event attributes in this case is independent of the function of the business element, the trend of the business process can be enriched or controlled by setting the event attributes, and the dynamic evolution and update of the business process can also be well realized. In some embodiments, the provided graphical editing interface allows the user to draw a flowchart and set event attributes in the interface, which improves the user's business development efficiency.

對應於上述方法實施例,本案還提供一種事件處理文件的開發裝置,可以用於執行上述方法實施例。Corresponding to the above method embodiment, this case also provides an event processing file development device, which can be used to execute the above method embodiment.

第8圖是本案一個示例性實施例中事件處理文件的開發裝置的方塊圖。Figure 8 is a block diagram of an event processing file development device in an exemplary embodiment of this case.

參考第8圖,事件處理文件的開發裝置800可以包括:Referring to Figure 8, the device 800 for developing event processing files may include:

繪製模塊801,接收用戶的一繪製指令,根據該繪製指令生成一流程圖;The drawing module 801 receives a drawing instruction from the user, and generates a flowchart according to the drawing instruction;

編輯模塊802,接收用戶的一第一編輯指令與一第二編輯指令,根據該流程圖、該第一編輯指令和該第二編輯指令生成一事件處理圖,其中,根據該第一編輯指令在該流程圖中導入至少一個業務元件,根據該第二編輯指令設置該流程圖的事件屬性;The editing module 802 receives a first editing instruction and a second editing instruction from the user, and generates an event processing diagram according to the flowchart, the first editing instruction, and the second editing instruction, wherein, according to the first editing instruction At least one business element is imported into the flowchart, and the event attribute of the flowchart is set according to the second editing instruction;

編譯模塊803,編譯該事件處理圖以生成一事件處理文件。由於開發裝置800的各功能已在其對應的方法實施例中予以詳細說明,本案於此不再贅述。The compiling module 803 compiles the event processing graph to generate an event processing file. Since each function of the development device 800 has been described in detail in its corresponding method embodiment, this case will not be repeated here.

應當注意,儘管在上文詳細描述中提及了用於動作執行的設備的若干模組或者單元,但是這種劃分並非強制性的。實際上,根據本案的實施方式,上文描述的兩個或更多模組或者單元的特徵和功能可以在一個模組或者單元中具體化。反之,上文描述的一個模組或者單元的特徵和功能可以進一步劃分為由多個模組或者單元來具體化。It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the implementation of this case, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of a module or unit described above can be further divided into multiple modules or units to be embodied.

在本案的一個示例性實施例中,還提供了一種能夠實現上述方法的電子設備。In an exemplary embodiment of this case, an electronic device capable of implementing the above method is also provided.

所屬技術領域的技術人員能夠理解,本發明的各個方面可以實現為系統、方法或程式產品。因此,本發明的各個方面可以具體實現為以下形式,即:完全的硬體實施方式、完全的軟體實施方式(包括固件、微代碼等),或硬體和軟體方面結合的實施方式,這裡可以統稱為“電路”、“模組”或“系統”。Those skilled in the art can understand that various aspects of the present invention can be implemented as a system, a method, or a program product. Therefore, various aspects of the present invention can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software. Collectively referred to as "circuits", "modules" or "systems".

下面參照第9圖來描述根據本發明的這種實施方式的電子設備900。第9圖顯示的電子設備900僅僅是一個示例,不應對本發明實施例的功能和使用範圍帶來任何限制。The electronic device 900 according to this embodiment of the present invention will be described below with reference to FIG. 9. The electronic device 900 shown in FIG. 9 is only an example, and should not bring any limitation to the function and application scope of the embodiment of the present invention.

如第9圖所示,電子設備900以通用計算設備的形式表現。電子設備900的元件可以包括但不限於:上述至少一個處理單元910、上述至少一個存儲單元920、連接不同系統元件(包括存儲單元920和處理單元910)的匯流排930。As shown in Figure 9, the electronic device 900 is represented in the form of a general-purpose computing device. The components of the electronic device 900 may include, but are not limited to: the aforementioned at least one processing unit 910, the aforementioned at least one storage unit 920, and a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910).

其中,該存儲單元存儲有程式碼,該程式碼可以被該處理單元910執行,使得該處理單元910執行本說明書上述“示例性方法”部分中描述的根據本發明各種示例性實施方式的步驟。例如,該處理單元910可以執行如第1圖中所示的開發方法。Wherein, the storage unit stores a program code, which can be executed by the processing unit 910, so that the processing unit 910 executes the steps according to various exemplary embodiments of the present invention described in the "Exemplary Method" section of this specification. For example, the processing unit 910 can execute the development method as shown in Figure 1.

存儲單元920可以包括易失性存儲單元形式的可讀媒體,例如隨機存取存儲單元(RAM)9201和/或快取記憶體存儲單元9202,還可以進一步包括唯讀存儲單元(ROM)9203。The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 9201 and/or a cache storage unit 9202, and may further include a read-only storage unit (ROM) 9203.

存儲單元920還可以包括具有一組(至少一個)程式模組9205的程式/實用工具9204,這樣的程式模組9205包括但不限於:作業系統、一個或者多個應用程式、其它程式模組以及程式資料,這些示例中的每一個或某種組合中可能包括網路環境的實現。The storage unit 920 may also include a program/utility tool 9204 having a set (at least one) program module 9205. Such program module 9205 includes but is not limited to: an operating system, one or more application programs, other program modules, and Program data, each of these examples or some combination may include the realization of the network environment.

匯流排930可以為表示幾類匯流排結構中的一種或多種,包括存儲單元匯流排或者存儲單元控制器、週邊匯流排、圖形加速埠、處理單元或者使用多種匯流排結構中的任意匯流排結構的局域匯流排。The bus 930 may represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or any bus structure using a variety of bus structures Local bus.

電子設備900也可以與一個或多個外部設備600(例如鍵盤、指向設備、藍牙設備等)通信,還可與一個或者多個使得使用者能與該電子設備900交互的設備通信,和/或與使得該電子設備900能與一個或多個其它計算設備進行通信的任何設備(例如路由器、數據機等等)通信。這種通信可以通過輸入/輸出(I/O)介面950進行。並且,電子設備900還可以通過網路介面卡960與一個或者多個網路(例如區域網(LAN),廣域網路(WAN)和/或公共網路,例如網際網路)通信。如圖所示,網路介面卡960通過匯流排930與電子設備900的其它模組通信。應當明白,儘管圖中未示出,可以結合電子設備900使用其它硬體和/或軟體模組,包括但不限於:微代碼、裝置驅動程式、冗餘處理單元、外部磁片驅動陣列、RAID系統、磁帶驅動器以及資料備份存儲系統等。The electronic device 900 may also communicate with one or more external devices 600 (such as keyboards, pointing devices, Bluetooth devices, etc.), and may also communicate with one or more devices that enable a user to interact with the electronic device 900, and/or Communicate with any device (eg, router, modem, etc.) that enables the electronic device 900 to communicate with one or more other computing devices. This communication can be performed through an input/output (I/O) interface 950. In addition, the electronic device 900 may also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network interface card 960. As shown in the figure, the network interface card 960 communicates with other modules of the electronic device 900 through the bus 930. It should be understood that although not shown in the figure, other hardware and/or software modules can be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID System, tape drive and data backup storage system, etc.

通過以上的實施方式的描述,本領域的技術人員易於理解,這裡描述的示例實施方式可以通過軟體實現,也可以通過軟體結合必要的硬體的方式來實現。因此,根據本案實施方式的技術方案可以以軟體產品的形式體現出來,該軟體產品可以存儲在一個非易失性存儲媒體(可以是CD-ROM,硬碟,移動硬碟等)中或網路上,包括若干指令以使得一台計算設備(可以是個人電腦、伺服器、終端裝置、或者網路設備等)執行根據本案實施方式的方法。Through the description of the above embodiments, those skilled in the art can easily understand that the example embodiments described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution according to the implementation of this case can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, hard disk, removable hard disk, etc.) or on the Internet , Including several instructions to enable a computing device (which can be a personal computer, server, terminal device, or network device, etc.) to execute the method according to the implementation of this case.

在本案的一個示例性實施例中,還提供了一種電腦可讀存儲媒體,其上存儲有能夠實現本說明書上述方法的程式產品。在一些可能的實施方式中,本發明的各個方面還可以實現為一種程式產品的形式,其包括程式碼,當該程式產品在終端設備上運行時,該程式碼用於使該終端設備執行本說明書上述“示例性方法”部分中描述的根據本發明各種示例性實施方式的步驟。In an exemplary embodiment of this case, a computer-readable storage medium is also provided, on which is stored a program product capable of implementing the above-mentioned method in this specification. In some possible implementation manners, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code. When the program product runs on a terminal device, the program code is used to make the terminal device execute the program. The steps according to various exemplary embodiments of the present invention are described in the above-mentioned "Exemplary Method" section of the specification.

參考第10圖所示,描述了根據本發明的實施方式的用於實現上述方法的程式產品1000,其可以採用可擕式緊湊硬碟唯讀記憶體(CD-ROM)並包括程式碼,並可以在終端設備,例如個人電腦上運行。然而,本發明的程式產品不限於此,在本文件中,可讀存儲媒體可以是任何包括或存儲程式的有形媒體,該程式可以被指令執行系統、裝置或者器件使用或者與其結合使用。With reference to Figure 10, a program product 1000 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact hard disk read-only memory (CD-ROM) and include program codes, and It can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, the readable storage medium can be any tangible medium that includes or stores a program, and the program can be used by or combined with an instruction execution system, device, or device.

該程式產品可以採用一個或多個可讀媒體的任意組合。可讀媒體可以是可讀信號媒體或者可讀存儲媒體。可讀存儲媒體例如可以為但不限於電、磁、光、電磁、紅外線、或半導體的系統、裝置或器件,或者任意以上的組合。可讀存儲媒體的更具體的例子(非窮舉的列表)包括:具有一個或多個導線的電連接、可擕式硬碟、硬碟、隨機存取記憶體(RAM)、唯讀記憶體(ROM)、可擦式可程式設計唯讀記憶體(EPROM或快閃記憶體)、光纖、可擕式緊湊硬碟唯讀記憶體(CD-ROM)、光記憶體件、磁記憶體件、或者上述的任意合適的組合。The program product can use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable hard drives, hard drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact hard disk read-only memory (CD-ROM), optical memory, magnetic memory , Or any suitable combination of the above.

電腦可讀信號媒體可以包括在基帶中或者作為載波一部分傳播的資料信號,其中承載了可讀程式碼。這種傳播的資料信號可以採用多種形式,包括但不限於電磁信號、光信號或上述的任意合適的組合。可讀信號媒體還可以是可讀存儲媒體以外的任何可讀媒體,該可讀媒體可以發送、傳播或者傳輸用於由指令執行系統、裝置或者器件使用或者與其結合使用的程式。The computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, and readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The readable signal medium may also be any readable medium other than a readable storage medium, and the readable medium may send, propagate, or transmit a program for use by or in combination with the instruction execution system, apparatus, or device.

可讀媒體上包括的程式碼可以用任何適當的媒體傳輸,包括但不限於無線、有線、光纜、RF等等,或者上述的任意合適的組合。The program code included on the readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.

可以以一種或多種程式設計語言的任意組合來編寫用於執行本發明操作的程式碼,該程式設計語言包括物件導向的程式設計語言—諸如Java、C++等,還包括常規的過程式程式設計語言—諸如“C”語言或類似的程式設計語言。程式碼可以完全地在使用者計算設備上執行、部分地在使用者設備上執行、作為一個獨立的套裝軟體執行、部分在使用者計算設備上部分在遠端計算設備上執行、或者完全在遠端計算設備或伺服器上執行。在涉及遠端計算設備的情形中,遠端計算設備可以通過任意種類的網路,包括區域網路(LAN)或廣域網路(WAN),連接到使用者計算設備,或者,可以連接到外部計算設備(例如利用網際網路服務提供者來通過網際網路連接)。The programming code used to perform the operation of the present invention can be written in any combination of one or more programming languages. The programming language includes object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming languages. -Such as "C" language or similar programming languages. The code can be executed entirely on the user's computing device, partly on the user's device, executed as a stand-alone software package, partly on the user's computing device and partly executed on the remote computing device, or entirely on the remote computing device. On the end computing device or server. In the case of remote computing equipment, the remote computing equipment can be connected to user computing equipment through any kind of network, including local area network (LAN) or wide area network (WAN), or can be connected to external computing Equipment (for example, using an Internet service provider to connect via the Internet).

此外,上述附圖僅是根據本發明一個示例性實施例的方法所包括的處理的示意性說明,而不是限制目的。易於理解,上述附圖所示的處理並不表明或限制這些處理的時間順序。另外,也易於理解,這些處理可以是例如在多個模組中同步或非同步執行的。In addition, the above-mentioned drawings are merely schematic illustrations of the processing included in the method according to an exemplary embodiment of the present invention, and are not intended for limitation. It is easy to understand that the processing shown in the above drawings does not indicate or limit the time sequence of these processings. In addition, it is easy to understand that these processes can be executed synchronously or asynchronously in multiple modules, for example.

本領域技術人員在考慮說明書及實踐本案的發明後,將容易想到本案的其它實施方案。本申請旨在涵蓋本案的任何變型、用途或者適應性變化,這些變型、用途或者適應性變化遵循本案的一般性原理並包括本案未公開的本技術領域中的公知常識或慣用技術手段。說明書和實施例僅被視為示例性的,本案的真正範圍和構思由權利要求指出。After considering the specification and practicing the invention of this case, those skilled in the art will easily think of other implementation schemes of this case. This application is intended to cover any variations, uses, or adaptive changes in this case, and these variations, uses, or adaptive changes follow the general principles of the case and include common knowledge or customary technical means in the technical field that are not disclosed in this case. The description and embodiments are only regarded as exemplary, and the true scope and concept of the case are pointed out by the claims.

100:開發方法 21:開始圖示 22:結束圖示 23:業務元件圖示 24:決策分支圖示 25:約束條件圖示 26:連接圖示 200:使用者編輯界面 600:外部設備 800:開發裝置 801:繪製模塊 802:編輯模塊 803:編譯模塊 900:電子設備 910:處理單元 920:存儲單元 9201:隨機存取存儲單元 9202:快取記憶體存儲單元 9203:唯讀存儲單元 9204:程式/實用工具 9205:程式模組 930:匯流排 950:輸入/輸出介面 960:網路介面卡 1000:程式產品 S1~S3:步驟100: Development Method 21: Start icon 22: End icon 23: Business component icon 24: Decision branch diagram 25: Constraint condition diagram 26: Connection icon 200: User editing interface 600: External device 800: Development device 801: drawing module 802: Edit module 803: Compile Module 900: electronic equipment 910: Processing Unit 920: storage unit 9201: Random Access Storage Unit 9202: Cache storage unit 9203: read-only storage unit 9204: Programs/Utilities 9205: program module 930: Bus 950: input/output interface 960: network interface card 1000: Program products S1~S3: steps

此處的附圖被併入說明書中並構成本說明書的一部分,示出了符合本案的實施例,並與說明書一起用於解釋本案的原理。顯而易見地,下面描述中的附圖僅僅是本案的一些實施例,對於本領域普通技術人員來講,在不付出創造性勞動的前提下,還可以根據這些附圖獲得其他的附圖。 第1圖是本案一個示例性實施例中事件處理文件的開發方法的流程圖。 第2圖是本案一個示例性實施例提供的編輯界面及流程圖的示意圖。 第3圖是本案一個示例性實施例中在第2圖所示的流程圖中導入業務元件的示意圖。 第4圖為本案一個示例性實施例中的開始事件屬性的編輯視窗。 第5圖為本案一個示例性實施例中的業務事件屬性的編輯視窗。 第6圖為本案一個示例性實施例中的結束事件屬性的編輯視窗。 第7A圖至第7C圖為本案一個示例性實施例的事件屬性編輯示意圖。 第8圖是本案一個示例性實施例中事件處理文件的開發裝置的方塊圖。 第9圖是本案一個示例性實施例中一種電子設備的方框圖。 第10圖是本案一個示例性實施例中一種電腦可讀存儲媒體的示意圖。The drawings here are incorporated into the specification and constitute a part of the specification, show embodiments conforming to the case, and are used together with the specification to explain the principle of the case. Obviously, the drawings in the following description are only some embodiments of this case. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. Figure 1 is a flowchart of a method for developing an event processing file in an exemplary embodiment of this case. Figure 2 is a schematic diagram of an editing interface and flowchart provided by an exemplary embodiment of this case. Figure 3 is a schematic diagram of importing business elements into the flowchart shown in Figure 2 in an exemplary embodiment of this case. Figure 4 is an editing window for the attributes of the start event in an exemplary embodiment of the present invention. Figure 5 is an editing window for business event attributes in an exemplary embodiment of this case. Figure 6 shows the editing window of the end event attribute in an exemplary embodiment of this case. Figures 7A to 7C are schematic diagrams of editing event attributes of an exemplary embodiment of the present invention. Figure 8 is a block diagram of an event processing file development device in an exemplary embodiment of this case. Figure 9 is a block diagram of an electronic device in an exemplary embodiment of this case. Figure 10 is a schematic diagram of a computer-readable storage medium in an exemplary embodiment of this case.

100:開發方法100: Development Method

S1~S3:步驟S1~S3: steps

Claims (26)

一種事件處理文件的開發方法,其特徵在於,包括步驟: 接收使用者的一繪製指令,根據該繪製指令生成一流程圖; 接收使用者的一第一編輯指令與一第二編輯指令,根據該流程圖、該第一編輯指令和該第二編輯指令生成一事件處理圖,其中根據該第一編輯指令在該流程圖中導入至少一個業務元件,根據該第二編輯指令設置該流程圖的一事件屬性;以及 編譯該事件處理圖以生成一事件處理文件。A method for developing an event processing file is characterized in that it comprises the following steps: Receiving a drawing instruction from the user, and generating a flowchart according to the drawing instruction; Receive a first edit instruction and a second edit instruction from the user, generate an event processing diagram according to the flowchart, the first edit instruction, and the second edit instruction, wherein the first edit instruction is in the flowchart according to the first edit instruction Import at least one business element, and set an event attribute of the flowchart according to the second editing instruction; and Compile the event processing diagram to generate an event processing file. 如請求項1之事件處理文件的開發方法,其中該開發方法還包括: 為使用者提供用於繪製該流程圖的至少一圖示,該圖示包括一開始圖示、一結束圖示、一業務元件圖示、一決策分支圖示、一約束條件圖示和一連接圖示。For example, the development method of the event processing file in claim 1, wherein the development method also includes: Provide users with at least one icon for drawing the flowchart. The icon includes a start icon, an end icon, a business component icon, a decision branch icon, a constraint condition icon, and a connection Icon. 如請求項1之事件處理文件的開發方法,其中該業務元件包括一描述文件和一功能文件,該功能文件包括實現至少一種業務功能的一可執行代碼,該描述文件包括該功能文件的一元資料和一介面描述資訊。For example, the method for developing an event processing file in claim 1, wherein the business element includes a description file and a function file, the function file includes an executable code that implements at least one business function, and the description file includes the metadata of the function file And an interface description information. 如請求項3之事件處理文件的開發方法,其中該流程圖包括一業務元件圖示,該第一編輯指令包括: 點擊該業務元件圖示並將其關聯至該業務元件。For example, the method for developing an event processing file in claim 3, wherein the flowchart includes a business element icon, and the first editing instruction includes: Click on the business component icon and associate it to the business component. 如請求項1之事件處理文件的開發方法,其中該事件屬性包括一開始事件屬性,該開始事件屬性的種類包括一資料輪詢觸發、一資料推送觸發和一表現層狀態轉換應用程式介面觸發。For example, in the method for developing an event processing document of request 1, the event attribute includes a start event attribute, and the types of the start event attribute include a data polling trigger, a data push trigger, and a presentation layer state transition application program interface trigger. 如請求項5之事件處理文件的開發方法,其中該流程圖包括一開始圖示,該第二編輯指令包括: 點擊該開始圖示,在打開的一開始事件屬性編輯視窗中對該開始事件屬性進行設定。For example, the method for developing an event processing file in claim 5, wherein the flowchart includes a first icon, and the second editing instruction includes: Click the start icon to set the start event attribute in the opened start event attribute edit window. 如請求項1之事件處理文件的開發方法,其中該事件屬性包括一結束事件屬性,該結束事件屬性包括一結束事件的返回值和一結束事件的執行條件。For example, in the method for developing an event processing file of request 1, the event attribute includes an end event attribute, and the end event attribute includes a return value of an end event and an execution condition of an end event. 如請求項7之事件處理文件的開發方法,其中該流程圖包括一結束圖示,該第二編輯指令包括: 點擊該結束圖示,在打開的一結束事件屬性編輯視窗中輸入該結束事件屬性的參數。For example, the method for developing an event processing file in claim 7, wherein the flowchart includes an end icon, and the second editing instruction includes: Click the end icon, and enter the end event attribute parameters in an open end event attribute editing window. 如請求項3之事件處理文件的開發方法,其中該事件屬性包括一業務事件屬性,該業務事件屬性包括一可執行方法,該可執行方法為該業務元件的至少一該業務功能的其中之一。For example, the method for developing an event processing file in claim 3, wherein the event attribute includes a business event attribute, the business event attribute includes an executable method, and the executable method is one of at least one of the business functions of the business element . 如請求項3之事件處理文件的開發方法,其中該業務事件屬性包括一輸入參數和一返回值。For example, in the method for developing an event processing file in request item 3, the business event attribute includes an input parameter and a return value. 如請求項3之事件處理文件的開發方法,其中該業務事件屬性包括一執行條件。For example, in the method for developing an event processing file in claim 3, the business event attribute includes an execution condition. 如請求項3之事件處理文件的開發方法,其中該業務事件屬性包括一執行模式,該執行模式為串行或並行。For example, in the method for developing an event processing file in claim 3, the business event attribute includes an execution mode, and the execution mode is serial or parallel. 如請求項9至12中任一項之事件處理文件的開發方法,其中該流程圖包括一業務元件圖示和一連接圖示,該第二編輯指令包括: 點擊指向該業務元件圖示的該連接圖示,在打開的業務事件屬性編輯視窗中輸入該業務事件屬性的一參數。For example, the method for developing an event processing file in any one of request items 9 to 12, wherein the flowchart includes a business element icon and a connection icon, and the second editing instruction includes: Click the connection icon pointing to the business element icon, and enter a parameter of the business event attribute in the opened business event attribute editing window. 一種事件處理文件的開發裝置,其特徵在於,包括: 一繪製模組,接收使用者的一繪製指令,根據該繪製指令生成一流程圖; 一編輯模組,接收使用者的一第一編輯指令與一第二編輯指令,根據該流程圖、該第一編輯指令和該第二編輯指令生成一事件處理圖,其中,該編輯模組根據該第一編輯指令在該流程圖中導入至少一個業務元件,且根據該第二編輯指令設置該流程圖的一事件屬性;以及 一編譯模組,編譯該事件處理圖以生成一事件處理文件。An event processing file development device, which is characterized in that it comprises: A drawing module, receiving a drawing instruction from the user, and generating a flow chart according to the drawing instruction; An editing module receives a first editing instruction and a second editing instruction from the user, and generates an event processing diagram according to the flowchart, the first editing instruction and the second editing instruction, wherein the editing module is based on The first editing instruction imports at least one business element into the flowchart, and sets an event attribute of the flowchart according to the second editing instruction; and A compiling module compiles the event processing graph to generate an event processing file. 如請求項14之開發裝置,其中該業務元件包括一描述文件和功能文件,該功能文件包括實現至少一種業務功能的一執行代碼,該描述文件包括該功能文件的一元資料和一介面描述資訊。For example, the development device of claim 14, wherein the service element includes a description file and a function file, the function file includes an execution code for realizing at least one service function, and the description file includes metadata of the function file and an interface description information. 如請求項14之開發裝置,其中該流程圖包括一業務元件圖示,該第一編輯指令包括: 點擊該業務元件圖示並將其關聯至該業務元件。For example, the development device of claim 14, wherein the flowchart includes a business element icon, and the first editing instruction includes: Click on the business component icon and associate it to the business component. 如請求項14之開發裝置,其中該事件屬性包括一開始事件屬性,該開始事件屬性的種類包括一資料輪詢觸發、一資料推送觸發和一表現層狀態轉換應用程式介面觸發。For example, the development device of claim 14, wherein the event attribute includes a start event attribute, and the types of the start event attribute include a data polling trigger, a data push trigger, and a presentation layer state transition application program interface trigger. 如請求項17之開發裝置,其中該流程圖包括一開始圖示,該第二編輯指令包括: 點擊該開始圖示,在打開的一開始事件屬性編輯視窗中輸入該開始事件屬性的參數。For example, the development device of claim 17, wherein the flowchart includes a first icon, and the second editing instruction includes: Click the start icon, and enter the parameters of the start event attribute in the opened start event attribute edit window. 如請求項14之開發裝置,其中該事件屬性包括一結束事件屬性,該流程圖包括結束圖示,該第二編輯指令包括: 點擊該結束圖示,在打開的一結束事件屬性編輯視窗中輸入該結束事件屬性的參數。For example, the development device of claim 14, wherein the event attribute includes an end event attribute, the flowchart includes an end icon, and the second editing instruction includes: Click the end icon, and enter the end event attribute parameters in an open end event attribute editing window. 如請求項15之開發裝置,其中該事件屬性包括一業務事件屬性,該業務事件屬性包括一可執行方法,該可執行方法為該業務元件的至少一該業務功能的其中之一。For example, the development device of claim 15, wherein the event attribute includes a business event attribute, the business event attribute includes an executable method, and the executable method is one of at least one of the business functions of the business element. 如請求項15之開發裝置,其中該業務事件屬性包括一輸入參數和一返回值。For example, the development device of claim 15, wherein the business event attribute includes an input parameter and a return value. 如請求項15之開發裝置,其中該業務事件屬性包括一執行條件。For example, the development device of claim 15, wherein the business event attribute includes an execution condition. 如請求項15之開發裝置,其中該業務事件屬性包括一執行模式,該執行模式為串行或並行。For example, the development device of claim 15, wherein the business event attribute includes an execution mode, and the execution mode is serial or parallel. 如請求項20至23中任一項之開發裝置,其中該流程圖包括一業務元件圖示和一連接圖示,該第二編輯指令包括: 點擊指向該業務元件圖示的該連接圖示,在打開的一業務事件屬性編輯視窗中輸入該業務事件屬性的一參數。For example, the development device of any one of claims 20 to 23, wherein the flowchart includes a service element icon and a connection icon, and the second editing command includes: Click the connection icon pointing to the business element icon, and enter a parameter of the business event attribute in the opened business event attribute editing window. 一種電子設備,其特徵在於,包括: 一記憶體;以及 一處理器,耦合到該記憶體,其中該處理器被配置為基於存儲在該記憶體中的指令,執行如請求項1-12任一項之事件處理文件的開發方法。An electronic device, characterized in that it comprises: A memory; and A processor coupled to the memory, wherein the processor is configured to execute the method for developing an event processing file such as any one of request items 1-12 based on instructions stored in the memory. 一種電腦可讀存儲媒體,其上存儲有一程式,該程式被一處理器執行時實現如請求項1-12任一項之事件處理文件的開發方法。A computer-readable storage medium has a program stored thereon, and when the program is executed by a processor, the method for developing an event processing file such as any one of request items 1-12 is realized.
TW109105289A 2019-12-17 2020-02-19 Developing method and developing device for event processing file TWI738216B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911304836.XA CN112988139A (en) 2019-12-17 2019-12-17 Method and device for developing event processing file
CN201911304836.X 2019-12-17

Publications (2)

Publication Number Publication Date
TW202125236A true TW202125236A (en) 2021-07-01
TWI738216B TWI738216B (en) 2021-09-01

Family

ID=76343675

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109105289A TWI738216B (en) 2019-12-17 2020-02-19 Developing method and developing device for event processing file

Country Status (2)

Country Link
CN (1) CN112988139A (en)
TW (1) TWI738216B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116757621A (en) * 2022-03-03 2023-09-15 鼎捷软件股份有限公司 Business behavior management system and business behavior management method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050034100A1 (en) * 2003-08-04 2005-02-10 Hanbai Liu Visual programming method and system thereof
US20120117537A1 (en) * 2010-11-02 2012-05-10 Velocio Networks, Inc. Flow Chart Programming Platform for Testers and Simulators
CN104217270A (en) * 2013-06-03 2014-12-17 深圳中兴网信科技有限公司 Business process application file generating and execution methods, client, device and system
CN105808217A (en) * 2014-12-30 2016-07-27 航天信息软件技术有限公司 Flow chart drawing method and system based on XML
CN105786526B (en) * 2016-03-24 2019-08-27 江苏大学 A kind of efficient flow figure drawing system and method based on Web
CN106775739A (en) * 2016-12-26 2017-05-31 北京恒华伟业科技股份有限公司 A kind of flow drawing generating method and device
CN107577458A (en) * 2017-08-18 2018-01-12 深圳怡化电脑股份有限公司 A kind of finance self-help terminal traffic flow development approach and device
CN109634596B (en) * 2018-12-11 2021-10-22 清华大学 Flow chart based visual programming tool

Also Published As

Publication number Publication date
CN112988139A (en) 2021-06-18
TWI738216B (en) 2021-09-01

Similar Documents

Publication Publication Date Title
US7624375B2 (en) Automatically configuring a graphical user interface element to bind to a graphical program
JP6449173B2 (en) Building an application to configure a process
US9384005B2 (en) Systems and methods for dynamic configuration of client-side development environments through use of application servers
US9471213B2 (en) Chaining applications
US8046736B1 (en) Generated code from graphical user interface
US8533667B2 (en) Call wizard for information management system (IMS) applications
JP7350923B2 (en) Deep learning framework operator registration method, equipment, device and storage medium
US10666744B2 (en) Managing discovery and selection of service interface specifications
US20130167112A1 (en) Cross-platform virtual machine and method
US20110126171A1 (en) Dynamic native editor code view facade
WO2022184077A1 (en) Document editing method and apparatus, and terminal and non-transitory storage medium
Song et al. Applying MDE tools at runtime: Experiments upon runtime models
TWI738216B (en) Developing method and developing device for event processing file
JP7457168B2 (en) Semiconductor device modeling method and apparatus
JP2020053049A (en) Application Builder
US20140250386A1 (en) Method and system for client side user interface generation
US11029818B2 (en) Graphical user interface management for different applications
KR20090125045A (en) Method and apparatus for managing system specifications
Roberts et al. Mobile Controls On-The-Fly: An Abstraction for Distributed NIMEs.
WO2023288308A1 (en) User interface controls for visual software modification
US20210271458A1 (en) Managing an app method and system
TWI574528B (en) Group control and management among electronic devices
US10120664B2 (en) Incremental build generation
TWI582696B (en) Method of projecting a workspace and system using the same
CN106663007B (en) Method for operating tool in working environment and machine using the method