cancel
Showing results for 
Search instead for 
Did you mean: 

JavaServiceTaskActivity

jeff1
Champ in-the-making
Champ in-the-making
hi tom/jbarrez.
is JavaServiceTaskActivity able to call java method with specific object instance? for example, I want to call XXXService#doSomething, XXXService is properly created and initiated, they are all managed by spring, and all these are inside the host application which is also adopt activiti.
I think this feature would be necessary.
3 REPLIES 3

ccappuccino
Champ in-the-making
Champ in-the-making
Haha
   From the source code perspective, I think it is right.
   [size=150]
   public void execute(ActivityExecution execution) throws Exception {
    Object object = ReflectUtil.instantiate(className);
    ReflectUtil.invoke(object, method, null);
    leave(execution);
  }
  
[/size]
But by now, it seems to unsupport the Method Parameters  Smiley Wink , because the third parameter is null, I guess. Haha , we can waiting the answer from tom/jbarrez

jbarrez
Star Contributor
Star Contributor
@Jeff,  ccappuccino: both correct.
You guys are really closely following Activiti 🙂

I'm currently implementing the JavaServiceTaskActivity (thats why only void methods work for the moment).
It should be completely implemented this week or beginning next week.

ccappuccino
Champ in-the-making
Champ in-the-making
Ha
Thanks Jbarrez!
I hope we can keep the updating closely with Activiti, since that is my interesting. Smiley Happy
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.