CN113050928A - Method, system, equipment and medium for event extension in workflow - Google Patents

Method, system, equipment and medium for event extension in workflow Download PDF

Info

Publication number
CN113050928A
CN113050928A CN202110394954.5A CN202110394954A CN113050928A CN 113050928 A CN113050928 A CN 113050928A CN 202110394954 A CN202110394954 A CN 202110394954A CN 113050928 A CN113050928 A CN 113050928A
Authority
CN
China
Prior art keywords
event
executable file
extended
configuration information
approval node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110394954.5A
Other languages
Chinese (zh)
Inventor
周立杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Inspur Genersoft Information Technology Co Ltd
Original Assignee
Shandong Inspur Genersoft Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Inspur Genersoft Information Technology Co Ltd filed Critical Shandong Inspur Genersoft Information Technology Co Ltd
Priority to CN202110394954.5A priority Critical patent/CN113050928A/en
Publication of CN113050928A publication Critical patent/CN113050928A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • 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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method, a system, equipment and a storage medium for event extension in a workflow, wherein the method comprises the following steps: responding to the approval node of the workflow in the event expansion, and acquiring the configuration information of the expansion event of the approval node; acquiring an executable file of the approval node according to the configuration information of the extended event; and responding to the obtained executable file of the approval node, and operating the executable file according to the configuration information. According to the scheme disclosed by the invention, under the condition of not changing the original service logic, the functions of the flow system are expanded, and flexible response to the service requirements of multiple ends is realized.

Description

Method, system, equipment and medium for event extension in workflow
Technical Field
The invention relates to a computer application technology, in particular to a method, a system, equipment and a medium for event extension in a workflow.
Background
In a common flow office system, when the document is approved at the approval node, the business customers of different companies are different, so that users often put forward some customization requirements before and after the approval node. For example, certain values in documents need to be checked before approval; or the user edits the form and needs to actively trigger the form storage operation before approval; or the user needs to send an email or a short message prompt to a specific processing person or client after the approval is completed. When there are too many items to be approved, they are often sent out manually and directed to different types of message recipients, resulting in wasted time and reduced efficiency. The requirements such as those described above are various and vary according to the change of services.
However, the existing flow office system has many reasons to repeatedly develop the above-mentioned requirements. Because the existing flow type office system integrates a plurality of functional modules into a whole system, when a certain module is changed, a lot of module changes are often involved, or the coupling degree of each flow node on the whole is too high. After the system development is delivered, the development team turns to other development tasks, no time is available for processing related self-defining requirements, or the self-defining requirements are changed too frequently along with the business of a client, and the system maintainability is poor due to frequent changes; or code re-maintenance becomes difficult due to changes by developers, etc.
Therefore, how to develop a set of process system capable of effectively coping with the variable user-defined requirements becomes a technical problem to be solved by technical personnel in the field.
Disclosure of Invention
In order to solve the above problem, the present invention provides a method for event extension in a workflow, comprising the following steps:
responding to the approval node of the workflow in the event expansion, and acquiring the configuration information of the expansion event of the approval node;
acquiring an executable file of the approval node according to the configuration information of the extended event;
and responding to the obtained executable file of the approval node, and operating the executable file according to the configuration information.
In some embodiments of the invention, the method further comprises: and compiling the executable file by selecting different programming modes according to the running terminal.
In some embodiments of the present invention, compiling the executable file according to different programming modes selected by the operation terminal comprises:
adopting javascript to compile and compile an implementation method of an extended event of which the running terminal is a web front end and/or a mobile equipment front end; and
and compiling the extended event which is obtained by writing the extended event by adopting Java, Python, C + +, R or Golang programming language for the operation terminal which is a web back end, a PC and mobile equipment.
In some embodiments of the invention, compiling comprises:
compiling the event extension method realized by adopting javascript, and generating a javascript executable file conforming to SystemJS specifications by adopting a rollup packaging mode;
and selecting a compiling mode with the minimum compiled file volume for compiling the event extension method realized by adopting the Java, Python, C + +, R or Golang programming language.
In some embodiments of the invention, the number of the expansion events of the approval node before and after the approval is multiple.
In some embodiments of the invention, running the executable file according to the configuration information comprises: a plurality of extended events are executed sequentially.
In some embodiments of the invention, running the executable file according to the configuration information comprises: multiple extended events are executed simultaneously.
In another aspect of the present invention, a system for event extension in a workflow is further provided, including:
the configuration information acquisition module is used for responding to the approval node of the workflow in the event expansion and acquiring the configuration information of the expansion event of the approval node;
the executable file acquisition module is configured for acquiring the executable file of the approval node according to the configuration information of the extended event;
and the extended event execution module is configured to respond to the obtained executable file of the approval node and operate the executable file according to the configuration information.
Yet another aspect of the present invention further provides a computer apparatus, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method as above.
Yet another aspect of the present invention also proposes a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method as above.
By the method and the system, a proper programming language can be selected as an implementation mode according to the user-defined requirement proposed by a user, and the executable file is compiled and generated. And executing corresponding executable files in a certain sequence before and after the approval node. Under the condition of not changing the whole structure of the system process and other modules of the system, the solution of the variable demand is converted into a corresponding executable file independent of the process system to realize the user-defined demand of the user. Compared with the prior art, the method has the following beneficial effects: the coupling with the original flow system is reduced, the dependence on the original flow system is reduced, and further, the expansion event can be more flexibly applied, so that the function expansion can be realized on the premise of not changing the structure of the flow system when the function of the flow system is added or upgraded; meanwhile, the modification or deletion of some useless function expansion events does not influence the running stability of the flow system. In addition, according to different task scenes, different programming languages are adopted as the implementation modes of the extended events, the advantages of the different programming languages can be fully utilized, the business requirements can be simply, conveniently and efficiently realized, and the development is more convenient.
Drawings
In order to illustrate the embodiments of the present invention or the solutions in the prior art more clearly, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without any inventive work.
FIG. 1 is a flow chart of the method of the present invention;
FIG. 2 is a diagram of a topology structure of an approval node and an extended event according to an embodiment of the method of the present invention;
FIG. 3 is a block diagram of a workflow system of the present invention;
FIG. 4 is a block diagram of a computer device of the present invention;
FIG. 5 is a schematic diagram of a computer-readable storage medium according to the present invention;
FIG. 6 is a flow chart of a method of an embodiment of the present invention;
FIG. 7 is a flow chart of a method of an embodiment of the present invention;
fig. 8 is detailed configuration information of an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
As shown in fig. 1, an aspect of the embodiment of the present invention provides a method for event extension in a workflow, including the following steps:
s1, responding to the approval node of the event expansion in the workflow, and acquiring the configuration information of the expansion event of the approval node;
s2, obtaining an executable file of the approval node according to the configuration information of the extended event;
and S3, responding to the obtained executable file of the approval node, and operating the executable file according to the configuration information.
In step S1, in the office process system implemented based on the method of the present invention, before and after some approval process nodes, the process system reads the configuration information of the previous event of the current approval node, and as shown in fig. 8, finds information such as ID of the extended event, event task classification ID, event execution state, execution terminal type, event sequence, specific path of the event executable file, event extension type, and whether the event is a batch approval event from the configuration information. Wherein the event ID corresponds to the unique identifier of the current event; the task classification ID represents an event extension task classification level; the terminal type represents the execution environment of the event and can comprise a web front end (including a front end on a mobile phone), a web back end (the web back end refers to a server environment), a computer end and a mobile end; the event sequence represents the execution sequence of the events; the specific path of the event executable file points to the path of an executable file stored at a server; the event execution state indicates whether the event is executed successfully; the event extension type marks whether the event is an event before an approval node or an event after the approval node, and the batch approval event marks the number of task items processed during the execution of the event. Therefore, the above information is mainly acquired in step S1, and is ready for subsequent execution.
In step S2, in the case that the above configuration information has been acquired in step S1, an executable file of a corresponding execution terminal type of the current extended event is acquired according to the path of the event executable file in the configuration information and according to the execution terminal type of the current extended event, and the executable file of the corresponding execution terminal of the current extended event is transmitted to the corresponding terminal. In this process, mainly because the running environments of the executable files of the extension event are different, the corresponding executable files are sent to the corresponding execution terminal, for example, the environment of the extension program implemented by using javascript is executed on a browser at the front end of the web or on the browser environment at the mobile end. Of course, the method can be executed in some applications simulating the JS operation environment on the server.
In step S3, in the case where the acquisition of the executable file has been completed in step S2, the corresponding executable file is executed in different calling manners according to different terminal environments.
In some embodiments of the invention, the method further comprises: and compiling the executable file by selecting different programming modes according to the running terminal. The executable file is realized by selecting a proper programming mode according to the service requirement.
In this embodiment, since the inventive method implements the extension of the functions of the flow system by acquiring the execution of the corresponding executable file according to the configuration information, the method provided in this application may use multiple programming languages to write the corresponding extension program. For example, in some business scenarios, a certain user needs to approve a batch of reimbursement documents (documents recorded in a system database, which are different from paper document forms), a company provides that the reimbursement documents whose total reimbursement amount is within a certain limit range can be directly applied by an employee within a certain time, and if the reimbursement documents are larger than the certain limit reimbursement application, it is necessary to determine specific conditions and determine whether to give a reasonable approval. As for the above functional requirements, the above method may be programmed by adopting a front-end javascript implementation method, as shown in fig. 6, the steps are as follows:
s211, sending ajax asynchronous requests to a back-end server through a JS extension program to obtain requests of all to-be-audited document data;
s212, setting the approval state of the data of which the total amount of each employee reimbursement bill meets a certain amount as pass, and updating the state to a server database through an ajax request;
s213, transmitting the data of the certain quota with the total quota not meeting to the original front-end interface.
In step S211, the data request is sent to the backend by using the AJAX request, and in this embodiment, the extension program written by js (javascript) will obtain the data that needs to be processed by the current extension event according to the interface of the existing flow system without changing the structure or functional interface of the existing flow system.
In step S212, the total amount of application and reimbursement of each employee is counted through the document data acquired in step S211, whether the total amount of application and reimbursement of each employee is lower than the application of a certain amount is judged, if the total amount of all document amounts is lower than the certain amount, a request for auditing approval of all reimbursement documents passing through the employee is directly sent to the back-end server, the request information includes the number of the application and reimbursement documents passing through the auditing and a status information flag indicating approval of the documents passing through the approving, and the realization of the function also depends on the interface of the existing flow system without changing the interface of the existing flow system.
In step S213, after the processing in step S212, the document to be approved whose total amount is higher than the set certain amount is displayed to the auditor through the existing front end, and the auditor determines whether the document has been approved, and the document record (the information is certain or some information cannot be identified) that cannot be processed in step S212, which is an abnormal approved document, is also displayed to the auditor for processing.
The function-compiled and packaged execution file realized by the JS extension program is stored under the appointed path of the server in the mode of the event ID + the terminal name + the file type. And adding the file path information and the file type information into the configuration information of the extended event.
Optionally, part of the service scenario may also be implemented by a program in the backend, for example, a processing program is written according to a programming language for implementing the backend server, as shown in fig. 7, including:
s221, acquiring a document record to be reviewed by using a database interface API;
s222, analyzing the document record to be checked, and judging whether the total amount of the reimbursement documents of each person of all the employees meets a certain limit range;
and S223, changing the approval state of the bill with the total sum meeting a certain range into a pass state through a database API.
In step S221, unlike the previous front-end scheme, the back-end program generally has an implementation manner capable of directly accessing the database, so that the back-end program can communicate with the database only by importing a corresponding implementation manner to obtain document record data to be processed.
In step S222, the data obtained in step S221 is subjected to statistical analysis, and documents to be approved, whose total document amount of each employee satisfies a certain amount, are analyzed.
In step S223, the approval status of all the reimbursement documents of the employee whose total reimbursement amount of the employee obtained in step S222 satisfies a certain range is set as pass, and the approval status of the corresponding data in the database is also set as pass through the database API.
In addition, the abnormal document data that cannot be processed in step S222 or the data that cannot be approved after analysis is not changed, so that when the auditor accesses the audit interface, the abnormal data or the data that cannot be approved by the extension program is judged by the auditor and approved.
In particular, in the implementation of the extended event in this embodiment, the new service function can be extended only according to the original function of the existing flow system without changing the existing flow system.
In some embodiments of the present invention, compiling the executable file according to different programming modes selected by the operating terminal includes:
adopting javascript to compile and compile an implementation method of an extended event of which the running terminal is a web front end and/or a mobile equipment front end; and
and compiling the extended event which is obtained by writing the extended event by adopting Java, Python, C + +, R or Golang programming language for the operation terminal which is a web back end, a PC and mobile equipment.
In this embodiment, in some service fields, after the approval node, analysis and statistics on the approved data are required, and due to the characteristics of some programming languages, it may be that the programming language for implementing the back-end server is not suitable for performing these tasks, and it may be more convenient to select another language that is more difficult to use the current programming language for the requirements of these additional functions provided by the customer. For example, the business requires analysis of the reimbursement approval in a certain period, or obtains an approximate rule from the machine learning in the past approval, so the difficulty of the algorithm to be realized is huge compared with the development cost of Python and R programming languages which are good at processing data scientific computation, and other common programming languages which are convenient for processing business requirements can be adopted.
Furthermore, a suitable programming implementation manner is selected according to the optimal execution environment of the extended event, for example, in the simple preprocessing task of the bill in the above embodiment, since the processing of the bill is a simpler logical structure, the business requirement can be completed through the execution of the javascript script program, and the computation task is put at the front end through the execution of the javascript script program, so that the computation pressure of the server is reduced while the function extension is realized, and the operation of the whole flow system is beneficial. Therefore, for some simpler logic processing tasks, the calculation pressure of the flow system can be effectively reduced and the stability of the flow system can be improved by submitting the logic processing tasks to the terminal equipment for execution.
Specifically, after the optimal execution environment for the extended event is selected and implemented in a suitable programming language, the optimal execution environment needs to be compiled into an executable file, and the executable file is stored in a specified path. And adding the path information of the stored executable file into the configuration information of the extended event, and triggering the extended event and executing the corresponding executable program after the flow node executes to the node.
In some embodiments of the invention, compiling comprises:
compiling the event extension method realized by adopting javascript, and generating a javascript executable file conforming to SystemJS specifications by adopting a rollup packaging mode;
and selecting a compiling mode with the minimum compiled file volume for compiling the event extension method realized by adopting the Java, Python, C + +, R or Golang programming language.
In this embodiment, a rollup mode is adopted for the written front-end JS script program, the rollup is an ES module packaging tool for javascript, the packaging is focused on javascript class library packaging, unused codes in the javascript program can be removed, smaller files are output, all modules are built in one function, the execution efficiency is higher, and compiled files in various formats such as AMD, CJS, ES, IIFE and the like can be sequentially output. Therefore, in the embodiment of the invention, for the extension program of the extension event written by using javascript, the extension program of javascript can be packed and compiled by using rollup according to the type of the running terminal to generate the executable file with a proper format.
Accordingly, for an extender of an extension event implemented in other programming languages, the language dependent compilation mode is adopted, for example, the class bytecode file is compiled for an extender implemented by java, and the pyc bytecode file is compiled for an extender implemented by Python. Depending on the operating environment, an extended program implemented in a common programming language may also be compiled into a binary file that runs independently on the operating system to be run, such as an. exe program running on windows. When the terminal of the process system used by the user is a PC client or a mobile phone APP, the limited selection of the extension program is operated on the client instead of the server, so that the operation pressure of the server can be reduced, and when the process system used by the user is accessed through a browser, the extension program is preferentially selected to be implemented through javascript programming.
In some embodiments of the invention, the number of the expansion events of the approval node before and after approval may be multiple.
In some embodiments of the invention, running the executable file according to the configuration information comprises: a plurality of extended events are executed sequentially. In this embodiment, as shown in fig. 2, there may be a plurality of extended events before and after the approval of the approval node 200. The multiple approval events are executed in sequence according to the event extension type and the event sequence information in the configuration information, for example, the extension event type of the event 201 is 0, the event sequence is 1, which indicates that the event 201 is a previous event, and the execution sequence in the event group is 1. When the auditor of the process audits the audit task, in short, after the auditor logs in the process system, the process system triggers the extended events 201 to 205 shown in fig. 2 after receiving the request of the auditor for obtaining the audit information, or triggers the previous extended events 201 to 205 of the approval node 200 as the last extended events of the previous process node.
Correspondingly, the post-expansion events 206-210 of the approval node 200 can be executed immediately after the auditors of the approval node 200 pass the audit, or the corresponding expansion events can be triggered to be executed when the clerks of the subsequent nodes of the approval node log in the process system and open the work interface of the process system to obtain the work content of the process system.
In some embodiments of the present invention, the execution of multiple extended events must pass the execution result of the previous event before the next extended event can be executed.
In the present embodiment, as shown in fig. 2, there are a plurality of extended events before and after the approval node 200. Among the previous events of the approval node 200, the events 202 to 205 are consecutive events, and the execution process thereof must be from event 202 → event 203 → event 204 → event 205. The execution result of the event 202 is recorded in the configuration information corresponding to the event 202, and when the flow system detects that the execution result in the configuration information of the event 202 does not pass when the event 203 is to be executed, the continuous event extension is stopped. While event 201 is not affected by the outcome of the execution of event 202.
Specifically, in the present embodiment, the event 201 is an extended event of the aforementioned audit reimbursement document, and the events 202 to 205 are extended events of the verification service for the company billing. The event 202 is that the analysis processing of the bill file sent from other companies is completed, and all information in the bill file is obtained and analyzed to obtain the information of the bill number, the bill amount, and the like. Because the bill templates of different companies are different, the event 203 is an extended event of the bill of the company where the analysis process system is located, and mainly analyzes information such as the bill number and the corresponding amount in the bill output file. The event 204 is the analysis of the remittance record information of the bank and the acquisition of the amount of money actually transferred by the bank and the corresponding bill number in the additional information. And finally, an event 205 is the comprehensive processing of the information analyzed by the previous events 202-204, whether the bill which is issued has a remittance record or not and whether the remittance amount meets the billed amount or not are judged, the detailed information of the bill of other companies with the matched bill number and the matched amount, the bill of the company and the bank transfer record is listed, and the unmatched records of the bill with the unmatched bill number and the unmatched amount are displayed in a red striking color.
In particular, if the style template of the bill file from other company or the information in the bill file is changed, the event 202 finds that the identified information of the bill file from other company is missing or fails in analysis when being executed, and the subsequent events 203-205 stop the execution; or the transfer information from the bank is changed due to the upgrade of the internal system of the bank, and the event 204 cannot accurately analyze and recognize the transfer information of the bank, in which case the event 204 fails to be executed. Execution of the event is blocked and subsequent events 205 stop executing. Under the condition, the process system prompts the information of the abnormal extended event to be executed, lists the bill file according to the original mode, and carries out self-statistical verification after the bill file is downloaded by an auditor.
In addition, in the above extended events 202 to 205, the events 202, 203, and 204 may be implemented by common programming software, for example, JAVA, Python, C + +, R, Go, etc., the events 205 may be implemented by sending a request to obtain data to a bill file interface of the process system, and then performing parsing processing, and selecting a language that is convenient for processing a bill file, and the event 205 may be implemented by javascript programming, and the change to the page information may be implemented by overlaying the existing page information with a browser jquerry library in javascript, and the specific implementation manner is common knowledge of a front-end engineer and is not specifically described here. Therefore, the processing of the data in the extended event and the information display of the process system are realized on the basis of the provided functions of the process interface and the process system.
In some embodiments of the invention, running the executable file according to the configuration information comprises: multiple extended events are executed simultaneously. Multiple extended events may be executed simultaneously.
In this embodiment, as shown in fig. 2, an event 201 is an extended event for approval of an reimbursement document, events 202 to 205 are extended events for matching verification of a bill transfer, in configuration information of the event 201 and the events 202 to 205, an event task classification ID of the configuration information of the event 201 is different from event task classification IDs of the events 202 to 205, when a process system loads the configuration information to execute the extended events, the extended events of different task classification IDs may be executed at the same time, and for the extended events of the same task classification ID, the extended events are executed in order according to event sequence information in the configuration information.
In addition, for the extended events 206-210 after the approval node 200, when the extended event after the approval node 200 corresponds to a previous event or the approval operation is completed, and the approval node 200 can execute the extended event after the approval node 200 at the same time when the previous event in execution exists. That is, the execution of the extended events can be all performed simultaneously theoretically, but when the execution of the corresponding extended event requires the execution result of other extended events, the execution must be performed according to the execution mode of the event stream, and the execution order of the events and whether the extended events can be performed simultaneously with the extended events are controlled by the configuration information of the extended events. In case that the same event of different task classification ID and the previous event of the node where it is located have no influence on the event, the event class is executed simultaneously with other events. For example, the event 206 is an extended event corresponding to the event 201, and it is mainly realized that if an initiator of an approved document is sent through an email, the event 206 cannot be executed in the process of executing the event 201. After the execution of 201 is completed, the execution of 206 is not affected by other extended events at all, and the task scheduling according to the flow system can be executed simultaneously with other non-mutually exclusive events.
As shown in FIG. 3, another aspect of the present invention further provides a system 300 for implementing event expansion before and after approval in a workflow, including:
a configuration information obtaining module 301, configured to respond to an approval node where the workflow is in the event extension, and obtain configuration information of an extension event of the approval node;
an executable file obtaining module 302, configured to obtain an executable file of the approval node according to the configuration information of the extended event;
and the extended event execution module 303 is configured to respond to the obtained executable file of the approval node, and run the executable file according to the configuration information.
In this embodiment, the configuration information obtaining module 301 may obtain, under the trigger of the auditor, the configuration information of the extended event of the task to be processed by the current auditor. After the configuration information of the extended event is obtained, the configuration information and the terminal type are sent to the executable file obtaining module 302 according to the terminal type of the auditor access flow system.
After the configuration information of the extended event to be executed and the terminal type are acquired, the executable module 302 acquires an executable file for implementing the extended event from the specified path according to the executable file path information and the terminal type in the configuration information. The executable file is then sent to the execution environment. For example, if there is an executable file of an extended event implemented by javascript in a process system accessed by a reviewer through a browser, the executable file is sent to the browser being used by the reviewer, and the browser is used as the execution module 303 of the extended event, and for the executable file of the extended event implemented by another language, the executable module 302 sends the executable file to the extended event execution module 303.
After receiving the executable file, the extended event execution module 303 runs the corresponding executable file on the server in an implemented executable file calling manner for various programming languages. Since it is common knowledge for those skilled in the art to call up executable files in various programming languages, and there are functions in various languages in the prior art using other languages, the corresponding executable file can be called up particularly in the form of shell script, which will not be described in detail herein.
In addition, when the extended event execution module 303 executes an extended event, the executable program that executes the corresponding extended event at the same time or in sequence according to the event sequence of the configuration information of the extended event, the event task classification ID, and the event execution state of the extended event strictly, updates the state of the event that has passed execution to the configuration information.
As shown in FIG. 4, yet another aspect of the present invention also provides a computer apparatus 400 comprising:
at least one processor 401; and
a memory 402, said memory 402 storing computer instructions executable on said processor, said instructions when executed by said processor 401 implementing the steps of the method as above.
As shown in fig. 5, a further aspect of the present invention also proposes a computer-readable storage medium 500, said computer-readable storage medium 500 storing a computer program 502, which when executed by a processor 501 implements the steps of the above method.
In summary, with the method and system provided by the present invention, a user-defined requirement provided by a user can be selected as an implementation manner, and the implementation manner is compiled to generate an executable file. And executing corresponding executable files in a certain sequence before and after the approval node. Under the condition of not changing the whole structure of the system process and other modules of the system, the solution of the variable demand is converted into a corresponding executable file independent of the process system to realize the user-defined demand of the user. Compared with the prior art, the method has the following beneficial effects: the coupling with the original flow system is reduced, the structural dependence on the original flow system is reduced, and further, the expansion event can be more flexibly applied, so that the function expansion can be realized on the premise of not changing the structure of the flow system when the function of the flow system is added or upgraded; meanwhile, the modification or deletion of some useless function expansion events does not influence the running stability of the flow system. In addition, according to different task scenes, different programming languages are adopted as the implementation modes of the extended events, the advantages of the different programming languages can be fully utilized, the business requirements can be simply, conveniently and efficiently realized, and the development is more convenient.

