package com.pointlion.sys.interceptor;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;
import com.jfinal.kit.StrKit;
import com.pointlion.sys.mvc.admin.oa.workflow.WorkFlowService;

public class WorkFlowHisInterceptor implements Interceptor {
    @Override
    public void intercept(Invocation inv) {
    	inv.invoke();
        String procInsId = inv.getController().getAttr("procInsId","");
        if(StrKit.notBlank(procInsId)){
        	inv.getController().setAttr("hislist",WorkFlowService.me.getHisTaskList(procInsId));
        }
    }
}
