jBPM6-在现有应用程序中嵌入Web设计器 [英] jBPM6 - embed web designer in existing application
问题描述
您是否知道有任何指南/教程/示例项目可能会帮助我将jBPM Web Designer嵌入现有Web应用程序中?
即:
Are you aware of any guide / tutorial / example project that might help me embed the jBPM web designer in an existing web application? Namely:
- 我需要包括哪些Maven库?
- 是是否可以在主应用程序WAR中部署设计器特定的组件(毕竟这是嵌入式的意思)?
- 如何访问设计器?是否有特定的URL?
在此先感谢您提供任何提示。
Thanks in advance for any hint.
推荐答案
我终于找到了解决方法。
I finally found out how to do it.
您需要的是一个正在运行的KIE工作台实例(似乎这曾经被称为Drools Guvnor)。您可以使用jBPM安装程序来启动演示系统并快速运行。有关如何执行此操作的书面指南,请此处。就我而言,我从
What you need is a running instance of the KIE workbench (seems this was once formerly called Drools Guvnor). You can get a demo system up and running very fast using the jBPM installer. A written guide on how to do it can be found here. In my case I downloaded the jbpm-6.1.0.Final-installer-full.zip
from here.
在运行KIE工作台的JBoss AS / WildFly运行后,您可以通过 http:// localhost:8080 / jbpm-console /
。
As soon as you have the JBoss AS/WildFly with the KIE workbench running you can access it through http://localhost:8080/jbpm-console/
.
现在似乎在KIE研讨会中保存的每个BPMN流程具有唯一的路径,该路径也是Git存储库URL。当您打开图表并转到元数据选项卡时,此路径将列为URI。
Now each BPMN process saved in the KIE workshop seems to have a unique path which is also a Git repository URL. When you open a diagram and go to the metadata tab this path is listed as URI.
要使用jBPM Designer BPMN在定制的Web应用程序中显示此BPMN流程。 2编辑器,只需创建一个 iframe
HTML元素,并在其中添加该URL,如下例所示:
To display this BPMN process inside a custom-built web application with the jBPM Designer BPMN 2 editor, just create an iframe
HTML element with that URL in it like the following example:
<html>
<head>
<title>Test</title>
</head>
<body>
<h1>Test</h1>
<p>Editor frame below:</p>
<iframe height='800' src='http://localhost:8080/jbpm-console?standalone=&path=git://master@jbpm-playground/HR/src/main/resources/hiring.bpmn2' width='1000'></iframe>
</body>
</html>
加载该页面后,编辑器将通过<$ c嵌入到页面中$ c> iframe 。即使没有Web服务器的静态HTML页面也可以使用它,因此它应该具有多种用途,并且您的Web应用程序肯定不需要在同一JBoss AS / WildFly实例中运行,甚至不需要用Java编写。
As soon as you load that page, the editor will be embedded into the page via that iframe
. This works even with a static HTML page without a web server, so it should be quite versatile and your web application surely doesn't need to run inside the same JBoss AS/WildFly instance and doesn't even need to be written in Java.
到目前为止,我还没有弄清楚如何通过某种API创建新的BPMN流程,然后可以在独立的Web应用程序中对其进行编辑。我也不知道访问控制应该如何工作。
What I did not figure out so far is how to create new BPMN processes via some kind of API, which could then be edited within the standalone web application. Also I don't know how access control is supposed to work yet.
这篇关于jBPM6-在现有应用程序中嵌入Web设计器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!