Claims (10)

1. A method of event extension in a workflow, the method comprising:
responding to the approval node of the workflow in the event expansion, and acquiring the configuration information of the expansion event of the approval node;
acquiring an executable file of the approval node according to the configuration information of the extended event;
and responding to the obtained executable file of the approval node, and operating the executable file according to the configuration information.
2. The method of claim 1, further comprising: and compiling the executable file by selecting different programming modes according to the running terminal.
3. The method of claim 2, wherein compiling the executable file according to the different programming modes selected by the running terminal comprises:
adopting javascript to compile and compile an implementation method of an extended event of which the running terminal is a web front end and/or a mobile equipment front end; and
and compiling the extended event which is obtained by writing the extended event by adopting Java, Python, C + +, R or Golang programming language for the operation terminal which is a web back end, a PC and mobile equipment.
4. The method of claim 3, wherein the compiling comprises:
compiling the event extension method realized by adopting javascript, and generating a javascript executable file conforming to SystemJS specifications by adopting a rollup packaging mode;
and selecting a compiling mode with the minimum compiled file volume for compiling the event extension method realized by adopting the Java, Python, C + +, R or Golang programming language.
5. The method according to claim 1, wherein the approval node has a plurality of extended events before and after approval.
6. The method of claim 5, wherein running the executable file according to the configuration information comprises: sequentially executing the plurality of extended events.
7. The method of claim 5, wherein running the executable file according to the configuration information comprises: executing the plurality of extended events synchronously.
8. A system for event extension in a workflow, comprising:
the configuration information acquisition module is used for responding to the approval node of the workflow in the event expansion and acquiring the configuration information of the expansion event of the approval node;
the executable file acquisition module is configured for acquiring the executable file of the approval node according to the configuration information of the extended event;
and the extended event execution module is configured to respond to the obtained executable file of the approval node and operate the executable file according to the configuration information.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202110394954.5A 2021-04-13 2021-04-13 Method, system, equipment and medium for event extension in workflow Pending CN113050928A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110394954.5A CN113050928A (en) 2021-04-13 2021-04-13 Method, system, equipment and medium for event extension in workflow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110394954.5A CN113050928A (en) 2021-04-13 2021-04-13 Method, system, equipment and medium for event extension in workflow

