Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tech.kiwa.engine.component.impl.DefaultRuleExecutor中获取参数的方法 为什么要这么写? #15

Open
licanlong opened this issue Sep 4, 2020 · 1 comment

Comments

@licanlong
Copy link

//改函数可以被覆盖,可以实现不同的参数传入效果
protected Object getParamValue( String param, String type){

	String value = "";
	switch(param.toLowerCase()){

		case "customer_no":
		case "object":
			value = this.object.toString();
			break;

		default:
			value = "";
			break;
	}

	return value;
}
@Hale-Lee
Copy link
Owner

Hale-Lee commented Sep 4, 2020

这个函数需要自己重写,可以参考上面的例子重新写一下。
主要功能是根据param获取value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants