mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-15 04:22:09 +08:00
初步完成 liteflow-solon-plugin 适配
This commit is contained in:
@@ -2,6 +2,7 @@ package com.yomahub.liteflow.solon;
|
||||
|
||||
import com.yomahub.liteflow.core.NodeIfComponent;
|
||||
import com.yomahub.liteflow.enums.LiteFlowMethodEnum;
|
||||
import com.yomahub.liteflow.exception.LiteFlowException;
|
||||
import org.noear.solon.core.BeanWrap;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
@@ -22,12 +23,12 @@ public class NodeIfComponentOfMethod extends NodeIfComponent {
|
||||
|
||||
if (method.getParameterCount() > 1) {
|
||||
String methodFullName = beanWrap.clz().getName() + "::" + method.getName();
|
||||
throw new RuntimeException("NodeIfComponent method parameter cannot be more than one: " + methodFullName);
|
||||
throw new LiteFlowException("NodeIfComponent method parameter cannot be more than one: " + methodFullName);
|
||||
}
|
||||
|
||||
if (method.getReturnType() != Boolean.class) {
|
||||
String methodFullName = beanWrap.clz().getName() + "::" + method.getName();
|
||||
throw new RuntimeException("NodeIfComponent method returnType can only be boolean: " + methodFullName);
|
||||
throw new LiteFlowException("NodeIfComponent method returnType can only be boolean: " + methodFullName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user