Malcolm Rules is a complex rules description structure based on Json.
-
Unlimited group
-
Unlimited level
-
Unlimited restriction
Risk control, online activities, points issued and other systems need to flexibly configure the complex rules.
{
"type": "subrules",
"logic": "and",
"subrules": [
{
"type": "restriction",
//your business properties
},
{
"type": "subrules",
"logic": "or",
"subrules": [
{
"type": "restriction",
//your business properties
},
{
"type": "restriction",
//your business properties
}
]
}
]
}
Because of the band AC\DC's guitarist Malcolm Young.
This editor just is a example, you need merge this code to your project.