following is json request
{Â
  "lookup":"defaultStatelessKieSession",
  "commands":[Â
     {Â
        "insert":{Â
           "object":{Â
              "com.redhat.demos.loandemo.Applicant":{Â
               "applicant_age":12.0
              }
           },
           "out-identifier":"applicant",
           "return-object":true
        }
     },
{Â
        "insert":{Â
           "object":{Â
              "com.redhat.demos.loandemo.CoApplicant":{Â
               "age":12.0
              }
           },
           "out-identifier":"applicant",
           "return-object":true
        }
     },
     {Â
        "insert":{Â
           "out-identifier":"loan",
           "object":{Â
              "com.redhat.demos.loandemo.Loan":{Â
                 "tenure":5
              }
           },
           "return-object":true
        }
     },
     {Â
        "fire-all-rules":""
Â
     },
{Â
        "get-objects":{Â
           "out-identifier":"result"
        }
Â
     }
  ]
}
 and following is the output i am getting.
{
 "type": "SUCCESS",
 "msg": "Container loandemo successfully called.",
 "result": {
   "execution-results": {
     "results": [
       {
         "key": "",
         "value": 1
       },
       {
         "key": "output",
         "value": [
           {
             "com.redhat.demos.loandemo.Loan": {
               "tenure": 5
             }
           },
           {
             "com.redhat.demos.loandemo.CoApplicant": {
               "age": 12
             }
           },
           {
             "com.redhat.demos.loandemo.Applicant": {
               "applicant_age": 12
             }
           }
         ]
       },
       {
         "key": "loan",
         "value": {
           "com.redhat.demos.loandemo.Loan": {
             "tenure": 5
           }
         }
       },
       {
         "key": "applicant",
         "value": {
           "com.redhat.demos.loandemo.CoApplicant": {
             "age": 12
           }
         }
       }
     ],
     "facts": [
       {
         "key": "loan",
         "value": {
           "org.drools.core.common.DefaultFactHandle": {
             "external-form": "0:3:368188141:-1807407624:3:DEFAULT:NON_TRAIT:java.util.LinkedHashMap"
           }
         }
       },
       {
         "key": "applicant",
         "value": {
           "org.drools.core.common.DefaultFactHandle": {
             "external-form": "0:2:99174126:-901609297:2:DEFAULT:NON_TRAIT:java.util.LinkedHashMap"
           }
         }
       }
     ]
   }
 }
}
Rules are not getting fired. please anyone help me.
Thanks
On Friday, July 7, 2017 at 2:54:28 PM UTC+5:30, vijay yadav wrote: