Am a new user to Camunda. I created a working BPMN model which has an XOR gateway with an expression #{test == "true"}
I tried changing this to #{Test =="true"} and restarted my (Local Spring Boot) Server. Was expecting the model to automatically update the expression. But I still see the old lower case #{test == "true"}.
Could someone help me understand how can I deploy the model if server restart doesn’t pick it up automatically?
Actually using the same model as yours Nial ! I just replaced the expression value with pseudo since I was trying to understand the concept (instead of specifying the values on the XOR GW you are using)
I have a springboot server i setup using this https://docs.camunda.org/get-started/spring-boot/project-setup/
The new process should be deployed automatically upon restart and a new version deployed - so is it possible that you’re looking at the old version? which i image would still be deployed.
I deployed your original mode with one change. There’s one more XOR GW after “Watch game with Niall” User task that checks with an expression ${UserStatus == "Ready"} and ${UserStatus == “NotReady”} (Accidentally used $ instead of #)
Started the server. Came up fine. Started the task and its waiting on “Watch game with Niall”
Updated the XOR expression to #{userstatus == "Ready"} and #{userstatus == “Ready”} (Made it Lower Case and fixed the $ to #)
Fired the complete case for “Assign case to Nial”
I get this error. Feels like after updating the model and restarting the server - the model didn’t get updated in Camunda schemas:-
I deleted the model started working on your advanced tutorial. I do have the logs though
Caused by: org.camunda.bpm.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier ‘UserStatus’
at org.camunda.bpm.engine.impl.juel.AstIdentifier.eval(AstIdentifier.java:83)
at org.camunda.bpm.engine.impl.juel.AstBinary$SimpleOperator.eval(AstBinary.java:27)
at org.camunda.bpm.engine.impl.juel.AstBinary.eval(AstBinary.java:106)
at org.camunda.bpm.engine.impl.juel.AstEval.eval(AstEval.java:50)
at org.camunda.bpm.engine.impl.juel.AstNode.getValue(AstNode.java:26)
at org.camunda.bpm.engine.impl.juel.TreeValueExpression.getValue(TreeValueExpression.java:114)
at org.camunda.bpm.engine.impl.delegate.ExpressionGetInvocation.invoke(ExpressionGetInvocation.java:40)
at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:58)
at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocationInContext(DefaultDelegateInterceptor.java:92)
at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:63)
at org.camunda.bpm.engine.impl.el.JuelExpression.getValue(JuelExpression.java:60)
NVM - stupid mistake on my part. My MVN build was pushing the bpmn file elsewhere. So the server restart wasn’t finding any new version to deploy,. Once I fixed the POM and it dropped in the server’s target/classes CLASSPATH - it deployed properly! @Niall