简体   繁体   English

如何在Eclipse BPMN2 Modeler的工具选项板中显示自定义任务?

[英]How do I get Custom Tasks to show up in the tools palette in the Eclipse BPMN2 Modeler?

I'm trying to define my own work items and work item handlers as described in the jBPM user guide on domain specific processes. 我正在尝试定义我自己的工作项和工作项处理程序,如jBPM用户指南中针对特定于域的进程所述。 It worked once. 它工作过一次。 When I restarted eclipse they were no longer visible. 当我重新启动日食时,它们不再可见。 The bpmn2 files that use my work items still have the properties available in the property view but the tool palette doesn't show the custom task drawer and new jbpmn process diagrams also do not show the custom task drawer. 使用我的工作项的bpmn2文件仍然具有属性视图中可用的属性,但工具选项板不显示自定义任务抽屉,新的jbpmn过程图也不显示自定义任务抽屉。

To try and fix this I have rebuilt my eclipse from scratch (both kepler and luna versions). 为了尝试解决这个问题,我从头开始重建了我的eclipse(kepler和luna版本)。 Re-added all the jbpm/drools and bpmn2 modeler plugins. 重新添加了所有jbpm / drools和bpmn2建模器插件。 Created new jbpmn runtime instances but all with no luck. 创建了新的jbpmn运行时实例,但都没有运气。

I did discover that if I open the diagram with the older version of the bpmn modeler (right-click on the file in eclipse, open with -> BPMN2 Process Editor) then the Service Tasks draw appears with my custom work item but that UI is very difficult to work with when setting attributes and properties. 我确实发现,如果我使用旧版本的bpmn建模器打开图表(在eclipse中右键单击文件,使用 - > BPMN2 Process Editor打开),那么Service Tasks绘图将显示我的自定义工作项,但该UI是设置属性和属性时很难处理。

What do I have to do to re-enable the Custom Tasks drawer in the BPMN2 Diagram Editor? 如何在BPMN2 Diagram Editor中重新启用Custom Tasks抽屉? Everything that I have read just assumes that as long as you have the drools.rulebase.conf file in the META-INF directory of your project with the drools.workDefinitions property in it then the drawer will show up the next time you open a bpmn file. 我读过的所有内容都假设只要你的项目的META-INF目录中有drools.rulebase.conf文件,其中包含drools.workDefinitions属性,那么下次打开bpmn时抽屉就会显示出来文件。 I did find one bug post here that talks about ensuring you use the correct diagram type when creating new but I am already doing that. 我确实在这里发现了一个关于确保在创建新的时使用正确的图表类型的错误帖子,但我已经这样做了。

My current eclipse environment is: 我目前的日食环境是:

  • Kepler 20140224-0627 开普勒20140224-0627
  • BPMN2 Modeler - Diagram Editor 1.0.5.Final BPMN2 Modeler - 图编辑器1.0.5.Final
  • JBoss Drools Core 6.2.0.Final JBoss Drools Core 6.2.0.Final
  • JBoss jBPM Core 6.2.0.Final JBoss jBPM Core 6.2.0.Final

I answered a question on how to create a service task in a previous answer . 我回答了一个关于如何在之前的答案中创建服务任务的问题 This might help with finding which step you might have missed. 这可能有助于找到您可能错过的步骤。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM