在使用任务中开发camunda流程时,对Camunda不熟悉我通过属性分配受让人但不分配给特定用户。
我正在努力研究ubuntu 14.0.4和使用BPMN 2.0的第一个例子的camunda。
谁能帮我?如果我们创建Html表单还有一个澄清,当我们使用凭证demo / demo启动流程时以及在.bpmn
文件中包含与类的服务任务绑定时,它也不会反映出来
并在tomcat日志文件中面临以下错误:
我正致力于以下环境: OS:ubuntu14.0.4 月蚀:月神 JDK:1.8 tomcat的:7 Camunda:Camunda BPM平台v7.3.0。
我正在尝试执行以下示例
“https://docs.camunda.org/get-started/bpmn20/deploy/”
这是我的bpmn文件:
SequenceFlow_1 SequenceFlow_7 SequenceFlow_1 SequenceFlow_7 SequenceFlow_8 SequenceFlow_8
SEVERE: Exception sending context initialized event to listener instance of class org.camunda.bpm.getstarted.loanapproval.LoanApprovalApplication
org.camunda.bpm.engine.ProcessEngineException: Exception while performing 'Deployment of Process Application Loan Approval App => Deployment of process archive 'loan-approval': One of the attributes 'class', 'delegateExpression', 'type', or 'expression' is mandatory on serviceTask. | loan-approval.bpmn | line 17 | column 150
at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:134)
at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.executeDeploymentOperation(MBeanServiceContainer.java:148)
at org.camunda.bpm.container.impl.spi.DeploymentOperation$DeploymentOperationBuilder.execute(DeploymentOperation.java:209)
at org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl.deployProcessApplication(RuntimeContainerDelegateImpl.java:87)
at org.camunda.bpm.application.AbstractProcessApplication.deploy(AbstractProcessApplication.java:51)
at org.camunda.bpm.application.impl.ServletProcessApplication.contextInitialized(ServletProcessApplication.java:131)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5014)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1930)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.camunda.bpm.engine.ProcessEngineException: One of the attributes 'class', 'delegateExpression', 'type', or 'expression' is mandatory on serviceTask. | loan-approval.bpmn | line 17 | column 150
at org.camunda.bpm.engine.impl.util.xml.Parse.throwExceptionForErrors(Parse.java:188)
at org.camunda.bpm.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:267)
at org.camunda.bpm.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:105)
at org.camunda.bpm.engine.impl.persistence.deploy.DeploymentCache$1.call(DeploymentCache.java:62)
at org.camunda.bpm.engine.impl.persistence.deploy.DeploymentCache$1.call(DeploymentCache.java:59)
at org.camunda.bpm.engine.impl.interceptor.CommandContext.runWithoutAuthorization(CommandContext.java:485)
at org.camunda.bpm.engine.impl.persistence.deploy.DeploymentCache.deploy(DeploymentCache.java:59)
at org.camunda.bpm.engine.impl.persistence.entity.DeploymentManager.insertDeployment(DeploymentManager.java:47)
at org.camunda.bpm.engine.impl.cmd.DeployCmd.deploy(DeployCmd.java:177)
at org.camunda.bpm.engine.impl.cmd.DeployCmd$1.call(DeployCmd.java:93)
at org.camunda.bpm.engine.impl.cmd.DeployCmd$1.call(DeployCmd.java:82)
at org.camunda.bpm.engine.impl.interceptor.CommandContext.runWithoutAuthorization(CommandContext.java:485)
答案 0 :(得分:3)
new Camunda Modeler生成需要运行Camunda版本> = 7.4.0,7.3.3,7.2.6的BPMN模型(参见https://docs.camunda.org/manual/latest/modeler/)。
原因是Camunda扩展元素和属性的命名空间已从http://activiti.org/bpmn
更改为http://camunda.org/schema/1.0/bpmn
。新建模器生成使用新命名空间的模型,因此无法在不支持它的Camunda平台版本上执行。假设您使用此建模器,则必须升级Camunda。
作为替代方案,您可以使用deprecated Eclipse plugin。同样,请确保选择适用于7.3.0的正确版本。