CN115268986A - Low-code service script operation method and engine device - Google Patents

Low-code service script operation method and engine device Download PDF

Info

Publication number
CN115268986A
CN115268986A CN202210825940.9A CN202210825940A CN115268986A CN 115268986 A CN115268986 A CN 115268986A CN 202210825940 A CN202210825940 A CN 202210825940A CN 115268986 A CN115268986 A CN 115268986A
Authority
CN
China
Prior art keywords
business
service
data
script
rules
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
CN202210825940.9A
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.)
Beijing Wucoded Technology Co ltd
Original Assignee
Beijing Wucoded 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 Beijing Wucoded Technology Co ltd filed Critical Beijing Wucoded Technology Co ltd
Priority to CN202210825940.9A priority Critical patent/CN115268986A/en
Publication of CN115268986A publication Critical patent/CN115268986A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/313Logic programming, e.g. PROLOG programming language
    • 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/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a low code service script running method, which comprises the following steps: writing corresponding business rules aiming at business scenes, and storing the business rules and configuration information; configuring a scene in which a business rule is triggered, wherein a trigger source comprises data behavior-based trigger and timing scheduling trigger; triggering and calling a service script based on a trigger source in a current service scene; calling a service script: pre-condition inspection, data pre-storage inspection, data construction and storage; processing the calculation request of the user, and processing the service data according to the service rule: and compiling the rules compiled by the service scripts in advance and calculating the service rules after the service scripts are compiled. The invention also provides a corresponding engine device. The invention can automatically analyze and generate corresponding functions and expressions, forms executable expression objects according to the expressions of the business logic combination, finally realizes the business functions corresponding to the business logic, and reduces the realization scheme of the business function realization difficulty.

Description

