I am using some condition expression in my BPMN file for conditioning. it works fine in Spring Broker and also while deploying it was successful and works fine in workers too. but while deploying in Zeebe broker it’s giving some error
here is my expression
$.status != "WORK_IN_PROGRESS"
here is my code for deployement
deploymentEvent = client.newDeployCommand()
.addResourceFromClasspath(resourceFileName).send().join();
here is errors from zeebe broker:
17:11:02.973 [io.zeebe.gateway.impl.broker.BrokerRequestManager] [gateway-zb-actors-0] ERROR io.zeebe.gateway - Error handling gRPC request
io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Command rejected with code 'CREATE': Expected to deploy new resources, but encountered the following validation errors:
'DemoProcess.bpmn': - Element: SequenceFlow_0pq1wk2 > conditionExpression
- ERROR: Condition expression is invalid: Unexpected json-path token ROOT_OBJECT
- Element: Message_09a1wzl > extensionElements > subscription
- ERROR: JSON path query is invalid: Unexpected json-path token ROOT_OBJECT
- Element: SequenceFlow_18z4aok > conditionExpression
- ERROR: Condition expression is invalid: Unexpected json-path token ROOT_OBJECT
- Element: SequenceFlow_1ujntpf > conditionExpression
- ERROR: Condition expression is invalid: Unexpected json-path token ROOT_OBJECT
- Element: SequenceFlow_0bqhk0r > conditionExpression
- ERROR: Condition expression is invalid: Unexpected json-path token ROOT_OBJECT
- Element: maxQuantityIsCancelled > conditionExpression
- ERROR: Condition expression is invalid: Unexpected json-path token ROOT_OBJECT
- Element: SequenceFlow_0sm3vdx > conditionExpression
- ERROR: Condition expression is invalid: Unexpected json-path token ROOT_OBJECT
- Element: SequenceFlow_11bnmbf > conditionExpression
- ERROR: Condition expression is invalid: Unexpected json-path token ROOT_OBJECT
- Element: SequenceFlow_1nsr9u9 > conditionExpression
- ERROR: Condition expression is invalid: Unexpected json-path token ROOT_OBJECT
- Element: SequenceFlow_11ue6tf > conditionExpression
- ERROR: Condition expression is invalid: Unexpected json-path token ROOT_OBJECT
- Element: statusisCancelled > conditionExpression
- ERROR: Condition expression is invalid: Unexpected json-path token ROOT_OBJECT
at io.grpc.Status.asRuntimeException(Status.java:523) ~[grpc-core-1.19.0.jar:1.19.0]
at io.zeebe.gateway.EndpointManager.convertThrowable(EndpointManager.java:257) ~[zeebe-gateway-0.17.0.jar:0.17.0]
at io.zeebe.gateway.EndpointManager.lambda$sendRequest$2(EndpointManager.java:235) ~[zeebe-gateway-0.17.0.jar:0.17.0]
at io.zeebe.gateway.impl.broker.BrokerRequestManager.lambda$sendRequest$1(BrokerRequestManager.java:90) ~[zeebe-gateway-0.17.0.jar:0.17.0]
at io.zeebe.gateway.impl.broker.BrokerRequestManager.lambda$sendRequest$3(BrokerRequestManager.java:109) ~[zeebe-gateway-0.17.0.jar:0.17.0]
at io.zeebe.gateway.impl.broker.BrokerRequestManager.lambda$sendRequestInternal$6(BrokerRequestManager.java:191) ~[zeebe-gateway-0.17.0.jar:0.17.0]
at io.zeebe.util.sched.future.FutureContinuationRunnable.run(FutureContinuationRunnable.java:35) [zeebe-util-0.17.0.jar:0.17.0]
at io.zeebe.util.sched.ActorJob.invoke(ActorJob.java:90) [zeebe-util-0.17.0.jar:0.17.0]
at io.zeebe.util.sched.ActorJob.execute(ActorJob.java:53) [zeebe-util-0.17.0.jar:0.17.0]
at io.zeebe.util.sched.ActorTask.execute(ActorTask.java:189) [zeebe-util-0.17.0.jar:0.17.0]
at io.zeebe.util.sched.ActorThread.executeCurrentTask(ActorThread.java:154) [zeebe-util-0.17.0.jar:0.17.0]
at io.zeebe.util.sched.ActorThread.doWork(ActorThread.java:135) [zeebe-util-0.17.0.jar:0.17.0]
at io.zeebe.util.sched.ActorThread.run(ActorThread.java:112) [zeebe-util-0.17.0.jar:0.17.0]