如何为BonitaBPMCommunity Tomcat Bundle配置BonitaBPM平台

时间:2016-11-30 15:08:28

标签: postgresql bonita

我尝试使用BonitaBPMCommunity-7.3.1-Tomcat-7.0.67在链接http://community.bonitasoft.com/project/process-variable-example处给出简单的流程变量示例。它在bonita studio中运行良好,并且使用tomcat bundle进行默认的h2数据库配置。但是,当我使用PostgreSQL数据库配置tomcat bundle时,它与Bonita ui表单不兼容,但与包含6.x表单的进程配合良好。我已按照官方链接http://documentation.bonitasoft.com/?page=tomcat-bundle提供的数据库配置说明进行操作。使用bundle进行PostgresSQL配置时,日志文件中没有错误。这个行为是因为我在Windows 7旗舰版32位上运行tomcat bundle“BonitaBPMCommunity-7.3.1-Tomcat-7.0.67”?如果我问过一些愚蠢的东西,我是Bonita的新人,请原谅。

Error (when i run process in Mozilla Firefox developer mode):
myProcessVariable is a Process Variable defined in process.

http://localhost:8888/bonita/portal/resource/taskInstance/ProcessVariabl... [HTTP/1.1 403 Forbidden 0ms]
no element found
In Log file i got error when i submit Instantiation form.
Error evaluating < formOutput > data: $data.processVariableValue is undefinedvendor.min.js:105:441
GET
XHR

我的日志文件:

016-12-01 03:11:47.497 -0800 INFO: org.bonitasoft.platform.setup.PlatformSetup System property org.bonitasoft.platform.setup.folder is set to C:\BonitaBPM\BonitaBPMCommunity-7.3.1-Tomcat-7.0.67\setup
2016-12-01 03:11:47.541 -0800 INFO: org.bonitasoft.platform.setup.PlatformSetup Connected to 'h2' database with url: 'jdbc:h2:tcp://localhost:9091/bonita_journal.db' with user: 'SA'
2016-12-01 03:11:47.545 -0800 INFO: org.bonitasoft.platform.setup.ScriptExecutor configuration for Database vendor: h2
2016-12-01 03:11:47.757 -0800 INFO: org.bonitasoft.platform.setup.PlatformSetup Platform is already created. Nothing to do.
2016-12-01 03:11:47.866 -0800 INFO: org.bonitasoft.engine.EngineInitializer Initializing Bonita Engine...
2016-12-01 03:11:47.866 -0800 INFO: org.bonitasoft.engine.EngineInitializer Initializing Spring context...
2016-12-01 03:11:58.510 -0800 WARNING: org.hibernate.type.TypeFactory HHH000233: Scoping types to session factory org.hibernate.internal.SessionFactoryImpl@ac6f04 after already scoped org.hibernate.internal.SessionFactoryImpl@ac8478
2016-12-01 03:12:02.630 -0800 INFO: org.bonitasoft.engine.EngineInitializer Starting platform...
2016-12-01 03:12:10.080 -0800 INFO: org.bonitasoft.engine.EngineInitializer Platform started successfully
2016-12-01 03:12:10.081 -0800 INFO: org.bonitasoft.engine.EngineInitializer Initialization of Bonita Engine done! ( took 22215ms)
2016-12-01 03:13:41.877 -0800 INFO: org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bonita] RestletServlet: [Restlet] ServerServlet: component class is null
2016-12-01 03:13:42.396 -0800 INFO: org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bonita] RestletServlet: [Restlet] Attaching application: org.bonitasoft.web.rest.server.BonitaRestletApplication@1b811b to URI: /bonita/API
2016-12-01 03:13:42.412 -0800 INFO: org.restlet.Component.BonitaRestletApplication Starting org.bonitasoft.web.rest.server.BonitaRestletApplication application
2016-12-01 03:15:43.466 -0800 INFO: org.restlet.Component.BonitaRestletApplication Error while validating expected inputs
Explanations:
Expected input [newVariableValue] is missing

1 个答案:

答案 0 :(得分:0)

在&#34;过程变量示例&#34;的实例化形式中没有processVariableValue变量。实例化表单中定义的唯一变量名为formOutput。单击提交按钮后,将发送formOutput值(请参阅&#34;点击&#34时发送的数据;按钮的属性)。

所以我的猜测是,您可能编辑表单并将formOutput变量的定义更改为JavaScript类型,并添加对表单中不存在的名为processVariableValue的变量的引用。 / p>

我建议再次导入Studio中的示例,重新生成.bar文件并尝试再次部署它。