Specifying custom bean method for passing business key with CallActivity

I’ve came across this while looking through one of the old posts

My question is: how do I make expression like #{someCustomBean.method(…)} work? Does someCustomBean have to implement some kind of an interface? And where should I put? Should it just be a component inside spring context or something else? I have OSGi environment with spring 5 running inside camunda bundle.

1 Like

Hi @ilyabr,

From what I can see, you’re describing invoking bean methods in expressions. Have you checked out the documentation here https://docs.camunda.org/manual/7.11/user-guide/spring-framework-integration/expressions/#using-spring-beans-in-expressions and here https://docs.camunda.org/manual/7.11/user-guide/cdi-java-ee-integration/expression-resolving/?