Workflow deployment failed

cancel
Showing results for 
Search instead for 
Did you mean: 
sergus_dev
Active Member II

Workflow deployment failed

Hello

When deploy my custom workflow I get the following error:

2021-05-07T16:51:26.894464187Z [Validation set: 'activiti-executable-process' | Problem: 'activiti-exclusive-gateway-condition-on-seq-flow'] : Default sequenceflow has a condition, which is not allowed - [Extra info : processDefinitionId = planningDevDocProcess | processDefinitionName = Planning development documents |  | id = nextStepGateway |  | activityName = Exclusive Gateway | ] ( line: 40, column: 5)
2021-05-07T16:51:26.894490486Z 
2021-05-07T16:51:26.894496607Z 	at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:216)
2021-05-07T16:51:26.894502198Z 	at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:136)
2021-05-07T16:51:26.894507488Z 	at org.activiti.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:58)
2021-05-07T16:51:26.894512036Z 	at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:106)
2021-05-07T16:51:26.894515984Z 	at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:37)
2021-05-07T16:51:26.894519841Z 	at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)
2021-05-07T16:51:26.894524490Z 	at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)
2021-05-07T16:51:26.894528727Z 	at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)
2021-05-07T16:51:26.894533166Z 	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
2021-05-07T16:51:26.894537444Z 	at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)

What this meen? What I do wrong?

 

1 Reply
afaust
Master

Re: Workflow deployment failed

It says it right in the error message: You have an exclusive gateway in which the default outgoing sequence flow has been modelled with a condition - the purpose of a default is to apply as a fallback without any conditions, so setting a condition on such a flow is invalid, and rejected by the validation. So you need to fix your BPMN2 model.