isStart = action.execute(cloneProcessInstance, cloneActivityInst);
} else {
//反射调用bean指定的方法。
String methodName = beanName.substring(index + 1);
if("".equals(beanName))
throw new ProcessEngineException("IActivateRuleAction 实现类Bean:"+beanName+",没有指定方法名称");
beanName = beanName.substring(0, index);
try {
Method method = action.getClass().getMethod(methodName, long.class, long.class);
isStart = (Boolean)method.invoke(action, cloneProcessInstance, cloneActivityInst);
} catch (Exception e) {
throw new ProcessEngineException("IActivateRuleAction 实现类Bean:"+beanName+",没有此方法", e);
}
}
} catch (Exception e) {
throw new ProcessEngineException("环节激活规则逻辑执行失败", e);
}
return isStart;
}