org.camunda.bpm.engine.ProcessEngineException: Unknown property used in expression

Hi Experts,

I am trying to use an delegate expression on a Service Task but throws this error “org.camunda.bpm.engine.ProcessEngineException: Unknown property used in expression ${abcService.reminderEmailCheck(execution)}. Cause Cannot resolve identifier ‘abcService’”

We tried with enabling “Asunchronous Before” and “Exclusive” settings on the timer but didn’t work. We put a 5 sec timer after the “Start 2 day Reminder” Timer but still did not work. We tried with the combination of approach#1 and #2 but still did not work.

The timer “Start 2 Day Reminder” fails at least 80-90% of the times. The delegate “abcService” is being referred at many places in the process but it doesn’t fail anywhere else.

Thanks

Hello my friend!

First point we need to understand, is your question about Camunda 7 or Camunda 8? Because you made the post on Camunda 7 topics, but your example in the printout is from Camunda 8. I was a little confused hehehe!

But come on, you seem to be trying to do something in a flow arrow, and not in a service task.

The “Condition” field of a flow arrow only serves to validate a condition when deciding which path to follow… for example… if a certain variable is true, follow the path below, otherwise, follow the path above .

To call a delegate you need to click on the service task, and select the type “Delegate Expression” in the “Type” field and then declare the name of your delegate class, as per my example below:

${myClassDelegate}

Remembering that this example is from Camunda 7, I don’t have much knowledge about Camunda 8.

I hope this helps!

William Robert Alves

Hi William,

My question is related to Camunda 7. Unfortunately, I am not able to find the right version of Camunda Modeler to show my example. The One I posted is the closest one. I have attached a listener to the sequence line to set a flag to decide the flow direction but I get the error that the bean “abcService” is not identified.

Thanks

Is your AbcService class configured as a spring bean, and does it have the reminderEmailCheck() method that receives the expected parameter?

That is correct