Publications (1)

Publication Number Publication Date
CN113050928A true CN113050928A (en) 2021-06-29

Family

ID=76519157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110394954.5A Pending CN113050928A (en) 2021-04-13 2021-04-13 Method, system, equipment and medium for event extension in workflow

Country Status (1)

Country Link
CN (1) CN113050928A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113887955A (en) * 2021-09-30 2022-01-04 中电金信软件有限公司 Method and device for examining business document, electronic equipment and readable storage medium
CN114817575A (en) * 2022-06-24 2022-07-29 国网浙江省电力有限公司信息通信分公司 Large-scale electric power affair map processing method based on extended model

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113887955A (en) * 2021-09-30 2022-01-04 中电金信软件有限公司 Method and device for examining business document, electronic equipment and readable storage medium
CN114817575A (en) * 2022-06-24 2022-07-29 国网浙江省电力有限公司信息通信分公司 Large-scale electric power affair map processing method based on extended model
CN114817575B (en) * 2022-06-24 2022-09-02 国网浙江省电力有限公司信息通信分公司 Large-scale electric power affair map processing method based on extended model

Similar Documents

Publication Publication Date Title
US10782960B2 (en) User interface that integrates plural client portals in plural user interface portions through sharing of one or more log records
CN107704265B (en) Configurable rule generation method for service flow
US8387025B2 (en) System and method for dynamic business logic rule integration
CN110532536B (en) Rule configuration method and device
US9063823B2 (en) Software development and distribution workflow employing meta-object time stamping
US20050125401A1 (en) Wizard for usage in real-time aggregation and scoring in an information handling system
CN113312108B (en) SWIFT message verification method and device, electronic equipment and storage medium
CN113050928A (en) Method, system, equipment and medium for event extension in workflow
CA2754529A1 (en) Card processing
CN106549853A (en) A kind of email processing method and device
US20230072988A1 (en) System and a method for automatic generation of smart contracts across blockchain platforms
CN114338850B (en) Message checking method, device, terminal equipment and computer readable storage medium
CN114580369B (en) Signing method and system based on contract template
US20050125280A1 (en) Real-time aggregation and scoring in an information handling system
CN114969127A (en) Reconciliation method, reconciliation system and storage medium for automatically combining reconciliation transactions
CN113961238A (en) Object conversion method and device, electronic equipment and storage medium
CN109697216B (en) Clearing transaction information processing method, device and system
CN110928535A (en) Derivative variable deployment method, device, equipment and readable storage medium
Polo et al. Automated generation of oracled test cases with regular expressions and combinatorial techniques
EP4068141A1 (en) Method and system to enable print functionality in high-level synthesis (hls) design platforms
CN115061668A (en) Method for maintaining and visualizing rule engine and providing microservice
US20230401514A1 (en) Hybrid systems and methods for identifying cause-effect relationships in structured data
CN113205421A (en) Accounting method and device for financial products
CA2566025C (en) Type validation for applications incorporating a weakly-typed language
CN116611926A (en) Wind control rule management control method, device and system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination