cancel
Showing results for 
Search instead for 
Did you mean: 

support for delegateExpression

heymjo
Champ on-the-rise
Champ on-the-rise
Activiti supports this:


<activiti:taskListener event="create" delegateExpression="${myTaskListenerBean}" />

but in the designer there is no option to create a listener of type 'delegateExpression'. Also when i add it manually in the xml it is removed as soon as i save this change.

Are delegateExpressions not supported in the designer ? If not is there a way to still add it to the process without the designer removing it each time ?

Thanks
Jorg
3 REPLIES 3

trademak
Star Contributor
Star Contributor
Hi,

In the service task the delegate expression is already supported, so there's no reason to not support it in the listeners.
If you create a JIRA issue I'll look into this for the next release.
In the meantime, I don't have a good workaround other than maybe switching to an expression instead of a delegate expression.

Best regards,

heymjo
Champ on-the-rise
Champ on-the-rise
From the documentation i gathered that for using spring managed beans as a tasklistener i need to use a delegate expression. Can it work with an expression as well then ?

jira issue created: http://jira.codehaus.org/browse/ACT-807

thanks
Jorg

trademak
Star Contributor
Star Contributor
Hi,

Thanks for creating the JIRA.
You can use a Spring managed bean in an expression as well.
The difference is that for an expression you have to specify the method you want to invoke, but then it works fine.

Best regards,