Flowable Custom Function Delegate error

Hi Team,
Iam getting error -"org.flowable.common.engine.api.FlowableException: Could not resolve function 'custom:testFunctionName. while executing rules through JULE expressions.
i have created class-
@Component
public class CustomFlowableFunctionDelegate extends AbstractFlowableFunctionDelegate {

@Override
public String prefix() {
return “custom”;
}

@Override
public String localName() {
return “testFunctionName”;
}

@Override
public Class<?> functionClass() {
return CollectionUtil.class;
}

@Override
public Method functionMethod() {
return getTwoObjectParameterMethod();
}
}
and implemented testFunctionName method which returns true always in package - package org.flowable.dmn.engine.impl.el.util;

package org.flowable.dmn.engine.impl.el.util;
@Component
public class CollectionUtil {

public static boolean testFunctionName(Object collection, Object value) {
return true;
}
}

and my expression is : ${“custom:testFunctionName(’’,’’)”}

could you guys please help to me solve this out.

Thankyou
Poojitha.

Hi @Poojitha

Have you also registered your CustomFlowableFunctionDelegate as a customFlowableFunctionDelegates in the appropriate engine?

Example for the DMN engine: https://flowable.com/open-source/docs/dmn/ch02-Configuration/#custom-flowable-function-delegates

Regards,
Simon