我正在为提供Camunda BPM子系统的Galleon功能包开发一个POC。
我目前的进展可以在这里找到:https://github.com/marcus-nl/camunda-galleon-pack
到目前为止,这篇文章和链接的示例/模板非常有用,但不幸的是,我仍然停留在一个还没有完全涵盖的问题上:定制standalone.xml配置。
standalone.xml所需的添加内容如下:standalone.xml。因此,基本上有4项增加:
我不知道如何实现3和4。从3开始,只需添加作业执行器(没有嵌套的职务获取元素)的CLI命令如下所示:
/subsystem=camunda-bpm-platform/job-executor=job-executor:add(core-threads=3, max-threads=5, queue-length=10)经过一些实验,我得出了以下特性规范(请参阅camunda-subsystem.xml):
<feature spec="subsystem.camunda-bpm-platform">
<param name="subsystem" value="subsystem.camunda-bpm-platform"/>
<feature spec="subsystem.camunda-bpm-platform.job-executor">
<param name="job-executor" value="default"/>
<param name="core-threads" value="3"/>
<param name="max-threads" value="5"/>
<param name="queue-length" value="10"/>
</feature>
</feature>导致错误消息:
无法单独构建名为{com.github.marcus-nl.camunda-galleon}subsystem.camunda-bpm-platform.job-executor:的配置模型standalone.xml:未能解决{com.github.marcus-nl.camunda-galleon}subsystem.camunda-bpm-platform.job-executor引用子系统的特性引用子系统.standalone.xml{com.github.marcus-nl.camunda-galleon}subsystem.camunda-bpm-platform.job-executor外键参数主机平台不存在
我被困在那里了。这与camunda平台元素和作业执行器元素之间的父子关系有关。“外键参数主机”似乎是指为camunda平台生成的spec.xml (这是给任务执行者的)中的"host“参数,但如果我试图将其定义为:
<feature spec="subsystem.camunda-bpm-platform">
<param name="host" value="subsystem.camunda-bpm-platform"/>
<param name="subsystem" value="subsystem.camunda-bpm-platform"/>我得到了错误"Feature Subsystem.camunda-bpm-platform.Jobs-executor不定义参数主机“,尽管(如您所见),我在父”camunda platform“中定义了param,而不是在”作业-executor“子中定义了param。
我在这里错过了什么?有人能给我指明正确的方向吗?
发布于 2020-03-02 12:54:39
好像你在帆船里碰到了一只虫子。我们正在调查。现在,您可以通过生成域的特性来解决这个问题,如:https://github.com/wildfly/wildfly/blob/master/galleon-pack/wildfly-feature-pack-build.xml#L89中所做的那样
谢谢你。
https://stackoverflow.com/questions/60375504
复制相似问题