Hello, I’m trying to use LocalDate.plus() method in a timer intermediate catch event but I’m having this error:
Caused by: org.camunda.bpm.client.exception.RestException: Unknown method used in expression: ${asprConsultProcedure.getLaunchDate().plus(timerProperties.getTaskCreationValue(), timerProperties.getTaskCreationUnit())}. Cause: Unable to find unambiguous method: class java.time.LocalDate.plus(java.lang.Long, java.time.temporal.ChronoUnit)
at org.camunda.bpm.client.impl.EngineRestExceptionDto.toRestException(EngineRestExceptionDto.java:52)
at org.camunda.bpm.client.impl.RequestExecutor$1.handleResponse(RequestExecutor.java:127)
at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:247)
at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:188)
at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:162)
at org.camunda.bpm.client.impl.RequestExecutor.executeRequest(RequestExecutor.java:83)
at org.camunda.bpm.client.impl.RequestExecutor.postRequest(RequestExecutor.java:69)
at org.camunda.bpm.client.impl.EngineClient.complete(EngineClient.java:113)
at org.camunda.bpm.client.task.impl.ExternalTaskServiceImpl.complete(ExternalTaskServiceImpl.java:99)
... 24 common frames omitted
I’m working with juel 7.21.0 but I know it worked in a previous version.
I looked into the lib and found that 3 methods were found by juel with name “plus” and params [Long, ChronoUnits]. the only difference between them is the return type: LocalDate, ChronoLocalDate and TemporalDate(not sur for the last).
How can I make it works again?
If I realy can’t I’ll make a service for that but it’s less clean I think