cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically adding of Service class in Service Task?

hamepal
Champ in-the-making
Champ in-the-making
Hi
  Is there any way by which any one can dynamically link the Service Java class to ServiceTask node in process on Activiti 5.6? if it is possible then please provide sample code?

Thanks in advance…

Regards
2 REPLIES 2

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
no, it is not. It is parsed deploy time afaik. But what is the usecase if I may ask? Since you can write a small generic class that gets a param which is the name of the dynamic class and in this class you do some resolving yourself.

frederikherema1
Star Contributor
Star Contributor
The only thing you could maybe use is the activiti:delegateExpression, which allows you to define a factory-class (or implementation JavaDelegate) in your spring-context. This way, service class will depend on you factory and context, not on the bpmn file…