drl内容

package com.huawei.wad.ups.platform.service.ruleengine.entity;
import com.huawei.wad.ups.platform.service.ruleengine.entity.UserData;
rule "900060011264049292046" salience 100
 when ud:UserData( eval(1==1)  && eval(ud.getCharacters().containsKey("10001002")) && eval(ud.getCharacters().containsKey("10001001")))
 then ud.getTagRules().put("101",0.4*((ud.getCharacters().get("10001001")*0.5+ud.getCharacters().get("10001002")*0.5))/(0.4*((ud.getCharacters().get("10001001")*0.5+ud.getCharacters().get("10001002")*0.5))+0.6*((ud.getCharacters().get("10001001")*0.5+ud.getCharacters().get("10001002")*0.5))));
 end

你可能感兴趣的:(r)