将自定义工作项处理程序获取到jBPM 6泊坞窗图像中

我最近刚刚开始使用jBPM 6,并设法使用本地安装来运行。

然后,我尝试使用Docker为我的演示的可移植性带来相同的东西,成功,除了在一个领域。

安装本地版本的jBPM 6.2.0.Final时,4个自定义工作项目处理程序会自动添加到工作台。 日志,Web服务,rest和服务任务,我已经在我的过程中使用。

当安装jbpm-workbench:6.2.0.Final或jbpm-workbench-showcase:6.2.0.Final时,现在会出现这些自定义工作项目,而我无法确定在哪里复制CustomWorkItemHandlers.conf和drools.session.conf在我的图像扩展Dockerfile中,以便将它们捡起来(或者如果这足够了,或者.wid文件也将是必要的,或者是什么。

我也应该说,我在Workbench中做了所有事情,到目前为止,我没有必要编写或更改任何Java代码,所以我想让Docker版本以完全相同的方式工作。

如果有人有任何见解,我会很感激。 谢谢!

显然我是愚蠢的,忘记了这个行的某个地方,我实际上已经编辑了我通过工作台使用的仓库的WorkDefinitions.wid文件,并添加了如下所示的行:

import org.drools.core.process.core.datatype.impl.type.StringDataType; import org.drools.core.process.core.datatype.impl.type.ObjectDataType; [ [ "name" : "Email", "parameters" : [ "From" : new StringDataType(), "To" : new StringDataType(), "Subject" : new StringDataType(), "Body" : new StringDataType() ], "displayName" : "Email", "icon" : "defaultemailicon.gif" ], [ "name" : "Log", "parameters" : [ "Message" : new StringDataType() ], "displayName" : "Log", "icon" : "defaultlogicon.gif" ], [ "name" : "WebService", "parameters" : [ "Url" : new StringDataType(), "Namespace" : new StringDataType(), "Interface" : new StringDataType(), "Operation" : new StringDataType(), "Parameter" : new StringDataType(), "Endpoint" : new StringDataType(), "Mode" : new StringDataType() ], "results" : [ "Result" : new ObjectDataType(), ], "displayName" : "WS", "icon" : "defaultservicenodeicon.png" ], [ "name" : "Rest", "parameters" : [ "Url" : new StringDataType(), "Method" : new StringDataType(), "ConnectTimeout" : new StringDataType(), "ReadTimeout" : new StringDataType(), "Username" : new StringDataType(), "Password" : new StringDataType() ], "results" : [ "Result" : new ObjectDataType(), ], "displayName" : "REST", "icon" : "defaultservicenodeicon.png" ] ] 

一旦我再次这样做,那就没事了。 所以很明显,对于Docker映像,可以预先添加到存储库或者之后添加,可能是通过自动化。