Rules engine integration interface (1)

      

        This chapter begins the initial experience of VisualRules development and establishes the most basic perceptual understanding of VisualRules through classic cases such as "Hello World", "Employee Management", and "Student Management".

        Through the analysis of the case, it helps you to have a deeper understanding of the core data flow principle and processing process.
        Through the explanation of the same case, learn about several aspects:
                                                create, configure, and publish rule packages in the rule engine.
                                             rule package file storage method
                                             rule package test
                                             rule package web method call
                                             rule package java code call
                                             rule service release
                                             C# language call rule package

 

Database operation
 case description
       The requirements of this case are: create a dbs file through the "Database Configurator", and configure the rules in combination with the "Rule Configurator".
Rule package development
       to create a rule project object library, click "File" - "New Rule Project" on the menu bar, as shown in the figure below:


a dialog box "Create New Project" will pop up, and enter "Object Library" in the text box corresponding to the project name. , as shown in the figure below: 


 Click OK, as shown in the figure below: The
rule project is created.


 New rule pack database operation

Right-click the project "Object Library" - "New Rule Package", as shown in the figure below:

 and name it "Database Operation", as shown below:

The "Database Operation" rule package is created.


import table from dbs file

 

Open the "Database Operation" rule package, you can see the "Object Library", right-click on the object library, and select "Import Table from dbs File" in the menu item, as shown in the figure below:

 Pop up the window, start looking for the dbs file, find Then click Open, as shown in the figure below:

Click Open, a window will pop up, select the table name "hr_department", and click "OK", as shown in the figure below:



Click "Department Information" to view the "Department Information Table Data" menu item, as shown below: 
 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326945476&siteId=291194637