AccountActiveRule.drl 1.0 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
package cn.ibizlab.businesscentral.base.logic.accountlogic.active;

import java.util.Map;
import java.util.HashMap;
import com.alibaba.fastjson.JSONObject;
global cn.ibizlab.businesscentral.core.base.domain.Account accountactivedefault;
global cn.ibizlab.businesscentral.core.base.service.IAccountService accountservice;
global cn.ibizlab.businesscentral.core.base.service.IAccountService iBzSysAccountDefaultService;
global cn.ibizlab.businesscentral.util.security.AuthenticationUser curuser;

no-loop

//逻辑处理节点[更新客户状态]
rule "deaction1"
ruleflow-group "accountactivedeaction1"
    when
    then
    accountservice.update(accountactivedefault);
    update(accountactivedefault);//更新fact中变量值
    end

//逻辑处理节点[开始]
rule "begin"
ruleflow-group "accountactivebegin"
    when
    then
    end

//逻辑处理节点[准备参数]
rule "prepareparam1"
ruleflow-group "accountactiveprepareparam1"
    when
    then
    accountactivedefault.set("statuscode","1");
    update(accountactivedefault);//更新fact中变量值
    end