This is my delegate expression: #{objectLocationListener.methodX(execution)}
My delegate class is simple spring component as:
@Slf4j @Component
public class ObjectLocationListener{
public void methodX( DelegateExecution execution ){
Object o = delegate.getVariables();
}
}
This methodX is executed, but after that I get:
Caused by: org.flowable.common.engine.api.FlowableIllegalArgumentException: Delegate expression #{objectLocationListener.methodX(execution)} did neither resolve to an implementation of interface org.flowable.engine.impl.delegate.ActivityBehavior nor interface org.flowable.engine.delegate.JavaDelegate
Am i missing something here?
Just for clarification: I know for JavaDelegate interface when calling class, but I want to call Java method in my spring bean…