package cn.ibizlab.businesscentral.sales.logic.quotelogic.active;

import java.util.Map;
import java.util.HashMap;
import com.alibaba.fastjson.JSONObject;
global cn.ibizlab.businesscentral.core.sales.domain.Quote quoteactivedefault;
global cn.ibizlab.businesscentral.core.sales.service.IQuoteService quoteservice;
global cn.ibizlab.businesscentral.core.sales.service.IQuoteService iBzSysQuoteDefaultService;
global cn.ibizlab.businesscentral.util.security.AuthenticationUser curuser;

no-loop

//逻辑处理节点[更新报价单]
rule "deaction1"
ruleflow-group "quoteactivedeaction1"
    when
    then
    quoteservice.update(quoteactivedefault);
    update(quoteactivedefault);//更新fact中变量值
    end

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

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