Low-code service script operation method and engine device
Technical Field
The invention relates to the technical field of computer software, in particular to a low-code service script running method and an engine device.
Background
An enterprise manager adjusts a production strategy, a material purchasing strategy and the like in the system production process, so that the following requirements are made on the development of an enterprise IT system:
to improve efficiency, the management process must be automated even if modern business rules are exceptionally complex. Market demands that business rules change frequently, IT systems must be updated quickly and at low cost in accordance with changes in business rules.
For quick, low-cost updates, business personnel should be able to directly manage the rules in the IT system without the involvement of program developers.
The project developers have encountered the following problems:
program = algorithm + data structure, some complex business rules make it difficult to derive algorithms and abstract data models.
Software engineering requires coding from demand- > design- > however, business rules may often not be clear yet in the demand phase, still change after design and coding, and business rules are often embedded in the code throughout the system.
The system is difficult for programmers to maintain and update, and is less likely to be managed by business personnel. There is therefore a pressing need to separate the business decision logic of business decision makers from the technical decisions of application developers. Placing these business decisions in a central database or other consolidated place allows them to be dynamically managed and modified at runtime to provide flexibility and adaptability to the software system. The rule engine is just one solution applied in the dynamic environment.
At present, when a certain business function is realized based on a computer program, a business department puts forward business requirements, developers develop programs based on the business requirements, testers test the developed programs, and if the tests are passed, the programs are released and put on line. The related technology has the disadvantages of high difficulty in developing the service function, more related personnel, need of professional program development and testing personnel and long service function development period.
In view of these problems, it is necessary to provide an implementation scheme capable of automatically analyzing and generating corresponding functions and expressions, combining the expressions according to business logic to form an executable expression object, and finally implementing the business function corresponding to the business logic, thereby reducing the difficulty in implementing the business function.
Disclosure of Invention
Therefore, the embodiment of the invention provides a low-code service script running method and an engine device, so as to solve the technical problem that the service function development difficulty of the prior related art is high.
In order to achieve the above purpose, the invention provides the following technical scheme:
the embodiment of the invention provides a low-code service script engine device, which comprises:
setting a module: the system is used for compiling corresponding business rules aiming at the business scenes and storing the business rules in a rule base;
a trigger module: a scenario for configuring that a business rule is triggered, including data behavior-based triggering and timing scheduling triggering;
a storage module: the system is used for storing the business rules and the configuration information;
an execution module: the business rule compiler is used for processing the calculation request of the user and processing the business data according to the business rule, comprises a business rule compiler and a business rule executor,
a business rule compiler: compiling rules compiled by service scripts in advance, and aiming at scenes requiring short response time for terminal user requests;
a business rule executor: and the execution module is used for calculating the business rules after the business script is compiled.
Wherein, the scene includes: precondition check, data construction and storage, notification and business logic processing.
The data behavior trigger source comprises: buttons, data changes, relationship changes, flow steps, and other business scripts.
The timing schedule includes: single execution plans and periodic execution plans.
The embodiment of the invention also provides a method for running the low-code service script, which comprises the following steps:
writing corresponding business rules aiming at business scenes, and storing the business rules and configuration information;
configuring a scene that a business rule is triggered, wherein a trigger source comprises data behavior-based trigger and timing scheduling trigger;
triggering and calling a service script based on a trigger source in a current service scene;
calling a service script: pre-condition inspection, data pre-storage inspection, data construction and storage;
processing the calculation request of the user, and processing the service data according to the service rule:
compiling rules compiled by service scripts in advance, aiming at scenes requiring short response time for terminal user requests, and calculating the service rules after the service scripts are compiled.
The calling of the service script specifically comprises the following steps:
a precondition check for detecting whether the subsequent script should continue to execute; or when the data persistence is used, the triggering of the follow-up action is prevented;
the data is checked before being put into a warehouse, and the exception is thrown out before the data is put into the warehouse, so that the data can be ensured not to be put into the warehouse; if the data class has the establishment primary key, preventing the repeated entry of the service data;
and constructing and storing data, and adding data and modifying data in the service script.
Invoking the service script further comprises: and sending notification information for reminding relevant personnel of the event that the event which is responsible for or concerned by the personnel is changed.
Wherein the triggering based on the data behavior comprises: buttons, data changes, relationship changes, flow steps, and other business scripts; and/or the presence of a gas in the atmosphere,
the timing schedule trigger is a single execution plan or a periodic execution plan.
The present invention provides a computer-readable storage medium storing instructions that, when executed by at least one computing device, cause the at least one computing device to perform the low code service script execution method as previously described.
The present invention also provides a system comprising at least one computing device and at least one storage device storing instructions that, when executed by the at least one computing device, cause the at least one computing device to perform the low code business script execution method as previously described.
The embodiment of the invention has the following advantages:
the technical scheme provided by the invention can automatically analyze and generate corresponding functions and expressions, combine all expressions according to the business logic to form an executable expression object, finally realize the business function corresponding to the business logic, and reduce the realization difficulty of the business function. The method can obviously shorten the development period, the grammar rule can be configured into a high-level language close to a natural language, chinese is supported, and a function configuration person familiar with the grammar rule can write a script according to business requirements and support online debugging.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It should be apparent that the drawings in the following description are merely exemplary and that other implementation drawings may be derived from the provided drawings by those of ordinary skill in the art without inventive effort.
The structures, ratios, sizes, and the like shown in the present specification are only used for matching with the contents disclosed in the specification, so that those skilled in the art can understand and read the present invention, and do not limit the conditions for implementing the present invention, so that the present invention has no technical significance, and any structural modifications, changes in the ratio relationship, or adjustments of the sizes, without affecting the functions and purposes of the present invention, should still fall within the scope of the present invention.
FIG. 1 is a schematic diagram of a low-code service script engine device architecture according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for running a low-code service script according to an embodiment of the present invention;
FIG. 3 is a cycle diagram of the processing steps of the low-code service script execution method and the engine device according to the embodiment of the present invention;
fig. 4 is an interface for monitoring a change of CI-type data by a low-code service script execution method and an engine apparatus according to an embodiment of the present invention;
fig. 5 is an interface of a low-code service script compiler and online debugging provided by the embodiment of the present invention.
Detailed Description
The present invention is described in terms of particular embodiments, other advantages and features of the invention will become apparent to those skilled in the art from the following disclosure, and it is to be understood that the described embodiments are merely exemplary of the invention and that it is not intended to limit the invention to the particular embodiments disclosed. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a low-code service script engine apparatus, including:
setting the module 10: the system is used for compiling corresponding business rules aiming at the business scenes and storing the business rules in a rule base;
the trigger module 20: the method comprises the steps of configuring a scenario that a business rule is triggered, wherein the scenario comprises data behavior-based triggering and timing scheduling triggering;
the storage module 30: the system is used for storing the business rules and the configuration information;
the execution module 40: the system is used for processing the calculation request of the user and processing the service data according to the service rule, and comprises a service rule compiler and a service rule executor, wherein the service rule compiler comprises the following components:
business rule compiler 40a: compiling rules compiled by service scripts in advance, and aiming at scenes requiring short response time for terminal user requests;
business rule executor 40b: and the execution module is used for calculating the business rules after the business script is compiled.
Typical scenarios include: precondition check, data construction and storage, notification and business logic processing.
The data behavior trigger sources include: buttons, data changes, relationship changes, process steps, and other business scripts.
The timing scheduling includes: single execution plans and periodic execution plans.
Referring to fig. 2, the method for running a low-code service script provided by the present invention includes:
s201, compiling corresponding service rules aiming at service scenes, and storing the service rules and configuration information;
s202, configuring a scene triggered by a business rule, wherein a trigger source comprises data behavior-based trigger and timing scheduling trigger;
s203, in the current service scene, triggering and calling a service script based on a trigger source;
s204, calling the service script: pre-condition inspection, data pre-storage inspection, data construction and storage;
s205, processing the calculation request of the user, and processing the service data according to the service rule: compiling rules compiled by service scripts in advance, aiming at scenes requiring short response time for terminal user requests, and calculating the service rules after the service scripts are compiled.
The calling of the service script specifically comprises the following steps:
a precondition check for detecting whether the subsequent script should continue to execute; or when the data persistence is used, the triggering of the follow-up action is prevented;
the data is checked before being put into a warehouse, and the exception is thrown out before the data is put into the warehouse, so that the data can be ensured not to be put into the warehouse; if the data class has the establishment primary key, preventing the repeated entry of the service data;
and constructing and storing data, and adding and modifying data in the service script.
Invoking the service script further comprises:
and sending notification information for reminding relevant personnel of the event that the event which is responsible for or concerned by the personnel is changed.
Wherein the triggering based on the data behavior comprises: buttons, data changes, relationship changes, process steps, and other business scripts; and/or the presence of a gas in the gas,
the timed scheduling trigger is a single execution plan or a periodic execution plan.
Examples
In order that those skilled in the art will better understand the present invention, exemplary embodiments thereof will be described in further detail below with reference to the accompanying drawings and detailed description.
FIG. 3 is a process step cycle diagram, where the trigger source is an entry that invokes a low code service script: scenarios for configuring business logic rules to be triggered include data behavior based triggering and timing schedule triggering. The data behavior trigger sources include: buttons, data changes, relationship changes, process steps, and other business scripts,
the timing schedule includes: single execution plans and periodic execution plans;
in the current service scene, calling a service script based on the trigger of a trigger source;
the precondition check is mainly used to detect whether the subsequent script should continue to execute. Or for data persistence, to prevent subsequent action from being triggered. Such as: whether the data exist or not is checked, and whether the data exist or not is checked before the data are generated, so that the data are prevented from being generated for many times.
And the data is checked before being put into a warehouse, and the exception is thrown out before the data is put into the warehouse, so that the data can not be put into the warehouse. If the data class has the establishment primary key, the repeated entry of the service data can be prevented.
Data construction and storage, and a plurality of things items in the service script are newly added data and modified data. Such as: and issuing supervision state feedback and the like. If the meeting record data initializes the scene, it changes the field of the 'agreed item state' into 'not issued' before the meeting record is put in storage (before the CI instance is added). This state saving is handled by the background code.
The notification is used primarily to alert the responsible person of the event that the event for which it is responsible or interested has changed.
FIG. 4 shows a monitoring CI-class data change interface, where a service script has different built-in variables in different usage scenarios. By looking at variables within the script, the usage scenario of the script can sometimes be resolved. The usage scenario includes: CI data changes, relationship data changes, scheduling plans, menu-custom buttons.
The script built-in variables include: the method comprises the steps of modifying a CI object currently being modified, modifying a CI object before change, modifying a class object of the CI object currently being modified, triggering a method CI _ ADD _ PRE currently, triggering a method CI _ ADD _ POST, triggering a method CI _ UPDATE _ PRE, triggering a method CI _ UPDATE _ POST, triggering a method CI _ DELETE _ PRE, triggering a method CI _ DELETE _ POST, recording classes, supporting log levels of info, war, error and the like, operating objects of a mongo database, global variables of a system and the like. As shown in the figure, the low code service script is associated with the position, and the change of the CI class is monitored and is edited in the service script.
Fig. 5 shows an interface of a service script editor and online debugging, where the service script editor is an interface compiled by a low-code service script, and supports more than 2 hundred types of 21-class functions and supports an online debugging function, and the service script editor has an online console function. The print and println print logs can be displayed in a display box at the lower right of the editor.
The service script editor supports 21 types of functions, including: mathematical functions (MathUtils), time-of-date functions (DateTimeUtils), character string functions (StringUtils), organizational and user functions (AccountUtils), data models and manipulation functions (DataModelUtils), attachment functions attachmentutils, notification message functions (notifitionutils), variable correlation functions (VariableUtils), tool functions (toolutils), cache correlation functions (CacheUtils), encryption and decryption correlation functions (cryptituls), system correlation functions (sysutils), script functions (script utils), document manipulation functions (DocumentUtils), JDBC functions bcutils, activequtitls (activequtitls), on functions (JSONUtils), NLPs (nlsjdutils), charueutujdouls (jdutubc functions), chatting code segments, and so on code segments.
Embodiments of the present invention provide a computer-readable storage medium storing instructions that, when executed by at least one computing device, cause the at least one computing device to perform the low code service script execution method as described above.
Embodiments of the present invention also provide a system comprising at least one computing device and at least one storage device storing instructions that, when executed by the at least one computing device, cause the at least one computing device to perform the low code business script execution method as described above.
While exemplary embodiments of the invention have been described above, it should be understood that the above description is exemplary only, and not exhaustive, and that the invention is not limited to the exemplary embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. Therefore, the protection scope of the present invention should be subject to the scope of the claims.

