activiti流程定义错误

activiti流程定义错误

org.activiti.engine.ActivitiException: Errors while parsing:
[Validation set: ‘activiti-executable-process’ | Problem: ‘activiti-seq-flow-invalid-target’] : Invalid target for sequenceflow - [Extra info : processDefinitionId = parallel | processDefinitionName = 出差申请并行网关 | | id = sid-c9e3b0c3-5161-4a29-9d4d-0eba943671d6 | ] ( line: 11, column: 139)
[Validation set: ‘activiti-executable-process’ | Problem: ‘activiti-seq-flow-invalid-src’] : Invalid source for sequenceflow - [Extra info : processDefinitionId = parallel | processDefinitionName = 出差申请并行网关 | | id = sid-86c2015c-48f4-4e34-8132-780480270916 | ] ( line: 30, column: 139)
[Validation set: ‘activiti-executable-process’ | Problem: ‘activiti-exclusive-gateway-condition-not-allowed-on-single-seq-flow’] : Exclusive gateway has only one outgoing sequence flow. This is not allowed to have a condition. - [Extra info : processDefinitionId = parallel | processDefinitionName = 出差申请并行网关 | | id = sid-49842ae1-0a57-46a1-9e49-840a6cecbfa9 | ] ( line: 20, column: 70)

at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:177)
at org.activiti.engine.impl.bpmn.deployer.ParsedDeploymentBuilder.createBpmnParseFromResource(ParsedDeploymentBuilder.java:96)
at org.activiti.engine.impl.bpmn.deployer.ParsedDeploymentBuilder.build(ParsedDeploymentBuilder.java:55)
at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:66)
at org.activiti.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:60)
at org.activiti.engine.impl.cmd.DeployCmd.executeDeploy(DeployCmd.java:110)
at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:60)
at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:40)
at org.activiti.engine.impl.interceptor.CommandInvoker$1.run(CommandInvoker.java:37)
at org.activiti.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:78)
at org.activiti.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:57)
at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:42)
at org.activiti.engine.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:48)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:63)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:35)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:44)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:39)
at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:83)
at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:188)
at org.example.test.ActivitiGatewayParallel.testDeployment(ActivitiGatewayParallel.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)

由翻译得:

Invalid target for sequenceflow(序列流的目标无效):在流程定义中,序列流连接了两个节点,但是其中一个节点的 ID 无效或不存在。在错误信息中提到了一个 ID 为 sid-c9e3b0c3-5161-4a29-9d4d-0eba943671d6 的节点。
Invalid source for sequenceflow(序列流的源无效):在流程定义中,序列流连接了两个节点,但是其中一个节点的 ID 无效或不存在。在错误信息中提到了一个 ID 为 sid-86c2015c-48f4-4e34-8132-780480270916 的节点。
Exclusive gateway has only one outgoing sequence flow. This is not allowed to have a condition(排他网关只有一条出线,不允许有条件):在流程定义中,排他网关(exclusive gateway)只有一条出线,但是出线上却定义了条件。这是不允许的。在错误信息中提到了一个 ID 为 sid-49842ae1-0a57-46a1-9e49-840a6cecbfa9 的排他网关。
其实就是你的连线有些是虚焊,
(相当于物理意义上的短路)
从那几个id,和排他网关开始查,拖动网关之类的,看连线有没有连上,之后修复即可。

刚刚好像是这两个位置虚焊了
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/m0_52070517/article/details/131638176