0

我尝试了使用 BonitaBPMCommunity-7.3.1-Tomcat-7.0.67链接http://community.bonitasoft.com/project/process-variable-example给出的简单流程变量示例。它在 bonita studio 和默认的 h2 数据库配置和 tomcat 包中运行良好。但是当我用 PostgreSQL 数据库配置 tomcat 包时,它不能很好地与 Bonita ui 表单一起使用,但可以很好地与包含 6.x 表单的进程一起使用。我已按照官方链接http://documentation.bonitasoft.com/?page=tomcat-bundle中给出的数据库配置说明进行操作. 使用 bundle 配置 PostgresSQL 时,日志文件中没有错误。这种行为是因为我在 Windows 7 Ultimate 32 位上运行 tomcat 包“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
4

1 回答 1

0

在“过程变量示例”的实例化形式中没有processVariableValue变量。在实例化形式中定义的唯一变量是 named formOutput。单击提交按钮时,将formOutput发送值(请参阅按钮的“单击时发送的数据”属性)。

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

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

于 2016-12-01T09:07:00.687 回答