我在https://thingsboard.io/docs/user-guide/contribution/rule-node-development/之后创建了自定义RuleNode 在部署和运行时,以及在插入“自定义规则”节点时,都会显示
定义的配置指令'myTestNodeConfig'不可用。
在rule-node-examples项目中,定义如下
@RuleNode(
type = ComponentType.FILTER,
name = "MyTestNode",
relationTypes = {"True", "False"},
configClazz = MyTestNodeConfiguration.class,
nodeDescription = "Checks the existence of the selected key in the message payload.",
nodeDetails = "If the selected key exists - send Message via <b>True</b> chain, otherwise <b>False</b> chain is used.",
uiResources = {"static/rulenode/custom-nodes-config.js"},
configDirective = "myTestNodeConfig")
public class MyTestNode implements TbNode {
在rule-node-examples-ui项目中,其定义如下所示
import CheckKeyConfigDirective from './check-key-config.directive';
export default angular.module('thingsboard.ruleChain.config.filter', [])
.directive('myTestNodeConfig', CheckKeyConfigDirective)
.name;
有人可以帮助您找出缺少的内容。谢谢