Claims (10)

1. A low code service scripting engine apparatus, comprising:
setting a module: the system is used for compiling corresponding business rules aiming at the business scenes and storing the business rules in a rule base;
a trigger module: a scenario for configuring that a business rule is triggered, including data behavior-based triggering and timing scheduling triggering;
a storage module: the system is used for storing the business rules and the configuration information;
an execution module: the business rule compiler is used for processing the calculation request of the user and processing the business data according to the business rule, and comprises a business rule compiler and a business rule executor, wherein the business rule compiler: compiling rules compiled by a service script in advance, and aiming at scenes requiring short response time for terminal user requests;
a business rule executor: and the execution module is used for calculating the business rules after the business script is compiled.
2. The low code business script engine of claim 1 wherein the scenario comprises: precondition check, data construction and storage, notification and business logic processing.
3. The low code service script engine apparatus of claim 1,
the data behavior trigger source comprises: buttons, data changes, relationship changes, process steps, and other business scripts.
4. The low code service script engine apparatus of claim 1,
the timing schedule includes: single execution plans and periodic execution plans.
5. A method for running a low-code service script is characterized by comprising the following steps:
writing corresponding business rules aiming at business scenes, and storing the business rules and configuration information;
configuring a scene in which a business rule is triggered, wherein a trigger source comprises data behavior-based trigger and timing scheduling trigger;
triggering and calling a service script based on a trigger source in a current service scene;
calling a service script: pre-condition inspection, data pre-storage inspection, data construction and storage;
processing the calculation request of the user, and processing the service data according to the service rule:
compiling rules compiled by service scripts in advance, aiming at scenes requiring short response time for terminal user requests, and calculating the service rules after the service scripts are compiled.
6. The method for running the low-code service script according to claim 5, wherein the invoking of the service script specifically comprises:
a precondition check for detecting whether the subsequent script should continue to execute; or when the data persistence is used, the triggering of the follow-up action is prevented;
checking before data is put in storage, throwing out an exception before the data is put in storage, and ensuring that the data cannot be put in storage; if the data class has the establishment primary key, preventing the repeated entry of the service data;
and constructing and storing data, and adding data and modifying data in the service script.
7. The low code service script execution method of claim 6, wherein the invoking service script further comprises:
and sending notification information for reminding related personnel of the event that the event which is responsible for or concerned by the related personnel is changed.
8. The low code service script execution method of claim 5,
the data-behavior-based trigger includes: buttons, data changes, relationship changes, process steps, and other business scripts; and/or the presence of a gas in the atmosphere,
the timing schedule trigger is a single execution plan or a periodic execution plan.
9. A computer-readable storage medium storing instructions that, when executed by at least one computing device, cause the at least one computing device to perform the low code business script execution method of claim 5 or 6.
10. A system comprising at least one computing device and at least one storage device storing instructions that, when executed by the at least one computing device, cause the at least one computing device to perform the low code business script execution method of claim 5 or 6.
CN202210825940.9A 2022-07-14 2022-07-14 Low-code service script operation method and engine device Pending CN115268986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210825940.9A CN115268986A (en) 2022-07-14 2022-07-14 Low-code service script operation method and engine device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210825940.9A CN115268986A (en) 2022-07-14 2022-07-14 Low-code service script operation method and engine device

