Graph Rule.

OBJECTIVE

What is a Graph Rule?

A graph rule typically refers to a specific set of conditions or constraints that define the properties or behavior of a graph. Graph rules help establish the structure, connectivity, or other characteristics of a graph.

In this section of the manual, you will know how to create a graph rule.

The following steps need to be followed for creating a graph rule on new UI:

  1. Log-in to the instance with the user Id and password and you will land on the below screen. Click on ‘Graph Rule’ under ‘Business Rule Engine’ section as shown.

2. Once you click on ‘Graph Rule’, you will see the below screen. Now, click on ‘Add New’ button present at the top-right corner of the screen to create a graph rule.

3. Once you click on ‘Add New’ button, you will see the below screen. Fill all the details as required and click on ‘Create’ button.

4. Once you click on ‘Create’ button, you will see the below screen. Drag and drop the ‘New Rule’ button to add new rules.

5. When you drag and drop the ‘New Rule’ button, you will see a box named ‘Rule’ as shown in the below screen. Once you click on that box, you will see ‘Rule Properties’ appearing at the right side of the screen which contains various sections such as ‘Basic’, ‘Input’, ‘Output’, ‘Buckets’, ‘Test’. You need to fill all the sections and keep clicking on ‘Save’ button to proceed.

Under ‘Basic’ section, you need to enter a name for the rule and click on ‘Save’ button.

6. Under ‘Input’ section, you need to select ‘Input Category’ from a list of categories. When you select the ‘Input Category’, you will get related ‘Input Parameters’, select one according to your input and then click on ‘Add’ button.

7. Under ‘Output’ section, you need to enter ‘Output Parameter Name’ and you need to select the ‘Parameter Type’ from a list of parameter types, then click on ‘Add’ button.

8. Under ‘Buckets’ section, you need to enter the following fields:

  • Bucket Label: Enter a name/label for the bucket.

  • If: Add a condition by using the ‘Input Parameter’ which you selected (in step 6).

The format is: #InputParameter (condition)

Refer the below example: here, age is the Input Parameter, and <18 is the condition.

  • Then: Select the ‘Output Parameter Name’ which you entered (in step 7) and enter the output result in the space provided next to it.

The format is: Output Parameter = ‘Output Result’

Refer the below example: Age_Status is the Output Parameter, and ‘Reject’ is the Output Result.

Then click on ‘Save Bucket’.

9. Under ‘Test’ section, you need to enter a value in the provided field for the ‘Input Parameter’ to test your rule and then click on ‘Run Test’. Once you click on ‘Run Test’, you will get the Test Result (according to your test rule) as shown below.

10. Similarly, you can create other rules as required. Finally, create a final rule and join the previous rules to the final rule. You can join it by clicking on the dot points of a particular rule as shown below.

(For Example: Here, I have created two rules named: Age and Credit Bureau and one final rule named: Final Rule)

11. For Final Rule Properties, under ‘Input’ section, you have to select ‘Previous Rule’ as shown. Under ‘Input Category’, you will get the option to select from previously created rules (Here, Age and Credit Bureau are previously created rules). Then, select the ‘Input Parameter’ related to it and click on ‘Add’. Follow the same steps as earlier for all the sections. Keep saving it.

12. Once you ‘Run Test’ for final rule, you can click on ‘Save as Draft’ button present at the top-right corner of the screen.

13. Once you click on ‘Save as Draft’ button, you will see a pop-up displaying that your graph has been saved as draft successfully.

14. When you click on the three dots beside the ‘Test’ button, you will get various options such as ‘View Code’, ‘Clone’, ‘Edit’ and ‘Delete’ as shown below.

15. Once you click on ‘View Code’ option, you will see the below screen which contains the code. You will also get option to copy and edit the code.

16. When you click on ‘Test’ button, you will see the below screen to test your rule. Enter the values in the provided field and click on 'Run Test' to proceed.

17. When you click on ‘Publish’ button, you will see a pop-up as shown below. Click on ‘Publish’.

18. Once you click on ‘Publish’, you will see 'Published’ under ‘Status’ displayed along the same row of newly created graph rule (here, newly created rule is Age_Rule) which confirms that your graph rule has been published successfully.