I'm having an issue with this :
package com.acme;
Class CircuitBreakerUtil {
public static boolean canAttempt(String breakerName) {
return true;
}
}
my spring declaration
<spring:bean id="circuitBreakerUtil" class="com.acme.CircuitBreakerUtil" scope="singleton"/>
my mvel expression :
<choice doc:name="ApiCircuitBreakerName Is Up?">
<when expression="#[app.registry.circuitBreakerUtil.canAttempt('ApiCircuitBreakerName')]">
<flow-ref name="CircuitBreakerFlow" doc:name="CircuitBreakerFlow"/>
<logger message="Passed CircuitBreakerFlow" level="INFO" doc:name="Logger"/>
</when>
<otherwise>
<flow-ref name="EmailTechnicalSupportFlow" doc:name="EmailTechnicalSupportFlow"/>
<flow-ref name="fallbackFlow" doc:name="fallbackFlow"/>
<logger message="Passed FallbackFlow" level="INFO" doc:name="Logger"/>
</otherwise>
</choice>
and getting this error :
Caused by: [Error: unable to resolve method: com.acme.CircuitBreakerUtil.canAttempt(java.lang.String) [arglength=1]]
[Near : {... app.registry.circuitBreakerUti ....}]