Publications (1)

Publication Number Publication Date
CN115268986A true CN115268986A (en) 2022-11-01

Family

ID=83765106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210825940.9A Pending CN115268986A (en) 2022-07-14 2022-07-14 Low-code service script operation method and engine device

Country Status (1)

Country Link
CN (1) CN115268986A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115640045A (en) * 2022-12-26 2023-01-24 卓望数码技术(深圳)有限公司 Low-code development platform based on domain-driven design and business system creation method
CN117667065A (en) * 2023-12-08 2024-03-08 格瑞利(江苏)智能科技有限公司 Low-code application configuration platform

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115640045A (en) * 2022-12-26 2023-01-24 卓望数码技术(深圳)有限公司 Low-code development platform based on domain-driven design and business system creation method
CN115640045B (en) * 2022-12-26 2023-04-07 卓望数码技术(深圳)有限公司 Low-code development platform based on domain-driven design and business system creation method
CN117667065A (en) * 2023-12-08 2024-03-08 格瑞利(江苏)智能科技有限公司 Low-code application configuration platform

Similar Documents

Publication Publication Date Title
US6539501B1 (en) Method, system, and program for logging statements to monitor execution of a program
Gallaba et al. Use and misuse of continuous integration features: An empirical study of projects that (mis) use Travis CI
US10572249B2 (en) Software kit release management
CN115268986A (en) Low-code service script operation method and engine device
US20170372247A1 (en) Methods, systems, and articles of manufacture for implementing software application development and releases
CN108319460B (en) Method and device for generating application program installation package, electronic equipment and storage medium
CN110413316B (en) Non-invasive testing system and method for intelligent contracts of block chain
US11550568B1 (en) Automatically deploying artifacts
CN113885870B (en) Application program updating method, electronic equipment, terminal equipment and system
US20200133711A1 (en) Event-Triggered Configuration of Workflow Processes for Computer Software Development Systems
US20230088784A1 (en) Proactively detecting and predicting potential breakage or support issues for impending code changes
CN110673837B (en) Code repairing method and device, electronic equipment and computer readable storage medium
US20240220401A1 (en) Continuous integration automated test systems and methods, electronic devices, and storage media
CN113127050B (en) Application resource packaging process monitoring method, device, equipment and medium
CN111176722A (en) Method and device for detecting file version of third-party library and storage medium
US9779014B2 (en) Resilient mock object creation for unit testing
CN114637511A (en) Code testing system, method, device, electronic equipment and readable storage medium
CN114579467B (en) Smoking testing system and method based on publish-subscribe mechanism
CN110865806A (en) Code processing method, device, server and storage medium
US10185647B2 (en) Debugging remote vertex code on test machine
CN108304164B (en) Business logic development method and development system
US9489179B2 (en) Application programming interface tracing mechanism
CN111105289B (en) Method and device for judging cancellation of client order based on aop mode
CN111078236A (en) Automatic software installation method and system, electronic equipment and storage medium
CN113885958A (en) Method and system for intercepting dirty data

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