{ "lookup": "globalTestStateless", "commands": [
{ "insert": { "return-object": true, "out-identifier": "UserInfo", "object": { "com.qf.globaltest.LoanAppInfo": { "age":1, "income":2000 } } } }, { "set-global": { "identifier": "myMap", "out-identifier": "output", "object": { "java.util.HashMap": { } } } }, { "fire-all-rules": "" }, { "get-global": { "identifier":"myMap","out-identifier":"helperOutput" } }, { "get-objects":{ "out-identifier":"myobject" } } ]}{ "fire-all-rules": ""}{ "fire-all-rules": {"max":10,"out-identifier":"firedActivations"}}{ "type": "SUCCESS", "msg": "Container globalTest1.5 successfully called.", "result": { "execution-results": { "results": [ { "key": "output", "value": { "A001": "reject" } }, { "key": "firedActivations", "value": 10 }, { "key": "myobject", "value": [ { "com.qf.globaltest.LoanAppInfo": { "name": null, "age": 1, "income": 2000, "buffer": { "A1002": 200, "A1001": "REJECT" } } } ] }, { "key": "UserInfo", "value": { "com.qf.globaltest.LoanAppInfo": { "name": null, "age": 1, "income": 2000, "buffer": { "A1002": 200, "A1001": "REJECT" } } } }, { "key": "helperOutput", "value": { "A001": "reject" } } ], "facts": [ { "key": "UserInfo", "value": { "org.drools.core.common.DefaultFactHandle": { "external-form": "0:1:1374304991:1374304991:6:DEFAULT:NON_TRAIT:com.qf.globaltest.LoanAppInfo" } } } ] } }}--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/2f26ee07-349e-4da9-8585-d93d7ecfe55d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
package com.qf.globaltest;
rule "custom ageCheck" no-loop true dialect "java" when $a : LoanAppInfo( age < 25 ) then $a.updateBuffer( "customAgeCheck", "REJECT" ); update($a);end{ "fire-all-rules": ""}--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/2d243f75-99e9-4d37-81ef-6a36db6fe6af%40googlegroups.com.
{ "lookup": "globalTestStateless", "commands": [
{ "insert": { "return-object": true, "out-identifier": "UserInfo", "object": { "com.qf.globaltest.LoanAppInfo": { "age":1, "income":2000 } } } }, { "set-global": { "identifier": "myMap", "out-identifier": "output", "object": { "java.util.HashMap": { } } } }, { "fire-all-rules": "" }, { "get-global": { "identifier":"myMap","out-identifier":"helperOutput" } }, { "get-objects":{ "out-identifier":"myobject" } } ]}{ "type": "SUCCESS", "msg": "Container globalTest1.7 successfully called.", "result": { "execution-results": { "results": [ { "key": "output", "value": { "A001": "reject" } }, { "key": "", "value": 4 }, { "key": "myobject", "value": [ { "com.qf.globaltest.LoanAppInfo": { "name": null, "age": 1, "income": 2000, "buffer": { "customAgeCheck": "REJECT", "A1002": 200, "A1001": "REJECT" } } } ] }, { "key": "UserInfo", "value": { "com.qf.globaltest.LoanAppInfo": { "name": null, "age": 1, "income": 2000, "buffer": { "customAgeCheck": "REJECT", "A1002": 200, "A1001": "REJECT" } } } }, { "key": "helperOutput", "value": { "A001": "reject" } } ], "facts": [ { "key": "UserInfo", "value": { "org.drools.core.common.DefaultFactHandle": { "external-form": "0:1:176379641:176379641:2:DEFAULT:NON_TRAIT:com.qf.globaltest.LoanAppInfo" } } } ] } }}To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.