cancel
Showing results for 
Search instead for 
Did you mean: 

Service task delegateExpression / Spring beans

mreiterer
Champ in-the-making
Champ in-the-making
Hi,

i want to structure /name my spring beans in the following way: "workflow-name"."task".

How do i reference such a bean i a delegate expression, because the "." is a meta-character and usually means "call method on the bean" in the expression language ? Can i escape the "." somehow ?

Thanks!
Markus

3 REPLIES 3

vasile_dirla
Star Contributor
Star Contributor
You could try this:
#{@'workflow-name.task'.aMethod()}

If this does not solve your problem, then please upload a JUnit.

mreiterer
Champ in-the-making
Champ in-the-making
Thanks for your answer.

I tried this in my delegate expression: #{@'productionJob.ImposeTask'}

And got this exception message:

Error parsing '#{@'productionJob.ImposeTask'}': lexical error at position 2, encountered invalid character '@', expected expression token

trademak
Star Contributor
Star Contributor
Hi Markus,

What exception do you get when you just use the bean id as the delegate expression? So without any escaping.

Best regards,